/* =============================================================
   1. Tokens
   ============================================================= */
/* Tema OSCURO = predeterminado (el "principal") */
:root {
  --bg: #14171b;
  --surface: #1b1f24;
  --surface-2: #222730;
  --card-tint: #1c2126;
  --text: #e7eaed;
  --muted: #9aa4af;
  --accent: #3fb37c;
  --accent-2: #5cc593;
  --accent-soft: #1e2a24;
  --border: #2c323a;
  --header-bg: #101317;
  --header-text: #e7eaed;
  --danger: #e0685f;
  --line-contrib: #3fb37c;
  --line-interest: #d6b062;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -16px rgba(0, 0, 0, .5);
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Space Grotesk', var(--sans);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1rem, 3vw, 2rem);
}

/* Tema CLARO = fondo blanco + contraste verde */
:root[data-theme="light"] {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f2f4f5;
  --card-tint: #f3faf6;
  --text: #1d2328;
  --muted: #5f6a75;
  --accent: #1f9d63;
  --accent-2: #167a4b;
  --accent-soft: #e7f5ed;
  --border: #e2e6e9;
  --header-bg: #171b20;
  --header-text: #f3f4f5;
  --danger: #d1544b;
  --line-contrib: #1f9d63;
  --line-interest: #c99a3f;
  --shadow: 0 1px 2px rgba(20, 26, 32, .04), 0 12px 30px -16px rgba(20, 26, 32, .16);
}

/* En claro, las descripciones orientativas ganan contraste verde */
:root[data-theme="light"] .seo-text h2,
:root[data-theme="light"] .faq-section h2,
:root[data-theme="light"] .steps + *,
:root[data-theme="light"] section > h2,
:root[data-theme="light"] .step h3 {
  color: var(--accent-2);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; line-height: 1.1; letter-spacing: -0.01em; }
::selection { background: var(--accent-soft); color: var(--accent-2); }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--surface); color: var(--text);
  z-index: 9999; border-radius: var(--radius-sm); font-weight: 600;
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 700; margin-bottom: .75rem; }
h3 { font-size: 1.05rem; font-weight: 600; }
.subtitle { color: var(--muted); font-size: clamp(1rem, 2vw, 1.1rem); margin-top: .5rem; max-width: 60ch; }
.muted { color: var(--muted); }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 1rem;
  transition: transform .2s var(--ease-out), background .2s var(--ease-out);
}
.btn-primary { background: var(--accent); color: #06170d; }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }

.field {
  display: flex; flex-direction: column; gap: .4rem;
}
.field label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.field .input-wrap {
  display: flex; align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding-inline: .8rem;
  transition: border-color .2s var(--ease-out);
}
.field .input-wrap:focus-within { border-color: var(--accent); }
.field input, .field select {
  width: 100%; border: 0; background: transparent; color: var(--text);
  font: inherit; font-size: 1rem; padding-block: .7rem;
}
.field input:focus, .field select:focus { outline: none; }
.field .unit { color: var(--muted); font-size: .9rem; white-space: nowrap; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ad-slot {
  min-height: 90px;
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
/* Huecos de anuncios ocultos hasta activar AdSense.
   TODO (propietario): al pegar el código de AdSense, borra esta regla. */
.ad-slot { display: none; }

/* =============================================================
   6. Sections
   ============================================================= */
.site-header {
  background: var(--header-bg);
  color: var(--header-text);
  position: relative;
  z-index: 50;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1140px;
  padding-block: 1rem;
}
.brand { display: flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--header-text); }
.brand svg { color: var(--accent); }
.site-header .muted { color: rgba(255, 255, 255, .55); }

.header-actions { display: flex; align-items: center; gap: .5rem; }

/* Menú de calculadoras (escritorio: en línea; móvil: desplegable con ☰) */
.main-nav { display: flex; align-items: center; gap: .15rem; margin-left: auto; margin-right: .75rem; }
.main-nav a {
  padding: .45rem .6rem; border-radius: 999px;
  font-size: .88rem; font-weight: 500; white-space: nowrap;
  color: rgba(255, 255, 255, .68);
  transition: color .2s var(--ease-out), background .2s var(--ease-out);
}
.main-nav a:hover { color: var(--header-text); background: rgba(255, 255, 255, .08); }
.main-nav a[aria-current="page"] { color: var(--accent); background: rgba(255, 255, 255, .07); }

.nav-toggle { display: none; }

@media (max-width: 1000px) {
  .nav-toggle {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--header-text);
    border: 1px solid rgba(255, 255, 255, .18);
  }
  .nav-toggle svg { width: 20px; height: 20px; }
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .15rem;
    margin: 0; padding: .5rem var(--gutter) 1rem;
    background: var(--header-bg);
    border-top: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .6);
  }
  .site-header.nav-open .main-nav { display: flex; }
  .main-nav a { padding: .8rem .9rem; border-radius: var(--radius-sm); font-size: 1rem; }
}

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--header-text);
  border: 1px solid rgba(255, 255, 255, .18);
  transition: background .2s var(--ease-out), border-color .2s var(--ease-out);
}
.theme-toggle:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.hero { padding-block: clamp(1.5rem, 4vw, 2.5rem) 1rem; }

.tool-section { padding-bottom: 1rem; }

.tool-card { padding: clamp(1.25rem, 3vw, 2rem); background: var(--card-tint); }

.mode-hint {
  font-size: .78rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: .5rem;
}
.mode-switch {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px;
  gap: 5px;
  margin-bottom: 1.4rem;
  max-width: 100%;
}
.mode-btn {
  padding: .62rem 1.25rem;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  color: var(--muted);
  white-space: nowrap;
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.mode-btn:hover { color: var(--text); }
.mode-btn.is-active {
  background: var(--accent); color: #06170d;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
}

.tool-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.25rem;
}
.tool-form .field.full { grid-column: 1 / -1; }

/* Campos según el modo */
.tool-form .field[data-show="goal"] { display: none; }
.tool-form[data-mode="goal"] .field[data-show="goal"] { display: flex; }
.tool-form[data-mode="goal"] .field[data-show="forward"] { display: none; }

/* Banner del modo objetivo */
.goal-banner[hidden] { display: none; }
.goal-banner {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem;
  padding: 1rem 1.25rem; margin-bottom: 1.25rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
}
.goal-banner .gb-label { color: var(--text); font-size: .95rem; }
.goal-banner .gb-value { font-family: var(--display); font-weight: 700; font-size: clamp(1.2rem, 3vw, 1.6rem); color: var(--accent-2); }

/* Interruptor "dinero de hoy" — destacado como switch con color de contraste */
.real-toggle {
  display: inline-flex; align-items: center; gap: .8rem;
  margin-bottom: 1.25rem;
  padding: .7rem 1.05rem;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  font-size: .95rem; color: var(--text); font-weight: 500;
  cursor: pointer;
  transition: filter .2s var(--ease-out);
}
.real-toggle:hover { filter: brightness(1.03); }
.real-toggle strong { color: var(--accent-2); }
.real-toggle .switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.real-toggle .switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.real-toggle .track { position: absolute; inset: 0; background: var(--border); border-radius: 999px; transition: background .2s var(--ease-out); }
.real-toggle .track::before {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; background: #fff; border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,.3);
  transition: transform .2s var(--ease-out);
}
.real-toggle input:checked + .track { background: var(--accent); }
.real-toggle input:checked + .track::before { transform: translateX(20px); }

/* Pista bajo un campo (p. ej. descripción del objetivo) */
.field-hint { font-size: .78rem; color: var(--muted); margin-top: .15rem; }

/* Botones de rentabilidad histórica preseleccionada (p. ej. S&P 500) */
.preset-returns { margin-bottom: 1.25rem; }
.preset-returns .pr-label { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .5rem; }
.preset-returns .pr-options { display: flex; flex-wrap: wrap; gap: .6rem; }
.sp-btn {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: .1rem;
  padding: .55rem .9rem; border-radius: 10px;
  background: var(--surface); border: 1.5px solid var(--border);
  cursor: pointer;
  transition: border-color .2s var(--ease-out), background .2s var(--ease-out);
}
.sp-btn:hover { border-color: var(--accent); }
.sp-btn.is-active { border-color: var(--accent); background: var(--accent-soft); }
.sp-btn .pr-years { font-size: .78rem; color: var(--muted); font-weight: 600; }
.sp-btn .pr-rate { font-family: var(--display); font-weight: 700; color: var(--accent-2); font-size: 1.05rem; }
.preset-note { font-size: .78rem; color: var(--muted); margin-top: .5rem; }

/* Calculadora de depósitos */
.results-grid.results-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .results-grid.results-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .results-grid.results-grid-4 { grid-template-columns: 1fr; } }
.field[hidden] { display: none; }
.result-tile.is-tax .value { color: var(--danger); }
.dep-compare-panel { margin: 1.25rem 0 0; }
.dep-facts { list-style: none; padding: 0; margin-top: 1rem; display: grid; gap: .35rem; font-size: .92rem; color: var(--muted); }
.dep-facts li::before { content: "•"; color: var(--accent); margin-right: .5rem; }
.dep-facts strong { color: var(--text); }
.dep-facts strong.is-negative { color: var(--danger); }

/* Barra de progreso hacia el número FIRE */
.fire-progress { height: 10px; margin-top: 1rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.fire-progress span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .4s var(--ease-out); }

/* Aviso de "ejemplo ya calculado" sobre el formulario */
.example-note { font-size: .82rem; color: var(--muted); margin-bottom: 1rem; }

/* Tabla comparativa de aportaciones (página "invertir cada mes") */
.compare-block { margin-top: 1.5rem; }
.compare-title { font-size: 1rem; }
.compare-sub { font-size: .85rem; margin-top: .2rem; }
.compare-block .table-wrap { margin-top: .5rem; }
.compare-table tr.is-current td { background: var(--accent-soft); font-weight: 600; }
.compare-table tr.is-current td:last-child { color: var(--accent-2); }

/* Panel plegable "Ajustar por inflación" (páginas que no son la de inflación) */
.infl-panel {
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.infl-panel > summary {
  cursor: pointer; list-style: none;
  padding: .7rem 1rem;
  font-weight: 600; font-size: .9rem; color: var(--muted);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.infl-panel > summary::-webkit-details-marker { display: none; }
.infl-panel > summary::after { content: "+"; color: var(--accent); font-size: 1.2rem; line-height: 1; }
.infl-panel[open] > summary::after { content: "\2212"; }
.infl-panel-body { padding: 0 1rem 1rem; display: flex; flex-direction: column; gap: .9rem; }
.infl-panel-body .infl-inline { max-width: 240px; }
.infl-panel-body .real-toggle { margin-bottom: 0; }

.field .input-wrap { background: var(--surface); }

.calc-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.25rem;
}
.calc-btn { min-width: 160px; }

.calc-hint { margin-top: .75rem; text-align: right; font-size: .85rem; color: var(--danger); }
.calc-hint[hidden] { display: none; }
@media (max-width: 719px) { .calc-hint { text-align: center; } }

@media (max-width: 719px) {
  .calc-row { justify-content: stretch; }
  .calc-btn { width: 100%; }
}

.results.is-hidden { display: none; }

.results {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}
.result-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}
.result-tile .label { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.result-tile .value { font-family: var(--display); font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 700; margin-top: .25rem; }
.result-tile.is-total .value { color: var(--accent-2); }
.result-tile.is-interest .value { color: var(--line-interest); }

.chart-wrap { margin-top: 1.25rem; position: relative; }
.chart-legend { display: flex; gap: 1.25rem; margin-bottom: .5rem; font-size: .85rem; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart-legend .dot-contrib { background: var(--line-contrib); }
.chart-legend .dot-interest { background: var(--line-interest); }
#chart { width: 100%; height: 220px; display: block; cursor: crosshair; touch-action: none; }

.chart-tooltip {
  position: absolute;
  left: 0; top: 0;
  pointer-events: none;
  z-index: 6;
  min-width: 150px;
  padding: .55rem .7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-size: .78rem;
  transform: translate(-50%, calc(-100% - 12px));
  opacity: 0;
  transition: opacity .12s var(--ease-out);
}
.chart-tooltip.is-visible { opacity: 1; }
.chart-tooltip .tt-year { font-family: var(--display); font-weight: 700; font-size: .82rem; margin-bottom: .35rem; }
.chart-tooltip .tt-row { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; line-height: 1.5; }
.chart-tooltip .tt-label { color: var(--muted); }
.chart-tooltip .tt-invested { color: var(--line-interest); font-weight: 600; }
.chart-tooltip .tt-saved { color: var(--line-contrib); font-weight: 600; }
.chart-tooltip .tt-gain { color: var(--accent-2); font-weight: 700; }
.chart-tooltip .tt-sep { height: 1px; background: var(--border); margin: .35rem 0; }

.table-wrap { margin-top: 1.25rem; overflow-x: auto; }
.table-wrap .row-extra { display: none; }
.table-wrap.show-all-rows .row-extra { display: table-row; }

.table-toggle {
  display: block; margin: .9rem auto 0;
  padding: .55rem 1.3rem; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); font-weight: 600; font-size: .9rem;
  transition: border-color .2s var(--ease-out), background .2s var(--ease-out);
}
.table-toggle:hover { border-color: var(--accent); }
table.breakdown { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.breakdown th, table.breakdown td { text-align: right; padding: .55rem .6rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.breakdown th:first-child, table.breakdown td:first-child { text-align: left; }
table.breakdown thead th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; }

.privacy-badge {
  display: flex; align-items: flex-start; gap: .6rem;
  margin-top: 1rem; padding: .85rem 1rem;
  background: var(--accent-soft); border-radius: var(--radius-sm);
  font-size: .88rem; color: var(--text);
}
.privacy-badge svg { flex-shrink: 0; color: var(--accent-2); margin-top: .1rem; }
.limits-note { margin-top: .5rem; font-size: .82rem; color: var(--muted); }

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  margin-block: 1.5rem;
}
.step { text-align: left; }
.step .num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--display); margin-bottom: .6rem;
}

.breadcrumb {
  padding-top: 1rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  font-size: .82rem; color: var(--muted);
}
.breadcrumb a { color: var(--accent-2); }
.breadcrumb a:hover { text-decoration: underline; }

.related-tools { padding-block: 1.5rem; }
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem; margin-top: 1rem;
}
.related-card {
  display: flex; flex-direction: column; gap: .35rem;
  padding: 1rem 1.15rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.related-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.related-card strong { color: var(--text); }
.related-card .muted { font-size: .85rem; }

.seo-text { padding-block: 1.5rem; }
.seo-text p { margin-bottom: 1rem; max-width: 70ch; color: var(--text); }
.seo-text p:last-child { margin-bottom: 0; }
.seo-text a, .faq-item a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
.seo-text a:hover, .faq-item a:hover { text-decoration-thickness: 2px; }

.faq-section { padding-block: 1.5rem; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding-block: .9rem;
}
.faq-item summary {
  cursor: pointer; font-weight: 600; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem; color: var(--accent); flex-shrink: 0;
  transition: transform .2s var(--ease-out);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: .6rem; color: var(--muted); max-width: 70ch; }

.disclaimer {
  margin-top: 1rem; padding: .85rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: .82rem; color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 1.5rem;
  margin-top: 2rem;
}
.site-footer .container {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  align-items: center; justify-content: space-between;
  font-size: .85rem; color: var(--muted);
}
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a:hover { color: var(--accent-2); }

/* =============================================================
   7. Effects
   ============================================================= */
.card, .result-tile { transition: box-shadow .2s var(--ease-out); }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (max-width: 719px) {
  .tool-form { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .mode-switch { display: flex; width: 100%; }
  .mode-btn { flex: 1; text-align: center; padding-inline: .5rem; font-size: .82rem; }
}

@media (min-width: 720px) {
  .brand span.tagline { display: inline; }
}

/* =============================================================
   8b. Banner de cookies
   ============================================================= */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px -14px rgba(0, 0, 0, .35);
  padding: 1rem var(--gutter);
}
.cookie-inner {
  max-width: 960px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 1.5rem; flex-wrap: wrap;
}
.cookie-inner p { flex: 1 1 320px; margin: 0; font-size: .85rem; color: var(--muted); }
.cookie-inner a { color: var(--accent-2); text-decoration: underline; }
.cookie-actions { display: flex; gap: .6rem; flex-shrink: 0; }
.cookie-btn {
  padding: .55rem 1.2rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .9rem; border: 1px solid var(--border);
  transition: background .2s var(--ease-out), border-color .2s var(--ease-out);
}
.cookie-reject { background: var(--surface-2); color: var(--text); }
.cookie-reject:hover { border-color: var(--muted); }
.cookie-accept { background: var(--accent); color: #06170d; border-color: var(--accent); }
.cookie-accept:hover { background: var(--accent-2); border-color: var(--accent-2); }
@media (max-width: 600px) {
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; }
}

/* =============================================================
   9. Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-primary:hover { transform: none; }
}
