/* ═══════════════════════════════════════════════════════════════════
   Bomiso · landing
   Mismo sistema que la app (Figma V2, revisión 04/10): ver
   knowledge/design/figma-v2-frame-specs.md y App/constants/theme.ts.
   ═══════════════════════════════════════════════════════════════════ */

/* Las fuentes se sirven desde bomiso.es, no desde Google: así la web no
   manda la IP de nadie a terceros (privacidad.html y el aviso legal lo
   dicen). Son las de la app (@expo-google-fonts), recortadas al juego
   latino; licencia OFL en assets/fuentes. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300; font-display: swap; src: url('/assets/fuentes/inter-300.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fuentes/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fuentes/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fuentes/playfair-400.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fuentes/playfair-600.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fuentes/playfair-700.woff2') format('woff2'); }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fuentes/caveat-400.woff2') format('woff2'); }

:root {
    --bg: #FAF7F6;          /* Background */
    --card: #F6F3F2;        /* relleno real de las tarjetas */
    --light: #EEEAE8;       /* pastillas, bandas, baldosa del logo */
    --disc: #E7DED6;        /* discos de icono */
    --border: #C0BDBB;
    --ink: #000000;
    --dark: #1B1C1B;        /* botón oscuro */
    --muted: #5C5754;
    --faint: #8A8481;
    --accent: #B09589;
    /* Para texto pequeño: los de arriba dan 3,4:1 y 2,6:1 sobre --bg; éstos, 5,1:1 y 4,7:1 (WCAG AA 4,5:1) */
    --faint-ink: #6F6966;
    --accent-ink: #86695D;
    --error: #A34839;

    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --hand: 'Caveat', 'Segoe Print', cursive;

    --gutter: 20px;
    --max: 1120px;
    --r-btn: 10px;
    --r-card: 11px;
    --r-sheet: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 50;
    padding: 12px 18px; border-radius: var(--r-btn);
    background: var(--dark); color: #fff; text-decoration: none; font-size: 15px;
}
.skip-link:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow > * { max-width: 760px; }
section[id] { scroll-margin-top: 72px; }
.accent { color: var(--accent); }

.i {
    width: 20px; height: 20px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.4;
    stroke-linecap: round; stroke-linejoin: round;
}

/* ── Tipografía ─────────────────────────────────────────────────── */

.kicker {
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-ink);
    margin-bottom: 14px;
}

h1 {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(40px, 6.4vw, 68px);
    line-height: 1.08;
    letter-spacing: 0;
}

h2 {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.18;
    letter-spacing: 0;
    max-width: 18em;
}

h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: 0;
}

/* La línea manuscrita de la app: Caveat 24, ls 3 %, en ACCENT */
.script {
    font-family: var(--hand);
    font-size: clamp(24px, 2.6vw, 28px);
    line-height: 1.2;
    letter-spacing: 0.03em;
    color: var(--accent);
    margin-top: 10px;
}

.lead { margin-top: 22px; font-size: 17px; color: var(--ink); max-width: 30em; }

/* ── Botones ────────────────────────────────────────────────────── */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px;
    padding: 0 26px;
    border-radius: var(--r-btn);
    font-family: var(--sans);
    font-weight: 300;
    font-size: 15px;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn .i { width: 16px; height: 16px; stroke-width: 1.6; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-dark:hover .i { transform: translateX(2px); }
.btn-dark .i { transition: transform .2s; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.link {
    font-size: 14px; letter-spacing: 0.1em;
    text-decoration: underline; text-underline-offset: 4px;
    text-decoration-color: var(--border);
}
.link:hover { text-decoration-color: var(--ink); }
.hero-actions .link { display: inline-flex; align-items: center; min-height: 44px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ── Marca ──────────────────────────────────────────────────────── */

.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.brand-tile {
    width: 40px; height: 40px; border-radius: 9px;
    background: var(--light);
    display: grid; place-items: center;
}
.brand-tile .i { width: 22px; height: 22px; }
.brand-word {
    font-family: var(--serif);
    font-size: 19px;
    letter-spacing: 0.25em;
    padding-left: .05em;
}
.brand-sm .brand-tile { width: 34px; height: 34px; border-radius: 8px; }
.brand-sm .brand-word { font-size: 16px; }

/* ── Navegación ─────────────────────────────────────────────────── */

.nav {
    position: sticky; top: 0; z-index: 20;
    background: rgba(250, 247, 246, .88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--light); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

/* ── Portada ────────────────────────────────────────────────────── */

.hero { padding: 40px 0 72px; }
.hero-grid { display: grid; gap: 56px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 32px; }

@media (min-width: 900px) {
    .hero { padding: 72px 0 104px; }
    .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 40px; }
}

.hero-visual { position: relative; display: flex; justify-content: center; padding-bottom: 8px; }

/* La maqueta: la Home de la app (HOME_PREMIUM `402:1577`), escrita en
   puntos del fichero (393 de ancho, como App/app/(tabs)/index.tsx y
   App/components/home/*) y escalada con --k. Nada que la app no enseñe. */
.phone {
    --k: .7176;                       /* 300 de móvil: (300 − 18) / 393 */
    width: 300px;
    height: calc(640px * var(--k) + 18px);
    border-radius: 46px 46px 0 0;
    padding: 9px 9px 0;
    background: var(--dark);
    box-shadow: 0 30px 60px -28px rgba(27, 28, 27, .45), 0 0 0 1px rgba(0,0,0,.04);
    /* Se corta por abajo, después de «¡Crea tu propio look!» */
    -webkit-mask-image: linear-gradient(#000 78%, transparent);
            mask-image: linear-gradient(#000 78%, transparent);
}
.screen {
    height: 100%;
    border-radius: 38px 38px 0 0;
    background: var(--bg);
    overflow: hidden;
}
.hm {
    width: 393px; height: 640px;
    transform: scale(var(--k)); transform-origin: top left;
    font-family: var(--sans); color: var(--ink); letter-spacing: 0;
}
.hm p { margin: 0; }

.hm-status { height: 47px; display: flex; justify-content: space-between; align-items: center; padding: 6px 34px 0 40px; font-size: 15px; font-weight: 500; }
.hm-dots { display: flex; gap: 4px; }
.hm-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }

.hm-head { position: relative; padding: 28px 20px 0; }
.hm-title { font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 28px; }
.hm-title span { color: var(--accent); }
.hm-sub { margin-top: 4px; font-size: 12px; line-height: 15px; letter-spacing: 1.2px; font-weight: 400; }
.hm-bell { position: absolute; right: 15.5px; top: 33.3px; width: 20px; height: 20px; }
.hm-bell .i { width: 20px; height: 20px; stroke-width: 1.5; }
.hm-bell i { position: absolute; left: 13.25px; top: 1.45px; width: 6.5px; height: 6.5px; border-radius: 50%; background: #C8B4A8; }

.hm-label { font-size: 11px; line-height: 12px; letter-spacing: 1px; font-weight: 500; }

.hm-mia {
    position: relative; margin: 22px 20px 0;
    padding: 11px 131px 9px 19px;
    background: var(--card); border: 1px solid var(--border); border-radius: 11px;
}
.hm-wave { height: 27px; margin-top: 17px; border-radius: 999px; background: var(--light); display: flex; align-items: center; justify-content: center; gap: 6px; }
.hm-wave span { width: 2px; border-radius: 14px; background: var(--accent); height: 10px; animation: wave 1.6s ease-in-out infinite; }
.hm-wave span:nth-child(2), .hm-wave span:nth-child(6) { height: 14px; animation-delay: -.4s; }
.hm-wave span:nth-child(4) { height: 18px; animation-delay: -.9s; }
@keyframes wave { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.45); } }
.hm-talk { height: 27px; margin-top: 9px; border-radius: 999px; background: var(--dark); color: #fff; display: grid; place-items: center; font-size: 11px; letter-spacing: 1px; }
/* Tu avatar (P22), recortado: en el fichero, 91×121 en (260,89), asomando 8 por encima de la tarjeta */
.hm-mia-photo { position: absolute; right: 22px; bottom: 0; width: 91px; height: 121px; }

.hm-looks {
    margin: 11px 20px 3px; min-height: 256px;
    padding: 4px 10px 11px 9px;
    background: var(--card); border: 1px solid var(--border); border-radius: 11px;
}
.hm-row { display: flex; gap: 6.7px; height: 171px; margin-top: 7px; }
.hm-look { position: relative; flex: 1; height: 171px; border-radius: 11px; border: 1px solid var(--border); background: var(--card); overflow: hidden; }
/* El look puesto en tu avatar: como `render` de DailyLooks, a 20 del borde y 135 de alto */
.hm-render { position: absolute; left: 0; right: 0; top: 20px; height: 135px; width: 100%; object-fit: contain; }
.hm-empty > img { position: absolute; left: 0; top: 20px; width: 100%; height: 133px; object-fit: contain; }
.hm-bookmark { position: absolute; top: 5px; right: 7px; width: 12px; height: 12px; stroke-width: 2; color: var(--ink); }
.hm-bookmark.on { fill: var(--ink); }
/* La etiqueta «IA» de los looks pintados (AiBadge compact, legal 17/10) */
.hm-ai {
    position: absolute; left: 4px; bottom: 4px; height: 20px; padding: 0 7px;
    display: inline-flex; align-items: center; border-radius: 10px;
    background: rgba(246, 243, 242, .9); font-size: 8.5px; font-weight: 500;
}
.hm-band { position: relative; height: 38px; margin-top: 11px; border-radius: 11px; background: var(--disc); display: flex; align-items: center; padding-left: 50px; font-size: 11px; letter-spacing: 1px; font-weight: 300; }
.hm-spark { position: absolute; left: 6px; top: 3px; width: 32px; height: 32px; color: var(--accent); stroke-width: 1.5; }

.hm-own {
    display: flex; align-items: center; gap: 10px;
    margin: 8px 20px 0; padding: 9px 10px;
    background: var(--card); border: 1px solid var(--border); border-radius: 11px;
    font-size: 12px; font-weight: 400;
}
.hm-disc { width: 30px; height: 30px; border-radius: 50%; background: var(--disc); display: grid; place-items: center; }
.hm-disc .i { width: 16px; height: 16px; stroke-width: 2; }

@media (min-width: 900px) {
    .phone { --k: .8702; width: 360px; }   /* (360 − 18) / 393 */
}

/* ── Datos ──────────────────────────────────────────────────────── */

.facts { background: var(--card); border-top: 1px solid var(--light); border-bottom: 1px solid var(--light); padding: 56px 0; }
.facts-grid { display: grid; gap: 36px; }
.fact {
    font-family: var(--serif); font-weight: 600;
    font-size: 20px; line-height: 1.5; letter-spacing: 0;
    text-align: center; max-width: 22em; margin: 0 auto;
}
.fact .accent { color: var(--accent-ink); }
@media (min-width: 900px) {
    .facts-grid { grid-template-columns: repeat(3, 1fr); gap: 48px; }
    .fact { text-align: left; }
}

/* ── Secciones ──────────────────────────────────────────────────── */

.section { padding: 88px 0; }
.section + .section { padding-top: 24px; }
@media (min-width: 900px) { .section { padding: 120px 0; } .section + .section { padding-top: 40px; } }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 20px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

.step {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-sheet);
    padding: 22px 22px 28px;
}
.step-num { display: block; font-size: 12px; font-weight: 400; color: var(--accent-ink); margin-top: 22px; letter-spacing: .1em; }
.step h3 { margin-top: 6px; }
.step p { margin-top: 10px; font-size: 15px; color: var(--muted); }

.step-art {
    height: 150px; border-radius: var(--r-card); background: var(--bg);
    border: 1px solid var(--light);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}

/* Visor con cuatro esquinas, como en CREATE YOUR AVATAR */
.viewfinder {
    width: 84px; height: 96px; position: relative;
    display: grid; place-items: center; color: var(--accent);
    background:
        linear-gradient(var(--accent), var(--accent)) top left / 14px 1.5px,
        linear-gradient(var(--accent), var(--accent)) top left / 1.5px 14px,
        linear-gradient(var(--accent), var(--accent)) top right / 14px 1.5px,
        linear-gradient(var(--accent), var(--accent)) top right / 1.5px 14px,
        linear-gradient(var(--accent), var(--accent)) bottom left / 14px 1.5px,
        linear-gradient(var(--accent), var(--accent)) bottom left / 1.5px 14px,
        linear-gradient(var(--accent), var(--accent)) bottom right / 14px 1.5px,
        linear-gradient(var(--accent), var(--accent)) bottom right / 1.5px 14px;
    background-repeat: no-repeat;
}
.viewfinder .i { width: 28px; height: 28px; stroke-width: 1.2; }

.swatches { display: flex; gap: 8px; }
.swatches i { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); }
.chips { display: flex; gap: 6px; }
.chips span { font-size: 11px; letter-spacing: .1em; padding: 5px 10px; border-radius: 20px; background: var(--light); }

.mini-wave { width: 190px; height: 36px; border-radius: 18px; background: var(--light); display: flex; align-items: center; justify-content: center; gap: 4px; }
.mini-wave span { width: 2px; height: 10px; border-radius: 1px; background: var(--accent); animation: wave 1.6s ease-in-out infinite; }
.mini-wave span:nth-child(2n) { height: 18px; animation-delay: -.4s; }
.mini-wave span:nth-child(3n) { height: 24px; animation-delay: -.9s; }
.mini-pill { width: 190px; height: 32px; border-radius: 8px; background: var(--dark); color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 10px; letter-spacing: .15em; }
.mini-pill .i { width: 13px; height: 13px; }

/* Estilos */
/* El carrusel va dentro de la columna, alineado con el texto por los dos
   lados, y cabe un número exacto de fotos (2 / 3 / 4 / 5): ninguna se queda
   cortada contra el borde. Lo demás, con las flechas o deslizando. */
.styles-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.rail-arrows { display: flex; gap: 10px; flex: none; }
.rail-arrow {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--card); color: var(--ink);
    display: grid; place-items: center; cursor: pointer;
    transition: border-color .2s, opacity .2s;
}
.rail-arrow:hover { border-color: var(--ink); }
.rail-arrow[data-rail="prev"] .i { transform: scaleX(-1); }
.rail-arrow:disabled { opacity: .35; cursor: default; border-color: var(--border); }
html:not(.js) .rail-arrows { display: none; }

.styles-rail {
    --n: 2; --gap: 14px;
    display: flex; gap: var(--gap);
    margin-top: 28px; padding-bottom: 6px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    scrollbar-width: none;
}
.styles-rail::-webkit-scrollbar { display: none; }
.styles-rail figure { margin: 0; flex: none; width: calc((100% - (var(--n) - 1) * var(--gap)) / var(--n)); scroll-snap-align: start; }
.styles-rail img {
    width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
    border-radius: var(--r-card); background: var(--light);
}
.styles-rail figcaption { margin-top: 10px; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; }
@media (min-width: 600px) { .styles-rail { --n: 3; } }
@media (min-width: 760px) { .styles-rail { --n: 4; } }
@media (min-width: 1040px) { .styles-rail { --n: 5; --gap: 16px; } }

/* Lo que hace por ti */
.features { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 0 56px; }
@media (min-width: 760px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--border); }
.tile { width: 48px; height: 48px; border-radius: 17px; background: var(--disc); display: grid; place-items: center; flex: none; }
.tile .i { width: 22px; height: 22px; stroke-width: 1.3; }
.feature h3 { font-family: var(--sans); font-weight: 300; font-size: 18px; letter-spacing: .06em; }
.feature p { font-size: 14px; letter-spacing: .08em; color: var(--muted); margin-top: 2px; }

/* ── Acceso anticipado ──────────────────────────────────────────── */

.access {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-sheet);
    padding: 32px 22px;
    display: grid; gap: 32px;
}
@media (min-width: 900px) {
    .access { grid-template-columns: 1fr 1fr; gap: 64px; padding: 56px; align-items: start; }
}
.access-copy p:last-child { margin-top: 18px; color: var(--muted); max-width: 26em; }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 12px; letter-spacing: .15em; text-transform: uppercase; padding: 0; }
.optional { text-transform: none; letter-spacing: .04em; color: var(--faint-ink); }
.field input[type="text"], .field input[type="email"] {
    width: 100%; min-height: 48px; padding: 0 14px;
    font: inherit; font-size: 16px; letter-spacing: .02em; color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-btn);
    transition: border-color .2s;
}
.field input::placeholder { color: var(--faint-ink); }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: var(--error); }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.segmented label { position: relative; text-transform: none; letter-spacing: .04em; font-size: 15px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; border-radius: var(--r-btn);
    background: var(--bg); border: 1px solid var(--border);
    cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.segmented .i { width: 18px; height: 18px; }
.segmented input:checked + span { background: var(--dark); border-color: var(--dark); color: #fff; }
.segmented input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.segmented.invalid span { border-color: var(--error); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent .box {
    width: 22px; height: 22px; flex: none; margin-top: 1px;
    border: 1px solid var(--border); border-radius: 6px; background: var(--bg);
    display: grid; place-items: center; color: transparent;
    transition: background .2s, border-color .2s;
}
.consent .box .i { width: 14px; height: 14px; stroke-width: 2; }
.consent input:checked + .box { background: var(--dark); border-color: var(--dark); color: #fff; }
.consent input:focus-visible + .box { outline: 2px solid var(--ink); outline-offset: 3px; }
.consent.invalid .box { border-color: var(--error); }
.consent a { color: var(--ink); text-underline-offset: 3px; }

.form-error { color: var(--error); font-size: 14px; }
.field-error { color: var(--error); font-size: 13px; margin: 0; }
.field-error::before { content: "! "; font-weight: 500; }
.fine { font-size: 13px; color: var(--faint-ink); text-align: center; letter-spacing: .08em; }

.done { text-align: center; padding: 24px 0; outline: none; }
.done-disc { width: 56px; height: 56px; border-radius: 50%; background: var(--dark); color: #fff; display: inline-grid; place-items: center; }
.done-disc .i { width: 24px; height: 24px; stroke-width: 1.8; }
.done h3 { margin-top: 18px; font-size: 26px; }
.done p { margin-top: 8px; color: var(--muted); }

/* ── Preguntas ──────────────────────────────────────────────────── */

.faq { margin-top: 36px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
    list-style: none; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 20px 0;
    font-family: var(--serif); font-size: 19px; letter-spacing: 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ''; width: 10px; height: 10px; flex: none;
    border-right: 1.4px solid var(--accent); border-bottom: 1.4px solid var(--accent);
    transform: rotate(45deg) translate(-3px, -3px);
    transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 40em; }

/* ── Pie ────────────────────────────────────────────────────────── */

.footer { border-top: 1px solid var(--light); padding: 36px 0 44px; margin-top: 40px; }
.footer-inner { display: grid; gap: 24px; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: auto 1fr auto; align-items: start; gap: 40px; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 14px; }
.footer-links a, .footer-meta a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 900px) { .footer-links a, .footer-meta a { min-height: 32px; } }
.footer-links a:hover, .footer-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-meta { display: grid; gap: 0; font-size: 14px; }
@media (min-width: 900px) { .footer-meta { justify-items: end; text-align: right; } }
.footer-lang { color: var(--faint-ink); }
.footer-lang a[aria-current] { color: var(--ink); font-weight: 500; }
.footer-lang a:not([aria-current]) { color: var(--muted); }
.copy { font-size: 13px; color: var(--faint-ink); }

/* ── Aparición al hacer scroll ──────────────────────────────────── */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .hm-wave span, .mini-wave span { animation: none; }
}

/* ── Páginas sueltas (privacidad, confirmar, baja) ──────────────── */

.page { padding: 56px 0 40px; min-height: 60vh; }
@media (min-width: 900px) { .page { padding: 88px 0 56px; } }
.page-title { font-size: clamp(34px, 5vw, 48px); }

.prose h2 { font-size: 22px; margin-top: 40px; }
.prose p, .prose ul { margin-top: 14px; color: var(--muted); }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.prose strong { font-weight: 500; color: var(--ink); }
.prose a { color: var(--ink); text-underline-offset: 3px; }
.prose mark { background: var(--priority-high, #F3D9CB); color: #995B42; padding: 0 4px; border-radius: 4px; }
.prose .script { margin-top: 10px; color: var(--accent); }
.prose .updated { margin-top: 40px; font-size: 13px; color: var(--faint-ink); }

/* Textos legales (los genera tools/construir.mjs desde knowledge/legal) */
.prose h3 { font-size: 18px; margin-top: 28px; }
.prose ol { margin-top: 14px; padding-left: 22px; color: var(--muted); }
.prose li > ul, .prose li > ol { margin-top: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--light); margin: 40px 0 0; }
.prose em { font-style: italic; }
.prose code { font-family: inherit; }
.prose blockquote { margin: 18px 0 0; padding: 4px 20px 18px; border-left: 2px solid var(--accent); background: var(--card); border-radius: 0 var(--r-card) var(--r-card) 0; }
.prose table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 14px; color: var(--muted); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--light); }
.prose th { font-weight: 500; color: var(--ink); border-bottom-color: var(--border); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose a { overflow-wrap: anywhere; }
.prose mark.falta { background: #F3D9CB; color: #7A4532; font-weight: 400; }
.legal :target { scroll-margin-top: 88px; }

.status-page { text-align: center; }
.status-page .status > * + * { margin-top: 16px; }
.status-page .status p { color: var(--muted); margin-left: auto; margin-right: auto; max-width: 30em; }
.status-page .status .script { color: var(--accent); }
.status-page .btn { margin-top: 28px; }
.status-page .done-disc { margin-bottom: 8px; }
