/* ============================================================================
   MiCálculoLaboral MX — Design System
   ----------------------------------------------------------------------------
   Cuando AdSense sea aprobado, el código de anuncios se pega DENTRO de cada
   <div class="ad-slot" data-ad-slot="..."> en el HTML — no se toca este CSS.
   Los contenedores .ad-slot ya reservan min-height para evitar layout shift.
   ============================================================================ */

/* =============================================================
   1. TOKENS
   ============================================================= */
:root {
  color-scheme: light;

  /* Paleta — modo claro */
  --bg: #FAF9F5;
  --surface: #FFFFFF;
  --surface-alt: #F1F5F3;
  --text: #142523;
  --text-muted: #4C5F5A;
  --border: rgba(11, 79, 74, 0.14);
  --border-strong: rgba(11, 79, 74, 0.28);

  --primary: #0B4F4A;
  --primary-dark: #073634;
  --primary-light: #E4F1EE;
  --primary-contrast: #FFFFFF;

  --accent: #DD7E14;
  --accent-dark: #B7660D;
  --accent-light: #FCEADA;
  --accent-contrast: #241000;

  --success: #1E8E5A;
  --success-light: #E4F5EC;
  --danger: #C0392B;
  --danger-light: #FBEAE8;

  --focus-ring: #1789CE;

  /* Sombras multicapa suaves */
  --shadow-sm: 0 1px 2px rgba(10, 30, 28, 0.06), 0 1px 1px rgba(10, 30, 28, 0.04);
  --shadow-md: 0 4px 10px rgba(10, 30, 28, 0.08), 0 2px 4px rgba(10, 30, 28, 0.05);
  --shadow-lg: 0 16px 32px rgba(10, 30, 28, 0.12), 0 4px 10px rgba(10, 30, 28, 0.06);

  /* Tipografía */
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --fs-xs:   clamp(0.76rem, 0.72rem + 0.18vw, 0.84rem);
  --fs-sm:   clamp(0.86rem, 0.82rem + 0.2vw, 0.94rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --fs-md:   clamp(1.12rem, 1.05rem + 0.35vw, 1.28rem);
  --fs-lg:   clamp(1.32rem, 1.2rem + 0.6vw, 1.64rem);
  --fs-xl:   clamp(1.66rem, 1.4rem + 1.2vw, 2.3rem);
  --fs-2xl:  clamp(2.1rem, 1.7rem + 1.8vw, 3.1rem);
  --fs-3xl:  clamp(2.5rem, 2rem + 2.6vw, 3.9rem);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --container-w: 1180px;
  --container-w-narrow: 780px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0C1917;
    --surface: #12211F;
    --surface-alt: #172B28;
    --text: #EEF4F2;
    --text-muted: #A9C0BA;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.18);

    --primary: #4FC1B4;
    --primary-dark: #2F958A;
    --primary-light: #163430;
    --primary-contrast: #06201D;

    --accent: #F2A155;
    --accent-dark: #D9873A;
    --accent-light: #2E2013;
    --accent-contrast: #1C1000;

    --success: #4BC286;
    --success-light: #123424;
    --danger: #E8776A;
    --danger-light: #3A1815;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.45);
  }
}

/* =============================================================
   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(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overflow-wrap: break-word;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
p { text-wrap: pretty; }
ul, ol { padding-left: 1.3em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-wrap: balance;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--accent); color: var(--accent-contrast); }

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

/* =============================================================
   3. UTILIDADES
   ============================================================= */
.skip-link {
  position: fixed;
  top: -100px; left: 1rem;
  padding: 0.7rem 1.1rem;
  background: var(--primary);
  color: var(--primary-contrast);
  z-index: 9999;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

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

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

.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-alt { background: var(--surface-alt); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.stack { display: flex; flex-direction: column; gap: 1rem; }
.cluster { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* =============================================================
   4. TIPOGRAFÍA
   ============================================================= */
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); margin-top: 2.2em; }
h2:first-child { margin-top: 0; }
h3 { font-size: var(--fs-lg); margin-top: 1.6em; }
h3:first-child { margin-top: 0; }
h4 { font-size: var(--fs-md); margin-top: 1.2em; }

.prose { max-width: 74ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { border-top: 1px solid var(--border); padding-top: 1.4em; }
.prose h2:first-child { border-top: 0; padding-top: 0; }
.prose ul, .prose ol { margin-top: 0.6em; }
.prose li + li, .case-card li + li { margin-top: 0.35em; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--text); }

.lead {
  font-size: var(--fs-md);
  color: var(--text-muted);
}

/* =============================================================
   5. COMPONENTES
   ============================================================= */

/* --- Botones --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: var(--fs-sm);
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), background 0.18s var(--ease-out);
  text-decoration: none !important;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover, .btn-primary:focus-visible { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border-strong);
}
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--primary-light); border-color: var(--primary); }
.btn-block { width: 100%; }

/* --- Tarjetas --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* --- Header / nav --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.logo { display: inline-flex; align-items: center; gap: 0.6em; }
.logo:hover { text-decoration: none; }
.logo__mark { width: 34px; height: 34px; flex-shrink: 0; }
.logo__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.logo__word > span:not(.logo__badge) { color: var(--primary); }
.logo__badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--primary-contrast);
  background: var(--primary);
  padding: 0.1em 0.42em;
  border-radius: 5px;
  vertical-align: 2px;
  margin-left: 0.35em;
  letter-spacing: 0.03em;
}

.main-nav { display: none; }
.main-nav ul { display: flex; gap: 1.6rem; list-style: none; padding: 0; }
.main-nav a {
  font-weight: 600; font-size: var(--fs-sm); color: var(--text-muted);
  padding: 0.4em 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--primary); text-decoration: none; border-color: var(--accent); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
}
.nav-toggle:hover { background: var(--surface-alt); }
.nav-toggle svg { width: 22px; height: 22px; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  padding: 0.75rem var(--gutter) 1.25rem;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.mobile-nav a {
  display: block; padding: 0.7em 0.2em; font-weight: 600; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover { color: var(--primary); text-decoration: none; }

/* --- Breadcrumbs --- */
.breadcrumbs {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  padding-block: 0.9rem;
}
.breadcrumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35em; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 0.35em; opacity: 0.6; }
.breadcrumbs a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.breadcrumbs a:hover { color: var(--primary); }

/* --- Hero --- */
.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(2.4rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(60% 55% at 82% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(70% 60% at 10% 10%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 70%),
    var(--bg);
}
.hero__blob {
  position: absolute;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.hero__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.hero__copy { max-width: 640px; }
.hero h1 { font-size: var(--fs-3xl); }
.hero .lead { margin-top: 0.9rem; max-width: 56ch; }
.hero__badges { margin-top: 1.6rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-size: var(--fs-xs); font-weight: 700;
  padding: 0.45em 0.85em;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.badge svg { width: 14px; height: 14px; color: var(--success); flex-shrink: 0; }

/* --- Tarjeta de ejemplo del hero (rellena la columna derecha en desktop) --- */
.hero__example {
  display: none;
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow-lg);
}
.hero__example-eyebrow {
  font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-muted);
}
.hero__example-sub { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 0.3rem; }
.hero__example-value {
  font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 800;
  color: var(--accent-dark); margin-top: 0.9rem;
}
@media (prefers-color-scheme: dark) { .hero__example-value { color: var(--accent); } }
.hero__example-list { list-style: none; padding: 0; margin-top: 1rem; }
.hero__example-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.55em 0; border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
}
.hero__example-list li span:first-child { color: var(--text-muted); }
.hero__example-list li span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }

/* --- Aviso / disclaimer --- */
.notice {
  display: flex; gap: 0.75rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--surface-alt);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.notice svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--primary); margin-top: 0.1em; }
.notice strong { color: var(--text); }
.notice--result {
  margin-top: 1.25rem;
  font-size: var(--fs-xs);
  padding: 0.75rem 1rem;
}

/* --- Tabs (index) --- */
.tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tab {
  min-height: 44px;
  padding: 0.6em 1.3em;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: var(--fs-sm);
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  transition: all 0.18s var(--ease-out);
}
.tab:hover { border-color: var(--primary); color: var(--primary); }
.tab[aria-selected="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-contrast);
  box-shadow: var(--shadow-sm);
}
.tabpanel { display: none; }
.tabpanel.is-active { display: block; animation: fadeIn 0.35s var(--ease-out); }

/* --- Calculadora (tool card) --- */
.calc {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
.calc__form, .calc__results {
  padding: clamp(1.3rem, 3vw, 2rem);
}
[data-results] { scroll-margin-top: 84px; }
.calc__title { font-size: var(--fs-lg); }
.calc__subtitle { color: var(--text-muted); font-size: var(--fs-sm); margin-top: 0.3rem; }

.field { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 1.2rem; }
.calc__form > .field:first-of-type,
.calc__form > .field-row:first-of-type { margin-top: 1.4rem; }
.field label { font-weight: 700; font-size: var(--fs-sm); }
.field .hint { font-size: var(--fs-xs); color: var(--text-muted); }

.mensual-inline {
  display: inline-flex; align-items: center; gap: 0.4em;
  margin-top: 0.4em;
}
.mensual-inline input {
  width: 130px;
  min-height: 36px;
  font-size: 16px;
  padding: 0.3em 0.6em;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
}
.mensual-inline button {
  font-weight: 700;
  font-size: var(--fs-xs);
  min-height: 36px;
  padding: 0 0.7em;
}
.mensual-apply { color: var(--primary); text-decoration: underline; }
.mensual-cancel { color: var(--text-muted); font-size: 1.1rem; line-height: 1; padding: 0 0.4em; }
.field input, .field select {
  min-height: 48px;
  font-size: 16px;
  font-family: var(--font-body);
  padding: 0.6em 0.9em;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.field input:hover, .field select:hover { border-color: var(--primary); }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}

/* --- Selector de fecha: día / mes / año separados --- */
.date-select {
  display: grid;
  grid-template-columns: 0.75fr 1.35fr 0.9fr;
  gap: 0.5rem;
}
.date-select select { padding-inline: 0.5em; min-width: 0; }

.field-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 540px) {
  .field-row .field label { min-height: 50px; display: flex; align-items: flex-end; }
}
.field-row .field { min-width: 0; }
.field-row .field input { min-width: 0; }
@media (min-width: 540px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

.calc__submit { margin-top: 1.6rem; }

.results-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 0.9rem; padding: 3rem 1.5rem; color: var(--text-muted);
  min-height: 320px;
}
.results-empty[hidden] { display: none; }
.results-empty svg { width: 56px; height: 56px; opacity: 0.4; }

.result-list { list-style: none; padding: 0; display: flex; flex-direction: column; }
.result-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.7em 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm);
}
.result-list li:first-child { margin-top: 0; }
.result-list li span:first-child { color: var(--text-muted); }
.result-list li span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.result-list li.is-note { font-size: var(--fs-xs); color: var(--text-muted); padding-top: 0.3em; }

.result-hero {
  text-align: center;
  padding: 1.4rem 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--accent-light), transparent);
  border: 1px solid var(--border);
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateY(6px);
}
.result-hero.is-visible { animation: resultIn 0.5s var(--ease-out) forwards; }
.result-hero__label { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.result-hero__value { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 800; color: var(--accent-dark); margin-top: 0.2rem; }

@keyframes resultIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.field-error {
  font-size: var(--fs-xs);
  color: var(--danger);
  display: none;
}
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.field.has-error .field-error { display: block; }

/* --- Slots de anuncios --- */
.ad-slot {
  display: flex; align-items: center; justify-content: center;
  min-height: 100px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-block: clamp(1.5rem, 4vw, 2.5rem);
}
.ad-horizontal { width: 100%; min-height: 100px; }

/* --- FAQ --- */
.faq-list { display: flex; flex-direction: column; gap: 0.7rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.2rem;
  font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3em;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__body { padding: 0 1.2rem 1.1rem; color: var(--text-muted); }

/* --- Casos / escenarios --- */
.case-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.case-card {
  padding: 1.2rem;
  border-radius: var(--radius-md);
}
.case-card h4 { margin-top: 0; font-size: var(--fs-base); color: var(--primary-dark); }
@media (prefers-color-scheme: dark) { .case-card h4 { color: var(--primary); } }
.case-card p { margin-top: 0.5rem; font-size: var(--fs-sm); color: var(--text-muted); }

/* --- Tools grid (más herramientas) --- */
.tool-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.tool-card {
  display: flex; flex-direction: column; gap: 0.6rem;
  padding: 1.3rem;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), border-color 0.18s;
}
.tool-card:hover, .tool-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); text-decoration: none; }
.tool-card__icon { width: 32px; height: 32px; color: var(--primary); }
.tool-card__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-base); color: var(--text); }
.tool-card__desc { font-size: var(--fs-sm); color: var(--text-muted); }

/* --- Guías list --- */
.guide-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.guide-card { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; }
.guide-card__eyebrow { font-size: var(--fs-xs); font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: 0.04em; }

/* --- Tabla vacaciones --- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }
table.data-table { min-width: 480px; }
.data-table th, .data-table td {
  padding: 0.7em 1em;
  text-align: left;
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--border);
}
.data-table th { background: var(--surface-alt); font-weight: 700; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td:nth-child(2), .data-table th:nth-child(2) { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--primary-dark); }
@media (prefers-color-scheme: dark) { .data-table td:nth-child(2), .data-table th:nth-child(2) { color: var(--primary); } }

/* --- Footer --- */
.site-footer {
  background: var(--primary-dark);
  color: color-mix(in srgb, white 88%, var(--primary-dark));
  padding-block: clamp(2.5rem, 6vw, 4rem) 1.6rem;
  margin-top: clamp(3rem, 8vw, 5rem);
}
.site-footer a { color: #fff; opacity: 0.85; }
.site-footer a:hover { opacity: 1; }
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
.footer-brand .logo__word, .footer-brand .logo__word span { color: #fff; }
.footer-brand p { margin-top: 0.9rem; font-size: var(--fs-sm); opacity: 0.78; max-width: 42ch; }
.footer-col h5 { font-family: var(--font-display); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.7; margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; font-size: var(--fs-sm); }
.footer-disclaimer {
  margin-top: 2.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: var(--fs-xs);
  opacity: 0.68;
  max-width: 78ch;
}
.footer-bottom {
  margin-top: 1.6rem;
  font-size: var(--fs-xs);
  opacity: 0.6;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; justify-content: space-between;
}

/* --- 404 --- */
.error-page { text-align: center; padding-block: clamp(3rem, 10vw, 6rem); }
.error-page svg { width: 120px; height: 120px; margin-inline: auto 1.5rem; color: var(--primary); }

/* =============================================================
   6. RESPONSIVE
   ============================================================= */
@media (min-width: 640px) {
  .case-grid { grid-template-columns: 1fr 1fr; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .guide-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 860px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }

  .hero__grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
  .hero__example { display: block; }

  .calc { grid-template-columns: 1fr 1fr; }
  .calc__results { position: sticky; top: 88px; }
}

@media (min-width: 1100px) {
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .guide-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================================
   7. REDUCIR MOVIMIENTO
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
