@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/GeistMono-normal-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/GeistMono-normal-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/GeistMono-normal-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/GeistMono-normal-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/InstrumentSans-normal-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/InstrumentSans-normal-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/InstrumentSans-normal-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/InstrumentSans-normal-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/InstrumentSans-normal-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/InstrumentSans-normal-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/Newsreader-italic-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/Newsreader-italic-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Newsreader-normal-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Newsreader-normal-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Newsreader-normal-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Newsreader-normal-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

  :root {
    color-scheme: dark;
    --bg: #050D1A;
    --bg-2: #0A1628;
    --line: rgba(200, 225, 255, 0.10);
    --ink: #FFFFFF;
    --ink-2: rgba(226, 236, 250, 0.66);
    --ink-3: rgba(226, 236, 250, 0.58);
    --cyan: #00E5FF;
    --cyan-ink: #03121A;
    --lost: #FF8A8A;
    --gutter: clamp(16px, 4.5vw, 64px);
    --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);

    /* tipografía: Newsreader en titulares, Instrument Sans en texto */
    --display: "Newsreader", "Iowan Old Style", Georgia, serif;
    --body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
    --d-weight: 400;
    --d-track: -0.028em;
    --d-scale: 1.1;
    --d-leading: 0.98;
    --em-font: "Newsreader", "Iowan Old Style", Georgia, serif;
    --em-size: 1em;
    --em-track: -0.03em;
  }

  html, body { margin: 0; }
  img, video { max-width: 100%; }
  :root {
    /* borde izquierdo común: el mismo en menú, hero, secciones y pie */
    --edge: max(var(--gutter), calc((100% - 76rem) / 2));
    /* una sola medida para todos los títulos de sección */
    --t-h2: calc(clamp(2rem, 3.1vw, 3rem) * var(--d-scale));
  }
  html { background: var(--bg); }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  h1, h2, h3, .brand, .btn { font-family: var(--display); }
  a { color: inherit; }
  ::selection { background: var(--cyan); color: var(--cyan-ink); }

  /* grano muy fino para quitar el aspecto de "pantalla plana" */
  body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  /* ---------- navegación ---------- */
  .nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: calc(18px + env(safe-area-inset-top, 0px)) var(--edge) 18px;
    background: rgba(5,13,26,0.72);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid rgba(200,225,255,0.06);
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 17px;
    letter-spacing: -0.015em;
  }
  .brand .logo { width: 24px; height: 23px; color: var(--cyan); flex: none; transition: filter .3s; }
  .brand:hover .logo { filter: drop-shadow(0 0 8px rgba(0,229,255,.6)); }
  .brand { line-height: 1; }
  .brand .logo { display: block; }
  .brand small {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 6px;
    border-radius: 5px;
    border: 1px solid rgba(0,229,255,.45);
    background: rgba(0,229,255,.08);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1;
    color: var(--cyan);
  }
  .nav { transition: transform .5s var(--ease), opacity .4s var(--ease); }
  .nav.tucked { transform: translateY(-100%); opacity: 0; pointer-events: none; }
  .nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; }
  .nav-links a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
  .nav-links a:hover { color: var(--ink); }
  .nav-cta {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 16px;
    color: var(--ink) !important;
    transition: border-color .25s, background .25s;
  }
  .nav-cta:hover { border-color: rgba(0,229,255,.5); background: rgba(0,229,255,.06); }

  /* ---------- botones ---------- */
  .btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    height: 56px;
    padding: 0 6px 0 26px;
    border-radius: 999px;
    background: linear-gradient(180deg, #5CF0FF 0%, #00E5FF 42%, #00CDE8 100%);
    color: var(--cyan-ink);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    isolation: isolate;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.6),
      inset 0 -1px 0 rgba(0,40,60,.25),
      0 0 0 1px rgba(0,229,255,.4),
      0 14px 36px -14px rgba(0,229,255,.65);
    transition: box-shadow .5s var(--ease), transform .5s var(--ease);
  }
  .btn::before {
    /* reflejo que cruza el botón una sola vez al pasar el ratón */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.55) 48%, transparent 66%);
    transform: translateX(-120%);
    transition: transform 0s;
  }
  .btn:hover::before { transform: translateX(120%); transition: transform .9s var(--ease); }
  .btn:hover {
    transform: translateY(-1px);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.7),
      inset 0 -1px 0 rgba(0,40,60,.25),
      0 0 0 1px rgba(0,229,255,.6),
      0 0 0 7px rgba(0,229,255,.10),
      0 18px 44px -12px rgba(0,229,255,.8);
  }
  .btn:active { transform: translateY(0) scale(.99); }
  .ico {
    position: relative;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 50%;
    background: var(--bg);
    color: var(--cyan);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(0,229,255,.25);
  }
  .ico svg {
    position: absolute;
    top: 50%; left: 50%;
    width: 16px; height: 16px;
    margin: -8px 0 0 -8px;
    transition: transform .55s var(--ease);
  }
  .ico svg + svg { transform: translateX(-32px); }
  .btn:hover .ico svg:first-child { transform: translateX(32px); }
  .btn:hover .ico svg + svg { transform: translateX(0); }

  .btn-ghost {
    background: rgba(255,255,255,.04);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
  }
  .btn-ghost::before { background: linear-gradient(105deg, transparent 30%, rgba(0,229,255,.18) 48%, transparent 66%); }
  .btn-ghost .ico { background: var(--cyan); color: var(--cyan-ink); box-shadow: none; }
  .btn-ghost:hover {
    box-shadow: inset 0 0 0 1px rgba(0,229,255,.55), 0 0 0 7px rgba(0,229,255,.07);
  }
  .btn:focus-visible, .nav a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

  /* ---------- escena con scroll ---------- */
  .stage { position: relative; height: 700vh; }
  .sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
  }
  #scene {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    transition: opacity 1.2s var(--ease);
  }
  #scene.ready { opacity: 1; }
  .vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(ellipse 60% 55% at 72% 52%, rgba(0,229,255,0.07), transparent 70%),
      radial-gradient(ellipse 120% 90% at 50% 50%, transparent 55%, rgba(5,13,26,0.85) 100%);
  }

  .panel { position: relative; }
  .js .panel { position: absolute; will-change: opacity, transform; }
  /* los textos de los pasos empiezan ocultos: así no se amontonan mientras carga la página */
  .js .step-panel { opacity: 0; visibility: hidden; }

  .hero {
    left: var(--edge);
    top: 0;
    bottom: 0;
    width: min(42rem, 50vw);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding-top: 40px;
  }
  h1 {
    margin: 0;
    font-weight: var(--d-weight);
    font-size: calc(clamp(2.3rem, 4.1vw, 4.1rem) * var(--d-scale));
    line-height: var(--d-leading);
    letter-spacing: var(--d-track);
    text-wrap: balance;
  }
  h1 .ia {
    color: var(--cyan);
    cursor: default;
    transition: text-shadow .4s var(--ease);
  }
  h1 .ia:hover { text-shadow: 0 0 28px rgba(0,229,255,.55); }
  h1 em {
    display: block;
    margin-top: 0.06em;
    font-family: var(--em-font);
    font-style: italic;
    font-weight: 400;
    font-size: var(--em-size);
    letter-spacing: var(--em-track);
    color: var(--ink-2);
  }
  .lead {
    margin: 0;
    max-width: 33rem;
    color: var(--ink-2);
    font-size: clamp(16px, 1.25vw, 19px);
    line-height: 1.55;
    text-wrap: pretty;
  }
  .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
  .fine {
    margin: 0;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--ink-3);
    line-height: 1.6;
  }

  .legend {
    right: var(--edge);
    bottom: 7vh;
    display: flex;
    gap: 22px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.03em;
    color: var(--ink-2);
  }
  .legend span, .legend-inline span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(200,225,255,.16);
    background: rgba(5,13,26,.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--ink);
  }
  .legend span:first-child, .legend-inline span:first-child { border-color: rgba(0,229,255,.4); }
  .legend { gap: 10px; }
  .legend-inline { display: none; flex-wrap: wrap; gap: 8px; margin-top: -6px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; }
  .sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
  .sw-ia { background: var(--cyan); box-shadow: 0 0 12px rgba(0,229,255,.7); }
  .sw-tu { background: #22324A; border: 1px solid rgba(200,225,255,.25); }

  .hint {
    left: 50%;
    bottom: 3.2vh;
    translate: -50% 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--ink-3);
    text-transform: uppercase;
  }
  .hint i { width: 1px; height: 34px; background: linear-gradient(var(--ink-3), transparent); }

  .step-panel {
    left: var(--edge);
    bottom: 9vh;
    max-width: 37rem;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .step {
    margin: 0;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyan);
  }
  .step-panel h2 {
    margin: 0;
    font-weight: var(--d-weight);
    font-size: var(--t-h2);
    line-height: 1.04;
    letter-spacing: var(--d-track);
    text-wrap: balance;
  }
  .step-panel p:not(.step) { margin: 0; color: var(--ink-2); max-width: 30rem; text-wrap: pretty; }
  .step-panel .btn { align-self: flex-start; margin-top: 8px; }

  .tag {
    position: absolute;
    left: 0; top: 0;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(5,13,26,.6);
    border: 1px solid var(--line);
    backdrop-filter: blur(6px);
  }
  .tag-ia { color: var(--cyan); border-color: rgba(0,229,255,.35); }
  .tag-tu { color: var(--ink-2); }

  /* sin JS o sin WebGL: el texto se lee en orden normal */
  html:not(.js) .stage { height: auto; }
  html:not(.js) .sticky { position: relative; height: auto; display: grid; gap: 64px; padding: 140px var(--gutter) 80px; }
  html:not(.js) .panel { width: auto; }
  html:not(.js) .hint, html:not(.js) .tag { display: none; }
  .no-webgl .vignette { background: radial-gradient(ellipse 50% 50% at 75% 50%, rgba(0,229,255,0.10), transparent 70%); }

  /* ---------- ejemplo de solución: WhatsApp con IA ---------- */
  .leak {
    position: relative;
    z-index: 2;
    background: var(--bg);
    padding-block: clamp(96px, 15vh, 176px);
    padding-inline: var(--gutter);
  }
  .solution {
    max-width: 76rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
    gap: 56px clamp(40px, 7vw, 112px);
    align-items: center;
  }
  .solution-copy { display: flex; flex-direction: column; gap: 26px; max-width: 34rem; }
  .label {
    margin: 0;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyan);
  }
  .solution h2 {
    margin: 0;
    font-weight: var(--d-weight);
    font-size: var(--t-h2);
    line-height: var(--d-leading);
    letter-spacing: var(--d-track);
    text-wrap: balance;
  }
  .solution-lead { margin: 0; color: var(--ink-2); font-size: clamp(16px, 1.25vw, 18px); text-wrap: pretty; }
  .points { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
  .points li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-block: 14px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .points li::before {
    content: "";
    width: 6px; height: 6px;
    flex: none;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px rgba(0,229,255,.8);
  }
  .solution-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding-top: 4px; }
  .solution-cta .fine { max-width: 15rem; }

  .chat {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px 22px 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(12,26,46,.92), rgba(6,14,27,.92));
    border: 1px solid rgba(0,229,255,.28);
    box-shadow: 0 40px 110px -50px rgba(0,229,255,.55);
  }
  .chat-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; }
  .chat-top b { font-family: var(--display); font-weight: 500; font-size: 18px; letter-spacing: -0.01em; }
  .chip {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .06em;
    color: var(--ink-3);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px 10px;
    white-space: nowrap;
  }
  .msgs { display: flex; flex-direction: column; gap: 10px; }
  .msg {
    max-width: 84%;
    padding: 10px 14px 7px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.45;
  }
  .msg time {
    display: block;
    margin-top: 3px;
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--ink-3);
    text-align: right;
    font-variant-numeric: tabular-nums;
  }
  .msg.in { align-self: flex-start; background: rgba(255,255,255,.06); border-bottom-left-radius: 5px; }
  .msg.out { align-self: flex-end; background: rgba(0,229,255,.12); box-shadow: inset 0 0 0 1px rgba(0,229,255,.28); border-bottom-right-radius: 5px; }
  .status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 15px;
    color: var(--cyan);
  }
  .status i { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
  .status small { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: .03em; }

  /* la conversación se reproduce una vez al llegar */
  .armed [data-t] { opacity: 0; transform: translateY(10px); }
  .armed [data-t].on { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }

  /* ---------- lo que puedo resolver ---------- */
  .solve {
    position: relative;
    z-index: 2;
    background: var(--bg);
    padding-block: clamp(64px, 10vh, 128px) clamp(96px, 15vh, 176px);
    padding-inline: var(--gutter);
  }
  .solve-grid {
    max-width: 76rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
    gap: 40px clamp(40px, 7vw, 112px);
    align-items: center;
  }
  .solve-copy { display: flex; flex-direction: column; gap: 22px; }
  .solve h2 {
    margin: 0;
    font-weight: var(--d-weight);
    font-size: var(--t-h2);
    line-height: var(--d-leading);
    letter-spacing: var(--d-track);
    text-wrap: balance;
  }
  .solve-lead { margin: 0; max-width: 32rem; color: var(--ink-2); font-size: clamp(16px, 1.25vw, 18px); text-wrap: pretty; }
  .sols { margin-top: 18px; border-top: 1px solid var(--line); }
  .sol {
    display: grid;
    grid-template-columns: 6px 1fr;
    column-gap: 18px;
    row-gap: 6px;
    width: 100%;
    padding: 20px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
  }
  .sol::before {
    content: "";
    align-self: center;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--ink-3);
    transition: background .4s var(--ease), box-shadow .4s var(--ease);
  }
  .sol b {
    font-family: var(--display);
    font-weight: var(--d-weight);
    font-size: calc(clamp(1.35rem, 2vw, 1.8rem) * var(--d-scale));
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink-3);
    transition: color .4s var(--ease);
  }
  .sol span { grid-column: 2; font-size: 15px; color: var(--ink-3); transition: color .4s var(--ease); }
  .sol[aria-pressed="true"]::before { background: var(--cyan); box-shadow: 0 0 10px rgba(0,229,255,.8); }
  .sol[aria-pressed="true"] b { color: var(--ink); }
  .sol[aria-pressed="true"] span { color: var(--ink-2); }
  .sol:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
  /* escenas de cine: un vídeo por solución con la historia encima */
  .scenes {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0,229,255,.24);
    box-shadow: 0 40px 110px -55px rgba(0,229,255,.55);
    background: #070F1C;
  }
  .scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s; }
  .scene.show { opacity: 1; visibility: visible; transition: opacity .6s var(--ease), visibility 0s; }
  .scene video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.82) saturate(.9); }
  .scene .shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(5,13,26,.62), transparent 38%, transparent 66%, rgba(5,13,26,.5)); }
  .scene .clock { position: absolute; z-index: 3; top: 16px; left: 16px; right: 16px; white-space: nowrap; overflow: hidden; display: flex; gap: 8px; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: .05em; color: rgba(226,236,250,.85); }
  .scene .clock i { width: 7px; height: 7px; border-radius: 50%; background: var(--lost); }
  .scene .cards { position: absolute; z-index: 3; left: 16px; top: 46px; width: min(290px, 66%); display: flex; flex-direction: column; gap: 8px; }
  .scene .cards.bottom { top: auto; bottom: 16px; }
  .card { padding: 10px 12px; border-radius: 14px; background: rgba(10,22,40,.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(200,225,255,.14); font-size: 13.5px; line-height: 1.35; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .card.on { opacity: 1; transform: none; }
  .card small { display: block; margin-bottom: 3px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .03em; color: rgba(226,236,250,.55); }
  .card.ai { border-color: rgba(0,229,255,.4); background: rgba(0,40,55,.74); }
  .card.ai small { color: var(--cyan); }
  .card.done { color: var(--cyan); font-weight: 500; }
  .card .stars { color: var(--cyan); }

  .sols .scenes { margin: 6px auto 20px; max-width: 620px; }
  .sol { scroll-margin-top: 84px; }
  /* pantallas propias colocadas en perspectiva sobre las del vídeo */
  .ov { position: absolute; left: 0; top: 0; z-index: 1; transform-origin: 0 0; overflow: hidden; opacity: 0; font-family: var(--body); color: #fff; }
  .ov.phone { width: 300px; height: 620px; border-radius: 34px; background: linear-gradient(180deg, #0B2230, #081A26); box-shadow: 0 0 60px 10px rgba(0,229,255,.22); }
  .ov.laptop { width: 640px; height: 400px; border-radius: 6px; background: #0A1B28; box-shadow: 0 0 80px 14px rgba(0,229,255,.18); }
  .ov .bar { display: flex; align-items: center; gap: 12px; padding: 54px 22px 18px; background: rgba(255,255,255,.05); font-size: 20px; font-weight: 500; }
  .ov .bar i { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #7FE9F5, #2A7F95); }
  .ov .msgs { display: flex; flex-direction: column; gap: 14px; padding: 22px 18px; }
  .ov .b { max-width: 82%; padding: 14px 16px; border-radius: 20px; font-size: 19px; line-height: 1.3; opacity: 0; transform: translateY(12px); transition: opacity .45s, transform .45s; }
  .ov .b.on { opacity: 1; transform: none; }
  .ov .in { align-self: flex-start; background: rgba(255,255,255,.1); border-bottom-left-radius: 6px; }
  .ov .out { align-self: flex-end; background: #0E6E80; border-bottom-right-radius: 6px; }
  .ov .okb { align-self: center; font-size: 16px; color: #7FF2FF; background: rgba(0,229,255,.12); border-radius: 999px; padding: 8px 14px; }
  .ov .call { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 90px 24px 0; text-align: center; }
  .ov .call .who { width: 96px; height: 96px; border-radius: 50%; background: linear-gradient(135deg, #7FE9F5, #2A7F95); }
  .ov .call b { font-size: 28px; font-weight: 500; }
  .ov .call span { font-size: 18px; color: #7FF2FF; }
  .ov .call .time { font-family: var(--mono); font-size: 20px; color: rgba(255,255,255,.7); }
  .ov .call .wave { display: flex; align-items: center; gap: 6px; height: 70px; margin-top: 18px; }
  .ov .call .wave i { width: 8px; border-radius: 4px; background: #00E5FF; height: calc(var(--h) * 100%); animation: talk .45s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -.07s); animation-play-state: paused; }
  .scene.playing .ov .call .wave i { animation-play-state: running; }
  @keyframes talk { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
  .ov .sheet { padding: 22px 26px; }
  .ov .sheet .top { display: flex; justify-content: space-between; font-size: 18px; font-weight: 500; margin-bottom: 16px; }
  .ov .sheet .top span { color: #7FF2FF; font-size: 14px; font-family: var(--mono); }
  .ov .row { display: grid; grid-template-columns: 1.4fr 1fr .7fr; gap: 10px; padding: 11px 12px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 16px; color: rgba(255,255,255,.75); }
  .ov .row.head { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,.45); }
  .ov .row.new { color: #fff; background: rgba(0,229,255,.14); border-radius: 8px; opacity: 0; transform: translateY(-10px); transition: opacity .5s, transform .5s; }
  .ov .row.new.on { opacity: 1; transform: none; }

  @media (prefers-reduced-motion: reduce) {
    .scene, .card, .ov .b, .ov .row.new { transition: none; }
    .ov .call .wave i { animation: none; }
  }

  /* ---------- sobre mí ---------- */
  .about { position: relative; z-index: 2; background: var(--bg); padding-bottom: clamp(96px, 15vh, 176px); }
  .band { position: relative; height: clamp(380px, 62vh, 640px); overflow: hidden; }
  .band picture, .band img { display: block; width: 100%; height: 100%; }
  .band img { object-fit: cover; object-position: 50% 28%; }
  .band::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, rgba(5,13,26,.88) 0%, rgba(5,13,26,.45) 38%, transparent 62%),
      linear-gradient(0deg, var(--bg) 0%, rgba(5,13,26,0) 38%);
  }
  .band-text {
    position: absolute;
    z-index: 1;
    left: var(--edge);
    bottom: clamp(32px, 7vh, 72px);
    max-width: 34rem;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .band-text h2 {
    margin: 0;
    font-weight: var(--d-weight);
    font-size: var(--t-h2);
    line-height: var(--d-leading);
    letter-spacing: var(--d-track);
    text-wrap: balance;
  }
  .band-text p { margin: 0; color: var(--ink-2); font-size: clamp(16px, 1.25vw, 18px); }
  .about-body {
    max-width: 76rem;
    margin: clamp(48px, 7vw, 88px) auto 0;
    padding-inline: var(--gutter);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
    gap: 48px clamp(40px, 7vw, 112px);
    align-items: start;
  }
  .about-copy { display: flex; flex-direction: column; gap: 18px; max-width: 36rem; }
  .about-copy p { margin: 0; color: var(--ink-2); font-size: clamp(16px, 1.2vw, 18px); text-wrap: pretty; }
  .about-copy p strong { color: var(--ink); font-weight: 500; }
  .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; border-top: 1px solid var(--line); }
  .fact { padding: 20px 16px 0 0; }
  .fact + .fact { padding-left: 20px; border-left: 1px solid var(--line); }
  .fact b { display: flex; align-items: baseline; gap: .25em; font-family: var(--display); font-weight: var(--d-weight); font-size: calc(clamp(1.8rem, 2.6vw, 2.4rem) * var(--d-scale)); letter-spacing: -0.02em; line-height: 1; }
  .viz { display: block; height: 24px; margin-bottom: 14px; }
  .days { display: flex; gap: 5px; align-items: center; }
  .days i { width: 12px; height: 12px; border-radius: 3px; background: var(--cyan); box-shadow: 0 0 8px rgba(0,229,255,.5); }
  .link { width: 100%; max-width: 150px; overflow: visible; }
  .link .ln { stroke: var(--cyan); stroke-width: 1.5; stroke-dasharray: 130; stroke-dashoffset: 0; }
  .link .end { fill: var(--cyan); }
  .link .mid { fill: var(--bg); stroke: rgba(226,236,250,.35); stroke-width: 1.5; opacity: 0; }
  .dial { width: 24px; overflow: visible; }
  .dial .face { fill: none; stroke: var(--line); stroke-width: 1.5; }
  .dial .ring { fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-dasharray: 100; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: 12px 12px; }
  .dial .hand { stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; transform-origin: 12px 12px; }
  .fact .num { font-variant-numeric: tabular-nums; }

  /* estado inicial solo cuando la animación va a reproducirse */
  .facts.armed .days i { background: rgba(226,236,250,.1); box-shadow: none; }
  .facts.armed .link .ln { stroke-dashoffset: 130; }
  .facts.armed .link .mid { opacity: 1; }
  .facts.armed .dial .ring { stroke-dashoffset: 100; }
  .facts.play .days i { background: var(--cyan); box-shadow: 0 0 8px rgba(0,229,255,.5); transition: background .3s, box-shadow .3s; }
  .facts.play .days i:nth-child(1) { transition-delay: .05s; } .facts.play .days i:nth-child(2) { transition-delay: .2s; }
  .facts.play .days i:nth-child(3) { transition-delay: .35s; } .facts.play .days i:nth-child(4) { transition-delay: .5s; }
  .facts.play .days i:nth-child(5) { transition-delay: .65s; } .facts.play .days i:nth-child(6) { transition-delay: .8s; }
  .facts.play .days i:nth-child(7) { transition-delay: .95s; }
  .facts.play .link .mid { opacity: 0; transform: scale(.2); transform-box: fill-box; transform-origin: center; transition: opacity .4s .6s, transform .4s .6s; }
  .facts.play .link .ln { stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease) .1s; }
  .facts.play .dial .ring { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease) .1s; }
  .facts.play .dial .hand { animation: sweep 1.2s var(--ease) .1s both; }
  @keyframes sweep { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

  .fact > span { display: block; margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
  .quote { margin: 0; padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; gap: 18px; }
  .quote p { margin: 0; font-family: var(--display); font-size: calc(21px * var(--d-scale)); line-height: 1.35; letter-spacing: -0.01em; }
  .quote footer { padding: 0; border: 0; display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-3); }
  .quote footer b { display: block; font-family: var(--body); font-size: 15px; letter-spacing: 0; color: var(--ink); font-weight: 500; margin-bottom: 2px; }

  /* ---------- cierre ---------- */
  .final { position: relative; z-index: 2; min-height: clamp(560px, 92vh, 900px); display: flex; align-items: center; overflow: hidden; background: var(--bg); }
  .final video, .final .final-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; filter: brightness(.85) saturate(.9); transition: filter 1.4s var(--ease); }
  .final.morning video { filter: brightness(1.05) saturate(1.05); }
  .final::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(90deg, rgba(5,13,26,.92) 0%, rgba(5,13,26,.6) 40%, rgba(5,13,26,.05) 70%),
      linear-gradient(180deg, var(--bg) 0%, rgba(5,13,26,0) 22%, rgba(5,13,26,0) 78%, var(--bg) 100%);
  }
  .final-tag, .final-note { position: absolute; z-index: 1; left: 0; top: 0; pointer-events: none; }
  .final-tag { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .05em; color: rgba(226,236,250,.85); transform: translate(-50%, -100%); white-space: nowrap; }
  .final-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--lost); }
  .final-note {
    width: 290px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(0,40,55,.78);
    border: 1px solid rgba(0,229,255,.45);
    box-shadow: 0 18px 50px -18px rgba(0,229,255,.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 14px;
    line-height: 1.35;
    opacity: 0;
    transform: translate(-50%, calc(-100% + 12px));
    transition: opacity .6s var(--ease), transform .6s var(--ease);
  }
  .final-note.on { opacity: 1; transform: translate(-50%, -100%); }
  .final-note small { display: block; margin-bottom: 4px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .03em; color: var(--cyan); }
  .final-note b { font-weight: 500; color: var(--cyan); }

  .final-fade { display: none; }
  .final-replay { align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(0,229,255,.4); background: rgba(5,13,26,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--ink); font: 500 13px var(--body); cursor: pointer; }
  .final-replay span { color: var(--cyan); font-size: 10px; }
  .final-replay:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
  .final-text { position: relative; z-index: 1; padding-left: var(--edge); padding-right: var(--gutter); max-width: 40rem; display: flex; flex-direction: column; gap: 22px; }
  .final-text h2 {
    margin: 0;
    font-weight: var(--d-weight);
    font-size: var(--t-h2);
    line-height: var(--d-leading);
    letter-spacing: var(--d-track);
    text-wrap: balance;
  }
  .final-text h2 em { font-family: var(--em-font); font-style: italic; color: var(--ink-2); }
  .final-text p { margin: 0; color: var(--ink-2); font-size: clamp(16px, 1.25vw, 19px); max-width: 30rem; }
  .final-text .actions { margin-top: 6px; }

  /* ---------- preguntas frecuentes: índice + respuesta ---------- */
  .faq { position: relative; z-index: 2; background: var(--bg); padding: clamp(96px, 14vh, 160px) var(--gutter); }
  .faq-inner { max-width: 76rem; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }
  .faq-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 48px; }
  .faq h2 {
    margin: 0;
    font-weight: var(--d-weight);
    font-size: var(--t-h2);
    line-height: var(--d-leading);
    letter-spacing: var(--d-track);
    text-wrap: balance;
  }
  .faq-head p { margin: 0; color: var(--ink-2); max-width: 22rem; }
  .faq-list { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: clamp(32px, 5vw, 72px); align-items: start; }
  .faq-item { display: contents; }
  .faq-q {
    grid-column: 1;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 20px 0 20px 22px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: none;
    color: var(--ink-3);
    font: inherit;
    font-family: var(--display);
    font-size: calc(clamp(1.1rem, 1.5vw, 1.35rem) * var(--d-scale));
    letter-spacing: -0.01em;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
    transition: color .35s var(--ease);
  }
  .faq-q:first-of-type { border-top: 1px solid var(--line); }
  .faq-q::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--ink-3); transition: background .35s, box-shadow .35s; }
  .faq-q:hover { color: var(--ink-2); }
  .faq-q[aria-expanded="true"] { color: var(--ink); }
  .faq-q[aria-expanded="true"]::before { background: var(--cyan); box-shadow: 0 0 10px rgba(0,229,255,.8); }
  .faq-q:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
  .faq-q .arrow { width: 16px; height: 16px; flex: none; color: var(--cyan); opacity: 0; transform: translateX(-6px); transition: opacity .35s, transform .35s var(--ease); }
  .faq-q[aria-expanded="true"] .arrow { opacity: 1; transform: none; }
  .faq-a {
    grid-column: 2;
    grid-row: 1 / span 6;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: clamp(28px, 3.4vw, 44px);
    border-radius: 24px;
    border: 1px solid rgba(0,229,255,.22);
    background: radial-gradient(120% 90% at 100% 0%, rgba(0,229,255,.09), transparent 55%), var(--bg-2);
    box-shadow: 0 40px 110px -60px rgba(0,229,255,.5);
  }
  .faq-a[hidden] { display: none !important; }
  .faq-a .short {
    margin: 0;
    font-family: var(--display);
    font-weight: var(--d-weight);
    font-size: calc(clamp(1.9rem, 3.2vw, 2.9rem) * var(--d-scale));
    line-height: 1.02;
    letter-spacing: var(--d-track);
    text-wrap: balance;
  }
  .faq-a .long { margin: 0; color: var(--ink-2); font-size: clamp(16px, 1.2vw, 18px); max-width: 34rem; text-wrap: pretty; }
  .faq-a .tags { list-style: none; margin: auto 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
  .faq-a .tags li { font-family: var(--mono); font-size: 12px; letter-spacing: .03em; color: var(--ink); padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(0,229,255,.3); background: rgba(0,229,255,.06); }
  @media (prefers-reduced-motion: no-preference) {
    .faq-a.in > * { animation: faqIn .55s var(--ease) both; }
    .faq-a.in > :nth-child(2) { animation-delay: .06s; }
    .faq-a.in > :nth-child(3) { animation-delay: .12s; }
  }
  @keyframes faqIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

  footer {
    padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .06em;
    color: var(--ink-3);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
  }

  /* tablet en vertical: misma lógica que en móvil, con más aire */
  @media (min-width: 760px) and (max-width: 1100px) and (orientation: portrait) {
    .hero { right: var(--gutter); width: auto; justify-content: flex-end; padding-bottom: 7svh; gap: 26px; }
    h1 { font-size: calc(clamp(2.4rem, 5.6vw, 3.4rem) * var(--d-scale)); max-width: 40rem; }
    .legend { left: var(--gutter); right: auto; top: calc(84px + env(safe-area-inset-top, 0px)); bottom: auto; }
    .hint { display: none; }
    .step-panel { right: var(--gutter); bottom: 7svh; }
    .solution, .solve-grid { grid-template-columns: 1fr; }
    .solution .chat, .scenes { width: 100%; max-width: 620px; justify-self: center; }
    .about-body { grid-template-columns: 1fr; }
    .final::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(5,13,26,.62) 14%, rgba(5,13,26,.5) 40%, rgba(5,13,26,.08) 64%, rgba(5,13,26,0) 84%, var(--bg) 100%); }
    .about { padding-bottom: 56px; }
    .faq { padding-top: 80px; }
  }

  @media (max-width: 759px) {
    .nav-links a:not(.nav-cta) { display: none; }
    .hero {
      right: var(--gutter);
      width: auto;
      justify-content: flex-end;
      padding-bottom: 5svh;
      gap: 22px;
    }
    h1 { font-size: calc(clamp(2rem, 8.6vw, 2.6rem) * var(--d-scale)); }
    .lead { font-size: 15.5px; }
    .btn { height: 52px; font-size: 15px; padding-left: 22px; }
    .ico { width: 40px; height: 40px; }
    .legend { left: var(--gutter); right: auto; top: calc(70px + env(safe-area-inset-top, 0px)); bottom: auto; gap: 16px; font-size: 11px; }
    .hint { display: none; }
    .step-panel { right: var(--gutter); bottom: 5svh; gap: 12px; }
    .step-panel h2 { font-size: calc(1.6rem * var(--d-scale)); }
    .step-panel p:not(.step) { font-size: 15px; }
    .solution { grid-template-columns: 1fr; }
    .solve-grid { grid-template-columns: 1fr; }
    .faq-list { display: block; }
    .faq-q { padding-left: 20px; }
    .faq-a { margin: 4px 0 16px; padding: 22px; border-radius: 18px; gap: 14px; }
    .faq-a .short { font-size: calc(1.6rem * var(--d-scale)); }
    .faq-q .arrow { transform: rotate(90deg); }
    .faq-q[aria-expanded="true"] .arrow { transform: rotate(90deg); }
    .final-note { width: 250px; font-size: 13px; }
    .final::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(5,13,26,.62) 14%, rgba(5,13,26,.5) 42%, rgba(5,13,26,.08) 66%, rgba(5,13,26,0) 84%, var(--bg) 100%); }
    .about { padding-bottom: 40px; }
    .faq { padding-top: 64px; }
    .band { height: auto; aspect-ratio: 1; }
    .band img { object-position: 50% 30%; }
    .band::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(5,13,26,.75) 38%, rgba(5,13,26,0) 70%); }
    .about-body { grid-template-columns: 1fr; }
    .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fact + .fact { padding-left: 12px; }
    .scene .cards { width: 74%; gap: 6px; top: 40px; }
    .card { padding: 8px 10px; font-size: 12px; border-radius: 12px; }
    .card small { font-size: 9.5px; }
    .card.past { display: none; }
    .scene .clock { font-size: 11px; top: 14px; left: 14px; }
    .chat { padding: 18px 16px 16px; }
  }

  @media (prefers-reduced-motion: reduce) {
    #scene { transition: none; }
    .btn, .btn::before, .ico svg { transition: none !important; }
    .armed [data-t] { opacity: 1; transform: none; }
  }

  /* cierre en pantallas verticales: vídeo vertical propio, de fondo y a pantalla completa */
  @media (max-width: 759px), (max-width: 1100px) and (orientation: portrait) {
    .final { align-items: flex-start; min-height: 100svh; padding-top: 14svh; }
    .final video, .final .final-poster { object-position: 50% 72%; }
    .final::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(5,13,26,.72) 16%, rgba(5,13,26,.55) 40%, rgba(5,13,26,.1) 62%, rgba(5,13,26,0) 80%, rgba(5,13,26,.5) 100%); }
  }

  /* móvil: la sección tiene la misma forma que el vídeo vertical, así se ve entero, sin recortes */
  @media (max-width: 759px) {
    .final { min-height: 0; aspect-ratio: 9 / 16; padding-top: 88px; }
    .final video, .final .final-poster { object-position: 50% 50%; }
    .final-text { gap: 16px; }
  }

  /* hero en pantallas verticales: la leyenda va bajo el titular, lejos del cubo */
  @media (max-width: 759px), (max-width: 1100px) and (orientation: portrait) {
    .legend { display: none; }
    .legend-inline { display: flex; }
  }
  @media (max-width: 759px) {
    .legend-inline { font-size: 10.5px; gap: 6px; flex-wrap: nowrap; }
    .legend-inline span { padding: 5px 9px; gap: 6px; white-space: nowrap; flex: none; letter-spacing: 0; }
  }

  .faq-head .mail { color: var(--cyan); text-decoration: none; border-bottom: 1px solid rgba(0,229,255,.4); }
  .faq-head .mail:hover { border-bottom-color: var(--cyan); }

  /* ---------- accesibilidad ---------- */
  .skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--cyan); color: var(--cyan-ink); font-weight: 500; text-decoration: none; transition: top .2s; }
  .skip:focus { top: 12px; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

  /* ---------- pie ---------- */
  .site-footer { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 48px; padding: 48px var(--edge) calc(32px + env(safe-area-inset-bottom, 0px)); }
  .site-footer .brand { font-family: var(--display); font-size: 17px; color: var(--ink); letter-spacing: -0.015em; }
  .site-footer p { margin: 12px 0 0; font-family: var(--body); font-size: 14px; letter-spacing: 0; color: var(--ink-2); }
  .site-footer a { color: var(--ink-2); text-decoration: none; }
  .site-footer a:hover { color: var(--ink); }
  .site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--body); font-size: 13px; letter-spacing: 0; }
  .site-footer .legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
  @media (max-width: 759px) { .site-footer { grid-template-columns: 1fr; } }

  /* ---------- páginas legales ---------- */
  .doc { max-width: 46rem; margin: 0 auto; padding: 140px var(--gutter) 96px; }
  .doc h1 { font-size: calc(clamp(2.2rem, 5vw, 3.4rem) * var(--d-scale)); margin-bottom: 8px; }
  .doc .date { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase; margin: 0 0 40px; }
  .doc h2 { font-family: var(--display); font-weight: var(--d-weight); font-size: calc(1.5rem * var(--d-scale)); letter-spacing: -0.015em; margin: 40px 0 12px; }
  .doc p, .doc li { color: var(--ink-2); }
  .doc ul { padding-left: 1.2em; }
  .doc li { margin-bottom: 6px; }
  .doc strong { color: var(--ink); font-weight: 500; }
  .doc a { color: var(--cyan); }
  .doc .back { display: inline-block; margin-top: 48px; }
