/*
 * Wakecraft · identidad «Horizonte» (docs/design/README.md del proyecto iOS).
 *
 * Un paisaje arriba y, debajo, una hoja del mismo color que la colina delantera: escena y contenido se
 * funden sin costura, y todo el texto es blanco sobre ese color liso, así que el contraste es seguro en
 * las siete franjas del día. Sólo oscuro, como la app. La paleta de la hora la escribe
 * js/wakecraft-sky.js en :root; lo de aquí es la de «Amanecer», que es lo que se ve sin JavaScript.
 *
 * Tipografía del sistema (New York para la hora y los titulares, SF para el resto): sin fuentes externas.
 */

:root {
    /* Paleta de la hora (la sobrescribe wakecraft-sky.js) */
    --sky-top: #5C60AE;
    --sky-mid: #E99A90;
    --sky-horizon: #FBD08A;
    --disc: #FFE7B0;
    --glow: 0.4;
    --stars: 0;
    --more-stars: 0;
    --milky: 0;
    --clouds: 0;
    --hill-back: #9A6A9C;
    --hill-middle: #6B4A86;
    --sheet: #3F2E66;       /* colina delantera = la hoja */
    --accent: #FFD9A8;

    /* Lo fijo */
    --text: #fff;
    --text-secondary: rgba(255, 255, 255, 0.84);   /* cumple 4,5:1 en todas las franjas (SkyPaletteContrastTests) */
    --hairline: rgba(255, 255, 255, 0.14);
    --card-bg: rgba(0, 0, 0, 0.2);                   /* Theme.cardBackground: más oscura que la hoja */
    --pill-bg: rgba(10, 12, 40, 0.38);
    --pill-border: rgba(255, 255, 255, 0.2);
    --readable: 640px;

    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

    color-scheme: dark;
}

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

html {
    scroll-behavior: smooth;
    /* Lo que se ve al estirar la página: arriba el cielo, abajo la hoja (HorizonBackdrop). */
    background: linear-gradient(to bottom, var(--sky-top) 0, var(--sky-top) 340px, var(--sheet) 340px);
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--sheet);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { max-width: 100%; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.readable { max-width: var(--readable); margin-left: auto; margin-right: auto; }

/* --- Escena ------------------------------------------------------------------------------------------- */

.scene {
    position: relative;
    height: min(87.2vw, 340px);   /* 340 pt sobre 390 de ancho: la altura base de la escena en la lista */
    min-height: 280px;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--sky-top) 0%, var(--sky-mid) 62%, var(--sky-horizon) 100%);
}
.scene--short { height: clamp(220px, 30vw, 300px); min-height: 0; }
.scene--phone { height: auto; min-height: 0; aspect-ratio: 390 / 340; }

.scene-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene-sprite { position: absolute; }

.stop-glow { stop-color: var(--disc); stop-opacity: var(--glow); }
.stop-glow-out { stop-color: var(--disc); stop-opacity: 0; }
.s-disc { fill: var(--disc); }
.s-stars { fill: #fff; opacity: var(--stars); }
.s-more-stars { fill: #fff; opacity: var(--more-stars); }
.s-clouds { fill: #fff; opacity: var(--clouds); }
.s-milky { fill: rgb(200, 208, 255); opacity: var(--milky); }
.s-hill-back { fill: var(--hill-back); }
.s-hill-middle { fill: var(--hill-middle); }
.s-hill-front { fill: var(--sheet); }

/* La hoja: del mismo color que la colina delantera. El -1px tapa la línea que dejaría un píxel fraccionario. */
.sheet { position: relative; background: var(--sheet); margin-top: -1px; }

/* --- Píldoras sobre el cielo y cabecera --------------------------------------------------------------- */

.pill {
    display: inline-flex; align-items: center; gap: 0.6rem;
    min-height: 40px; padding: 0.35rem 1rem;
    color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem;
    background: var(--pill-bg);
    border: 1px solid var(--pill-border);
    border-radius: 999px;
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
}
.pill img { width: 28px; height: 28px; display: block; }

#main-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: max(14px, env(safe-area-inset-top)) 0 0;
    pointer-events: none;
}
#main-header .nav-content { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#main-header .pill, #main-header .btn { pointer-events: auto; }
/* Fuera de la escena las píldoras están sobre texto, no sobre el cielo: más opacas para que no se transparente. */
#main-header.scrolled .pill { background: rgba(10, 12, 40, 0.8); }
.brand { padding-left: 0.4rem; letter-spacing: 0.01em; }
.brand .wordmark { font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem; }

/* --- Botones ------------------------------------------------------------------------------------------ */

/* El botón principal es una cápsula del color de acento con el texto del color de la hoja: el estilo
   «blanco sobre acento» apenas se lee con un acento claro (HorizonProminentButtonStyle). */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0.7rem 1.5rem;
    border-radius: 999px; border: 1px solid transparent;
    font: 600 1rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { opacity: 0.8; }
.btn-primary { background: var(--accent); color: var(--sheet); }
.btn-secondary { background: transparent; color: #fff; border-color: var(--pill-border); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.06); }
.btn-small { min-height: 40px; padding: 0.45rem 1.1rem; font-size: 0.95rem; }

/* Botón de descarga del App Store: la misma cápsula del color de acento que .btn-primary, con la composición que
   se reconoce de un vistazo (logo de Apple, «Descargar en el» pequeño y «App Store» grande). No es la insignia
   oficial de Apple: si hiciera falta volver a ella, está en el historial (.badge-appstore e images/appstore.png). */
.btn-appstore {
    display: inline-flex; align-items: center; gap: 0.75rem;
    min-height: 56px; padding: 0.55rem 1.7rem 0.55rem 1.35rem;
    border-radius: 999px; background: var(--accent); color: var(--sheet);
    text-decoration: none; text-align: left; line-height: 1.05;
    transition: opacity 0.2s, transform 0.2s;
}
.btn-appstore:hover { transform: translateY(-1px); }
.btn-appstore:active { opacity: 0.8; }
.btn-appstore svg { width: 24px; height: 28px; flex: none; fill: currentColor; }
.btn-appstore small { display: block; font: 500 0.72rem/1.15 var(--font-sans); letter-spacing: 0.02em; }
.btn-appstore strong { display: block; font: 600 1.35rem/1.1 var(--font-sans); letter-spacing: -0.01em; }

/* --- Tipografía --------------------------------------------------------------------------------------- */

.eyebrow {
    color: var(--accent);
    font-size: 0.8125rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.1; }
h1 strong, h2 strong { font-weight: 700; }   /* texto normal con negrita para lo importante */

h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.4rem; line-height: 1.2; }

p { color: var(--text-secondary); }
strong { color: var(--text); }

/* --- Secciones de la landing -------------------------------------------------------------------------- */

section { padding: 5.5rem 0; }
.section-head { max-width: var(--readable); margin: 0 auto 3rem; text-align: center; }
.section-head h2 { margin-bottom: 1rem; }
.section-head p { font-size: 1.125rem; }

.hero { padding: 2.5rem 0 5rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 4rem; align-items: center; }
.hero-copy .eyebrow { display: block; margin-bottom: 1.25rem; }
.hero-copy h1 { margin-bottom: 1.5rem; }
.hero-copy .lead { font-size: 1.3rem; max-width: 34rem; margin-bottom: 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.hero-note { margin-top: 1.25rem; font-size: 0.9rem; }
.hero-year { margin-top: 0.75rem; max-width: 34rem; font-size: 0.9rem; }

/* El móvil de muestra: la lista de alarmas, con el mismo paisaje y la misma hoja que la app. */
.phone {
    position: relative; width: min(100%, 320px); margin: 0 auto;
    border-radius: 44px; overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.1);
    background: var(--sheet);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.phone .scene { border-radius: 0; }
.phone-top {
    position: absolute; top: 14px; left: 14px; right: 14px; z-index: 2;
    display: flex; justify-content: space-between; align-items: center;
}
.phone-top .pill { min-height: 32px; padding: 0.2rem 0.8rem; font-size: 0.8rem; }
.phone-top .plus { width: 32px; padding: 0; justify-content: center; font-size: 1.1rem; }
.phone-sheet { padding: 0.25rem 18px 22px; background: var(--sheet); }
.phone-sheet .eyebrow { font-size: 0.7rem; }
.bigtime {
    font-family: var(--font-serif); font-weight: 400; color: #fff;
    font-size: 4.4rem; line-height: 1; letter-spacing: -0.02em; margin: 0.15rem 0 0.2rem;
}
.countdown { font-size: 0.95rem; margin-bottom: 1.1rem; }
.alarm-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 0.7rem 0 0.8rem; border-top: 1px solid var(--hairline);
}
.alarm-row .time { font-size: 1.9rem; font-weight: 300; color: #fff; line-height: 1.1; }
.alarm-row .meta { font-size: 0.8rem; color: var(--text-secondary); }
/* Interruptor: pista del color de acento y bola del color de la hoja. */
.toggle {
    flex: none; position: relative; width: 46px; height: 28px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}
.toggle::after {
    content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
    border-radius: 50%; background: #fff; transition: transform 0.2s;
}
.toggle.on { background: var(--accent); }
.toggle.on::after { background: var(--sheet); transform: translateX(18px); }

/* Tarjetas: negro translúcido, más oscuro que la hoja, con un filo fino. */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.card {
    background: var(--card-bg); border: 1px solid var(--hairline);
    border-radius: 22px; padding: 1.75rem;
}
.card svg.icon {
    width: 30px; height: 30px; margin-bottom: 1.1rem; display: block;
    fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { margin-bottom: 0.6rem; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.5rem; }
.step .num {
    font-family: var(--font-serif); font-size: 4rem; line-height: 1; color: var(--accent);
    display: block; margin-bottom: 0.6rem;
}
.step h3 { margin-bottom: 0.5rem; }

/* Lista de retos: filas con una línea fina del 14 % de blanco, como la lista de alarmas. */
.rows { list-style: none; max-width: var(--readable); margin: 0 auto; }
.rows li {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 1.25rem;
    padding: 1.15rem 0; border-top: 1px solid var(--hairline);
}
.rows li:last-child { border-bottom: 1px solid var(--hairline); }
.rows h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1.1rem; letter-spacing: 0; margin-bottom: 0.15rem; }
.rows p { font-size: 0.975rem; }
.tag {
    flex: none; margin-top: 0.15rem; padding: 0.15rem 0.7rem; border-radius: 999px;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    border: 1px solid var(--pill-border); color: #fff;
}
.tag.premium { background: var(--accent); border-color: var(--accent); color: var(--sheet); }

.panel {
    background: var(--card-bg); border: 1px solid var(--hairline); border-radius: 28px;
    padding: 3rem 2rem; text-align: center;
}
.panel h2 { margin-bottom: 1rem; }
.panel p { max-width: 34rem; margin: 0 auto 1.6rem; font-size: 1.1rem; }
.panel .fineprint { font-size: 0.9rem; }
.panel.glow { background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.1), transparent 70%), var(--card-bg); }

/* --- Pie y selector de idioma ------------------------------------------------------------------------- */

footer { padding: 3rem 0 6rem; border-top: 1px solid var(--hairline); text-align: center; background: rgba(0, 0, 0, 0.2); }
footer .brand-line { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1.25rem; }
footer .brand-line img { width: 36px; height: 36px; }
footer .brand-line .wordmark { font-family: var(--font-serif); font-weight: 600; font-size: 1.3rem; }
footer p { font-size: 0.875rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; justify-content: center; margin-top: 0.9rem; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; }

.lang-switcher {
    position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 9999;
    display: flex; gap: 0.25rem; padding: 0.3rem;
    background: var(--pill-bg); border: 1px solid var(--pill-border); border-radius: 999px;
    -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}
.lang-btn {
    min-width: 44px; min-height: 36px; padding: 0 0.9rem; border: 0; border-radius: 999px;
    background: transparent; color: #fff; font: 600 0.9rem var(--font-sans); cursor: pointer;
}
.lang-btn.active { background: var(--accent); color: var(--sheet); }

.fade-text { transition: opacity 0.3s ease; }

/* --- Páginas legales y de soporte --------------------------------------------------------------------- */

.legal-page .page { padding-top: 3rem; padding-bottom: 6rem; }
.legal-page h1 { text-align: center; margin-bottom: 0.75rem; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.legal-page .subtitle { text-align: center; margin-bottom: 3.5rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.lang-label {
    display: block; margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--hairline);
    color: var(--accent); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.legal-content { font-size: 1rem; line-height: 1.7; }
.legal-content > p, .legal-content > ul, .legal-content > ol { margin-bottom: 1rem; }
.legal-content h2 { font-size: 1.5rem; margin: 2.4rem 0 0.75rem; }
.legal-content h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1rem; letter-spacing: 0; margin: 1.4rem 0 0.4rem; color: #fff; }
.legal-content ul, .legal-content ol { padding-left: 1.3rem; color: var(--text-secondary); }
.legal-content li { margin-bottom: 0.4rem; }
.legal-content .updated { font-size: 0.9rem; margin-bottom: 1.5rem; }
.legal-content [id] { scroll-margin-top: 90px; }
/* El selector EN/ES sólo hace falta cuando las columnas se apilan (ver Responsive). */
.lang-switcher--legal { display: none; }

.notice {
    background: var(--card-bg); border: 1px solid var(--hairline); border-radius: 18px;
    padding: 1.25rem 1.4rem; margin: 1.5rem 0;
}
.notice p:last-child { margin-bottom: 0; }

.contact-email {
    display: block; margin: 1.1rem 0; padding: 1rem; text-align: center;
    border: 1px dashed var(--pill-border); border-radius: 14px;
    color: #fff; font-size: 1.25rem; font-weight: 700; text-decoration: none; word-break: break-all;
}
.contact-email:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--accent); }

/* Preguntas frecuentes: <details>, sin JavaScript. */
.faq details { border-top: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary {
    cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; position: relative;
    font-weight: 600; color: #fff;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 0.25rem; top: 0.85rem;
    color: var(--accent); font-size: 1.4rem; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 1.1rem; }

/* --- Guía de primeros pasos y novedades --------------------------------------------------------------- */

/* Una sola columna legible; el idioma que no está activo se oculta (sin JavaScript sólo se ve el inglés).
   Privacidad, términos y soporte (.legal-page--split) llevan los dos idiomas a la vez en dos columnas y se
   gestionan aparte, en Responsive. */
html[lang="en"] body:not(.legal-page--split) [lang="es"],
html[lang="es"] body:not(.legal-page--split) [lang="en"] { display: none; }

.doc { max-width: var(--readable); margin: 0 auto; }
.doc-intro { font-size: 1.15rem; margin-bottom: 1.75rem; }

.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0 0 2.5rem; }
.toc a {
    display: inline-block; padding: 0.3rem 0.9rem; border: 1px solid var(--pill-border); border-radius: 999px;
    color: #fff; text-decoration: none; font-size: 0.9rem; font-weight: 600;
}
.toc a:hover { background: rgba(255, 255, 255, 0.08); }

/* Un paso del manual: el número grande en New York y, al lado, el texto. */
.guide-step {
    display: grid; grid-template-columns: 3.4rem 1fr; gap: 0 1rem;
    padding: 2rem 0; border-top: 1px solid var(--hairline); scroll-margin-top: 90px;
}
.guide-step:last-of-type { border-bottom: 1px solid var(--hairline); }
.guide-step .num { font-family: var(--font-serif); font-size: 3rem; line-height: 1; color: var(--accent); }
.guide-step h2 { font-size: 1.6rem; margin-bottom: 0.7rem; }
.guide-step p, .guide-step ul { margin-bottom: 0.9rem; }
.guide-step ul { padding-left: 1.2rem; color: var(--text-secondary); }
.guide-step li { margin-bottom: 0.5rem; }
.guide-step li strong { color: #fff; }
.guide-step :last-child { margin-bottom: 0; }

/* Capturas de la app (iPhone) y renders del widget dentro de un paso. */
.shot { margin: 1.25rem 0 0; }
.shot img {
    display: block; width: min(100%, 260px); height: auto;
    border-radius: 30px; border: 1px solid var(--hairline);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.shot figcaption { margin-top: 0.7rem; font-size: 0.875rem; color: var(--text-secondary); }
.shots { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem; }
.shot--pair .shots { flex-wrap: nowrap; }
.shot--pair .shots img { width: calc(50% - 0.5rem); max-width: 220px; }
.shot--widget img { width: auto; max-width: 100%; height: auto; border: 0; border-radius: 0; box-shadow: none; }
.shot--widget img[width="316"] { width: 158px; }
.shot--widget img[width="676"] { width: 338px; }

/* Lo que se ve en la pantalla de la app: un botón, un interruptor, un ajuste. */
.ui {
    display: inline-block; padding: 0 0.45rem; white-space: nowrap;
    border: 1px solid var(--pill-border); border-radius: 8px; background: var(--card-bg);
    color: #fff; font-weight: 600; font-size: 0.92em; line-height: 1.5;
}
.callout {
    background: var(--card-bg); border: 1px solid var(--hairline); border-radius: 16px;
    padding: 0.9rem 1.15rem; margin: 1.1rem 0 0;
}
.callout p { margin: 0; font-size: 0.975rem; }

.doc-cta { margin-top: 3rem; text-align: center; }
.doc-cta p { margin-bottom: 1.1rem; }

/* Novedades: una versión por bloque, con la línea fina de la lista. */
.release { padding: 2.25rem 0 1rem; border-top: 1px solid var(--hairline); }
.release-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-bottom: 0.75rem; }
.release-head h2 { font-size: 2.4rem; }
.release-head .when { color: var(--text-secondary); font-size: 0.9rem; }
.release .note { font-size: 0.975rem; margin-bottom: 0.5rem; }
.release h3 {
    font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--accent); margin: 1.9rem 0 0.4rem;
}
.release ul { list-style: none; }
.release li { padding: 0.75rem 0; border-top: 1px solid var(--hairline); color: var(--text-secondary); }
.release li:first-child { border-top: 0; }
.release li strong { color: #fff; }

/* --- Aviso de cookies (js/wakecraft-cookies.js) ------------------------------------------------------ */

.cookie-notice {
    position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 9998;
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 1.25rem; flex-wrap: wrap;
    max-width: 760px; margin: 0 auto; padding: 0.85rem 1.1rem;
    background: rgba(10, 12, 40, 0.9); border: 1px solid var(--pill-border); border-radius: 20px;
    -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}
.cookie-notice p { flex: 1 1 300px; margin: 0; font-size: 0.875rem; line-height: 1.45; color: var(--text-secondary); }
.cookie-notice a { color: var(--accent); }
/* Con las dos columnas se ven los dos idiomas, uno bajo otro (gana a la regla que oculta el inactivo). */
.cookie-notice.both p [lang] { display: block; }
.cookie-notice.both p [lang] + [lang] { margin-top: 0.4rem; }
.cookie-notice.both button [lang] { display: inline; }
.cookie-notice.both button [lang="es"]::after { content: " / "; }
/* El selector de idioma sube lo que mida el aviso. */
.has-cookie-notice .lang-switcher { bottom: calc(var(--notice-h, 0px) + 28px); }

/* --- Responsive --------------------------------------------------------------------------------------- */

@media (max-width: 900px) {
    .hero-grid, .split { grid-template-columns: 1fr; gap: 3rem; }
    /* Páginas legales: un idioma cada vez (lo fija js/wakecraft-legal.js) y el selector flotante. */
    .split[data-show="es"] > #en, .split[data-show="en"] > #es { display: none; }
    .lang-switcher--legal { display: flex; }
    .hero-copy { text-align: center; }
    .hero-copy .lead, .hero-year { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    section { padding: 4rem 0; }
}

@media (max-width: 480px) {
    .container { padding: 0 20px; }
    #main-header .brand .wordmark { font-size: 1rem; }
    .hero { padding-top: 2.5rem; }
    .rows li { flex-direction: column; gap: 0.5rem; }
    .rows .tag { order: -1; }
    .guide-step { grid-template-columns: 2.6rem 1fr; }
    .guide-step .num { font-size: 2.3rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .btn-appstore, .toggle::after, .fade-text { transition: none; }
}
