/* Crecer con Finanzas — hoja de estilos común (index + páginas legales) */

/* ============ FUENTES AUTO-ALOJADAS (RGPD-SAFE) ============ */
/* IMPORTANTE: los nombres de archivo deben coincidir con los subidos a /fonts/ */
@font-face {
    font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
    src: url('../fonts/inter-v20-latin-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
    src: url('../fonts/inter-v20-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
    src: url('../fonts/inter-v20-latin-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap;
    src: url('../fonts/inter-v20-latin-800.woff2') format('woff2');
}
/* Manuscrita (solo para la nota del hero). Descárgala igual que Inter
   (google-webfonts-helper, Caveat 500, latin) y ajusta el nombre si difiere. */
@font-face {
    font-family: 'Caveat'; font-style: normal; font-weight: 500; font-display: swap;
    src: url('../fonts/caveat-v18-latin-500.woff2') format('woff2');
}

/* ============ TOKENS ============ */
:root {
    --ink: #16223C;          /* titulares */
    --text: #414B5C;         /* texto corrido */
    --muted: #6A7384;        /* texto secundario */
    --olive: #56662A;        /* marca: botones, acentos (AA sobre blanco) */
    --olive-hover: #45521F;
    --olive-bright: #808D36; /* verde original: solo líneas y detalles */
    --sage: #F4F6EE;         /* fondo alterno */
    --sage-2: #E4EAD2;
    --line: #E1E4DA;
    --gap-red: #A0463A;
    --radius: 12px;
    --radius-lg: 18px;
    --maxw: 1160px;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
}

/* ============ BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
    color: var(--text); background: #fff; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--olive-bright); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 3000; }
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.section { padding: clamp(4.5rem, 9vw, 7.25rem) 0; }
.bg-sage { background: var(--sage); }
section[id] { scroll-margin-top: 84px; }

h2 { font-size: clamp(1.8rem, 1.2rem + 1.9vw, 2.45rem); line-height: 1.14; letter-spacing: -0.024em; }
.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem); line-height: 1.6; max-width: 40em; }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head .lead { margin-top: 1rem; }
.label { font-size: .9rem; font-weight: 600; color: var(--olive); margin-bottom: .75rem; }

/* ============ BOTONES ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
    padding: 1rem 1.5rem; border-radius: 10px; border: 1.5px solid transparent;
    cursor: pointer; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--olive); color: #fff; }
.btn-primary:hover { background: var(--olive-hover); }
.btn-outline { background: transparent; color: var(--olive); border-color: var(--olive); }
.btn-outline:hover { background: var(--olive); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sage-2); }
.btn-sm { padding: .7rem 1.1rem; font-size: .9375rem; }

/* ============ CABECERA ============ */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .95); backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; flex: none; }
.brand img { height: 46px; width: auto; }
.brand-name { display: block; font-weight: 800; color: var(--ink); font-size: 1rem; letter-spacing: -0.01em; line-height: 1.15; }
.brand-tag { display: block; font-size: .72rem; font-weight: 500; color: var(--olive); line-height: 1.35; }
.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a, .brand-tag, .site-header .btn { white-space: nowrap; }
.nav-links a {
    text-decoration: none; color: var(--ink); font-size: .9375rem; font-weight: 500;
    padding: .4rem 0; border-bottom: 2px solid transparent; transition: border-color .2s;
}
.nav-links a:hover { border-bottom-color: var(--olive-bright); }

/* ============ HERO ============ */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4.5rem, 8vw, 6.5rem); }
.hero-grid {
    display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center;
}
.hero h1 { font-size: clamp(2.25rem, 1.3rem + 2.9vw, 3.2rem); line-height: 1.07; letter-spacing: -0.032em; }
.hero .lead { margin-top: 1.5rem; max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; margin-top: 2.25rem; }
.hero-sub { margin-top: 1.25rem; max-width: 33em; font-size: .9375rem; line-height: 1.55; color: var(--muted); }
.link-quiet {
    color: var(--ink); font-weight: 600; text-decoration: underline;
    text-decoration-color: var(--olive-bright); text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.link-quiet:hover { color: var(--olive); }
.assurances { display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; list-style: none; margin-top: 2rem; font-size: .875rem; color: var(--muted); }
.assurances li { display: flex; align-items: center; gap: .5rem; }
.assurances svg { width: 18px; height: 18px; flex: none; color: var(--olive); }

.hero-media { position: relative; padding-bottom: 1.75rem; }
.video-frame {
    position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden;
    background: var(--sage-2);
}
.video-frame .sprout { position: absolute; right: 8%; bottom: 0; width: 38%; height: auto; color: var(--olive-bright); opacity: .55; }
.video-frame video { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.play {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .85rem;
    background: rgba(22, 34, 60, .12); border: 0; cursor: pointer; color: #fff; font: inherit;
}
.play-icon {
    width: 68px; height: 68px; border-radius: 50%; background: #fff; color: var(--olive);
    display: grid; place-items: center; box-shadow: 0 6px 24px rgba(22, 34, 60, .25); transition: transform .2s;
}
.play[hidden] { display: none; }
.play:hover .play-icon { transform: scale(1.06); }
.play-icon svg { width: 22px; height: 22px; margin-left: 4px; }
.play-text { font-size: .875rem; font-weight: 600; background: rgba(22, 34, 60, .72); padding: .35rem .8rem; border-radius: 999px; }
.hero-note {
    position: absolute; left: clamp(1rem, 4%, 2rem); bottom: 0; max-width: calc(100% - 2rem);
    font-family: var(--hand); font-weight: 500; font-size: 1.6rem; line-height: 1.1; color: var(--ink);
    background: #EDF1DE; padding: .45rem 1.1rem .5rem; border-radius: 4px; transform: rotate(-2.5deg);
    box-shadow: 0 2px 8px rgba(22, 34, 60, .08);
}

/* ============ CONTEXTO / EVIDENCIA ============ */
.evidence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.75rem); list-style: none; }
.ev { display: flex; flex-direction: column; gap: .7rem; padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.ev-source { font-weight: 700; color: var(--ink); font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.2; }
.ev-link { margin-top: auto; padding-top: .35rem; font-size: .875rem; font-weight: 600; color: var(--olive); text-underline-offset: 3px; }

.reality {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem);
    margin-top: clamp(3.5rem, 7vw, 5rem); padding-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line);
    align-items: start;
}
.reality h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
.reality-intro { margin-top: .6rem; }
.gaps { list-style: none; margin-top: 1.25rem; }
.gaps li { display: flex; gap: .8rem; align-items: baseline; padding: .75rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.gaps svg { width: 14px; height: 14px; flex: none; color: var(--gap-red); transform: translateY(1px); }
.opportunity { background: #fff; border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.75rem); }
.opportunity h3 { font-size: 1rem; color: var(--olive); letter-spacing: 0; font-weight: 600; }
.opportunity p { margin-top: .9rem; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); line-height: 1.3; font-weight: 600; color: var(--ink); letter-spacing: -0.018em; }

/* ============ SISTEMA ============ */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; }
.pillar { padding: 0 clamp(1.25rem, 3vw, 2.5rem); border-left: 1px solid var(--line); }
.pillar:first-child { padding-left: 0; border-left: 0; }
.pillar:last-child { padding-right: 0; }
.pillar-icon { width: 40px; height: 40px; color: var(--olive); margin-bottom: 1.4rem; }
.pillar h3 { font-size: 1.3rem; letter-spacing: -0.018em; }
.pillar-sub { margin-top: .2rem; font-size: .95rem; font-weight: 600; color: var(--olive); }
.pillar-text { margin-top: 1rem; }

/* ============ IMPLANTACIÓN: CURSO ESCOLAR ============ */
.timeline {
    position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 3vw, 2rem); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: clamp(2rem, 4vw, 2.75rem) clamp(1.25rem, 3vw, 2.25rem) clamp(1.75rem, 3vw, 2.25rem);
}
.timeline::before {
    content: ""; position: absolute; top: clamp(2rem, 4vw, 2.75rem); left: 16.6667%; right: 16.6667%;
    height: 2px; background: var(--sage-2); transform: translateY(1.375rem);
}
.timeline-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.timeline-dot {
    position: relative; z-index: 1; width: 2.75rem; height: 2.75rem; flex: none; border-radius: 50%;
    background: var(--olive); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 6px #fff;
    font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.timeline-when { margin-top: 1rem; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--olive); }
.timeline-step h3 { margin-top: .3rem; font-size: 1.0625rem; letter-spacing: -0.01em; }
.timeline-step p { margin-top: .4rem; max-width: 24ch; font-size: .9rem; line-height: 1.45; color: var(--muted); }

.rhythm-strip { margin-top: clamp(1.5rem, 3vw, 2rem); padding-top: clamp(1.25rem, 3vw, 1.75rem); border-top: 1px solid var(--line); }
.rhythm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.rhythm-grid dt { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 700; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rhythm-grid dd { margin-top: .35rem; font-size: .9rem; line-height: 1.45; }

/* ============ IMPACTO ============ */
.case { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.case-media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--sage-2); }
.case-media img { width: 100%; height: 100%; object-fit: cover; }
.case-fallback {
    display: none; position: absolute; inset: 0; place-items: center; padding: 2rem; text-align: center;
    font-family: var(--hand); font-weight: 500; font-size: 2.2rem; line-height: 1.15; color: var(--ink);
}
.case-media.is-empty .case-fallback { display: grid; }
.case-facts { margin-top: 2rem; }
.case-facts > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1.5rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.case-facts dt { font-size: .9375rem; font-weight: 600; color: var(--ink); }

.voices { margin-top: 0; }
.voices > h3 { font-size: 1.3rem; letter-spacing: -0.018em; margin-bottom: 2rem; }
.voices-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.review {
    height: 21rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 1.85rem); display: flex; flex-direction: column;
    box-shadow: 0 1px 2px rgba(22, 34, 60, .04);
}
.review-stars { flex: none; color: #F2A93B; font-size: .9rem; letter-spacing: .2em; }
.review blockquote { flex: 1; min-height: 0; margin: .9rem 0 0; }
.review blockquote p {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; overflow: hidden;
    font-size: .9375rem; line-height: 1.55; font-style: italic; color: var(--ink);
}
.review figcaption { flex: none; display: flex; align-items: center; gap: .7rem; margin-top: 1.25rem; }
.review-avatar {
    flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--olive); color: #fff;
    display: grid; place-items: center; font-weight: 700; font-size: .875rem;
}
.review-name { display: block; font-weight: 700; color: var(--ink); font-size: .875rem; line-height: 1.3; }
.review-role { display: block; font-size: .8125rem; color: var(--muted); line-height: 1.3; }

/* ============ PARA EL CENTRO ============ */
.center-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.benefits { list-style: none; margin-top: 2rem; }
.benefits li { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.benefits h3 { font-size: 1.125rem; letter-spacing: -0.012em; }
.benefits p { margin-top: .35rem; }
.why { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.75rem); }
.why > p { margin-top: 1rem; }
.checks { list-style: none; margin-top: 1.5rem; }
.checks li { display: flex; gap: .8rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.checks svg { width: 20px; height: 20px; flex: none; color: var(--olive); margin-top: .2rem; }
.checks strong { color: var(--ink); font-weight: 600; }

/* ============ PREGUNTAS ============ */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.5rem; align-items: start; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq details[open] { border-color: var(--sage-2); }
.faq summary {
    list-style: none; cursor: pointer; padding: 1.1rem 1.25rem; font-weight: 600; color: var(--ink);
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 1rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; flex: none; width: 9px; height: 9px; margin-top: -4px;
    border-right: 2px solid var(--olive); border-bottom: 2px solid var(--olive);
    transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq-a { padding: 0 1.25rem 1.25rem; font-size: .975rem; }

.resources {
    display: flex; justify-content: space-between; align-items: center; gap: 1.5rem 2rem;
    margin-top: clamp(3rem, 6vw, 4.5rem); padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.25rem);
    background: var(--sage); border-radius: var(--radius-lg);
}
.resources h3 { font-size: 1.2rem; letter-spacing: -0.015em; }
.resources p { margin-top: .3rem; max-width: 38em; }

/* ============ CTA FINAL ============ */
.cta-final { background: var(--ink); color: #fff; padding: clamp(4rem, 8vw, 6rem) 0; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 2.5rem 4rem; align-items: center; }
.cta-final h2 { color: #fff; }
.cta-final p { margin-top: 1rem; color: rgba(255, 255, 255, .78); max-width: 36em; }
.cta-action { justify-self: end; }
.cta-action .assurances { color: rgba(255, 255, 255, .75); margin-top: 1.25rem; }
.cta-action .assurances svg { color: #BFCB86; }

/* ============ PIE ============ */
.site-footer { padding: 3rem 0 2rem; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem 2rem; flex-wrap: wrap; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; font-size: .875rem; }
.footer-legal a { color: var(--text); text-decoration: none; }
.footer-legal a:hover { color: var(--ink); text-decoration: underline; }
.social { display: flex; gap: .6rem; }
.social a {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
    display: inline-flex; align-items: center; justify-content: center; color: var(--ink);
    transition: color .2s, border-color .2s;
}
.social a:hover { color: var(--olive); border-color: var(--olive-bright); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom {
    margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .8125rem; color: var(--muted);
}

/* ============ MODAL CONTACTO ============ */
.modal { display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(22, 34, 60, .55); backdrop-filter: blur(4px); overflow-y: auto; padding: 5vh 1rem; }
.modal.is-open { display: block; }
.modal-content { background: #fff; max-width: 540px; margin: 0 auto; border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.25rem); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.modal-head h2 { font-size: 1.5rem; }
.modal-close {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
    color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.modal-close:hover { color: var(--ink); border-color: var(--ink); }
.modal-intro { margin: .6rem 0 1.25rem; font-size: .9375rem; }
.modal-legal { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--line); font-size: .75rem; line-height: 1.45; color: var(--muted); }
.modal-legal a { color: var(--olive); }
body.modal-open { overflow: hidden; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1180px) {
    .nav-links { display: none; }
}
@media (max-width: 980px) {
    .hero-grid, .reality, .case, .center-grid, .cta-grid { grid-template-columns: 1fr; }
    .hero-media { max-width: 680px; }
    .evidence { grid-template-columns: 1fr; }
    .pillars { grid-template-columns: 1fr; gap: 2.25rem; }
    .pillar, .pillar:first-child, .pillar:last-child { padding: 0; border-left: 0; }
    .pillar + .pillar { padding-top: 2.25rem; border-top: 1px solid var(--line); }
    .case-media { aspect-ratio: 16 / 10; }
    .voices-grid { grid-template-columns: 1fr; }
    .faq { grid-template-columns: 1fr; }
    .cta-action { justify-self: start; }
}
@media (max-width: 760px) {
    .timeline { grid-template-columns: 1fr; gap: 1.75rem; padding-left: 1.5rem; padding-right: 1.25rem; }
    .timeline::before { top: 0; bottom: 0; left: 2.875rem; right: auto; width: 2px; height: auto; transform: none; }
    .timeline-step { flex-direction: row; align-items: flex-start; text-align: left; gap: 1rem; }
    .timeline-when { margin-top: 0; }
    .timeline-body { padding-top: .25rem; }
    .rhythm-grid { grid-template-columns: 1fr; gap: 1rem; }
    .case-facts > div { grid-template-columns: 1fr; gap: .2rem; }
    .resources { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
    .nav { height: 66px; gap: 1rem; }
    .brand img { height: 38px; }
    .brand-tag { display: none; }
    .site-header .btn-sm { padding: .6rem .85rem; font-size: .875rem; }
    .hero-note { font-size: 1.35rem; }
}
    
/* ============ BANNER Y CONFIGURACIÓN DE COOKIES ============ */

.cc-banner {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 1080px; margin: 0 auto;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(22, 34, 60, .18);
    padding: 1.25rem 1.5rem; z-index: 9999;
    display: none; flex-wrap: wrap; gap: 1rem 1.5rem;
    align-items: center; justify-content: space-between;
}
.cc-banner.show { display: flex; }
.cc-banner-text { flex: 1 1 420px; font-size: .875rem; color: var(--text); line-height: 1.55; }
.cc-banner-text strong { color: var(--ink); }
.cc-banner-text a { color: var(--olive); text-decoration: underline; }
.cc-banner-buttons { display: flex; gap: .5rem; flex-wrap: wrap; }
.cc-btn {
    padding: .7rem 1.15rem; border-radius: 10px;
    font-weight: 600; font-size: .875rem; cursor: pointer;
    border: 1.5px solid var(--ink); transition: background-color .2s, color .2s, border-color .2s;
    font-family: inherit;
}
/* Aceptar y Rechazar con el mismo peso visual (Guía AEPD de cookies) */
.cc-btn-accept, .cc-btn-reject { background: var(--ink); color: #fff; }
.cc-btn-accept:hover, .cc-btn-reject:hover { background: var(--olive); border-color: var(--olive); }
.cc-btn-config { background: #fff; color: var(--ink); }
.cc-btn-config:hover { background: var(--sage); }
.cc-modal .cc-btn-reject { background: #fff; color: var(--ink); }
.cc-modal .cc-btn-reject:hover { background: var(--sage); border-color: var(--ink); }

.cc-modal {
    display: none; position: fixed; inset: 0;
    background: rgba(22, 34, 60, .55); z-index: 10000;
    overflow-y: auto; padding: 2rem 1rem;
}
.cc-modal.show { display: block; }
.cc-modal-content {
    background: #fff; max-width: 560px; margin: 2rem auto;
    padding: 2rem; border-radius: var(--radius-lg);
}
.cc-modal-content h3 { margin-bottom: .75rem; color: var(--ink); font-size: 1.25rem; }
.cc-modal-content p { font-size: .9rem; color: var(--text); margin-bottom: 1.5rem; }
.cc-option {
    padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius);
    margin-bottom: 1rem; display: flex; justify-content: space-between;
    align-items: center; gap: 1rem;
}
.cc-option-info h4 { margin: 0 0 .25rem; font-size: 1rem; color: var(--ink); }
.cc-option-info p { font-size: .85rem; color: var(--muted); margin: 0; }
.cc-switch { position: relative; width: 48px; height: 26px; flex-shrink: 0; }
.cc-switch input { opacity: 0; width: 0; height: 0; }
.cc-slider {
    position: absolute; cursor: pointer; inset: 0;
    background: #C9CDD4; border-radius: 26px; transition: .3s;
}
.cc-slider::before {
    content: ''; position: absolute; width: 20px; height: 20px;
    left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .3s;
}
.cc-switch input:checked + .cc-slider { background: var(--olive); }
.cc-switch input:checked + .cc-slider::before { transform: translateX(22px); }
.cc-switch input:focus-visible + .cc-slider { outline: 3px solid var(--olive-bright); outline-offset: 2px; }
.cc-switch input:disabled + .cc-slider { background: var(--olive); opacity: .5; cursor: not-allowed; }
.cc-modal-buttons { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.5rem; }

@media (max-width: 600px) {
    .cc-banner { left: .5rem; right: .5rem; bottom: .5rem; padding: 1rem; }
    .cc-banner-buttons { width: 100%; }
    .cc-btn { flex: 1 1 auto; text-align: center; }
}
    
/* ============ UTILIDADES (sustituyen estilos inline: CSP sin 'unsafe-inline' en scripts) ============ */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.tally-frame { display: block; width: 100%; border: 0; }
.footer-legal a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ============ PÁGINAS LEGALES ============ */
.legal-main { padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 6rem); }
.legal { max-width: 46rem; }
.legal-back { display: inline-flex; font-size: .9rem; font-weight: 600; color: var(--olive); text-decoration: none; margin-bottom: 1.75rem; }
.legal-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2vw, 2.7rem); line-height: 1.1; letter-spacing: -0.03em; }
.legal-date { margin-top: .75rem; font-size: .875rem; color: var(--muted); }
.legal-intro { margin-top: 1.5rem; font-size: 1.125rem; }
.legal h2 {
    font-size: 1.3rem; line-height: 1.3; letter-spacing: -0.015em;
    margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.legal h3 { font-size: 1.05rem; letter-spacing: -0.01em; margin-top: 1.75rem; }
.legal p, .legal ul, .legal .table-wrap, .legal dl { margin-top: .9rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-top: .35rem; }
.legal li::marker { color: var(--olive-bright); }
.legal a:not(.btn):not(.legal-back) { color: var(--olive); text-underline-offset: 3px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal code { font-size: .85em; background: var(--sage); color: var(--ink); padding: .1rem .4rem; border-radius: 4px; }
.data-card { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
.data-card dt, .data-card dd { padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.data-card dt { font-weight: 600; color: var(--ink); padding-right: 1rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.legal table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.5; min-width: 34rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .75rem .9rem; border-bottom: 1px solid var(--line); }
.legal th { background: var(--sage); color: var(--ink); font-weight: 600; }
.legal tr:last-child td { border-bottom: 0; }
.legal .btn { margin-top: 1rem; }
@media (max-width: 600px) {
    .data-card { grid-template-columns: 1fr; }
    .data-card dt { border-bottom: 0; padding-bottom: 0; }
}
