    /* ── TOKENS (claro) ── */
    :root {
      --bg: #f3f4f9;
      --bg-alt: #eceef6;
      --card: #fbfbfe;
      --surface: #e8eaf3;
      --border: #dcdeea;
      --text: #1e1333;
      --muted: #59566f;
      --accent: #4b3bc4;
      --accent-2: #2f4fb3;
      --accent-soft: #e7e5f7;
      --accent-line: #cfcaee;
      --grad: linear-gradient(135deg, #3a2a9c 0%, #4b3bc4 50%, #2f4fb3 100%);
      --grad-text: linear-gradient(120deg, #3a2a9c 0%, #4b3bc4 45%, #2f4fb3 100%);
      --hero-bg: linear-gradient(180deg, rgba(247, 247, 252, 0.7) 0%, rgba(238, 237, 247, 0.72) 70%, rgba(243, 244, 249, 0.35) 100%);
      --grid-line: rgba(30, 19, 51, 0.055);
      --cta-bg: linear-gradient(135deg, #e9e7f8 0%, #e2e6f6 100%);
      --nav-bg: rgba(243, 244, 249, 0.86);
      --tile-a: #1e1333;
      --tile-b: #3a2a9c;
      --tile-c: #2f4fb3;
      --tile-d: #7a83a8;
      --tile-opacity: 0.07;
      --ok: #157a52;
      --warn: #a3520a;
      --danger: #c0392b;
      --shadow: 0 1px 2px rgba(18, 12, 38, 0.05), 0 10px 28px rgba(18, 12, 38, 0.08);
      --shadow-lg: 0 2px 6px rgba(18, 12, 38, 0.08), 0 24px 56px rgba(18, 12, 38, 0.14);
      --on-grad: #ffffff;
      --mono: 'Source Code Pro', ui-monospace, monospace;
    }

    /* ── TOKENS (oscuro) ── */
    [data-theme="dark"] {
      --bg: #0e0b1b;
      --bg-alt: #120f24;
      --card: #17132f;
      --surface: #1d1838;
      --border: #2b2548;
      --text: #ece9f6;
      --muted: #a9a2c4;
      --accent: #9b8bf4;
      --accent-2: #7c98ff;
      --accent-soft: #241e45;
      --accent-line: #3a3266;
      --grad: linear-gradient(135deg, #5b45d8 0%, #4b3bc4 50%, #3656c8 100%);
      --grad-text: linear-gradient(120deg, #b6a8ff 0%, #9b8bf4 45%, #8fa6ff 100%);
      --hero-bg: linear-gradient(160deg, rgba(30, 19, 51, 0.82) 0%, rgba(26, 22, 54, 0.8) 55%, rgba(20, 32, 60, 0.72) 100%);
      --grid-line: rgba(236, 233, 246, 0.05);
      --cta-bg: linear-gradient(160deg, #1e1333 0%, #241b45 55%, #1b2a4a 100%);
      --nav-bg: rgba(14, 11, 27, 0.88);
      --tile-a: #6d5ce0;
      --tile-b: #4b3bc4;
      --tile-c: #3d63d6;
      --tile-d: #8a7fd0;
      --tile-opacity: 0.1;
      --ok: #4ade9a;
      --warn: #f5b454;
      --danger: #ff7a6b;
      --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px rgba(0, 0, 0, 0.35);
      --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.35), 0 24px 56px rgba(0, 0, 0, 0.5);
    }

    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
      scroll-padding-top: 76px;
    }

    body {
      font-family: 'Raleway', sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.6;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
      transition: background 0.3s, color 0.3s;
    }

    a {
      color: inherit;
    }

    img {
      max-width: 100%;
    }

    /* ── CUBITOS DE FONDO ── */
    .bg-tiles {
      position: fixed;
      inset: 0;
      z-index: 0;
      overflow: hidden;
      pointer-events: none;
    }

    .tile {
      position: absolute;
      top: 0;
      border-radius: 6px;
      opacity: var(--tile-opacity);
      will-change: transform;
      animation: tile-float linear infinite;
    }

    .tile--a { background: var(--tile-a); }
    .tile--b { background: var(--tile-b); }
    .tile--c { background: var(--tile-c); }
    .tile--d { background: transparent; border: 2px solid var(--tile-d); opacity: calc(var(--tile-opacity) * 2); }

    /* Same rise as the login: from below the fold to above the top, turning slowly. */
    @keyframes tile-float {
      0% { transform: translateY(100vh) rotate(0deg); }
      100% { transform: translateY(-140px) rotate(360deg); }
    }

    nav,
    main,
    footer {
      position: relative;
      z-index: 1;
    }

    /* ── NAV ── */
    nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      height: 68px;
      padding: 0 clamp(16px, 5vw, 64px);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      background: var(--nav-bg);
      backdrop-filter: saturate(1.4) blur(14px);
      border-bottom: 1px solid transparent;
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    nav.scrolled {
      border-bottom-color: var(--border);
      box-shadow: 0 6px 24px rgba(18, 12, 38, 0.06);
    }

    .nav-logo {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      color: var(--text);
    }

    .logo-icon {
      width: 38px;
      height: 38px;
      border-radius: 10px;
      background: var(--card);
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .logo-icon img {
      width: 26px;
      height: 26px;
    }

    .logo-text {
      font-weight: 800;
      font-size: 1.15rem;
      letter-spacing: -0.02em;
    }

    .logo-text span {
      background: var(--grad-text);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .nav-links {
      display: flex;
      gap: 30px;
      list-style: none;
    }

    .nav-links a {
      position: relative;
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--muted);
      text-decoration: none;
      transition: color 0.2s;
    }

    .nav-links a::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: -6px;
      height: 2px;
      background: var(--grad);
      transform: scaleX(0);
      transition: transform 0.25s;
    }

    .nav-links a:hover {
      color: var(--text);
    }

    .nav-links a:hover::after {
      transform: scaleX(1);
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .lang-switch {
      display: inline-flex;
      border: 1px solid var(--border);
      border-radius: 8px;
      overflow: hidden;
      background: var(--card);
    }

    .lang-switch button {
      border: none;
      background: transparent;
      color: var(--muted);
      font-family: var(--mono);
      font-size: 0.75rem;
      font-weight: 600;
      padding: 8px 9px;
      cursor: pointer;
    }

    .lang-switch button[aria-pressed="true"] {
      background: var(--accent-soft);
      color: var(--accent);
    }

    .theme-btn-nav {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      border: 1px solid var(--border);
      background: var(--card);
      color: var(--text);
      font-size: 1rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .btn-nav-solid {
      padding: 9px 20px;
      white-space: nowrap;
      background: var(--grad);
      border-radius: 8px;
      color: var(--on-grad);
      font-size: 0.85rem;
      font-weight: 700;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      transition: transform 0.15s, box-shadow 0.2s;
    }

    .btn-nav-solid:hover {
      transform: translateY(-1px);
      box-shadow: 0 8px 20px rgba(58, 42, 156, 0.28);
    }

    .hamburger-btn {
      display: none;
      width: 36px;
      height: 36px;
      border: none;
      background: none;
      cursor: pointer;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
    }

    .hamburger-btn span {
      display: block;
      width: 20px;
      height: 2px;
      border-radius: 2px;
      background: var(--text);
    }

    .mobile-menu {
      position: fixed;
      top: 68px;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 90;
      display: none;
      flex-direction: column;
      gap: 8px;
      padding: 24px;
      background: var(--bg);
      border-top: 1px solid var(--border);
    }

    .mobile-menu-link {
      padding: 14px 16px;
      border-radius: 10px;
      background: var(--surface);
      color: var(--text);
      font-weight: 600;
      text-decoration: none;
    }

    /* ── HERO ── */
    .hero-shell {
      position: relative;
      background: var(--hero-bg);
      border-bottom: 1px solid var(--border);
      overflow: hidden;
    }

    .hero-shell::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
      background-size: 44px 44px;
      -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
      mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
      pointer-events: none;
    }

    .hero {
      position: relative;
      z-index: 1;
      max-width: 1240px;
      margin: 0 auto;
      min-height: 92vh;
      padding: 128px clamp(16px, 5vw, 48px) 80px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 56px;
      align-items: center;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      padding: 6px 14px;
      border: 1px solid var(--accent-line);
      border-radius: 8px;
      background: var(--card);
      color: var(--accent);
      font-family: var(--mono);
      font-size: 0.74rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      margin-bottom: 26px;
    }

    .badge-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--ok);
      box-shadow: 0 0 0 4px rgba(21, 122, 82, 0.15);
    }

    .hero-title {
      font-size: clamp(2.5rem, 5.4vw, 4.4rem);
      font-weight: 900;
      line-height: 1.04;
      letter-spacing: -0.035em;
      margin-bottom: 24px;
    }

    .hero-title .char {
      display: inline-block;
    }

    .grad-text,
    .hero-title .grad-text .char {
      background: var(--grad-text);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .hero-title .dim {
      font-weight: 300;
      color: var(--muted);
    }

    .hero-sub {
      max-width: 540px;
      font-size: 1.08rem;
      color: var(--muted);
      margin-bottom: 34px;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 36px;
    }

    .btn-hero,
    .btn-hero-ghost,
    .btn-cta-white {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 14px 28px;
      border-radius: 10px;
      font-size: 0.95rem;
      font-weight: 700;
      text-decoration: none;
      transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
    }

    .btn-hero {
      background: var(--grad);
      color: var(--on-grad);
      box-shadow: 0 10px 26px rgba(58, 42, 156, 0.26);
    }

    .btn-hero:hover {
      transform: translateY(-2px);
      box-shadow: 0 14px 32px rgba(58, 42, 156, 0.34);
    }

    .btn-hero-ghost {
      border: 1px solid var(--border);
      background: var(--card);
      color: var(--text);
    }

    .btn-hero-ghost:hover {
      border-color: var(--accent-line);
      transform: translateY(-2px);
    }

    .hero-proof {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 26px;
      list-style: none;
      font-size: 0.86rem;
      color: var(--muted);
    }

    .hero-proof li {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .hero-proof li::before {
      content: "";
      width: 6px;
      height: 6px;
      border-radius: 2px;
      background: var(--accent);
    }

    .hero-proof strong {
      color: var(--text);
      font-family: var(--mono);
    }

    /* Escena del hero: tarjeta de condición + avisos + mascota */
    .hero-stage {
      position: relative;
      padding: 28px 0 84px 56px;
    }

    .monitor-card {
      position: relative;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 16px;
      box-shadow: var(--shadow-lg);
      padding: 20px 22px 18px;
      color: var(--accent-2);
    }

    .mc-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px;
    }

    .mc-asset {
      font-weight: 800;
      color: var(--text);
    }

    .mc-channel {
      font-size: 0.78rem;
      color: var(--muted);
    }

    .mc-pill {
      flex-shrink: 0;
      padding: 4px 10px;
      border-radius: 6px;
      background: rgba(163, 82, 10, 0.12);
      color: var(--warn);
      font-family: var(--mono);
      font-size: 0.7rem;
      font-weight: 600;
    }

    .mc-chart {
      display: block;
      width: 100%;
      height: 170px;
    }

    .mc-grid line {
      stroke: var(--border);
      stroke-width: 1;
    }

    .mc-band {
      fill: var(--warn);
      opacity: 0.1;
    }

    .mc-limit {
      stroke: var(--danger);
      stroke-width: 1.5;
      stroke-dasharray: 6 5;
    }

    .mc-area {
      fill: url(#mcFill);
      animation: mc-fade 1.2s 1.6s both;
    }

    .mc-line {
      fill: none;
      stroke: currentColor;
      stroke-width: 2.6;
      stroke-linejoin: round;
      stroke-linecap: round;
      stroke-dasharray: 720;
      stroke-dashoffset: 720;
      animation: mc-draw 2.2s 0.4s ease-out forwards;
    }

    .mc-dot {
      fill: var(--warn);
      animation: mc-fade 0.4s 2.4s both;
    }

    .mc-dot-ring {
      fill: none;
      stroke: var(--warn);
      stroke-width: 2;
      transform-box: fill-box;
      transform-origin: center;
      animation: mc-pulse 1.8s 2.6s ease-out infinite both;
    }

    @keyframes mc-draw {
      to { stroke-dashoffset: 0; }
    }

    @keyframes mc-fade {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    @keyframes mc-pulse {
      0% { opacity: 0.9; transform: scale(0.6); }
      100% { opacity: 0; transform: scale(2); }
    }

    .mc-foot {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid var(--border);
    }

    .mc-k {
      display: block;
      font-size: 0.68rem;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .mc-v {
      font-family: var(--mono);
      font-size: 0.86rem;
      font-weight: 600;
      color: var(--text);
    }

    .ot-toast {
      position: absolute;
      right: -14px;
      bottom: 6px;
      display: flex;
      align-items: center;
      gap: 12px;
      max-width: 300px;
      padding: 12px 16px;
      background: var(--card);
      border: 1px solid var(--border);
      border-left: 3px solid var(--ok);
      border-radius: 12px;
      box-shadow: var(--shadow-lg);
      animation: toast-in 0.6s 2.8s both cubic-bezier(0.2, 0.9, 0.3, 1.2);
    }

    .ot-icon {
      font-size: 1.2rem;
    }

    .ot-title {
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--text);
    }

    .ot-sub {
      font-size: 0.72rem;
      color: var(--muted);
    }

    .plan-chip {
      position: absolute;
      top: 0;
      right: 18px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 7px 12px;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 8px;
      box-shadow: var(--shadow);
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--text);
      animation: toast-in 0.6s 3.4s both;
    }

    .plan-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--accent);
    }

    @keyframes toast-in {
      from { opacity: 0; transform: translateY(14px) scale(0.96); }
      to { opacity: 1; transform: none; }
    }

    .mascot-hero {
      position: absolute;
      left: -64px;
      bottom: -22px;
      width: 180px;
      height: auto;
      filter: drop-shadow(0 14px 22px rgba(18, 12, 38, 0.22));
      animation: mascot-float 5s ease-in-out infinite;
    }

    @keyframes mascot-float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-8px); }
    }

    /* ── SECCIONES ── */
    .section {
      max-width: 1240px;
      margin: 0 auto;
      padding: 104px clamp(16px, 5vw, 48px);
    }

    .section-alt {
      max-width: none;
      background: color-mix(in srgb, var(--bg-alt) 88%, transparent);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }

    /* The sections a Dot Grid backs span the whole window, like the wide bands, so the dots reach
       both edges at full screen (held to 1240 px, a 1920 px window showed them only in the middle).
       They are the positioning context for their canvas, and their content stays above it. */
    #predictivo,
    #features,
    #modules,
    #access {
      position: relative;
      max-width: none;
    }

    /* Their content keeps the 1144 px column (1240 minus the 48 px gutters). It must not reach the
       canvas: clamped, the canvas box stopped matching the bitmap it sizes from the section, so the
       dots were squashed (1.665x at 1920 px) and the pointer aimed at another point. Zero
       specificity on purpose: `.section-center`, declared below, keeps its 720 px. */
    :where(#predictivo, #features, #modules, #access) > :where(:not(.canvas-bg)) {
      max-width: 1144px;
      margin-left: auto;
      margin-right: auto;
    }

    #predictivo > :not(.canvas-bg),
    #features > :not(.canvas-bg),
    #modules > :not(.canvas-bg),
    #access > :not(.canvas-bg) {
      position: relative;
      z-index: 1;
    }

    .section-center {
      text-align: center;
      max-width: 720px;
      margin: 0 auto 60px;
    }

    .section-label {
      display: inline-block;
      font-family: var(--mono);
      font-size: 0.74rem;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 14px;
    }

    .section-title {
      font-size: clamp(1.9rem, 3.6vw, 2.9rem);
      font-weight: 900;
      line-height: 1.1;
      letter-spacing: -0.03em;
      margin-bottom: 18px;
    }

    .section-sub {
      font-size: 1.02rem;
      color: var(--muted);
    }

    /* Flujo predictivo */
    .flow {
      position: relative;
      list-style: none;
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 18px;
    }

    .flow::before {
      content: "";
      position: absolute;
      top: 34px;
      left: 10%;
      right: 10%;
      height: 2px;
      background: repeating-linear-gradient(90deg, var(--accent-line) 0 10px, transparent 10px 18px);
      background-size: 36px 2px;
      animation: flow-run 1.6s linear infinite;
    }

    @keyframes flow-run {
      to { background-position: 36px 0; }
    }

    .flow-step {
      position: relative;
      text-align: center;
      padding: 0 6px;
    }

    .flow-icon {
      position: relative;
      z-index: 1;
      width: 68px;
      height: 68px;
      margin: 0 auto 16px;
      border-radius: 18px;
      background: var(--card);
      border: 1px solid var(--accent-line);
      box-shadow: var(--shadow);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.6rem;
    }

    .flow-num {
      font-family: var(--mono);
      font-size: 0.72rem;
      font-weight: 600;
      color: var(--accent);
      margin-bottom: 4px;
    }

    .flow-title {
      font-size: 1.05rem;
      font-weight: 800;
      margin-bottom: 6px;
    }

    .flow-desc {
      font-size: 0.86rem;
      color: var(--muted);
    }

    /* Método RCM */
    .features-layout {
      display: grid;
      grid-template-columns: 0.9fr 1.1fr;
      gap: 64px;
      align-items: start;
    }

    .features-intro {
      position: sticky;
      top: 110px;
    }

    .rcm-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    .rcm-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 22px;
      transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    }

    .rcm-card:hover {
      transform: translateY(-3px);
      border-color: var(--accent-line);
      box-shadow: var(--shadow);
    }

    .f-icon {
      width: 42px;
      height: 42px;
      border-radius: 10px;
      background: var(--accent-soft);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.15rem;
      margin-bottom: 14px;
    }

    .f-title {
      font-size: 1rem;
      font-weight: 800;
      margin-bottom: 6px;
    }

    .f-desc {
      font-size: 0.86rem;
      color: var(--muted);
    }

    /* Módulos */
    .module-groups {
      display: flex;
      flex-direction: column;
      gap: 44px;
    }

    .group-title {
      display: flex;
      align-items: center;
      gap: 14px;
      font-family: var(--mono);
      font-size: 0.76rem;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 16px;
    }

    .group-title::after {
      content: "";
      flex: 1;
      height: 1px;
      background: var(--border);
    }

    .modules-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
    }

    .module-card {
      position: relative;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 22px 20px;
      overflow: hidden;
      transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    }

    .module-card::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: var(--grad);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.3s;
    }

    .module-card:hover {
      transform: translateY(-3px);
      border-color: var(--accent-line);
      box-shadow: var(--shadow);
    }

    .module-card:hover::before {
      transform: scaleX(1);
    }

    .module-card--wide {
      grid-column: span 2;
    }

    .module-icon {
      width: 42px;
      height: 42px;
      border-radius: 10px;
      background: var(--accent-soft);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.15rem;
      margin-bottom: 14px;
    }

    .module-name {
      font-size: 1rem;
      font-weight: 800;
      margin-bottom: 6px;
      letter-spacing: -0.01em;
    }

    .module-desc {
      font-size: 0.85rem;
      color: var(--muted);
    }

    /* Cómo empezamos */
    .steps {
      list-style: none;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
      margin-bottom: 22px;
    }

    .step {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 26px 24px;
    }

    .step-num {
      width: 36px;
      height: 36px;
      border-radius: 9px;
      background: var(--grad);
      color: var(--on-grad);
      font-family: var(--mono);
      font-weight: 600;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 16px;
    }

    .step-title {
      font-size: 1.02rem;
      font-weight: 800;
      margin-bottom: 6px;
    }

    .step-desc,
    .cloud-note {
      font-size: 0.88rem;
      color: var(--muted);
    }

    .cloud-note {
      text-align: center;
      padding: 14px 18px;
      border: 1px dashed var(--border);
      border-radius: 10px;
    }

    /* CTA */
    .cta-section {
      max-width: 1240px;
      margin: 0 auto;
      padding: 110px clamp(16px, 5vw, 48px) 96px;
    }

    .cta-wrap {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 32px;
      padding: 58px 320px 58px 56px;
      border-radius: 20px;
      background: var(--cta-bg);
      border: 1px solid var(--accent-line);
    }

    .cta-wrap::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
      background-size: 32px 32px;
      pointer-events: none;
    }

    .cta-text,
    .cta-actions {
      position: relative;
      z-index: 1;
    }

    /* ── ANIMATED BACKGROUNDS (canvas) ── */
    /* The canvas fills its container, never takes the pointer and stays under the content. */
    .canvas-bg {
      position: absolute;
      inset: 0;
      display: block;
      width: 100%;
      height: 100%;
      /* The canvas fills its box: no inherited reading width and no centring that would leave
         gutters and scale the bitmap on one axis only. */
      max-width: none;
      margin: 0;
      pointer-events: none;
      z-index: 0;
    }

    /* The hero keeps its downward fade, now on the canvas. */
    .canvas-bg--hero {
      -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
      mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
    }

    /* The CTA card clips its canvas with the same corners. */
    .canvas-bg--cta {
      border-radius: inherit;
    }

    /* The fallback: the CSS grid goes away only once an engine drew its first frame. */
    .hero-shell.has-canvas-bg::before {
      display: none;
    }

    .cta-wrap.has-canvas-bg::before {
      display: none;
    }

    .cta-title {
      font-size: clamp(1.7rem, 3vw, 2.4rem);
      font-weight: 900;
      line-height: 1.12;
      letter-spacing: -0.03em;
      margin-bottom: 8px;
    }

    .cta-sub {
      color: var(--muted);
    }

    .btn-cta-white {
      background: var(--grad);
      color: var(--on-grad);
      box-shadow: 0 10px 26px rgba(58, 42, 156, 0.26);
    }

    .btn-cta-white:hover {
      transform: translateY(-2px);
    }

    .mascot-cta {
      position: absolute;
      z-index: 1;
      right: 22px;
      bottom: -4px;
      width: 280px;
      height: auto;
      filter: drop-shadow(0 12px 20px rgba(18, 12, 38, 0.2));
    }

    /* ── FOOTER ── */
    footer {
      border-top: 1px solid var(--border);
      background: color-mix(in srgb, var(--bg-alt) 92%, transparent);
    }

    .footer-inner {
      max-width: 1240px;
      margin: 0 auto;
      padding: 60px clamp(16px, 5vw, 48px) 28px;
    }

    .footer-top {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 40px;
      margin-bottom: 40px;
    }

    .footer-brand p {
      max-width: 320px;
      margin-top: 14px;
      font-size: 0.88rem;
      color: var(--muted);
    }

    .footer-col {
      display: flex;
      flex-direction: column;
      gap: 9px;
    }

    .footer-col h3 {
      font-family: var(--mono);
      font-size: 0.74rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      margin-bottom: 4px;
    }

    .footer-col a,
    .footer-links a {
      font-size: 0.88rem;
      color: var(--muted);
      text-decoration: none;
    }

    .footer-col a:hover,
    .footer-links a:hover {
      color: var(--accent);
    }

    .footer-bottom {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      padding-top: 22px;
      border-top: 1px solid var(--border);
    }

    .footer-copy {
      font-family: var(--mono);
      font-size: 0.8rem;
      color: var(--muted);
    }

    .footer-links {
      display: flex;
      gap: 20px;
    }

    .btn-soporte-float {
      position: fixed;
      right: 20px;
      bottom: 20px;
      z-index: 999;
      padding: 10px 18px;
      border: none;
      border-radius: 8px;
      background: var(--grad);
      color: var(--on-grad);
      font-family: 'Raleway', sans-serif;
      font-size: 0.8rem;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 6px 18px rgba(18, 12, 38, 0.3);
    }

    /* SCROLL REVEAL (GSAP-driven — initial state set by JS) */
    .reveal {
      visibility: hidden;
    }

    .d1 { transition-delay: 0.08s; }
    .d2 { transition-delay: 0.16s; }
    .d3 { transition-delay: 0.24s; }
    .d4 { transition-delay: 0.32s; }

    /* ── RESPONSIVE ── */
    @media (max-width: 1180px) {
      .modules-grid {
        grid-template-columns: 1fr 1fr;
      }

      .flow {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 34px;
      }

      .flow::before {
        display: none;
      }
    }

    @media (max-width: 1024px) {
      .hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-top: 112px;
        gap: 40px;
      }

      .hero-stage {
        max-width: 560px;
        padding-left: 0;
      }

      .mascot-hero {
        left: auto;
        right: -10px;
        bottom: auto;
        top: -70px;
        width: 120px;
      }

      .features-layout {
        grid-template-columns: 1fr;
        gap: 36px;
      }

      .features-intro {
        position: static;
      }

      .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
      }
    }

    @media (max-width: 767px) {
      /* The floating tiles stay, but the phone already carries its own texture. */
      .bg-tiles {
        --tile-opacity: 0.04;
      }
    }

    @media (max-width: 768px) {
      .nav-links {
        display: none;
      }

      .hamburger-btn {
        display: flex;
      }

      .section {
        padding-top: 76px;
        padding-bottom: 76px;
      }

      .modules-grid,
      .rcm-grid,
      .steps {
        grid-template-columns: 1fr;
      }

      .module-card--wide {
        grid-column: auto;
      }

      .flow {
        grid-template-columns: 1fr 1fr;
      }

      .cta-wrap {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 24px 150px;
      }

      .cta-actions,
      .btn-cta-white {
        width: 100%;
      }

      .mascot-cta {
        width: 170px;
      }

      .footer-top {
        grid-template-columns: 1fr;
        gap: 28px;
      }

      .footer-bottom {
        flex-direction: column;
      }
    }

    @media (max-width: 480px) {
      nav {
        gap: 8px;
      }

      .logo-text {
        display: none;
      }

      .nav-actions {
        gap: 6px;
      }

      .btn-nav-solid {
        padding: 8px 12px;
        font-size: 0.8rem;
      }

      .hero-stage {
        padding-top: 44px;
      }

      .mc-foot {
        grid-template-columns: 1fr 1fr;
      }

      .ot-toast {
        position: relative;
        right: auto;
        margin-top: 12px;
        max-width: none;
      }

      .plan-chip {
        right: auto;
        left: 0;
      }

      .flow {
        grid-template-columns: 1fr;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .tile,
      .mascot-hero,
      .flow::before,
      .mc-dot-ring {
        animation: none;
      }

      .mc-line {
        animation: none;
        stroke-dashoffset: 0;
      }

      .mc-area,
      .mc-dot,
      .ot-toast,
      .plan-chip {
        animation: none;
      }
    }
