/* =============================================================
   Calcula Salud — hoja de estilos única
   1. Tokens  2. Reset  3. Utilidades  4. Tipografía  5. Componentes
   6. Secciones  7. Efectos  8. Responsive  9. Reduced-motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --blue-700: #14539c;
  --blue-600: #1c6fd8;
  --blue-500: #3a86e0;
  --blue-50:  #eaf3fd;
  --teal-700: #0b524d;
  --teal-600: #0f6f68;
  --teal-500: #16948b;
  --teal-50:  #eef7f6;
  --ink-900:  #1a2229;
  --ink-700:  #333d47;
  --ink-500:  #5b6b74;
  --ink-300:  #8f9da5;
  --line:     #e2e8ea;
  --line-soft:#edf1f2;
  --bg:       #f6f9fa;
  --surface:  #ffffff;
  --amber-50: #fff7e6;
  --amber-500:#c8860b;
  --amber-700:#8a5c07;
  --red-50:   #fdeceb;
  --red-500:  #c0392b;
  --green-50: #eaf8f1;
  --green-600:#1f8a5f;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(20,30,40,.06), 0 1px 1px rgba(20,30,40,.04);
  --shadow-md: 0 8px 24px rgba(20,40,50,.09), 0 2px 6px rgba(20,40,50,.06);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 68px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
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 { text-wrap: balance; line-height: 1.15; color: var(--ink-900); font-weight: 700; }
ul, ol { padding-left: 1.25em; }
::selection { background: var(--teal-50); color: var(--teal-700); }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink-900); color: #fff;
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilidades
   ============================================================= */
.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 1.15rem; }
.container--narrow { max-width: 780px; }
.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;
}
.stack { display: flex; flex-direction: column; }
.section { padding-block: clamp(2.2rem, 5vw, 4rem); }
.section--tight { padding-block: clamp(1.4rem, 3vw, 2.2rem); }
.text-center { text-align: center; }
.text-muted { color: var(--ink-500); }
.mt-0 { margin-top: 0; }

/* =============================================================
   4. Tipografía
   ============================================================= */
h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -0.01em; margin-bottom: .6rem; }
h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.lede { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--ink-500); max-width: 62ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--teal-600); margin-bottom: .5rem;
}
.prose { max-width: 74ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose p, .prose ul, .prose ol { margin-block: .85rem; color: var(--ink-700); }
.prose li { margin-block: .3rem; }
.prose strong { color: var(--ink-900); }

/* =============================================================
   5. Componentes
   ============================================================= */

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.3rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .98rem; line-height: 1;
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out), background-color .15s var(--ease-out), border-color .15s var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-700); }
.btn-secondary { background: var(--surface); color: var(--ink-700); border: 1.5px solid var(--line); }
.btn-secondary:hover { border-color: var(--ink-300); }
.btn-ghost { background: transparent; color: var(--blue-600); padding-inline: .4rem; }
.btn-ghost:hover { text-decoration: underline; }
.btn-block { width: 100%; }
.btn-lg { padding: 1rem 1.5rem; font-size: 1.05rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn svg { width: 1.1em; height: 1.1em; flex-shrink: 0; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(246,249,250,.9);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--line);
  height: var(--nav-h);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: var(--bg); }
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.12rem; color: var(--ink-900); }
.brand__mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--teal-600), var(--blue-600));
  display: grid; place-items: center; color: #fff; flex-shrink: 0;
}
.brand__mark svg { width: 19px; height: 19px; }

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; align-items: center; gap: 1.6rem; list-style: none; padding: 0; }
.nav-desktop a { font-weight: 500; font-size: .95rem; color: var(--ink-700); padding-block: .3rem; border-bottom: 2px solid transparent; }
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: var(--teal-700); border-bottom-color: var(--teal-600); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--surface);
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle:not([aria-expanded="true"]) .icon-close { display: none; }

.nav-mobile {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 490;
  background: var(--surface); overflow-y: auto;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: transform .2s var(--ease-out), opacity .2s var(--ease-out);
}
.nav-mobile.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.nav-mobile ul { list-style: none; padding: 1.1rem; display: flex; flex-direction: column; gap: .2rem; }
.nav-mobile a {
  display: block; padding: .95rem 1rem; border-radius: 10px; font-weight: 600; font-size: 1.02rem;
  color: var(--ink-800, var(--ink-900));
}
.nav-mobile a:hover, .nav-mobile a[aria-current="page"] { background: var(--teal-50); color: var(--teal-700); }

/* Hero */
.hero { padding-block: clamp(2.4rem, 6vw, 4.2rem) clamp(1.4rem, 3vw, 2rem); }
.hero__badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--teal-50); color: var(--teal-700);
  padding: .4rem .75rem; border-radius: 999px; font-size: .82rem; font-weight: 700;
  margin-bottom: 1rem;
}
.hero__badge svg { width: 14px; height: 14px; }

/* Tarjetas de herramientas (home) */
.tool-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
.tool-card {
  display: flex; flex-direction: column; gap: .7rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s var(--ease-out), transform .2s var(--ease-out), border-color .2s var(--ease-out);
}
.tool-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--teal-500); }
.tool-card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--teal-50); color: var(--teal-700);
  display: grid; place-items: center; flex-shrink: 0;
}
.tool-card__icon svg { width: 27px; height: 27px; }
.tool-card h3 { margin: 0; font-size: 1.15rem; }
.tool-card p { color: var(--ink-500); font-size: .95rem; flex-grow: 1; }
.tool-card .btn { align-self: flex-start; }
.tool-card--soon { opacity: .55; }
.tool-card--soon .btn { pointer-events: none; }

/* Franja de confianza */
.trust-strip { display: grid; grid-template-columns: 1fr; gap: .9rem; margin-top: 2.2rem; }
.trust-item { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--ink-700); }
.trust-item svg { width: 20px; height: 20px; color: var(--teal-600); flex-shrink: 0; margin-top: 2px; }

/* Aviso médico (banner) */
.disclaimer-banner {
  display: flex; gap: .7rem; align-items: flex-start;
  background: var(--amber-50); border: 1px solid #f0dca3; border-radius: var(--radius-md);
  padding: 1rem 1.15rem; font-size: .9rem; color: var(--amber-700);
}
.disclaimer-banner svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.disclaimer-banner strong { color: var(--amber-700); }
.disclaimer-banner--danger { background: var(--red-50); border-color: #f0bcb5; color: #8f2c20; }
.disclaimer-banner--danger strong { color: #8f2c20; }
.disclaimer-banner--info { background: var(--blue-50); border-color: #bcd8f5; color: var(--blue-700); }
.disclaimer-banner--info strong { color: var(--blue-700); }

/* Tarjeta de calculadora */
.calc-shell { padding-block: clamp(1.6rem, 4vw, 2.4rem) 0; }
.calc-head { max-width: 74ch; margin-bottom: 1.4rem; }
.calc-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: clamp(1.1rem, 3vw, 1.9rem);
}
.calc-card__title { font-size: 1.05rem; margin-bottom: 1rem; color: var(--ink-900); }

.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field label, .field legend {
  font-weight: 600; font-size: .92rem; color: var(--ink-700); padding: 0;
}
.field__hint { font-size: .82rem; color: var(--ink-500); }
.field-row { display: grid; grid-template-columns: 1fr; gap: .8rem; }
.field-group { border: 0; padding: 0; margin: 0 0 1.1rem; }

.input, select.input, textarea.input {
  width: 100%; padding: .82rem .9rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-900);
  font-size: 1rem; font-family: inherit; transition: border-color .15s var(--ease-out), box-shadow .15s var(--ease-out);
  min-height: 48px;
}
.input:focus, select.input:focus { border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(15,111,104,.12); outline: none; }
.input.is-invalid { border-color: var(--red-500); }
.unit-toggle { display: inline-flex; border: 1.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.unit-toggle button {
  padding: .7rem 1rem; font-weight: 600; font-size: .9rem; color: var(--ink-500);
  background: var(--surface); border-right: 1.5px solid var(--line);
}
.unit-toggle button:last-child { border-right: 0; }
.unit-toggle button[aria-pressed="true"] { background: var(--teal-600); color: #fff; }
.field-error {
  display: none; align-items: center; gap: .4rem; color: var(--red-500); font-size: .85rem; font-weight: 600;
}
.field-error.is-visible { display: flex; }
.checkbox-field { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: 1rem; }
.checkbox-field input[type="checkbox"], .checkbox-field input[type="radio"] { width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--teal-600); flex-shrink: 0; }
.checkbox-field label { font-size: .95rem; color: var(--ink-700); font-weight: 500; }
.radio-row { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }

.form-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }

/* Panel de resultado */
.result-panel { margin-top: 1.6rem; padding-top: 1.5rem; border-top: 1px dashed var(--line); display: none; }
.calc-card[data-state="done"] .result-panel { display: block; }
.calc-card[data-state="idle"] .result-panel,
.calc-card[data-state="error"] .result-panel { display: none; }

.result-hero {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem;
  background: var(--teal-50); border-radius: var(--radius-md); padding: 1.3rem 1.4rem;
}
.result-hero__value { font-size: clamp(2.1rem, 6vw, 2.7rem); font-weight: 800; color: var(--teal-700); line-height: 1; }
.result-hero__label { font-size: 1.05rem; font-weight: 700; color: var(--ink-900); }
.result-hero__sub { font-size: .88rem; color: var(--ink-500); margin-top: .2rem; }

.bar-indicator { margin-top: 1.1rem; }
.bar-indicator__track {
  position: relative; height: 14px; border-radius: 999px; overflow: hidden;
  /* Franjas alineadas a las categorías OMS de IMC sobre una escala de 15 a 45:
     <18.5 bajo peso, 18.5-24.9 normal, 25-29.9 sobrepeso, 30-34.9 obesidad I,
     >=35 obesidad II/III. Los % deben coincidir con imc.js (mapIMCaPorcentaje). */
  background: linear-gradient(90deg, #3aa0e0 0 11.67%, #2fae7a 11.67% 33.33%, #e8b93a 33.33% 50%, #e0793a 50% 66.67%, #cf4a3a 66.67% 100%);
}
.bar-indicator__marker {
  position: absolute; top: -5px; width: 4px; height: 24px; background: var(--ink-900);
  border-radius: 2px; transform: translateX(-50%);
  box-shadow: 0 0 0 2px #fff;
}
.bar-indicator__scale { display: flex; justify-content: space-between; font-size: .72rem; color: var(--ink-500); margin-top: .35rem; }

.result-grid { display: grid; grid-template-columns: 1fr; gap: .9rem; margin-top: 1.2rem; }
.result-item { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line-soft); font-size: .95rem; }
.result-item dt { color: var(--ink-500); }
.result-item dd { font-weight: 700; color: var(--ink-900); text-align: right; }

.factor-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.factor-chip { background: var(--red-50); color: #8f2c20; font-size: .82rem; font-weight: 600; padding: .35rem .7rem; border-radius: 999px; }

.result-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.copy-feedback { font-size: .85rem; color: var(--green-600); font-weight: 600; display: none; align-items: center; gap: .3rem; }
.copy-feedback.is-visible { display: inline-flex; }

/* Timeline embarazo */
.pregnancy-timeline { margin-top: 1.3rem; }
.pregnancy-timeline__track { position: relative; height: 10px; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
.pregnancy-timeline__fill { position: absolute; inset: 0; width: 0%; background: linear-gradient(90deg, var(--blue-500), var(--teal-500)); border-radius: 999px; transition: width .4s var(--ease-out); }
.pregnancy-timeline__labels { display: flex; justify-content: space-between; font-size: .74rem; color: var(--ink-500); margin-top: .4rem; }

/* Badge de privacidad */
.privacy-badge {
  display: flex; align-items: flex-start; gap: .6rem;
  margin-top: 1.1rem; padding: .85rem 1rem; background: var(--blue-50);
  border-radius: var(--radius-sm); font-size: .85rem; color: var(--blue-700);
}
.privacy-badge svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

/* Ad slots (placeholders) */
.ad-slot {
  display: flex; align-items: center; justify-content: center;
  border: 1.5px dashed #c7d3d6; border-radius: var(--radius-sm);
  background: repeating-linear-gradient(45deg, #f2f6f7, #f2f6f7 10px, #eaf0f1 10px, #eaf0f1 20px);
  color: var(--ink-300); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.ad-slot--leaderboard { min-height: 90px; margin-block: 1.6rem; }
.ad-slot--incontent { min-height: 120px; margin-block: 2rem; }
.ad-slot--modal { min-height: 160px; margin-block: 1rem; }
.ad-slot--floating-inner { min-height: 100px; width: 100%; }

.ad-floating {
  position: fixed; right: 14px; bottom: 14px; z-index: 400;
  width: min(280px, calc(100vw - 28px)); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  padding: .6rem; transform: translateY(140%); transition: transform .3s var(--ease-out);
}
.ad-floating.is-visible { transform: translateY(0); }
.ad-floating__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.ad-floating__head span { font-size: .7rem; font-weight: 700; color: var(--ink-300); text-transform: uppercase; letter-spacing: .05em; }
.ad-floating__close { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: var(--ink-500); }
.ad-floating__close:hover { background: var(--line-soft); }
.ad-floating__close svg { width: 15px; height: 15px; }

/* Modal descarga (interstitial ad) */
dialog.ad-dialog {
  border: 0; border-radius: var(--radius-lg); padding: 0; width: min(440px, calc(100vw - 2rem));
  max-height: min(600px, calc(100vh - 4rem)); overflow-y: auto;
  box-shadow: var(--shadow-md);
  /* El reset global pone margin:0 en todo — sin esto el <dialog> pierde el
     centrado nativo que el navegador aplica vía UA stylesheet (margin:auto
     en dialog:modal) y queda pegado a la esquina superior izquierda. */
  margin: auto;
}
dialog.ad-dialog::backdrop { background: rgba(20,30,36,.55); backdrop-filter: blur(2px); }
.ad-dialog__inner { padding: 1.3rem; }
.ad-dialog__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .9rem; }
.ad-dialog__head h3 { font-size: 1rem; margin: 0; }
.ad-dialog__close-x { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-500); }
.ad-dialog__close-x:hover { background: var(--line-soft); }
.ad-dialog__close-x svg { width: 17px; height: 17px; }
.ad-dialog__foot { margin-top: 1rem; display: flex; justify-content: flex-end; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: .6rem; margin-top: 1rem; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .2rem .2rem;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: .9rem 1rem; font-weight: 600; color: var(--ink-900);
  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.3rem; font-weight: 400; color: var(--teal-600); flex-shrink: 0;
  transition: transform .2s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1rem 1rem; color: var(--ink-500); font-size: .94rem; }

/* Cross-link "más herramientas" */
.more-tools { margin-top: 2.2rem; }
.more-tools__grid { display: grid; grid-template-columns: 1fr; gap: .8rem; margin-top: 1rem; }
.more-tools a {
  display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; font-size: .92rem;
}
.more-tools a:hover { border-color: var(--teal-500); color: var(--teal-700); }
.more-tools a svg { width: 18px; height: 18px; color: var(--teal-600); flex-shrink: 0; }

/* Footer */
.site-footer { background: var(--ink-900); color: #cfd8dd; margin-top: 3rem; }
.site-footer__top { padding-block: 2.6rem 1.6rem; display: grid; grid-template-columns: 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.site-footer a { color: #aab6bc; font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.site-footer__brand p { color: #98a6ac; font-size: .88rem; max-width: 42ch; margin-top: .6rem; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.2rem;
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; font-size: .8rem; color: #8a979d;
}

/* Página legal simple */
.legal-content { padding-block: 2rem 3rem; }

/* =============================================================
   6. Secciones genéricas
   ============================================================= */
.section-title-block { max-width: 74ch; margin-bottom: 1.2rem; }

/* =============================================================
   7. Efectos (mínimos — ver invariante de restricción de animación)
   ============================================================= */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; } /* defensa: ver gotcha A.4.5 */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .more-tools__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .nav-desktop { display: block; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none; }
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
  .container { padding-inline: 1.5rem; }
}

/* =============================================================
   9. Print (tablas de amortización / resultados)
   ============================================================= */
@media print {
  .site-header, .site-footer, .ad-slot, .ad-floating, .form-actions, .nav-mobile { display: none !important; }
}
