@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/InstrumentSerif-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/InstrumentSerif-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: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/InstrumentSerif-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/InstrumentSerif-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: 'Inter Tight'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/InterTight-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/InterTight-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: 'Inter Tight'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('fonts/InterTight-normal-400_800-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('fonts/InterTight-normal-400_800-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 {
    --bg: #0a0a0a;
    --bg-2: #131312;
    --ink: #f2efe9;
    --muted: #8d8a83;
    --faint: #4a4844;
    --line: rgba(242, 239, 233, 0.1);
    --accent: #8cc4f4;
    --accent-ink: #071523;
    --chat-bubble: #2a2a29;
    --serif: 'Instrument Serif', Georgia, serif;
    --sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --gutter: clamp(20px, 5vw, 64px);
    --ease: cubic-bezier(.2, .7, .1, 1);
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
  }
  img { display: block; max-width: 100%; }
  a { color: inherit; }
  button { font: inherit; color: inherit; }
  ::selection { background: var(--accent); color: #0a0a0a; }

  /* grano de película */
  body::after {
    content: '';
    position: fixed; inset: -50%;
    pointer-events: none; z-index: 100;
    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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
    opacity: .07;
    animation: grain 1s steps(4) infinite;
  }
  @keyframes grain {
    0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
    50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); }
  }

  .serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: 0; }
  .kicker { display: block; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--muted); }

  .scroll-cue { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 70; translate: -50% 0; display: flex; align-items: center; gap: 8px; padding: 10px 16px 10px 18px; border-radius: 100px; background: rgba(30,30,29,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 500; opacity: 0; transform: translateY(12px); transition: opacity .4s, transform .5s var(--ease); pointer-events: none; }
  .scroll-cue.on { opacity: 1; transform: none; }
  .scroll-cue svg { width: 16px; height: 16px; color: var(--accent); animation: cueBounce 1.4s ease-in-out infinite; }
  @keyframes cueBounce { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
  .progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: var(--accent); transform-origin: left; transform: scaleX(0); pointer-events: none; }

  /* ——— nav (no se queda fija) ——— */
  .nav {
    position: absolute; top: 0; left: 0; right: 0; z-index: 50;
    display: flex; align-items: center; justify-content: center;
    padding: 18px var(--gutter);
    padding-top: max(18px, env(safe-area-inset-top));
  }
  .logo { display: inline-flex; align-items: center; height: 40px; font-weight: 800; font-size: 24px; letter-spacing: -.05em; text-decoration: none; color: var(--ink); }
  .logo-c { display: inline-block; width: .095em; height: 1.05em; margin-left: .105em; border-radius: 99px; background: var(--accent); animation: caretBlink 1.05s steps(1) infinite; }
  @keyframes caretBlink { 50% { opacity: 0; } }
  .nav-right { display: flex; align-items: center; gap: 8px; }
  .icon-link { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: color .2s, background .2s; }
  .icon-link:hover { color: var(--ink); background: rgba(255,255,255,.06); }
  .icon-link svg { width: 18px; height: 18px; }
  .btn-yt {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 18px; border-radius: 100px;
    background: var(--ink); color: #0a0a0a;
    font-weight: 600; font-size: 14px; text-decoration: none;
    transition: transform .25s var(--ease), background .25s;
  }
  .btn-yt:hover { transform: translateY(-1px); background: #fff; }
  .btn-yt .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: live 2s infinite; }
  @keyframes live { 0% { box-shadow: 0 0 0 0 rgba(140,196,244,.7); } 70% { box-shadow: 0 0 0 8px rgba(140,196,244,0); } 100% { box-shadow: 0 0 0 0 rgba(140,196,244,0); } }
  @media (max-width: 560px) { .nav .icon-link { display: none; } }

  /* ——— hero: el chat ——— */
  .hero {
    overflow: hidden;
    min-height: 100vh; min-height: 100lvh;
    display: flex; flex-direction: column; justify-content: center;
    /* centrado en la pantalla que se ve (con las barras de Safari), aunque el bloque mida la pantalla grande */
    padding: 96px var(--gutter) calc(96px + (100lvh - 100svh));
    position: relative;
  }
  .hero::before {
    content: ''; position: absolute; left: 50%; top: 45%;
    width: min(900px, 120vw); aspect-ratio: 1; transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(140,196,244,.10), transparent 62%);
    pointer-events: none;
  }
  .chat { width: 100%; max-width: 680px; margin: 0 auto; position: relative; }


  .thread { display: none; }
  .sent .thread { display: block; }
  .chat-q { display: flex; justify-content: flex-end; margin-bottom: 30px; }
  .chat-q span { background: var(--chat-bubble); padding: 11px 18px; border-radius: 20px; font-size: 16px; }
  .chat-a { font-size: clamp(19px, 2.5vw, 23px); line-height: 1.6; }
  .chat-a a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 2px; }
  /* el texto va entrando como en ChatGPT: trozos pequeños que aparecen con un fundido rápido, y el bloque crece línea a línea */
  .chat-a .c { display: none; }
  .chat-a .c.on { display: inline; animation: tok .45s ease-out; }
  @keyframes tok { from { opacity: 0; } to { opacity: 1; } }
  .caret { display: inline-block; width: .62em; height: .62em; border-radius: 50%; background: var(--accent); vertical-align: middle; margin-left: 3px; animation: think 1.1s ease-in-out infinite; }
  @keyframes think { 0%, 100% { transform: scale(.75); opacity: .7; } 50% { transform: scale(1); opacity: 1; } }
  .chat-a.streaming .caret { animation: none; }
  .hero.sent { justify-content: flex-start; padding-top: clamp(120px, 17vh, 190px); }
  @keyframes blink { 50% { opacity: .2; } }
  .chat-actions { display: flex; gap: 14px; margin-top: 18px; color: var(--faint); opacity: 0; transition: opacity .6s; }
  .chat-actions svg { width: 16px; height: 16px; }
  .chat-actions.on { opacity: 1; }
  .chat-me { display: flex; align-items: flex-end; gap: 10px; margin-top: 26px; opacity: 0; transform: translateY(14px) scale(.96); transform-origin: left bottom; transition: opacity .5s var(--ease), transform .6s cubic-bezier(.3,1.5,.5,1); }
  .chat-me.on { opacity: 1; transform: none; }
  .chat-me img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--accent); }
  .chat-me > span { background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 18px 18px 18px 6px; font-size: 16px; font-weight: 600; }
  .chat-me .wave { display: inline-block; margin: 0 3px; transform-origin: 70% 70%; animation: wave 1.6s ease-in-out .6s 2; }
  @keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20%, 40% { transform: rotate(-8deg); } }

  .composer-wrap { width: 100%; max-width: 680px; margin: 0 auto; position: relative; }
  .sent .composer-wrap { display: none; }
  .composer {
    width: 100%; display: flex; align-items: center; gap: 12px;
    padding: 14px 14px 14px 22px; border-radius: 26px;
    background: var(--bg-2); border: 1px solid var(--line);
    font-size: 16px; text-align: left; cursor: pointer;
    transition: border-color .3s;
  }
  .composer:hover, .composer:focus-visible { border-color: rgba(242,239,233,.3); outline: none; }
  .composer-text { flex: 1; min-height: 1.5em; color: var(--ink); }
  .composer-text .tcaret { display: inline-block; width: 1.5px; height: 1.1em; background: var(--ink); vertical-align: -3px; margin-left: 1px; animation: blink 1s infinite; }
  .composer-send { width: 38px; height: 38px; border-radius: 50%; background: var(--faint); display: grid; place-items: center; flex-shrink: 0; transition: background .3s, transform .2s; }
  .composer-send svg { width: 17px; height: 17px; color: #0a0a0a; }
  .ready .composer-send { background: var(--ink); animation: pulse 1.6s infinite; }
  .composer:active .composer-send { transform: scale(.9); }
  @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242,239,233,.45); } 70% { box-shadow: 0 0 0 12px rgba(242,239,233,0); } 100% { box-shadow: 0 0 0 0 rgba(242,239,233,0); } }
  .send-hint { position: absolute; right: 4px; bottom: calc(100% + 10px); font-size: 14px; font-weight: 500; color: var(--accent); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ease); pointer-events: none; display: flex; align-items: center; gap: 6px; }
  .ready .send-hint { opacity: 1; transform: none; animation: nudge 1.6s ease-in-out infinite .4s; }
  @keyframes nudge { 50% { transform: translateY(3px); } }

  /* hasta enviar la pregunta no se puede bajar */
  html.locked, html.locked body { overflow: hidden; overscroll-behavior: none; }
  .slow-msg { position: absolute; left: 50%; bottom: calc(100% + 44px); translate: -50% 0; white-space: nowrap; background: var(--chat-bubble); color: var(--ink); font-size: 15px; font-weight: 500; padding: 10px 16px; border-radius: 18px; opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .3s, transform .4s cubic-bezier(.3,1.5,.5,1); pointer-events: none; }
  .slow-msg.on { opacity: 1; transform: none; }
  .composer-wrap.nudge { animation: shake .5s cubic-bezier(.36,.07,.19,.97); }
  .composer-wrap.nudge .send-hint { opacity: 1; transform: none; color: #fff; }
  .composer-wrap.nudge .composer-send { background: var(--accent); }
  @keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); } }
  .hero-cta { display: flex; justify-content: center; margin-top: 40px; opacity: 0; transform: translateY(10px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .hero-cta.on { opacity: 1; transform: none; }
  .btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 26px; border-radius: 100px; border: 1px solid var(--line);
    text-decoration: none; font-size: 15px; font-weight: 500;
    transition: border-color .2s, background .2s;
  }
  .btn-ghost:hover { border-color: rgba(242,239,233,.3); background: rgba(255,255,255,.03); }

  /* ——— secciones ——— */
  section { position: relative; }
  .wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
  .pt0 { padding-top: 0 !important; }
  .pad { padding: clamp(100px, 16vh, 180px) 0; }

  .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; }

  .photo { position: relative; overflow: hidden; border-radius: 6px; background: var(--bg-2); }
  .photo img { width: 100%; height: 100%; object-fit: cover; will-change: transform; transform: scale(1.05); }
  .photo[data-clip] { clip-path: inset(var(--clip, 0%) round 6px); }

  /* hola */
  .intro { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
  .intro h2 { font-size: clamp(44px, 7.4vw, 104px); line-height: .95; letter-spacing: -.045em; font-weight: 700; margin-bottom: 30px; }
  .intro h2 .serif { font-size: 1.08em; }
  .intro p { color: var(--muted); font-size: 19px; max-width: 30em; }
  .intro p strong { color: var(--ink); font-weight: 500; }
  .intro .photo { aspect-ratio: 4 / 5.2; }

  /* historia */
  @property --amb { syntax: '<color>'; inherits: true; initial-value: #0a0a0a; }
  @property --glow { syntax: '<color>'; inherits: true; initial-value: rgba(0,0,0,0); }
  #historia { --amb: #0a0a0a; --glow: rgba(0,0,0,0); background: radial-gradient(ellipse 80% 50% at 75% 40%, var(--glow), transparent 70%), var(--amb); transition: --amb 1.2s ease, --glow 1.2s ease; }
  #historia > .wrap { position: relative; z-index: 2; }
  #historia::before, #historia::after { content: ''; position: absolute; left: 0; right: 0; height: 140px; pointer-events: none; z-index: 1; }
  #historia::before { top: 0; background: linear-gradient(var(--bg), transparent); }
  #historia::after { bottom: 0; background: linear-gradient(transparent, var(--bg)); }
  .story-head { margin-bottom: clamp(40px, 8vh, 90px); }
  .story-head h2 { font-size: clamp(40px, 6vw, 84px); letter-spacing: -.045em; line-height: .95; font-weight: 700; }
  .chapters { display: none; }

  /* historias de Instagram (móvil y escritorio) */
  @property --st1 { syntax: '<color>'; inherits: true; initial-value: #24252b; }
  @property --st2 { syntax: '<color>'; inherits: true; initial-value: #0d0d10; }
  .stories-wrap { position: relative; width: min(calc(100vw - 16px), calc(86svh * 9 / 16), 440px); margin-left: 50%; translate: -50% 0; }
  .stories {
    position: relative; width: 100%; aspect-ratio: 9 / 16; user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: pointer;
    border-radius: 14px; overflow: hidden; isolation: isolate;
    background: linear-gradient(165deg, var(--st1), var(--st2));
    transition: --st1 1s ease, --st2 1s ease;
    box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06);
  }
  .st-media { position: absolute; inset: 0; z-index: 0; }
  .st-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.1); transition: opacity .7s ease, transform 8s linear; }
  .st-media img.on { opacity: 1; transform: scale(1); }
  .st-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; transition: background .6s;
    background: linear-gradient(rgba(0,0,0,.5), transparent 16%, transparent 40%, rgba(0,0,0,.55) 62%, rgba(0,0,0,.88)); }
  .stories.text-top .st-scrim { background: linear-gradient(rgba(0,0,0,.88), rgba(0,0,0,.6) 38%, transparent 62%, transparent 82%, rgba(0,0,0,.55)); }
  .st-bars { position: absolute; top: 10px; left: 8px; right: 8px; display: flex; gap: 4px; z-index: 4; }
  .st-bars span { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
  .st-bars i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
  .st-top { position: absolute; top: 22px; left: 12px; right: 12px; display: flex; align-items: center; gap: 9px; z-index: 4; font-size: 14px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
  .st-ring { width: 34px; height: 34px; border-radius: 50%; padding: 2px; background: conic-gradient(from 200deg, #8cc4f4, #dff0ff, #5aa6e6, #8cc4f4); flex-shrink: 0; }
  .st-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #0a0a0a; }
  .st-top b { font-weight: 600; }
  .st-top span { color: rgba(255,255,255,.75); }
  .st-top .st-icons { margin-left: auto; display: flex; gap: 16px; align-items: center; }
  .st-top .st-icons svg { width: 20px; height: 20px; }
  .st-text { position: absolute; left: 16px; right: 16px; bottom: 84px; z-index: 3; }
  .stories.text-top .st-text { top: 72px; bottom: auto; }
  .st-age { height: 96px; overflow: hidden; margin-bottom: 6px; }
  .st-reel { transition: transform .8s cubic-bezier(.6,0,.2,1); }
  .st-reel div { height: 96px; font-size: 96px; line-height: 1; font-weight: 800; letter-spacing: -.06em; display: flex; align-items: baseline; padding-top: 6px; color: #fff; text-shadow: none; }
  .st-reel small { font-size: 34px; font-weight: 700; letter-spacing: -.03em; margin-left: 10px; }
  .st-reel div:last-child { color: var(--accent); }
  .st-body h3 { font-size: 30px; line-height: 1.08; letter-spacing: -.035em; font-weight: 700; color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.5); }
  .st-body p { margin-top: 4px; font-size: 21px; color: #fff; line-height: 1.38; font-weight: 600; letter-spacing: -.015em; text-shadow: 0 1px 14px rgba(0,0,0,.65); }
  .st-body p em { font-style: normal; color: var(--accent); }
  .st-body > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
  .st-body.in > * { opacity: 1; transform: none; }
  .st-body.in > *:nth-child(2) { transition-delay: .15s; }
  .st-reply { position: absolute; left: 12px; right: 12px; bottom: 16px; z-index: 4; display: flex; align-items: center; gap: 14px; color: #fff; }
  .st-reply a { flex: 1; border: 1px solid rgba(255,255,255,.6); border-radius: 100px; padding: 11px 18px; font-size: 14px; color: rgba(255,255,255,.92); text-decoration: none; }
  .st-reply svg { width: 24px; height: 24px; flex-shrink: 0; }
  .st-tap { position: absolute; right: 22px; top: 50%; z-index: 5; width: 46px; height: 46px; margin-top: -23px; pointer-events: none; transition: opacity .4s; }
  .st-tap i { position: absolute; inset: 0; border-radius: 50%; background: rgba(255,255,255,.22); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); animation: tapPulse 1.6s ease-out infinite; }
  .st-tap.gone { opacity: 0; }
  @keyframes tapPulse { 0% { transform: scale(.55); opacity: 0; } 25% { opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
  .st-nav { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #0a0a0a; display: grid; place-items: center; cursor: pointer; transition: opacity .2s, transform .2s; }
  .st-nav:hover { transform: scale(1.08); }
  .st-nav:disabled { opacity: 0; pointer-events: none; }
  .st-nav svg { width: 18px; height: 18px; }
  .st-prev { left: -64px; } .st-next { right: -64px; }
  @media (max-width: 900px), (hover: none) { .st-nav { display: none; } }

  /* hacia dónde */
  .horizon { overflow: hidden; }
  .horizon h2 { font-size: clamp(48px, 9.5vw, 148px); line-height: .9; letter-spacing: -.055em; font-weight: 800; margin-top: 14px; }
  .horizon h2 .serif { font-weight: 400; }
  .horizon-line { height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); margin: clamp(40px, 7vh, 70px) 0; transform: scaleX(0); transition: transform 1.6s var(--ease); }
  .horizon-line.in { transform: scaleX(1); }
  .horizon-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
  .horizon-row p { color: var(--muted); font-size: 20px; max-width: 26em; }
  .horizon-row p strong { color: var(--ink); font-weight: 500; }

  /* vídeos */
  .vid { display: block; text-decoration: none; }
  .vid-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--bg-2); }
  .vid-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; filter: saturate(.9); }
  .vid:hover .vid-thumb img { transform: scale(1.04); filter: saturate(1.05); }
  .vid-play { position: absolute; inset: 0; display: grid; place-items: center; }
  .vid-play i { width: 64px; height: 64px; border-radius: 50%; background: rgba(10,10,10,.55); backdrop-filter: blur(6px); display: grid; place-items: center; transition: transform .35s var(--ease), background .35s; }
  .vid-play svg { width: 22px; height: 22px; margin-left: 3px; color: #fff; }
  .vid:hover .vid-play i { transform: scale(1.1); background: #ff2a2a; }
  .vid-meta { margin-top: 14px; }
  .vid-meta b { display: block; font-weight: 500; font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }
  .vid.feature .vid-meta b { font-size: 22px; }
  .vid.feature .tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
  .vid-num { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; letter-spacing: .1em; margin-bottom: 6px; display: block; }

  .yt-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: 50px; }
  .yt-head h2 { font-size: clamp(44px, 7vw, 100px); line-height: .92; letter-spacing: -.05em; font-weight: 700; margin-top: 14px; }
  .yt-head p { color: var(--muted); max-width: 24em; margin-top: 18px; font-size: 19px; }
  .btn-sub {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 18px 28px; border-radius: 100px; background: #ff2a2a; color: #fff;
    font-weight: 600; font-size: 16px; text-decoration: none;
    transition: transform .3s var(--ease), box-shadow .3s;
    box-shadow: 0 10px 40px -10px rgba(255,42,42,.6);
  }
  .btn-sub:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px rgba(255,42,42,.75); }
  .btn-sub svg { width: 22px; height: 22px; }

  .rail {
    display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter)));
    padding: 0 max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))) 8px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail .vid { flex: 0 0 min(440px, 40vw); scroll-snap-align: start; }
  .rail-ui { display: flex; align-items: center; gap: 18px; margin-top: 28px; }
  .rail-bar { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; border-radius: 2px; }
  .rail-bar i { position: absolute; top: 0; bottom: 0; left: 0; width: 30%; background: var(--ink); border-radius: 2px; }
  .rail-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: none; display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s, opacity .2s; }
  .rail-btn:hover { background: rgba(255,255,255,.06); border-color: rgba(242,239,233,.3); }
  .rail-btn:disabled { opacity: .3; cursor: default; }
  .rail-btn svg { width: 18px; height: 18px; }
  .swipe-hint { display: none; font-size: 13px; color: var(--muted); }

  /* cierre */
  .closing { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
  .closing .photo { aspect-ratio: 3 / 4; }
  .closing blockquote { font-size: clamp(30px, 3.8vw, 54px); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; margin-top: 14px; }
  .closing blockquote .serif { color: var(--accent); }
  .photo-last { display: none; }
  .closing .last { margin-top: 26px; font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.4vw, 32px); color: var(--ink); }

  /* email + redes */
  .letter { border-top: 1px solid var(--line); }
  .letter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); }
  .letter h3 { font-size: clamp(28px, 3.2vw, 42px); letter-spacing: -.035em; line-height: 1.05; font-weight: 600; margin: 12px 0 14px; }
  .letter p { color: var(--muted); max-width: 26em; }
  .form { display: flex; gap: 8px; margin-top: 26px; max-width: 460px; padding: 6px; border: 1px solid var(--line); border-radius: 100px; background: var(--bg-2); transition: border-color .2s; }
  .form:focus-within { border-color: rgba(242,239,233,.35); }
  .form input[type=email] { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font: inherit; font-size: 16px; padding: 0 16px; }
  .form input::placeholder { color: var(--faint); }
  .form button { border: 0; border-radius: 100px; padding: 12px 20px; background: var(--ink); color: #0a0a0a; font-weight: 600; font-size: 15px; cursor: pointer; transition: opacity .2s; }
  .form button:disabled { opacity: .5; cursor: default; }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
  .form-note { font-size: 13px; color: var(--faint); margin-top: 12px; }
  .form-note a { color: var(--muted); }
  .form-msg { font-size: 14px; margin-top: 12px; min-height: 1.4em; }
  .form-msg.ok { color: #7fd1a0; } .form-msg.err { color: #ff8a7a; }

  .socials { display: grid; }
  .social { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .35s var(--ease); }
  .social:first-child { border-top: 1px solid var(--line); }
  .social:hover { padding-left: 10px; }
  .social svg { width: 22px; height: 22px; color: var(--muted); transition: color .2s; }
  .social:hover svg { color: var(--ink); }
  .social b { font-weight: 600; font-size: 19px; letter-spacing: -.02em; display: block; }
  .social small { color: var(--muted); font-size: 14px; }
  .social .arr { color: var(--faint); font-size: 22px; transition: transform .35s var(--ease), color .2s; }
  .social:hover .arr { transform: translateX(4px); color: var(--accent); }

  footer { overflow: hidden; padding: 70px 0 calc(40px + env(safe-area-inset-bottom)); }
  .big-c { display: inline-block; width: .095em; height: 1.05em; margin-left: .105em; border-radius: 99px; background: var(--accent); animation: caretBlink 1.05s steps(1) infinite; }
  .big-name { font-size: clamp(52px, 13vw, 96px); font-weight: 800; letter-spacing: -.05em; line-height: .9; color: var(--ink); display: flex; align-items: center; justify-content: center; white-space: nowrap; user-select: none; }
  .foot { display: flex; justify-content: space-between; gap: 20px; margin-top: 30px; color: var(--faint); font-size: 13px; flex-wrap: wrap; }
  .foot a { color: var(--muted); text-decoration: none; }
  .foot a:hover { color: var(--ink); }

  /* ——— responsive ——— */
  @media (max-width: 900px) {
    .intro, .closing, .horizon-row, .letter-grid { grid-template-columns: 1fr; }
    .rail .vid { flex-basis: 62vw; }

  }
  @media (max-width: 560px) {
    body { font-size: 16px; }
    .rail { gap: 14px; }
    .rail .vid { flex-basis: 80vw; }
    .rail-btn { display: none; }
    .swipe-hint { display: block; }
    #hola { padding-top: 56px; }
    .intro .photo { order: -1; margin: 0 calc(-1 * var(--gutter)) 8px; aspect-ratio: 4 / 4.6; }
    .photo[data-clip] { clip-path: inset(var(--clip, 0%) round 18px); }
    .closing .photo { margin: 0 calc(-1 * var(--gutter)); order: 2; }
    .closing .photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.75)); pointer-events: none; }
    .photo-last { display: block; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 30px; z-index: 2; font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1.1; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
    .closing .last { display: none; }
    .hero-cta a { width: 100%; }
    .intro p, .horizon-row p, .yt-head p { font-size: 17px; }
    .form { flex-direction: column; border-radius: 22px; padding: 8px; }
    .form input[type=email] { padding: 12px 14px; }
  }
  @media (pointer: coarse) { body::after { animation: none; } }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    .photo img { transform: none !important; }
    .horizon-line { transform: none; }
  }

/* ——— lectura cómoda en móvil: frases cortas, una idea por línea, anclas en blanco ——— */
:root { --body: #c9c5bd; }
.copy { max-width: 30em; }
.copy p { color: var(--body); font-size: 19px; line-height: 1.62; margin: 0; }
.copy p + p { margin-top: 16px; }
.copy .lead { color: var(--ink); font-size: 23px; font-weight: 600; line-height: 1.32; letter-spacing: -.02em; }
.copy strong { color: var(--ink); font-weight: 600; }
.yt-copy { margin-top: 18px; }
.chat-a { color: #dcd8d0; }
.chat-a p:not(.on) { display: none; }
.chat-a p + p { margin-top: .7em; }
.chat-a b { color: #fff; font-weight: 600; }
.closing .lines { display: block; }
.closing .lines > span { display: block; }
.closing .lines > span + span { margin-top: 14px; }
.closing .lines .soft { color: var(--body); font-size: .72em; font-weight: 500; line-height: 1.4; letter-spacing: -.015em; }
.closing .lines .hz { color: var(--accent); font-size: 1.5em; line-height: 1; margin-top: 18px; }
@media (max-width: 560px) {
  .copy p { font-size: 17.5px; }
  .copy .lead { font-size: 21px; }
  .closing .lines .soft { font-size: .8em; }

  /* historias a pantalla completa: el visor ocupa todo el móvil (sin encaje automático: el scroll es libre) */
  .stories-wrap { width: 100vw; }
  .stories { aspect-ratio: auto; height: 100svh; border-radius: 0; box-shadow: none; }
  .st-bars { top: max(10px, env(safe-area-inset-top)); }
  .st-top { top: calc(max(10px, env(safe-area-inset-top)) + 12px); }
  .st-text { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .st-reply { bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* cierre en móvil: una sola pieza, la foto de fondo respalda el texto */
@media (max-width: 900px) {
  #cierre { padding: 0; }
  #cierre .closing { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100svh; padding-top: 40svh; padding-bottom: 56px; }
  #cierre .photo { position: absolute; inset: 0; margin: 0 calc(-1 * var(--gutter)); aspect-ratio: auto; border-radius: 0; clip-path: none; order: 0; }
  #cierre .photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(10,10,10,.35), rgba(10,10,10,.55) 35%, rgba(10,10,10,.9) 70%, #0a0a0a); pointer-events: none; }
  #cierre .photo-last { display: none; }
  #cierre .closing > div:not(.photo) { position: relative; z-index: 2; }
  #cierre .lines > span:first-child { text-shadow: 0 2px 20px rgba(0,0,0,.5); }
  #cierre .lines .soft { color: #ddd9d1; }
  #cierre .kicker { color: #e6e2da; text-shadow: 0 1px 12px rgba(0,0,0,.8); }
  #cierre .last { display: block; margin-top: 26px; font-size: 34px; line-height: 1.1; color: #fff; }
}

/* cierre: una sola tipografía (Inter Tight); la jerarquía va por tamaño, peso y color */
#cierre .kicker { font-family: var(--sans); font-style: normal; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
#cierre .lines .hz { font-family: var(--sans); font-style: normal; font-weight: 700; font-size: 1.25em; letter-spacing: -.04em; }
#cierre .last, #cierre .photo-last { font-family: var(--sans); font-style: normal; font-weight: 700; letter-spacing: -.03em; }
#cierre .last { font-size: clamp(24px, 2.4vw, 32px); color: var(--ink); }
@media (max-width: 900px) {
  #cierre .kicker { color: #e6e2da; }
  #cierre .last { font-size: 28px; color: #fff; }
}

/* espacio entre secciones en móvil: compacto, sin elementos de separación */
.letter { border-top: 0; }
@media (max-width: 900px) {
  .pad { padding: 56px 0; }
  #hola { padding-top: 56px; }
  .story-head { margin-bottom: 28px; }
}

/* hacia dónde voy: sin línea horizontal, el texto va pegado al título */
.horizon-row { margin-top: clamp(28px, 5vh, 56px); }

/* cierre en móvil: el texto va arriba (sobre los árboles) y la foto deja verte a ti abajo */
@media (max-width: 900px) {
  #cierre .closing { justify-content: flex-start; min-height: 118svh; padding-top: 72px; padding-bottom: 0; }
  #cierre .photo img { object-position: center 85%; }
  #cierre .photo::after { background: linear-gradient(#0a0a0a, rgba(10,10,10,.82) 18%, rgba(10,10,10,.55) 42%, rgba(10,10,10,.05) 62%, rgba(10,10,10,0) 88%, #0a0a0a); }
  #cierre .lines { font-size: 27px; }
  #cierre .lines > span + span { margin-top: 10px; }
  #cierre .lines .soft { font-size: 17px; line-height: 1.45; }
  #cierre .lines .hz { font-size: 34px; margin-top: 12px; }
  #cierre .last { font-size: 24px; margin-top: 18px; }
}

/* cierre con la foto de la capucha: la cara arriba, el texto abajo sobre la sudadera y la calle */
#cierre .photo img { object-position: 52% 35%; }
@media (max-width: 900px) {
  #cierre .closing { justify-content: flex-end; min-height: 100svh; padding-top: 48svh; padding-bottom: 56px; }
  #cierre .photo img { object-position: 53% 30%; }
  #cierre .photo::after { background: linear-gradient(#0a0a0a, rgba(10,10,10,0) 14%, rgba(10,10,10,0) 40%, rgba(10,10,10,.7) 60%, rgba(10,10,10,.92) 80%, #0a0a0a); }
}
@media (max-width: 900px) {
  #cierre .closing { padding-bottom: 30px; }
  #cierre .lines { font-size: 25px; }
  #cierre .lines .soft { font-size: 16px; }
  #cierre .lines .hz { font-size: 30px; margin-top: 8px; }
  #cierre .last { font-size: 22px; margin-top: 14px; }
  #cierre .photo img { object-position: 53% 22%; }
}

/* cierre en móvil, versión final: la foto en horizontal (16:9) a todo el ancho y el texto debajo */
@media (max-width: 900px) {
  #cierre { padding-bottom: 56px; }
  #cierre .closing { display: block; min-height: 0; padding: 0; }
  #cierre .photo { position: relative; inset: auto; aspect-ratio: 16 / 9; margin: 0 calc(-1 * var(--gutter)); }
  #cierre .photo img { object-position: 50% 40%; }
  #cierre .photo::after { background: linear-gradient(transparent 60%, #0a0a0a); }
  #cierre .closing > div:not(.photo) { margin-top: 18px; }
  #cierre .kicker { color: var(--muted); text-shadow: none; }
  #cierre .lines > span:first-child { text-shadow: none; }
  #cierre .lines .soft { color: var(--body); }
}
@media (max-width: 900px) {
  #cierre .closing { padding: 0 var(--gutter); }
  #cierre .lines { font-size: 27px; }
  #cierre .lines .soft { font-size: 17px; }
  #cierre .lines .hz { font-size: 32px; }
  #cierre .last { font-size: 24px; }
}

/* carta final: una sola letra, un solo tamaño, sin títulos; se lee como una nota */
.carta { max-width: 32em; margin: 0 auto; }
.carta p { font-size: 19px; line-height: 1.75; color: var(--body); }
.carta p + p { margin-top: 1.1em; }
.carta-firma { display: flex; align-items: center; margin-top: 2em !important; color: var(--ink) !important; font-weight: 600; }
.carta-firma .logo-c { font-size: 19px; }
@media (max-width: 560px) { .carta p, .carta-firma .logo-c { font-size: 17.5px; } }

/* historias en móvil: grandes pero con aire alrededor (no a sangre) */
@media (max-width: 560px) {
  .stories-wrap { width: calc(100vw - 24px); }
  .stories { height: var(--st-h, 86svh); border-radius: 16px; box-shadow: 0 24px 60px -24px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06); }
  .st-bars { top: 10px; }
  .st-top { top: 22px; }
  .st-text { bottom: 84px; }
  .st-reply { bottom: 16px; }
}

/* móvil: del chat se pasa directo a las historias (la presentación y "hacia dónde voy" viven dentro de ellas) */
.st-reel div.word { font-size: 72px; letter-spacing: -.05em; }
@media (max-width: 900px) {
  #hola, #sueno, .story-head { display: none; }
}

/* antes de enviar, el botón "conóceme" (aún invisible) no debe ocupar sitio: así la caja queda en el centro exacto */
.hero:not(.sent) .hero-cta { display: none; }

/* historia con collage de vídeos (3 horizontales apilados, a la vez, sin sonido) */
.st-collage { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 3px; background: #000; opacity: 0; transition: opacity .7s ease; }
.st-collage.on { opacity: 1; }
.st-collage video { flex: 1; min-height: 0; width: 100%; object-fit: cover; display: block; background: #111; }

/* historia de los 14: foto más visible (degradado más suave) */
.stories.scrim-light .st-scrim { background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.22) 32%, transparent 52%, transparent 84%, rgba(0,0,0,.45)); }

/* aviso en la historia "hola": lo que viene en las siguientes */
.st-body p.st-next-hint { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 9px 14px; border-radius: 100px; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.25); font-size: 14px; font-weight: 600; line-height: 1.2; letter-spacing: 0; text-shadow: none; }
.st-next-hint span { display: inline-block; animation: hintNudge 1.4s ease-in-out infinite; }
@keyframes hintNudge { 50% { transform: translateX(4px); } }

/* historia sin número ni palabra grande (hola): el texto va solo */
.stories.no-label .st-age { display: none; }

/* historias estables al deslizar: sin zoom continuo en las fotos y en su propia capa */
.st-media img, .st-media img.on { transform: none; transition: opacity .7s ease; }
.stories { contain: layout paint; transform: translateZ(0); }
