/* ==========================================================================
   LANDING SYSTEM — hoja de estilos compartida
   --------------------------------------------------------------------------
   Todas las páginas (landing-master.html y las landings derivadas) usan este
   archivo. La identidad visual de cada proyecto se cambia en SITE_CONFIG.theme
   (dentro del HTML de cada página), que sobrescribe las variables de :root.
   Orden: 1 Tokens · 2 Base · 3 Utilidades · 4 Botones · 5 Header/Nav
          6 Hero · 7 Banner/Aviso · 8 Secciones · 9 Tarjetas · 10 Pasos
          11 Herramientas · 12 Tablas · 13 FAQ · 14 CTA · 15 Footer
          16 Modal/Cookies · 17 Responsive · 18 Movimiento reducido
   ========================================================================== */

/* 1. TOKENS ----------------------------------------------------------------- */
:root {
  /* Marca (sobrescribibles desde SITE_CONFIG.theme) */
  --c-primary: #1f5c4a;
  --c-primary-strong: #154536;
  --c-primary-soft: #e5f0eb;
  --c-secondary: #24324a;
  --c-accent: #e0a43a;
  --c-accent-soft: #fbf1df;

  /* Superficies y texto */
  --c-bg: #fbfaf7;
  --c-surface: #ffffff;
  --c-surface-alt: #f3f1ec;
  --c-text: #1d2430;
  --c-text-muted: #556070;
  --c-border: #e2ded5;
  --c-on-primary: #ffffff;
  --c-warning-bg: #fff6e5;
  --c-warning-border: #e8b54d;
  --c-warning-text: #5a3d05;

  /* Tipografía (pilas del sistema: sin peticiones externas ni cookies) */
  --font-heading: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-xl: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  --fs-2xl: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  --fs-3xl: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem);
  --lh-tight: 1.15;
  --lh-base: 1.65;

  /* Layout */
  --container: 1180px;
  --container-narrow: 820px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;

  /* Espaciado */
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4.5rem;
  --section-y: clamp(3.5rem, 2.5rem + 4vw, 6rem);

  /* Forma */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(20, 30, 40, .06), 0 1px 3px rgba(20, 30, 40, .05);
  --shadow: 0 6px 20px -6px rgba(20, 30, 40, .14), 0 2px 6px rgba(20, 30, 40, .05);
  --shadow-lg: 0 24px 48px -16px rgba(20, 30, 40, .22);
  --focus-ring: 0 0 0 3px var(--c-surface), 0 0 0 6px var(--c-accent);

  /* Movimiento */
  --t-fast: 150ms ease;
  --t-base: 250ms cubic-bezier(.2, .7, .3, 1);
}

/* 2. BASE ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: var(--lh-tight); margin: 0 0 var(--sp-4); color: var(--c-secondary); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
p { margin: 0 0 var(--sp-4); }
a { color: var(--c-primary); text-underline-offset: .18em; }
a:hover { color: var(--c-primary-strong); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }
ul, ol { padding-left: 1.25rem; }
strong { font-weight: 650; }

/* 3. UTILIDADES ------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--sp-4); top: -100px; z-index: 200; background: var(--c-secondary); color: #fff; padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-sm); }
.skip-link:focus { top: var(--sp-4); color: #fff; }
.is-hidden, [hidden] { display: none !important; }
.pending { background: #ffecec; color: #8a1c1c; border: 1px dashed #d77; padding: 0 .35em; border-radius: 4px; font-size: .92em; }

/* 4. BOTONES ---------------------------------------------------------------- */
.btn {
  --btn-bg: var(--c-primary); --btn-fg: var(--c-on-primary); --btn-bd: var(--c-primary);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 48px; padding: .75rem 1.4rem;
  font: 600 var(--fs-sm)/1.2 var(--font-body);
  color: var(--btn-fg); background: var(--btn-bg); border: 2px solid var(--btn-bd);
  border-radius: var(--radius-pill); text-decoration: none; cursor: pointer;
  transition: transform var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
}
.btn:hover { --btn-bg: var(--c-primary-strong); --btn-bd: var(--c-primary-strong); color: var(--btn-fg); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--secondary { --btn-bg: transparent; --btn-fg: var(--c-primary); --btn-bd: currentColor; }
.btn--secondary:hover { --btn-bg: var(--c-primary-soft); --btn-fg: var(--c-primary-strong); --btn-bd: var(--c-primary-strong); }
.btn--accent { --btn-bg: var(--c-accent); --btn-fg: #2a1d03; --btn-bd: var(--c-accent); }
.btn--accent:hover { --btn-bg: #cf9228; --btn-bd: #cf9228; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--c-primary-strong); --btn-bd: #fff; }
.btn--light:hover { --btn-bg: var(--c-accent-soft); --btn-bd: var(--c-accent-soft); }
.btn--sm { min-height: 40px; padding: .5rem 1rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* 5. HEADER / NAVEGACIÓN ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--c-bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
@supports not (background: color-mix(in srgb, red, blue)) { .site-header { background: rgba(251, 250, 247, .94); } }
.site-header.is-scrolled { border-bottom-color: var(--c-border); box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; gap: var(--sp-5); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--sp-3); text-decoration: none; color: var(--c-secondary); font-weight: 700; margin-right: auto; }
.brand:hover { color: var(--c-secondary); }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-heading); font-size: 1.15rem; }
.brand__tag { font-size: var(--fs-xs); font-weight: 500; color: var(--c-text-muted); }

.site-nav__list { display: flex; align-items: center; gap: var(--sp-1); list-style: none; margin: 0; padding: 0; }
.site-nav__link { display: block; padding: .5rem .75rem; border-radius: var(--radius-pill); color: var(--c-text); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; transition: background-color var(--t-fast), color var(--t-fast); }
.site-nav__link:hover, .site-nav__link.is-active { background: var(--c-primary-soft); color: var(--c-primary-strong); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--c-border); background: var(--c-surface); border-radius: 12px; cursor: pointer; color: var(--c-secondary); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform var(--t-base), opacity var(--t-fast); }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* 6. HERO ------------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) clamp(2.5rem, 2rem + 3vw, 4.5rem); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; max-width: 760px; aspect-ratio: 1; background: radial-gradient(closest-side, var(--c-primary-soft), transparent 70%); z-index: -1; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--sp-2); padding: .35rem .85rem; border-radius: var(--radius-pill); background: var(--c-accent-soft); color: #6b4708; font-size: var(--fs-xs); font-weight: 650; letter-spacing: .04em; text-transform: uppercase; margin-bottom: var(--sp-5); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c-accent); }
.hero__title { margin-bottom: var(--sp-5); }
.hero__title em { font-style: italic; color: var(--c-primary); }
.hero__lead { font-size: var(--fs-lg); color: var(--c-text-muted); max-width: 38em; margin-bottom: var(--sp-6); }
.hero__trust { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); margin: var(--sp-6) 0 0; padding: 0; list-style: none; font-size: var(--fs-sm); color: var(--c-text-muted); }
.hero__trust li { display: inline-flex; align-items: center; gap: var(--sp-2); }
.hero__trust svg { width: 18px; height: 18px; color: var(--c-primary); flex: none; }
.hero__media { position: relative; }
.hero__media svg { width: 100%; filter: drop-shadow(0 30px 40px rgba(20, 50, 40, .12)); }

/* 7. BANNER DESTACADO / AVISO LEGAL ---------------------------------------- */
.notice {
  display: flex; gap: var(--sp-4); align-items: flex-start;
  background: var(--c-warning-bg); border: 1px solid var(--c-warning-border); border-left-width: 6px;
  color: var(--c-warning-text); border-radius: var(--radius); padding: var(--sp-5);
}
.notice__icon { width: 28px; height: 28px; flex: none; color: #b07a12; margin-top: 2px; }
.notice__title { font-family: var(--font-body); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .06em; color: var(--c-warning-text); margin: 0 0 var(--sp-2); }
.notice p { margin: 0; font-size: var(--fs-sm); line-height: 1.6; }
.notice--compact { padding: var(--sp-4); }
.highlight-band { padding-block: var(--sp-5); }

/* 8. SECCIONES -------------------------------------------------------------- */
.section { padding-block: var(--section-y); }
.section--alt { background: var(--c-surface-alt); }
.section--dark { background: var(--c-secondary); color: #e8edf3; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__header { max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.section__header--center { margin-inline: auto; text-align: center; }
.section__kicker { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-primary); margin-bottom: var(--sp-3); }
.section--dark .section__kicker { color: var(--c-accent); }
.section__lead { font-size: var(--fs-lg); color: var(--c-text-muted); margin: 0; }
.section--dark .section__lead { color: #c6d0dc; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.split--reverse > :first-child { order: 2; }
.prose p:last-child { margin-bottom: 0; }
.checklist { list-style: none; padding: 0; margin: var(--sp-5) 0 0; display: grid; gap: var(--sp-3); }
.checklist li { position: relative; padding-left: 2rem; }
/* Iconos con máscara: toman el color de marca configurado */
.checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--c-primary-soft); }
.checklist li::after { content: ""; position: absolute; left: 0; top: .2em; width: 1.3rem; height: 1.3rem; background: var(--c-primary); -webkit-mask: var(--icon-check) center/70% no-repeat; mask: var(--icon-check) center/70% no-repeat; }
.section--dark .checklist li::before { background: rgba(255, 255, 255, .12); }
.section--dark .checklist li::after { background: var(--c-accent); }
:root {
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --icon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}

/* 9. TARJETAS --------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: var(--sp-5); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  padding: var(--sp-6); box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c-primary) 30%, var(--c-border)); }
.card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--c-primary-soft); color: var(--c-primary); margin-bottom: var(--sp-5); }
.card__icon svg { width: 26px; height: 26px; }
.card__title { font-size: 1.25rem; margin-bottom: var(--sp-3); }
.card p { color: var(--c-text-muted); font-size: var(--fs-sm); }
.card p:last-child { margin-bottom: 0; }
.card__tip { margin-top: auto; padding-top: var(--sp-4); border-top: 1px dashed var(--c-border); font-size: var(--fs-sm); color: var(--c-text); }
.card__tip strong { color: var(--c-primary); }

/* 10. PASOS ----------------------------------------------------------------- */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
.step { counter-increment: step; display: grid; grid-template-columns: auto 1fr; gap: var(--sp-5); align-items: start; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: var(--sp-5) var(--sp-6); }
.step::before { content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--c-primary); color: #fff; font: 700 1.1rem/1 var(--font-heading); }
.step__title { font-size: 1.2rem; margin-bottom: var(--sp-2); }
.step p { margin: 0; color: var(--c-text-muted); font-size: var(--fs-sm); }

/* 11. HERRAMIENTAS (calculadoras) ------------------------------------------ */
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.tool { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: var(--sp-6); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.tool__title { font-size: 1.3rem; margin-bottom: var(--sp-2); }
.tool__desc { color: var(--c-text-muted); font-size: var(--fs-sm); }
.field { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.field label { font-weight: 600; font-size: var(--fs-sm); }
.field__hint { font-size: var(--fs-xs); color: var(--c-text-muted); }
.input-wrap { position: relative; }
.input-wrap__suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--c-text-muted); font-weight: 600; pointer-events: none; }
.input { width: 100%; min-height: 48px; padding: .7rem 2.6rem .7rem .9rem; font: 500 1rem var(--font-body); color: var(--c-text); background: var(--c-bg); border: 1.5px solid var(--c-border); border-radius: 12px; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.input:hover { border-color: #c8c2b5; }
.input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px var(--c-primary-soft); }
.input[aria-invalid="true"] { border-color: #c0392b; }
.field__error { color: #b42318; font-size: var(--fs-xs); min-height: 1em; margin: 0; }
.result { margin-top: auto; background: var(--c-primary-soft); border-radius: var(--radius); padding: var(--sp-5); }
.result__rows { display: grid; gap: var(--sp-3); margin: 0; }
.result__row { display: flex; justify-content: space-between; gap: var(--sp-4); align-items: baseline; }
.result__row dt { font-size: var(--fs-sm); color: var(--c-text-muted); }
.result__row dd { margin: 0; font: 700 1.2rem var(--font-heading); color: var(--c-primary-strong); font-variant-numeric: tabular-nums; }
.result__bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; margin: var(--sp-4) 0 var(--sp-2); background: #fff; }
.result__bar span { transition: flex-basis var(--t-base); }
.result__note { font-size: var(--fs-xs); color: var(--c-text-muted); margin: var(--sp-3) 0 0; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* 12. TABLAS ---------------------------------------------------------------- */
.table-wrap { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.data-table caption { text-align: left; padding: var(--sp-4) var(--sp-5); font-size: var(--fs-xs); color: var(--c-text-muted); caption-side: bottom; border-top: 1px solid var(--c-border); }
.data-table th, .data-table td { padding: var(--sp-4) var(--sp-5); text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-border); }
.data-table thead th { background: var(--c-secondary); color: #fff; font-weight: 600; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; }
.data-table tbody tr:last-child td, .data-table tbody tr:last-child th { border-bottom: 0; }
.data-table tbody tr:nth-child(even) { background: #fcfbf8; }
.data-table tbody th { font-weight: 650; color: var(--c-secondary); width: 22%; }

/* 13. FAQ ------------------------------------------------------------------- */
.faq { display: grid; gap: var(--sp-3); }
.faq__item { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.faq__item[open] { border-color: color-mix(in srgb, var(--c-primary) 40%, var(--c-border)); box-shadow: var(--shadow-sm); }
.faq__q { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); padding: var(--sp-5); cursor: pointer; list-style: none; font-weight: 650; color: var(--c-secondary); border-radius: var(--radius); }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: ""; flex: none; width: 20px; height: 20px; margin-right: 4px; background: var(--c-primary); -webkit-mask: var(--icon-plus) center/contain no-repeat; mask: var(--icon-plus) center/contain no-repeat; transition: transform var(--t-base); }
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 var(--sp-5) var(--sp-5); color: var(--c-text-muted); }
.faq__item[open] .faq__a { animation: faq-in var(--t-base); }
.faq__a p:last-child { margin-bottom: 0; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* 14. CTA FINAL ------------------------------------------------------------- */
.cta-panel { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(2rem, 1.5rem + 3vw, 3.75rem); background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-strong) 100%); color: #e9f4ef; display: grid; grid-template-columns: 1.4fr auto; gap: var(--sp-6); align-items: center; }
.cta-panel::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; border: 50px solid rgba(255, 255, 255, .06); pointer-events: none; }
.cta-panel h2 { color: #fff; margin-bottom: var(--sp-3); }
.cta-panel p { margin: 0; color: #d3e6de; }

/* Recursos (enlaces externos) */
.resource-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--sp-4); }
.resource { display: flex; flex-direction: column; gap: var(--sp-1); height: 100%; padding: var(--sp-5); background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); text-decoration: none; color: var(--c-text); transition: border-color var(--t-fast), transform var(--t-fast); }
.resource:hover { border-color: var(--c-primary); transform: translateY(-2px); color: var(--c-text); }
.resource__name { font-weight: 700; color: var(--c-secondary); display: flex; align-items: center; gap: var(--sp-2); }
.resource__name svg { width: 14px; height: 14px; color: var(--c-primary); }
.resource__desc { font-size: var(--fs-sm); color: var(--c-text-muted); }
.resource__url { font-size: var(--fs-xs); color: var(--c-primary); word-break: break-all; }

/* 15. FOOTER ---------------------------------------------------------------- */
.site-footer { background: #151c28; color: #b9c3d0; padding-block: var(--sp-8) var(--sp-6); font-size: var(--fs-sm); }
.site-footer a { color: #e4eaf1; }
.site-footer a:hover { color: var(--c-accent); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--sp-7); margin-bottom: var(--sp-7); }
.footer-title { font-family: var(--font-body); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: var(--sp-4); }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.footer-brand { display: flex; align-items: center; gap: var(--sp-3); color: #fff; font: 700 1.2rem var(--font-heading); margin-bottom: var(--sp-4); }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: var(--sp-5); display: grid; gap: var(--sp-4); }
.footer-legal .notice { background: rgba(232, 181, 77, .08); border-color: rgba(232, 181, 77, .45); color: #f1e3c4; }
.footer-legal .notice__title { color: #f6d58f; }
.footer-legal .notice__icon { color: #e8b54d; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); color: #8592a3; font-size: var(--fs-xs); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: #e4eaf1; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.link-button:hover { color: var(--c-accent); }
.site-footer .pending { background: rgba(255, 120, 120, .12); color: #ffb4b4; border-color: rgba(255, 140, 140, .5); }

/* 16. MODAL Y BANNER DE COOKIES -------------------------------------------- */
.modal { border: 0; padding: 0; border-radius: var(--radius-lg); width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); box-shadow: var(--shadow-lg); color: var(--c-text); background: var(--c-surface); }
.modal::backdrop { background: rgba(15, 22, 32, .55); backdrop-filter: blur(3px); }
.modal__body { padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); overflow-y: auto; }
.modal__title { font-size: 1.5rem; }
.modal__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: flex-end; margin-top: var(--sp-5); }

.cookie-banner { position: fixed; left: var(--gutter); bottom: var(--gutter); z-index: 150; width: min(560px, calc(100vw - 2 * var(--gutter))); background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 26px; padding: clamp(1.25rem, 1rem + 1vw, 1.9rem); box-shadow: 0 24px 60px -18px rgba(15, 30, 35, .35), 0 4px 14px rgba(15, 30, 35, .08); animation: cookie-in .35s cubic-bezier(.2, .7, .3, 1); }
@keyframes cookie-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cookie-banner__head { display: flex; align-items: center; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.cookie-banner__icon { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary-strong); }
.cookie-banner__icon svg { width: 26px; height: 26px; }
.cookie-banner__title { font-family: var(--font-body); font-size: 1.3rem; font-weight: 750; color: var(--c-primary-strong); margin: 0; letter-spacing: -.01em; }
.cookie-banner__text, .cookie-banner p { font-size: 1.02rem; line-height: 1.7; color: var(--c-text-muted); margin: 0; }
.cookie-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-top: var(--sp-5); }
.cookie-banner__actions .btn { min-height: 58px; font-size: 1.02rem; font-weight: 700; }
.cookie-banner__actions .btn--secondary { --btn-fg: var(--c-text-muted); --btn-bd: var(--c-border); background: var(--c-surface); border-width: 1.5px; }
.cookie-banner__actions .btn--secondary:hover { --btn-fg: var(--c-text); --btn-bd: #c8c2b5; --btn-bg: var(--c-surface-alt); }
.cookie-banner__actions .btn:not(.btn--secondary) { box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--c-primary) 70%, transparent); }

/* Botón volver arriba */
.to-top { position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 90; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--c-secondary); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* Aparición al hacer scroll (solo si JS está activo) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* 17. RESPONSIVE ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-header__cta { display: none; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--c-surface); border-bottom: 1px solid var(--c-border); box-shadow: var(--shadow); padding: var(--sp-3) var(--gutter) var(--sp-5); display: none; }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav__link { padding: .85rem 1rem; border-radius: 12px; font-size: 1rem; }
  .site-nav__cta { display: block; margin-top: var(--sp-3); }
  .site-nav__cta .btn { width: 100%; }

  .hero__grid, .split, .tool-grid { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .hero__media { max-width: 460px; margin-inline: auto; }
  .cta-panel { grid-template-columns: 1fr; }
}
@media (min-width: 901px) { .site-nav__cta { display: none; } }

@media (max-width: 680px) {
  :root { --header-h: 62px; }
  .brand__tag { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .step { grid-template-columns: 1fr; gap: var(--sp-3); padding: var(--sp-5); }
  .step::before { width: 44px; height: 44px; font-size: 1rem; }
  .card { padding: var(--sp-5); }
  .notice { flex-direction: column; gap: var(--sp-3); padding: var(--sp-4); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-6); }

  /* Tablas → tarjetas apiladas en móvil */
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; width: 100%; }
  .data-table tbody tr { border-bottom: 1px solid var(--c-border); padding: var(--sp-4) var(--sp-4) var(--sp-3); }
  .data-table tbody tr:nth-child(even) { background: transparent; }
  .data-table tbody tr:last-child { border-bottom: 0; }
  .data-table tbody th { width: 100%; border: 0; padding: 0 0 var(--sp-2); font-size: 1rem; }
  .data-table td { border: 0; padding: var(--sp-1) 0; }
  .data-table td::before { content: attr(data-label); display: block; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--c-primary); }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; border-radius: 22px; }
  .cookie-banner__icon { width: 46px; height: 46px; }
  .cookie-banner__title { font-size: 1.15rem; }
  .cookie-banner__text { font-size: .96rem; }
  .cookie-banner__actions { gap: var(--sp-3); }
  .cookie-banner__actions .btn { min-height: 52px; padding-inline: .5rem; }
}

/* 18. MOVIMIENTO REDUCIDO --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Impresión: útil para guardar la guía */
@media print {
  .site-header, .to-top, .cookie-banner, .nav-toggle, .hero__media, .btn { display: none !important; }
  body { background: #fff; }
  .section { padding-block: 1.5rem; }
  .faq__item { break-inside: avoid; }
}
