/* ============================================================
   WeWomen — main.css
   Identidad: burdeos #83324f + crema #f6f4ee, editorial serif.
   Basecoat se retiñe vía las variables shadcn de :root / dark.
   ============================================================ */

/* --- 1 · TOKENS ------------------------------------------------ */
:root {
    /* Marca */
    --lw-wine: #83324f;
    --lw-wine-deep: #5e2138;
    --lw-wine-soft: #a2506d;
    --lw-cream: #f6f4ee;
    --lw-cream-deep: #ece7db;
    --lw-ink: #241019;

    /* Mapeo Basecoat (tema claro / crema) */
    --background: #f6f4ee;
    --foreground: #3a2430;
    --card: #fffdf8;
    --card-foreground: #3a2430;
    --popover: #fffdf8;
    --popover-foreground: #3a2430;
    --primary: #83324f;
    --primary-foreground: #f6f4ee;
    --secondary: #ece7db;
    --secondary-foreground: #5e2138;
    --muted: #ece7db;
    --muted-foreground: #75606a;
    --accent: #f0e4e6;
    --accent-foreground: #5e2138;
    --destructive: #a83a3a;
    --border: rgba(94, 33, 56, 0.14);
    --input: rgba(94, 33, 56, 0.22);
    --ring: #83324f;
    --radius: 0.75rem;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    /* Tokens propios de la landing */
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
    --bg-section-alt: #f1ece1;
    --text-heading: #241019;
    --text-muted: #75606a;
    --brand-glow: rgba(131, 50, 79, 0.16);
    --error: #a83a3a;
    --confidence: #2e7d5b;
    --confidence-bg: rgba(46, 125, 91, 0.1);
    --header-bg: rgba(246, 244, 238, 0.85);
    --max-width: 1200px;
}

[data-theme="dark"] {
    --background: #201018;
    --foreground: #eee4e6;
    --card: #2b1722;
    --card-foreground: #eee4e6;
    --popover: #2b1722;
    --popover-foreground: #eee4e6;
    --primary: #c06d8c;
    --primary-foreground: #201018;
    --secondary: #3a2130;
    --secondary-foreground: #eee4e6;
    --muted: #3a2130;
    --muted-foreground: #b39aa4;
    --accent: #3a2130;
    --accent-foreground: #eee4e6;
    --destructive: #e57373;
    --border: rgba(246, 244, 238, 0.12);
    --input: rgba(246, 244, 238, 0.18);
    --ring: #c06d8c;

    --bg-section-alt: #281420;
    --text-heading: #f6f4ee;
    --text-muted: #b39aa4;
    --brand-glow: rgba(192, 109, 140, 0.22);
    --error: #ff9c9c;
    --confidence: #7fd0a8;
    --confidence-bg: rgba(127, 208, 168, 0.12);
    --header-bg: rgba(32, 16, 24, 0.85);
}

/* --- 2 · BASE -------------------------------------------------- */
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--background);
    color: var(--foreground);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

::selection { background: var(--lw-wine); color: var(--lw-cream); }

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

/* --- 3 · TIPOGRAFÍA ------------------------------------------- */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--text-heading);
}

h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); text-align: center; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
p  { color: var(--text-muted); }

/* --- 4 · UTILIDADES ------------------------------------------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.section-padding { padding: 6rem 0; position: relative; }

.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-tag {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5em;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--lw-wine);
    margin-bottom: 1.4rem;
}
[data-theme="dark"] .section-tag { color: var(--primary); }
.section-tag::before { content: "·"; font-family: var(--font-display); font-size: 1.5em; line-height: 0; transform: translateY(0.1em); }

.section-subtitle {
    max-width: 660px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Divisor firma: el punto */
.divider { display: flex; justify-content: center; padding: 1rem 0; }
.divider-dot {
    font-family: var(--font-display);
    font-size: 3.5rem;
    line-height: 0.2;
    color: var(--lw-wine);
    opacity: 0.55;
}
[data-theme="dark"] .divider-dot { color: var(--primary); }

/* Iconos lucide dentro de pills y botones propios */
.stat-cta svg, .evidence-chip svg { width: 1em; height: 1em; flex-shrink: 0; }

/* --- 5 · HEADER / NAV ----------------------------------------- */
#header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
#header.scrolled {
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0;
}

.nav-container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.logo, .footer-logo {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.35rem;
    color: var(--text-heading);
    text-decoration: none;
    letter-spacing: -0.01em;
}
.logo-dot { color: var(--lw-wine); }
[data-theme="dark"] .logo-dot { color: var(--primary); }

.nav-menu { display: flex; align-items: center; gap: 1.75rem; }
.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.2s ease;
}
.nav-link:hover { color: var(--lw-wine); }
[data-theme="dark"] .nav-link:hover { color: var(--primary); }
/* Página legal en la que estás */
.nav-link.active { color: var(--lw-wine); }
[data-theme="dark"] .nav-link.active { color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 0.4rem; }

.lang-toggle { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; }

/* Toggle de tema: mostrar solo el icono del modo contrario */
[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }

/* Hamburguesa (solo móvil) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    background: none; border: none; cursor: pointer;
    padding: 8px;
}
.hamburger span {
    display: block; height: 2px; width: 100%;
    background: var(--foreground);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(36, 16, 25, 0.5);
    z-index: 90;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nav-overlay.active { display: block; opacity: 1; }

/* --- 6 · HERO -------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 5rem;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-glow {
    position: absolute;
    top: -20%; right: -10%;
    width: 60vw; height: 60vw;
    max-width: 800px; max-height: 800px;
    background: radial-gradient(circle, var(--brand-glow) 0%, transparent 65%);
}
/* El punto: firma de la marca, gigante y fantasma */
.hero-ghost {
    position: absolute;
    bottom: -12vw; right: 4vw;
    width: 34vw; height: 34vw;
    max-width: 480px; max-height: 480px;
    border-radius: 50%;
    background: var(--lw-wine);
    opacity: 0.05;
    font-size: 0;
}
[data-theme="dark"] .hero-ghost { background: var(--primary); opacity: 0.07; }

.hero-content { max-width: 820px; }

.hero-line { display: block; }
.hero-line-accent em { font-style: italic; color: var(--lw-wine); }
[data-theme="dark"] .hero-line-accent em { color: var(--primary); }
.hero-dot {
    color: var(--lw-wine);
    font-size: 1.15em;
    line-height: 0;
}
[data-theme="dark"] .hero-dot { color: var(--primary); }

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 620px;
    margin: 1.75rem 0 0;
}

/* Lema del hero: «Recuerda. Conecta. Actúa.» en línea propia */
.hero-motto {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--lw-wine);
    border-left: 2px solid var(--lw-wine);
    padding-left: 1.25rem;
    margin: 1.5rem 0 0;
    max-width: 560px;
}
[data-theme="dark"] .hero-motto { color: var(--primary); border-color: var(--primary); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

/* --- 6b · CREENCIA --------------------------------------------- */
.belief-quote {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 400;
    line-height: 1.35;
    color: var(--text-heading);
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
}
.belief-line { display: block; }
.belief-quote em { font-style: italic; color: var(--lw-wine); }
[data-theme="dark"] .belief-quote em { color: var(--primary); }

.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.outcome-card { text-align: center; padding: 2.2rem 1.25rem; }
.outcome-card h3 { font-size: 1.2rem; margin-bottom: 0; }

/* --- 7 · PROBLEMA ---------------------------------------------- */
.fact-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.fact-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px -16px var(--brand-glow); }
.fact-figure {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-heading);
    line-height: 1.1;
    margin-bottom: 0.4rem;
}
.fact-card p { font-size: 0.9rem; line-height: 1.55; }

/* Dato destacado (7–14 años): tarjeta horizontal centrada */
.fact-featured {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    max-width: 760px;
    margin: 0 auto 1.5rem;
    padding: 1.75rem 2.25rem;
    text-align: left;
}
.fact-featured .fact-figure {
    margin-bottom: 0;
    font-size: 2.6rem;
    white-space: nowrap;
    color: var(--lw-wine);
}
[data-theme="dark"] .fact-featured .fact-figure { color: var(--primary); }
.fact-featured p { margin: 0; font-size: 0.98rem; }

.problem-closing {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    color: var(--lw-wine);
    text-align: center;
    margin-top: 4rem;
}
[data-theme="dark"] .problem-closing { color: var(--primary); }

/* Enlace a la encuesta (sección «Escuchamos») */
.survey-cta { display: flex; justify-content: center; margin-top: 2.5rem; }
.survey-cta + .problem-closing { margin-top: 2.5rem; }

/* --- 8 · STATS (problema, señal, IA) ---------------------------- */
.section-alt { background: var(--bg-section-alt); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-top: 2px solid var(--lw-wine);
    border-radius: var(--radius);
    padding: 2rem 1.75rem 1.6rem;
}
[data-theme="dark"] .stat-card { border-top-color: var(--primary); }

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 500;
    line-height: 1;
    color: var(--lw-wine);
    margin-bottom: 0.6rem;
    white-space: nowrap;
}
[data-theme="dark"] .stat-number { color: var(--primary); }
.stat-prefix, .stat-suffix { font-size: 0.65em; }

.stat-label { font-size: 0.92rem; line-height: 1.55; }

.source-note {
    margin-top: 2.5rem;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* Rejilla de 4 columnas (datos del problema) */
.signal-grid { grid-template-columns: repeat(4, 1fr); }

/* --- 9 · IA ----------------------------------------------------- */
.ai-title-line { display: block; }
.ai-title-accent {
    display: block;
    font-style: italic;
    color: var(--lw-wine);
}
[data-theme="dark"] .ai-title-accent { color: var(--primary); }

.motto-pill {
    display: block;
    width: fit-content;
    margin: 2.5rem auto 0;
    padding: 0.9rem 2rem;
    border: 1px solid var(--input);
    border-radius: 99px;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    color: var(--text-heading);
}

/* --- 10 · PRODUCTO --------------------------------------------- */
.product-tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    color: var(--lw-wine);
    margin: 0 0 1rem;
}
[data-theme="dark"] .product-tagline { color: var(--primary); }

.solution-grid {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 3.5rem;
    align-items: center;
    max-width: 1060px;
    margin: 1rem auto 0;
}
.solution-media img {
    width: 100%;
    max-width: 460px;
    height: auto;
    margin: 0 auto;
}
.solution-copy h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 1.5rem; }
.solution-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.8rem;
}
.solution-features li {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    font-size: 1.05rem;
    color: var(--foreground);
}
.solution-features li::before { content: "●"; font-size: 0.55em; color: var(--lw-wine); }
[data-theme="dark"] .solution-features li::before { color: var(--primary); }
.solution-tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    color: var(--lw-wine);
    line-height: 1.35;
    margin-top: 2.25rem;
}
.solution-tagline span { display: block; }
[data-theme="dark"] .solution-tagline { color: var(--primary); }

/* Evidence Response Spec */
.evidence-wrap {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 3.5rem;
    align-items: center;
    margin-top: 5rem;
}
.evidence-intro h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.evidence-intro > p { margin: 0.75rem 0 1.5rem; }
.evidence-list {
    list-style: none;
    counter-reset: spec;
    display: grid;
    gap: 0.7rem;
    padding: 0;
}
.evidence-list li {
    counter-increment: spec;
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: var(--foreground);
}
.evidence-list li::before {
    content: counter(spec);
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--lw-wine);
    min-width: 1.2em;
    text-align: center;
    border-bottom: 1px solid var(--lw-wine);
}
[data-theme="dark"] .evidence-list li::before { color: var(--primary); border-color: var(--primary); }

.evidence-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 24px 60px -32px var(--brand-glow);
}
.evidence-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.evidence-brand {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}
.evidence-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.3rem 0.8rem;
    border-radius: 99px;
    background: var(--confidence-bg);
    color: var(--confidence);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.evidence-body {
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1.45;
    color: var(--text-heading);
    margin-bottom: 1.5rem;
}
.evidence-meta {
    display: flex;
    gap: 2.5rem;
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
}
.evidence-meta span {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}
.evidence-meta strong { font-size: 0.9rem; color: var(--foreground); font-weight: 500; }

/* --- 11 · DESCARGA ---------------------------------------------- */
.download-section .section-header { margin-bottom: 0; }
.store-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}
/* Sin enlace todavía: se muestran atenuadas para que no inviten a pulsarlas */
.store-badges img {
    width: 190px;
    height: auto;
    max-width: 100%;
    opacity: 0.7;
}
[data-theme="dark"] .store-badges img { opacity: 0.85; }

/* --- 12 · WAITLIST ---------------------------------------------- */
.waitlist-section { background: var(--bg-section-alt); }

.waitlist-wrap { max-width: 560px; margin: 0 auto; text-align: center; }

.waitlist-form,
.email-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.form-row {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}
.form-row .input { flex: 1; height: auto; font-size: 1rem; background: var(--card); }
.form-row button { white-space: nowrap; }
/* Apagado hasta marcar las dos casillas de consentimiento (main.js) */
.form-row button:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: auto; }

/* Consentimiento: dos casillas obligatorias. Se lee alineado a la izquierda
   aunque la sección vaya centrada; el asterisco repite el burdeos de la marca. */
.form-consent {
    display: grid;
    gap: 0.6rem;
    text-align: left;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-muted);
}
.consent-option {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    line-height: 1.5; /* Basecoat aprieta las etiquetas del .form; aquí van a dos líneas en móvil */
    cursor: pointer;
}
.consent-option input[type="checkbox"] {
    flex: none;
    width: 1.05rem;
    height: 1.05rem;
    margin: 0.2rem 0 0;
    accent-color: var(--lw-wine);
    cursor: pointer;
}
[data-theme="dark"] .consent-option input[type="checkbox"] { accent-color: var(--primary); }
.consent-req { color: var(--lw-wine); font-weight: 600; margin-left: 0.15em; }
[data-theme="dark"] .consent-req { color: var(--primary); }
.consent-intro { margin: 0.2rem 0 0; }

/* Honeypot: fuera de pantalla, no display:none */
.hp-field { position: absolute; left: -5000px; top: 0; height: 1px; width: 1px; opacity: 0; }

.form-error {
    margin-top: 0.9rem;
    font-size: 0.9rem;
    color: var(--error);
    font-weight: 500;
}

.waitlist-success,
.email-success {
    background: var(--card);
    border: 1px solid var(--border);
    border-top: 2px solid var(--confidence);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
}
.waitlist-success svg,
.email-success svg { width: 40px; height: 40px; color: var(--confidence); margin-bottom: 0.75rem; }
.waitlist-success h3,
.email-success h3 { font-size: 1.6rem; }

.privacy-note {
    margin-top: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.privacy-note a { color: inherit; text-decoration: underline; text-underline-offset: 0.25em; }
.privacy-note a:hover { color: var(--lw-wine); }
[data-theme="dark"] .privacy-note a:hover { color: var(--primary); }

/* --- 12a · PARA PROFESIONALES ------------------------------------ */
/* Fondo por defecto: la lista de espera de arriba va en crema oscura y así
   las dos secciones seguidas no se funden en una sola mancha. */

.pro-wrap { max-width: 620px; margin: 0 auto; text-align: center; }

.pro-text { margin-bottom: 2.25rem; }

.pro-text p {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 1.1rem;
}

/* La última frase es la que pide el email: se queda con el color del cuerpo */
.pro-text p:last-child { margin-bottom: 0; color: var(--foreground); }

/* --- 12b · PÁGINAS LEGALES -------------------------------------- */
.legal-page { padding: 9rem 0 5rem; }
.legal-container { max-width: 820px; }

.legal-body h1 {
    font-size: clamp(2rem, 4.5vw, 2.9rem);
    margin-bottom: 0.75rem;
}
/* Prosa legal: se lee alineada a la izquierda, no centrada como las secciones */
.legal-body h2 {
    font-size: clamp(1.15rem, 2.2vw, 1.4rem);
    text-align: left;
    margin: 3rem 0 0.9rem;
}
.legal-body p { margin-bottom: 1.1rem; }
.legal-body a { color: var(--lw-wine); text-decoration: underline; text-underline-offset: 0.2em; }
[data-theme="dark"] .legal-body a { color: var(--primary); }

.legal-updated {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 2.5rem !important;
}
.legal-lead {
    font-size: 1.1rem;
    border-left: 2px solid var(--lw-wine);
    padding-left: 1.25rem;
}
[data-theme="dark"] .legal-lead { border-color: var(--primary); }

.legal-body ul, .legal-body ol { margin: 0 0 1.1rem 1.2rem; }
.legal-body li { margin-bottom: 0.55rem; padding-left: 0.3rem; }
.legal-body ul { list-style: none; margin-left: 0; }
.legal-body ul > li { position: relative; padding-left: 1.2rem; }
.legal-body ul > li::before {
    content: "·";
    position: absolute;
    left: 0.2rem;
    top: -0.35em;
    font-family: var(--font-display);
    font-size: 1.6em;
    color: var(--lw-wine);
}
[data-theme="dark"] .legal-body ul > li::before { color: var(--primary); }

/* Ficha de datos registrales: sin viñeta, más compacta */
.legal-data { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 1.75rem; }
.legal-data > li { padding-left: 0; }
.legal-data > li::before { content: none; }
.legal-data > li:last-child { margin-bottom: 0; }

.legal-body code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: var(--bg-section-alt);
    border-radius: 4px;
    padding: 0.12em 0.4em;
}

.legal-table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.legal-table th, .legal-table td {
    text-align: left;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.legal-table th {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* --- 12c · ENCUESTA (diálogo) ----------------------------------- */
/* <dialog> nativo: el navegador ya atrapa el foco, cierra con Esc y deja
   inerte el fondo. Aquí solo va el aspecto. */

.survey-modal {
    /* 60 % del ancho de la ventana, sin llegar a pegarse a los bordes */
    width: min(60vw, calc(100vw - 2rem));
    max-width: none;
    height: min(88vh, 820px);
    max-height: none;
    /* El reset global pone margin:0 en todo y eso anula el centrado que el
       navegador le da a un <dialog> modal. Hay que devolvérselo. */
    margin: auto;
    padding: 0;
    border: 1px solid var(--input);
    border-radius: calc(var(--radius) * 1.5);
    background: var(--card);
    color: var(--foreground);
    box-shadow: 0 24px 60px rgba(36, 16, 25, 0.28);
    overflow: hidden;
}

.survey-modal[open] {
    display: flex;
    flex-direction: column;
    animation: surveyIn 0.24s ease-out;
}

.survey-modal::backdrop {
    background: rgba(36, 16, 25, 0.55);
    backdrop-filter: blur(3px);
}

.survey-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0.85rem 1rem 1.4rem;
    border-bottom: 1px solid var(--border);
}

.survey-modal-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-heading);
}

/* El punto de WeWomen, otra vez */
.survey-modal-title::after { content: "."; color: var(--lw-wine); }
[data-theme="dark"] .survey-modal-title::after { color: var(--primary); }

.survey-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.survey-modal-close:hover {
    color: var(--lw-wine);
    background: var(--secondary);
    border-color: var(--border);
}

[data-theme="dark"] .survey-modal-close:hover { color: var(--primary); }

.survey-modal-close svg { width: 18px; height: 18px; }

.survey-modal-body {
    flex: 1;
    min-height: 0;
    /* Solo se ve mientras carga el iframe: después manda el fondo de Tally */
    background: var(--card);
}

.survey-modal-body iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.survey-modal-note {
    margin: 0;
    padding: 0.7rem 1.25rem;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-align: center;
}

.survey-modal-note a {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    transition: color 0.2s ease;
}

.survey-modal-note a:hover { color: var(--lw-wine); }
[data-theme="dark"] .survey-modal-note a:hover { color: var(--primary); }

/* Solo opacidad, nada de geometría: si el navegador congela la animación
   (pestañas en segundo plano) el diálogo se quedaría desplazado y encogido en
   el fotograma inicial. Así el estado de reposo siempre es el centrado exacto. */
@keyframes surveyIn {
    from { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .survey-modal[open] { animation: none; }
}

/* --- 13 · FOOTER ------------------------------------------------ */
footer {
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-logo { font-size: 1.25rem; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.92rem; max-width: 340px; }
.footer-links {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 2.5rem;
    justify-content: end;
}
.footer-column h4 {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
}
.footer-column a {
    display: block;
    font-size: 0.92rem;
    color: var(--foreground);
    text-decoration: none;
    margin-bottom: 0.55rem;
    transition: color 0.2s ease;
}
.footer-column a:hover { color: var(--lw-wine); }
[data-theme="dark"] .footer-column a:hover { color: var(--primary); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}
.copyright, .footer-signoff { font-size: 0.85rem; }
.footer-signoff { font-family: var(--font-display); font-style: italic; }

/* --- 14 · ANIMACIONES ------------------------------------------ */
.reveal, .reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}
.reveal { transform: translateY(24px); }
.reveal-left { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible {
    opacity: 1;
    transform: none;
}
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.4s; }
.stagger-6 { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal, .reveal-left, .reveal-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .fact-card { transition: none; }
}

/* --- 15 · RESPONSIVE ------------------------------------------- */
@media (max-width: 1024px) {
    /* Con «Para profesionales» en el menú, entre 900 y 1024 px el conjunto rozaba
       el borde: se aprieta la separación en ese tramo y deja de rozarlo. */
    .nav-menu { gap: 1.15rem; }

    .outcomes-grid { grid-template-columns: repeat(2, 1fr); }
    .signal-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .hamburger { display: flex; }

    .nav-menu {
        position: fixed;
        top: 0; right: 0;
        /* Sin `bottom: 0` a propósito. Al pasar de 50 px de scroll, #header recibe
           .scrolled y con ella un backdrop-filter, que lo convierte en el bloque
           contenedor de sus descendientes fixed. Con `bottom: 0` el panel pasaba a
           medir lo que el header (~70 px) y los enlaces se desparramaban sobre la
           página al abrir el menú por segunda vez. La altura de la ventana no
           depende del contenedor, así que resuelve el caso. */
        height: 100vh;
        height: 100dvh;
        width: min(78vw, 320px);
        background: var(--background);
        border-left: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 1.5rem;
        padding: 5.5rem 2rem 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 95;
    }
    .nav-menu.active { transform: translateX(0); }
    .nav-link { font-size: 1.1rem; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .solution-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .evidence-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .footer-links { justify-content: start; gap: 2rem; }
}

@media (max-width: 600px) {
    .section-padding { padding: 4rem 0; }
    .hero { padding-top: 6.5rem; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .stats-grid, .signal-grid, .outcomes-grid { grid-template-columns: 1fr; }
    .fact-featured { flex-direction: column; text-align: center; gap: 0.5rem; }
    /* Las dos insignias siguen una al lado de la otra en móvil */
    .store-badges { gap: 0.75rem; }
    .store-badges img { width: 145px; }
    .form-row { flex-direction: column; }
    .survey-modal {
        width: calc(100vw - 1rem);
        height: 92vh;
        border-radius: var(--radius);
    }
    .survey-modal-head { padding: 0.85rem 0.6rem 0.85rem 1.1rem; }
    .survey-modal-title { font-size: 1.05rem; }
    .footer-links { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
