/* linguvo.app: los colores y la letra redondeada de la app (SF Rounded en Apple; Nunito, alojada aquí, en el resto). */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url(/fonts/nunito-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url(/fonts/nunito-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url(/fonts/nunito-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: light dark;
  --paper: #FAF8F3;
  --surface: #FFFFFF;
  --ink: #24124F;
  --muted: #5B5375;
  --purple: #6A3BD8;
  --indigo: #3F1A88;
  --lavender: #B692FB;
  --magenta: #B70E97;
  --line: rgba(63, 26, 136, 0.14);
  --bubble-in: #FFFFFF;
  --gradient: linear-gradient(135deg, #3A067F, #6A3BD8 55%, #8656E7);
  --glow: rgba(182, 146, 251, 0.32);
  --display: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #140C22;
    --surface: #22183A;
    --ink: #F1ECFF;
    --muted: #B9B0D6;
    --purple: #B692FB;
    --magenta: #D93DB8;
    --line: rgba(182, 146, 251, 0.18);
    --bubble-in: #2A2042;
    --glow: rgba(106, 59, 216, 0.35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--text);
  overflow-x: clip;
}
img, svg { display: block; }
a { color: var(--purple); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; }
h1 { font-size: clamp(44px, 7.2vw, 92px); line-height: 0.98; font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.04; font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 21px; line-height: 1.25; font-weight: 750; }
:lang(ja) h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.2; letter-spacing: 0; }
:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; }
.hero h1 { white-space: pre-line; }
:lang(ja) h2 { line-height: 1.2; letter-spacing: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
/* El japonés con la gótica redondeada del sistema (la letra redondeada latina no tiene kana ni kanji). */
:lang(ja) { --display: ui-rounded, "SF Pro Rounded", "Nunito", "Hiragino Maru Gothic ProN", "Hiragino Sans", system-ui, sans-serif; }
.home main > section { padding-block: clamp(72px, 11vw, 150px); }
.section-copy { max-width: 34em; }
.section-copy h2 + p { margin-top: 18px; color: var(--muted); font-size: 19px; }
.section-copy p + p { margin-top: 14px; }

/* Cabecera y pie */

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img:first-child { border-radius: 9px; }
.wordmark { width: 104px; height: auto; }
.wordmark.dark { display: none; }
@media (prefers-color-scheme: dark) { .wordmark.light { display: none; } .wordmark.dark { display: block; } }
.languages { display: flex; gap: 4px; }
.languages a { padding: 6px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 15px; }
.languages a[aria-current] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(36, 18, 79, 0.08); }

.site-footer { padding-top: 48px; padding-bottom: 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { text-decoration: none; }

/* Burbujas y nota de traducción, como en la app */

.bubble { display: block; border-radius: 20px; padding: 9px 14px 7px; background: var(--bubble-in); color: var(--ink); box-shadow: 0 1px 2px rgba(36, 18, 79, 0.08); }
.msg.out .bubble, .fan-source .bubble { background: var(--gradient); color: #fff; box-shadow: none; }
.note { display: inline-flex; align-items: center; gap: 5px; color: var(--purple); font-size: 12px; font-weight: 600; }
.icon { flex: none; }

/* Portada: la burbuja que se traduce */

.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding-top: clamp(32px, 7vw, 96px) !important; }
.lead { margin-top: 26px; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 32em; }
.actions { margin-top: 34px; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.soon p { font-family: var(--display); font-weight: 750; font-size: 17px; color: var(--ink); margin-bottom: 10px; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge { height: 50px; width: auto; }
/* El botón de la portada y el de la ventana: el degradado de la app */
.notify, .notify-dialog button[type="submit"], .notify-done button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border: 0; border-radius: 999px;
  background: var(--gradient); color: #fff; font: 750 17px/1.2 var(--display); text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 26px rgba(106, 59, 216, 0.28); transition: transform .15s ease, box-shadow .15s ease;
}
.notify:hover, .notify-dialog button[type="submit"]:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(106, 59, 216, 0.34); }
.notify:active { transform: none; }

/* Ventana "Avísame cuando salga" */
.notify-dialog { width: min(440px, calc(100% - 32px)); padding: 36px 32px 28px; border: 0; border-radius: 28px; background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px rgba(36, 18, 79, 0.35); text-align: center; }
.notify-dialog::backdrop { background: rgba(20, 12, 34, 0.5); backdrop-filter: blur(6px); }
.notify-dialog[open] { animation: dialog-in .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.notify-dialog img { margin: 0 auto 16px; border-radius: 14px; }
.notify-dialog h2 { font-size: 24px; line-height: 1.2; margin: 0 0 10px; letter-spacing: -0.01em; }
.notify-dialog p { color: var(--muted); font-size: 16px; }
.notify-form { margin-top: 22px; text-align: left; }
.notify-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.notify-form input[type="email"] { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 17px var(--text); }
.notify-form input[type="email"]:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(106, 59, 216, 0.15); }
.notify-form button[type="submit"] { width: 100%; margin-top: 14px; }
.notify-form button[disabled] { opacity: .6; cursor: default; transform: none; }
.form-error { color: #c0262d !important; font-size: 14px !important; margin-top: 8px; }
@media (prefers-color-scheme: dark) { .form-error { color: #f87171 !important; } }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.notify-dialog .fine { margin-top: 16px; font-size: 13px; }
.dialog-close { position: absolute; top: 14px; right: 14px; margin: 0; }
.dialog-close button { width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; color: var(--muted); cursor: pointer; }
.dialog-close button:hover { background: var(--paper); color: var(--ink); }
.notify-done .done-check { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 4px auto 18px; background: var(--gradient); color: #fff; }
.notify-done .done-text { margin-bottom: 22px; overflow-wrap: anywhere; }
.notify-done .done-text strong { color: var(--ink); }

.hero-stage { position: relative; display: grid; place-items: center; min-height: 340px; }
.hero-stage::before { content: ""; position: absolute; inset: -10% -20%; background: radial-gradient(closest-side, var(--glow), transparent); z-index: -1; }
.hero-bubble { width: min(100%, 420px); }
/* Flecha que invita a bajar: solo un trazo, con un vaivén suave. */
.scroll-cue { grid-column: 1 / -1; justify-self: center; display: block; padding: 8px; color: var(--purple); animation: cue 1.8s ease-in-out infinite; }
.scroll-cue .icon { stroke-width: 2.2; }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: .55; } 50% { transform: translateY(9px); opacity: 1; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.hero-from { display: flex; align-items: center; gap: 10px; margin: 0 0 10px 6px; font-weight: 600; transition: opacity .28s ease; }
.hero-from .avatar { width: 38px; height: 38px; }
.hero-bubble.swapping .hero-from.changing { opacity: 0; }
.hero-bubble .hero-text { display: block; padding: 22px 26px; border-radius: 30px 30px 30px 10px; background: var(--bubble-in); box-shadow: 0 18px 50px rgba(63, 26, 136, 0.16); font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; min-height: 2.4em; transition: opacity .28s ease, filter .28s ease; }
.hero-bubble .note { margin: 12px 0 0 14px; font-size: 14px; transition: opacity .3s ease; }
.hero-bubble.is-original .note { opacity: 0; }
.hero-bubble.is-original .hero-text { color: var(--muted); }
.hero-bubble.swapping .hero-text { opacity: 0; filter: blur(6px); }

/* La conversación que avanza al hacer scroll */

/* El título se queda arriba mientras dura la explicación (sticky dentro de su sección). El fondo se
   extiende a lo ancho para que lo que pasa por debajo no se vea a los lados. */
.story { --story-head: 104px; }
.story > h2 { position: sticky; top: 0; z-index: 6; padding: 22px 0 18px; background: var(--paper); box-shadow: 0 0 0 100vmax var(--paper); clip-path: inset(0 -100vmax); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 80px); margin-top: 24px; }
.story-phone { order: 2; }
.story-phone .phone { position: sticky; top: max(var(--story-head), calc(50vh - 330px)); margin: 0 auto; }
/* Pantallas bajas: el iPhone más pequeño para que quepa entero bajo el título. */
@media (min-width: 901px) and (max-height: 820px) { .story-phone .phone { transform: scale(.86); transform-origin: top center; } }
@media (min-width: 901px) and (max-height: 700px) { .story-phone .phone { transform: scale(.72); } }
.chapter { min-height: 62vh; display: flex; align-items: center; }
.chapter > div { max-width: 26em; transition: opacity .4s ease, transform .4s ease; }
.chapter h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; }
.chapter p { margin-top: 14px; color: var(--muted); font-size: 19px; }
.js .chapter:not(.is-current) > div { opacity: 0.28; }
/* El texto que sube se desvanece antes de llegar al título fijo (no pasa por detrás). */
.js .chapter > div.is-above { opacity: 0; transform: translateY(-10px); }

.phone { position: relative; width: 320px; height: 660px; border-radius: 54px; padding: 11px; background: #1B1430; box-shadow: 0 30px 80px rgba(36, 18, 79, 0.28), inset 0 0 0 2px #3A2D5C; }
.screen { position: relative; height: 100%; border-radius: 44px; overflow: hidden; background: radial-gradient(120% 60% at 100% 0%, rgba(182, 146, 251, 0.30), transparent 60%), #FAF8F3; color: #24124F; font-size: 15px; line-height: 1.35; }
@media (prefers-color-scheme: dark) { .screen { background: radial-gradient(120% 60% at 100% 0%, rgba(106, 59, 216, 0.35), transparent 60%), #140C22; color: #F1ECFF; } }
.status { position: absolute; top: 0; left: 0; right: 0; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 6px 28px 0; font-weight: 600; font-size: 15px; z-index: 3; }
.island { width: 104px; height: 30px; border-radius: 20px; background: #000; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.bars i { width: 3px; border-radius: 1px; background: currentColor; }
.bars i:nth-child(1) { height: 4px; } .bars i:nth-child(2) { height: 6px; } .bars i:nth-child(3) { height: 9px; } .bars i:nth-child(4) { height: 12px; }

.scene { position: absolute; inset: 0; padding-top: 50px; display: flex; flex-direction: column; }
.chat-bar { display: flex; align-items: center; gap: 10px; padding: 8px 14px 12px; border-bottom: 1px solid rgba(63, 26, 136, 0.08); background: rgba(255, 255, 255, 0.55); backdrop-filter: blur(10px); }
@media (prefers-color-scheme: dark) { .chat-bar { background: rgba(34, 24, 58, 0.6); } }
.chat-bar .icon { color: #6A3BD8; }
.chat-bar b { display: block; font-family: var(--display); font-size: 16px; }
.chat-bar small { display: block; font-size: 12px; opacity: .6; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--gradient); color: #fff; font-family: var(--display); font-weight: 800; font-size: 15px; }
.avatar.group { background: linear-gradient(135deg, #B70E97, #6A3BD8); }
.msgs { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 12px 12px 22px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 86%; }
.msg.out { align-self: flex-end; align-items: flex-end; }
.msg .who { font-size: 12px; font-weight: 700; margin: 0 0 2px 12px; }
.msg .bubble { padding: 8px 12px 6px; border-radius: 18px; }
.msg .time { display: block; margin-top: 2px; font-size: 11px; opacity: .55; text-align: right; }
.msg.out .time { opacity: .8; }
.msg .note { margin: 4px 0 0 10px; font-size: 11px; color: #6A3BD8; }
@media (prefers-color-scheme: dark) { .msg .note { color: #B692FB; } }
.msg .photo { width: 100%; height: auto; border-radius: 12px; margin: 2px 0 6px; }
.msg.in .bubble:has(.photo) { padding: 5px 5px 6px; }
.msg.in .bubble:has(.photo) .text, .msg.in .bubble:has(.photo) .time { display: block; padding: 0 8px; }

.notif { position: absolute; top: 56px; left: 10px; right: 10px; display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 22px; background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(18px); box-shadow: 0 10px 30px rgba(36, 18, 79, 0.2); z-index: 4; font-size: 13px; }
@media (prefers-color-scheme: dark) { .notif { background: rgba(42, 32, 66, 0.86); } }
.notif img { border-radius: 9px; }
.notif b { display: block; }
.notif small { align-self: flex-start; margin-left: auto; opacity: .55; }

.seen { position: absolute; left: -130px; bottom: 28px; width: 200px; padding: 12px 14px; border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 16px 40px rgba(63, 26, 136, 0.2); font-size: 15px; z-index: 5; }
.seen small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 2px; }

/* Lo que cambia con cada capítulo: escondido salvo en sus pasos (clases on-N). */
.js .stepped { opacity: 0; visibility: hidden; transition: opacity .45s ease, transform .5s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .45s, max-height .5s ease; }
.js .msg.stepped { max-height: 0; transform: translateY(14px) scale(.97); transform-origin: bottom left; }
.js .msg.out.stepped { transform-origin: bottom right; }
.js .notif.stepped { transform: translateY(-24px); }
.js .seen.stepped { transform: translateX(-12px); }
.phone[data-step="1"] .on-1, .phone[data-step="2"] .on-2, .phone[data-step="3"] .on-3,
.phone[data-step="4"] .on-4, .phone[data-step="5"] .on-5 {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.phone[data-step="1"] .msg.on-1, .phone[data-step="2"] .msg.on-2, .phone[data-step="3"] .msg.on-3,
.phone[data-step="4"] .msg.on-4, .phone[data-step="5"] .msg.on-5 { max-height: 24em; }

/* Un mensaje, todos los idiomas */

.fan { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.fan-graphic { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(60px, 0.5fr) minmax(0, 1.4fr); align-items: stretch; }
.fan-source { align-self: center; }
.fan-source .bubble { font-family: var(--display); font-weight: 700; font-size: 20px; padding: 14px 18px; border-radius: 24px 24px 8px 24px; }
.fan-lines { position: relative; }
.fan-lines svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fan-lines path { fill: none; stroke: var(--lavender); stroke-width: 2; vector-effect: non-scaling-stroke; }
.fan-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fan-people li { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "avatar who" "avatar bubble"; column-gap: 10px; row-gap: 3px; align-items: center; }
.fan-people .avatar { grid-area: avatar; align-self: start; }
.fan-people .who { grid-area: who; font-size: 13px; }
.fan-people .who small { color: var(--muted); margin-left: 6px; font-size: 13px; }
.fan-people .bubble { grid-area: bubble; justify-self: start; font-size: 16px; border-radius: 18px 18px 18px 6px; }
/* Las líneas se dibujan de izquierda a derecha (un barrido: el trazo no se deforma con el lienzo estirado). */
.js .fan-graphic .fan-lines svg { clip-path: inset(0 100% 0 0); transition: clip-path .8s cubic-bezier(.4, 0, .2, 1); }
.js .fan-graphic .fan-people li { opacity: 0; transform: translateX(16px); transition: opacity .5s ease calc(.5s + var(--i) * 110ms), transform .6s cubic-bezier(.2, .8, .2, 1) calc(.5s + var(--i) * 110ms); }
.js .fan-graphic.is-in .fan-lines svg { clip-path: inset(0 0 0 0); }
.js .fan-graphic.is-in .fan-people li { opacity: 1; transform: none; }

/* Los 20 idiomas */

.hellos { list-style: none; margin: 56px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 26px 40px; align-items: baseline; }
.hellos li { display: flex; flex-direction: column; }
.hello { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4vw, 52px); line-height: 1.1; color: var(--ink); }
.hellos small { color: var(--muted); font-size: 14px; }
.hellos li.mine .hello { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: dark) { .hellos li.mine .hello { background: linear-gradient(135deg, #D93DB8, #B692FB); -webkit-background-clip: text; background-clip: text; } }
.js .hellos li { opacity: 0; transform: translateY(18px); transition: opacity .5s ease calc(var(--i) * 45ms), transform .6s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * 45ms); }
.js .hellos.is-in li { opacity: 1; transform: none; }

/* Privacidad: la línea de los 30 días */

.privacy { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px clamp(32px, 6vw, 80px); align-items: center; }
.timeline { display: grid; gap: 34px; }
.lane-name { display: block; font-family: var(--display); font-weight: 750; font-size: 17px; margin-bottom: 14px; }
.track { position: relative; height: 6px; border-radius: 3px; background: var(--line); }
.track .fill { position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: 3px; background: var(--gradient); transform-origin: left; }
.phone-lane .track { background: linear-gradient(90deg, var(--line), transparent); }
.phone-lane .track .fill { background: linear-gradient(90deg, #6A3BD8, #B692FB 70%, transparent); }
.dot { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--paper); border: 3px solid var(--purple); }
.dot.start { left: 0; }
.dot.mid { left: 8%; }
.dot.end { left: 100%; width: 26px; height: 26px; margin: -13px 0 0 -13px; display: grid; place-items: center; border-color: var(--magenta); color: var(--magenta); font-weight: 800; font-size: 15px; line-height: 1; }
.marks { position: relative; display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.marks .end { text-align: right; }
.server .marks span:nth-child(2) { margin-right: auto; padding-left: 4%; }
.phone-lane .marks { justify-content: flex-start; }
.phone-lane .marks .end { text-align: left; }
.js .timeline .fill { transform: scaleX(0); transition: transform 1.4s cubic-bezier(.4, 0, .2, 1) .15s; }
.js .timeline .dot.end, .js .timeline .dot.mid { opacity: 0; transition: opacity .4s ease 1.3s; }
.js .timeline .dot.mid { transition-delay: .35s; }
.js .timeline.is-in .fill { transform: none; }
.js .timeline.is-in .dot { opacity: 1; }

.facts { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.facts li { padding-top: 22px; border-top: 2px solid var(--ink); }
.facts .icon { color: var(--purple); margin-bottom: 14px; }
.facts h3 { font-size: 19px; }
.facts p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.js .facts li { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.js .facts li:nth-child(2) { transition-delay: 90ms; } .js .facts li:nth-child(3) { transition-delay: 180ms; } .js .facts li:nth-child(4) { transition-delay: 270ms; }
.js .facts.is-in li { opacity: 1; transform: none; }

/* Cómo empezar: es una secuencia, de ahí los números */

.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; position: relative; }
.steps::before { content: ""; position: absolute; top: 31px; left: 32px; right: calc((100% - 96px) / 4 - 32px); height: 2px; background: linear-gradient(90deg, var(--purple), var(--lavender)); opacity: .5; }
.steps li { position: relative; }
.num { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--paper); border: 2px solid var(--purple); color: var(--purple); font-family: var(--display); font-weight: 800; font-size: 28px; margin-bottom: 20px; }
.steps li:last-child .num { background: var(--gradient); color: #fff; border-color: transparent; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.js .steps li { opacity: 0; transform: translateY(16px); transition: opacity .5s ease calc(var(--i) * 120ms), transform .6s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * 120ms); }
.js .steps.is-in li { opacity: 1; transform: none; }

/* Preguntas */

.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px clamp(32px, 6vw, 80px); align-items: start; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-family: var(--display); font-weight: 750; font-size: 19px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--purple); font-size: 24px; line-height: 1; transition: transform .25s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 22px; color: var(--muted); max-width: 36em; }

/* Encabezados de sección: aparecen y se van al salir de la pantalla */

.js [data-reveal].section-copy, .js h2[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js [data-reveal].section-copy.is-in, .js h2[data-reveal].is-in { opacity: 1; transform: none; }

/* Páginas legales */

.doc { max-width: 760px; padding-top: 24px; padding-bottom: 64px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); margin-top: 24px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 10px 0 18px; }
.doc h2 { font-size: 22px; margin: 36px 0 12px; letter-spacing: 0; }
.doc p, .doc li { font-size: 16px; line-height: 1.65; color: var(--muted); }
.doc p { margin: 0 0 12px; }
.doc ul { padding-left: 22px; margin: 0 0 12px; }
.doc li { margin-bottom: 8px; }

/* Móvil */

@media (max-width: 900px) {
  .hero, .fan, .privacy, .faq { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { min-height: 220px; }
  /* El halo no puede salirse por los lados: el móvil alejaría toda la página para que cupiera. */
  .hero-stage::before { inset: -10% 0; }
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  .story { --story-head: 86px; }
  .story > h2 { font-size: 27px; padding: 16px 0 12px; }
  .story-phone { order: 0; position: sticky; top: var(--story-head); z-index: 2; height: 400px; }
  .story-phone .phone { position: relative; top: 0; transform: scale(.58); transform-origin: top center; }
  @media (max-height: 760px) { .story-phone { height: 330px; } .story-phone .phone { transform: scale(.48); } }
  .chapters { margin-top: -40px; }
  .chapter { min-height: 72vh; align-items: flex-end; padding-bottom: 3vh; }
  /* La tarjeta del capítulo se queda abajo de la pantalla mientras dura su capítulo. */
  .chapter > div { position: sticky; bottom: 16px; z-index: 3; padding: 20px 22px; border-radius: 22px; background: var(--surface); box-shadow: 0 10px 30px rgba(36, 18, 79, 0.12); }
  .js .chapter:not(.is-current) > div { opacity: 0; }
  .fan-graphic { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .fan-lines { display: none; }
  .fan-source { justify-self: end; }
  .fan-people { padding-left: 18px; border-left: 2px solid var(--lavender); }
  .facts, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
}

@media (max-width: 560px) {
  .facts, .steps { grid-template-columns: minmax(0, 1fr); }
  .languages a { padding: 6px 9px; font-size: 14px; }
  /* Móvil: idiomas arriba a la derecha, debajo el logo con el nombre, como en el ordenador. */
  .site-header { flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 14px; }
  .languages { order: -1; align-self: flex-end; margin-right: -9px; }
  .hellos { gap: 20px 28px; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
}
