/* ==========================================================================
   sanus.es — Sistema de diseño
   Verde sanus + coral para CTAs de captura. Tipografías: Sora (títulos) + Inter (texto).
   ========================================================================== */

:root {
  --verde: #0E7C5A;
  --verde-oscuro: #0A5C43;
  --verde-profundo: #073B2C;
  --verde-brillante: #12A06F;
  --coral: #FF6B4A;
  --coral-oscuro: #E55434;
  --ambar: #F5B841;
  --bg: #FAFBF9;
  --superficie: #FFFFFF;
  --menta: #E9F5EF;
  --menta-suave: #F2F8F4;
  --tinta: #1B2B27;
  --apagado: #5C6B66;
  --linea: #E3ECE7;
  --imc-bajo: #4E9BE8;
  --imc-normal: #22A06B;
  --imc-sobre: #F5A623;
  --imc-obeso: #E5484D;
  --radio: 16px;
  --radio-lg: 24px;
  --sombra: 0 1px 2px rgba(11, 45, 35, .05), 0 8px 24px rgba(11, 45, 35, .06);
  --sombra-lg: 0 12px 40px rgba(11, 45, 35, .12);
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--tinta);
  background: var(--bg);
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--tinta);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--verde); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 76px 0; }
.section--tint { background: var(--menta-suave); }
.section--dark { background: var(--verde-profundo); color: #DDECE4; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a { color: #9ED9BF; }
.section-head { max-width: 660px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--apagado); font-size: 1.08rem; margin-bottom: 0; }
.section--dark .section-head p { color: #B9D6C8; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--verde);
  margin-bottom: 12px;
}
.section--dark .eyebrow { color: var(--verde-brillante); }

.lead { font-size: 1.22rem; color: var(--apagado); line-height: 1.6; }
.center { text-align: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid rgba(14, 124, 90, .35); outline-offset: 2px; }
.btn-primary { background: var(--verde); color: #fff; }
.btn-primary:hover { background: var(--verde-oscuro); box-shadow: var(--sombra); }
.btn-accent { background: var(--coral); color: #fff; }
.btn-accent:hover { background: var(--coral-oscuro); box-shadow: 0 8px 24px rgba(229, 84, 52, .3); }
.btn-ghost { background: transparent; color: var(--verde-oscuro); border-color: var(--linea); }
.btn-ghost:hover { border-color: var(--verde); background: var(--menta); }
.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-dark:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 251, 249, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linea);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(11, 45, 35, .08); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--tinta);
  text-decoration: none !important;
}
.brand-mark { border-radius: 10px; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav > a {
  font-size: .95rem;
  font-weight: 600;
  color: var(--tinta);
  opacity: .85;
}
.main-nav > a:hover { color: var(--verde); opacity: 1; text-decoration: none; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--tinta);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--menta);
  color: var(--verde-oscuro);
  font-size: .85rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 { margin-bottom: 18px; }
.hero-sub { font-size: 1.15rem; color: var(--apagado); max-width: 520px; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--apagado);
}
.trust-item svg { flex-shrink: 0; }

.hero-visual { position: relative; min-height: 380px; }
.hero-blob {
  position: absolute;
  inset: -40px -60px auto auto;
  width: 480px; height: 480px;
  background: radial-gradient(circle at 30% 30%, var(--menta) 0%, rgba(233,245,239,0) 70%);
  z-index: 0;
}
.result-card {
  position: relative;
  z-index: 1;
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: var(--radio-lg);
  box-shadow: var(--sombra-lg);
  padding: 26px 28px;
  max-width: 400px;
  margin: 40px auto 0;
}
.result-card .rc-label {
  font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--apagado); margin-bottom: 12px;
}
.result-card .rc-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.result-card .rc-value {
  font-family: var(--font-head); font-size: 2.6rem; font-weight: 700;
  color: var(--verde); line-height: 1;
}
.result-card .rc-chip {
  background: var(--menta); color: var(--verde-oscuro);
  font-weight: 700; font-size: .88rem; padding: 6px 12px; border-radius: 999px;
}
.scale { position: relative; height: 10px; border-radius: 999px; overflow: visible;
  background: linear-gradient(to right, var(--imc-bajo) 0 28%, var(--imc-normal) 28% 52%, var(--imc-sobre) 52% 72%, var(--imc-obeso) 72% 100%); }
.scale .marker {
  position: absolute; top: -6px; width: 22px; height: 22px;
  background: #fff; border: 3px solid var(--verde); border-radius: 50%;
  left: 44%; transform: translateX(-50%);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.scale-labels { display: flex; justify-content: space-between; font-size: .72rem; color: var(--apagado); margin-top: 8px; }
.float-chip {
  position: absolute; z-index: 2;
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: 14px;
  box-shadow: var(--sombra-lg);
  padding: 12px 16px;
  font-size: .86rem; font-weight: 600; color: var(--tinta);
  display: flex; align-items: center; gap: 10px;
}
.float-chip svg { flex-shrink: 0; }
.fc-1 { top: 6px; right: 8px; }
.fc-2 { bottom: 18px; left: 0; }
.fc-3 { bottom: -6px; right: 24px; background: var(--verde-profundo); color: #fff; border-color: var(--verde-profundo); }

/* ---------- Tarjetas y grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: var(--radio-lg);
  padding: 30px 28px;
  box-shadow: var(--sombra);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sombra-lg); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--apagado); font-size: .97rem; margin-bottom: 14px; flex-grow: 1; }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--menta);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--verde);
}
.card-meta { font-size: .8rem; color: var(--apagado); font-weight: 600; letter-spacing: .04em; }
.card-tag {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: var(--menta); color: var(--verde-oscuro);
  margin-bottom: 14px;
}
.card-tag--coral { background: #FFECE6; color: var(--coral-oscuro); }
.card-tag--grey { background: #EEF1EF; color: var(--apagado); }
.arrow-link {
  font-weight: 700; font-size: .95rem; color: var(--verde);
  display: inline-flex; align-items: center; gap: 6px;
}
.arrow-link::after { content: "→"; transition: transform .15s ease; }
.arrow-link:hover::after { transform: translateX(3px); }
.card ul.mini { list-style: none; margin: 0 0 16px; padding: 0; }
.card ul.mini li {
  padding-left: 26px; position: relative;
  font-size: .92rem; color: var(--apagado); margin-bottom: 6px;
}
.card ul.mini li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--menta) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14"><path d="M3.5 7.2l2.4 2.4 4.6-5" fill="none" stroke="%230E7C5A" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/cover no-repeat;
}

/* ---------- Pasos ---------- */
.steps { counter-reset: paso; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
  counter-increment: paso;
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--menta);
  color: var(--verde-oscuro);
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
}
.step-num::before { content: counter(paso); }
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--apagado); font-size: .95rem; margin: 0; }

/* ---------- Banner lead magnet ---------- */
.lead-banner {
  background: var(--verde-profundo);
  border-radius: 28px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
  color: #DDECE4;
  position: relative;
  overflow: hidden;
}
.lead-banner::before {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: rgba(18, 160, 111, .25);
}
.lead-banner h2 { color: #fff; margin-bottom: 12px; position: relative; }
.lead-banner p { position: relative; color: #B9D6C8; margin-bottom: 18px; }
.lead-banner ul { position: relative; list-style: none; margin: 0; padding: 0; }
.lead-banner ul li {
  padding-left: 26px; position: relative; margin-bottom: 8px; font-size: .95rem;
}
.lead-banner ul li::before {
  content: "✓"; position: absolute; left: 0; color: var(--verde-brillante); font-weight: 700;
}
.lead-form-card {
  position: relative;
  background: var(--superficie);
  border-radius: var(--radio-lg);
  padding: 28px;
  box-shadow: var(--sombra-lg);
  z-index: 1;
}
.lead-form-card h3 { margin-bottom: 4px; }
.lead-form-card .form-note { font-size: .82rem; }
.gate-hint { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--apagado); margin-top: 12px; }

/* ---------- Formularios ---------- */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 6px;
  color: var(--tinta);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--linea);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: .98rem;
  color: var(--tinta);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--verde);
  box-shadow: 0 0 0 4px rgba(14, 124, 90, .12);
}
.field .hint { font-size: .8rem; color: var(--apagado); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { color: var(--apagado); font-size: .85rem; margin: 10px 0 0; }
.form-success {
  background: var(--menta);
  border: 1px solid rgba(14,124,90,.25);
  color: var(--verde-oscuro);
  border-radius: 14px;
  padding: 16px 18px;
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 14px;
}
input[type="range"] { accent-color: var(--verde); width: 100%; }

/* ---------- Testimonios ---------- */
.quote-card { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio-lg); padding: 28px; box-shadow: var(--sombra); }
.stars { color: var(--ambar); letter-spacing: 2px; font-size: 1rem; margin-bottom: 12px; }
.quote-card blockquote { margin: 0 0 16px; font-size: .98rem; color: var(--tinta); }
.quote-card footer { font-size: .88rem; color: var(--apagado); font-weight: 600; }
.quote-card footer span { display: block; font-weight: 400; font-size: .82rem; }

/* ---------- Blog ---------- */
.post-card { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio-lg); overflow: hidden; box-shadow: var(--sombra); transition: transform .18s ease, box-shadow .18s ease; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--sombra-lg); }
.post-cover {
  height: 130px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.9);
}
.post-cover--1 { background: linear-gradient(135deg, #0E7C5A, #0A5C43); }
.post-cover--2 { background: linear-gradient(135deg, #12876A, #0E5F49); }
.post-cover--3 { background: linear-gradient(135deg, #1A9E78, #0B6B50); }
.post-cover svg { width: 54px; height: 54px; }
.post-cover--image { background: var(--linea); }
.post-cover--image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-hero-cover { margin: 0 0 32px; }
.post-hero-cover img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radio-lg); display: block; }
.post-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex-grow: 1; }
.post-body h3 { font-size: 1.12rem; }
.post-body p { color: var(--apagado); font-size: .94rem; flex-grow: 1; }
.post-meta { font-size: .8rem; color: var(--apagado); margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--apagado); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  position: relative;
  padding-right: 52px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400;
  color: var(--verde);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .faq-body { padding: 0 22px 20px; color: var(--apagado); font-size: .97rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--verde-profundo); color: #B9D6C8; margin-top: 90px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 60px 0 40px;
}
.footer-brand p { font-size: .92rem; margin-top: 14px; max-width: 260px; }
.brand--light { color: #fff; }
.site-footer h4 { color: #fff; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer nav a { display: block; color: #B9D6C8; font-size: .92rem; margin-bottom: 10px; text-decoration: none; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }
.social { display: flex; gap: 12px; margin-top: 18px; }
.social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: #DDECE4;
}
.social a:hover { background: rgba(255,255,255,.18); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 22px 0 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: .82rem;
}
.footer-bottom p { margin: 0; }
.aff-note { max-width: 640px; opacity: .75; }

/* ---------- Breadcrumbs + page hero ---------- */
.breadcrumbs { font-size: .85rem; color: var(--apagado); margin-bottom: 18px; }
.breadcrumbs a { color: var(--apagado); }
.breadcrumbs .sep { margin: 0 8px; opacity: .5; }
.page-hero { padding: 52px 0 30px; }
.page-hero h1 { margin-bottom: 14px; }
.page-hero .lead { max-width: 720px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chip {
  font-size: .84rem; font-weight: 600;
  background: var(--menta); color: var(--verde-oscuro);
  padding: 7px 14px; border-radius: 999px;
}

/* ---------- Calculadoras ---------- */
.calc-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 28px;
  align-items: start;
}
.calc-card {
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: var(--radio-lg);
  padding: 30px;
  box-shadow: var(--sombra-lg);
}
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 18px; }
.calc-fields .span-2 { grid-column: span 2; }
.slider-field input[type="range"] { margin-top: 10px; }
.range-value { font-family: var(--font-head); font-weight: 700; color: var(--verde); font-size: .95rem; }

.result-card-inline {
  background: var(--menta);
  border: 1px solid rgba(14, 124, 90, .2);
  border-radius: var(--radio-lg);
  padding: 30px;
  position: sticky;
  top: 92px;
}
.result-empty { color: var(--apagado); text-align: center; padding: 34px 12px; font-size: .95rem; }
.result-empty svg { margin: 0 auto 14px; opacity: .5; }
.result-value {
  font-family: var(--font-head);
  font-size: 3.1rem;
  font-weight: 700;
  color: var(--verde-oscuro);
  line-height: 1;
  margin-bottom: 6px;
}
.result-value .unit { font-size: 1.1rem; color: var(--apagado); font-weight: 600; }
.result-chip {
  display: inline-block;
  font-weight: 700; font-size: .9rem;
  padding: 7px 14px; border-radius: 999px;
  color: #fff;
  margin-bottom: 18px;
}
.result-chip--bajo { background: var(--imc-bajo); }
.result-chip--normal { background: var(--imc-normal); }
.result-chip--sobre { background: var(--imc-sobre); }
.result-chip--obeso { background: var(--imc-obeso); }
.result-chip--verde { background: var(--verde); }
.result-rows { margin: 18px 0; }
.result-rows .rrow {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid rgba(14,124,90,.15);
  font-size: .95rem;
}
.result-rows .rrow:last-child { border-bottom: 0; }
.result-rows .rrow .label { color: var(--apagado); }
.result-rows .rrow .val { font-family: var(--font-head); font-weight: 700; color: var(--tinta); }
.result-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.result-actions .btn { width: 100%; }
.result-note { font-size: .8rem; color: var(--apagado); margin-top: 12px; margin-bottom: 0; }
[aria-live] { scroll-margin-top: 100px; }

/* Quiz bienestar */
.quiz-q {
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  padding: 22px 24px;
  margin-bottom: 14px;
}
.quiz-q legend, .quiz-q .q-title { font-weight: 600; margin-bottom: 14px; font-size: 1rem; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills label {
  padding: 8px 16px;
  border: 1.5px solid var(--linea);
  border-radius: 999px;
  font-size: .88rem; font-weight: 600;
  cursor: pointer;
  color: var(--apagado);
  transition: all .15s ease;
}
.pills input:checked + label {
  background: var(--verde);
  border-color: var(--verde);
  color: #fff;
}
.pills input:focus-visible + label { outline: 3px solid rgba(14,124,90,.35); }
.quiz-progress { font-weight: 700; color: var(--verde-oscuro); margin-bottom: 14px; }
.dim-bar { margin-bottom: 12px; }
.dim-bar .dim-head { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: 5px; }
.dim-bar .dim-head .pct { font-weight: 700; font-family: var(--font-head); }
.dim-track { height: 9px; background: rgba(14,124,90,.12); border-radius: 999px; overflow: hidden; }
.dim-fill { height: 100%; border-radius: 999px; background: var(--verde); transition: width .7s ease; }
.dim-fill--low { background: var(--imc-sobre); }

/* ---------- Checklist interactiva ---------- */
.routine { max-width: 720px; margin: 0 auto; }
.routine-card {
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: var(--radio-lg);
  box-shadow: var(--sombra-lg);
  overflow: hidden;
}
.routine-head {
  background: var(--verde-profundo);
  color: #fff;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.routine-head h3 { color: #fff; margin: 0; }
.routine-head .routine-date { font-size: .88rem; color: #B9D6C8; }
.routine-progress {
  font-family: var(--font-head); font-weight: 700;
  background: rgba(255,255,255,.12);
  padding: 8px 16px; border-radius: 999px; font-size: .95rem;
}
.routine-list { list-style: none; margin: 0; padding: 10px 28px; }
.routine-list li { border-bottom: 1px solid var(--linea); }
.routine-list li:last-child { border-bottom: 0; }
.routine-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  cursor: pointer;
  font-size: .98rem;
}
.routine-item input { position: absolute; opacity: 0; pointer-events: none; }
.routine-item .box {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border: 2px solid var(--linea);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s ease;
  background: #fff;
}
.routine-item input:checked + .box { background: var(--verde); border-color: var(--verde); }
.routine-item input:checked + .box::after {
  content: "✓"; color: #fff; font-weight: 700; font-size: .85rem;
}
.routine-item input:checked ~ .txt { text-decoration: line-through; color: var(--apagado); }
.routine-item:focus-within .box { outline: 3px solid rgba(14,124,90,.3); }
.routine-actions {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 28px 24px;
  gap: 12px;
  flex-wrap: wrap;
}
.streak-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #FFF4E2; color: #9A6B00;
  font-weight: 700; font-size: .88rem;
  padding: 8px 14px; border-radius: 999px;
}

/* ---------- Tablas de contenido ---------- */
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  background: var(--superficie);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--sombra);
}
table.data th {
  background: var(--verde-profundo);
  color: #fff;
  text-align: left;
  padding: 13px 16px;
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
}
table.data td { padding: 12px 16px; border-bottom: 1px solid var(--linea); }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:nth-child(even) td { background: var(--menta-suave); }
table.data td:first-child { font-weight: 600; }

/* ---------- Prose (artículos) ---------- */
.prose { max-width: 720px; margin: 0 auto; font-size: 1.05rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose p { color: #2A3B36; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; color: #2A3B36; }
.prose .info-box {
  background: var(--menta);
  border-left: 4px solid var(--verde);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 26px 0;
  font-size: .97rem;
}
.prose .info-box p { margin: 0; }
.prose .info-box b { color: var(--verde-oscuro); }
.cta-inline {
  background: var(--verde-profundo);
  border-radius: var(--radio-lg);
  padding: 30px 34px;
  color: #DDECE4;
  margin: 36px 0;
}
.cta-inline h3 { color: #fff; margin-bottom: 8px; }
.cta-inline p { color: #B9D6C8; margin-bottom: 16px; font-size: .97rem; }
.author-box {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--menta-suave);
  border-radius: var(--radio);
  padding: 20px 24px;
  margin-top: 40px;
}
.author-box .avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--verde);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.author-box p { margin: 0; font-size: .9rem; color: var(--apagado); }
.author-box p b { color: var(--tinta); font-family: var(--font-head); }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--menta);
  border-radius: var(--radio-lg);
  padding: 36px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 60px;
}
.cta-strip h2 { font-size: 1.4rem; margin-bottom: 6px; }
.cta-strip p { margin: 0; color: var(--apagado); }
.cta-strip .btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 27, 22, .55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--superficie);
  border-radius: var(--radio-lg);
  padding: 34px 32px 30px;
  max-width: 460px;
  width: 100%;
  position: relative;
  box-shadow: var(--sombra-lg);
  max-height: 92vh;
  overflow-y: auto;
}
.modal h3 { font-size: 1.3rem; margin-bottom: 8px; padding-right: 30px; }
.modal p { color: var(--apagado); font-size: .95rem; }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 0;
  background: var(--menta-suave);
  color: var(--apagado);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--menta); color: var(--tinta); }
.modal ul.mini { list-style: none; margin: 14px 0 18px; padding: 0; }
.modal ul.mini li {
  padding-left: 26px; position: relative;
  font-size: .93rem; color: var(--apagado); margin-bottom: 7px;
}
.modal ul.mini li::before {
  content: "✓"; position: absolute; left: 4px; color: var(--verde); font-weight: 700;
}

/* ---------- Toast + cookies ---------- */
.toast {
  position: fixed;
  bottom: 26px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--verde-profundo);
  color: #fff;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
  z-index: 120;
  box-shadow: var(--sombra-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.cookie-bar {
  position: fixed;
  bottom: 20px; right: 20px;
  max-width: 380px;
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  box-shadow: var(--sombra-lg);
  padding: 20px;
  z-index: 90;
  display: none;
  font-size: .88rem;
}
.cookie-bar.show { display: block; }
.cookie-bar p { color: var(--apagado); margin-bottom: 14px; }
.cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Página gracias ---------- */
.thanks-wrap { max-width: 560px; margin: 0 auto; text-align: center; }
.thanks-icon {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--menta);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  color: var(--verde);
}
.next-steps { text-align: left; margin-top: 30px; }

/* ---------- Reveal (mejora progresiva: solo con JS activo) ---------- */
body.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
body.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utilidades ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 30px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.small { font-size: .85rem; color: var(--apagado); }
.text-muted { color: var(--apagado); }
.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;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 340px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .result-card-inline { position: static; }
  .lead-banner { grid-template-columns: 1fr; padding: 36px; }
  .cta-strip { flex-direction: column; align-items: flex-start; }

  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--superficie);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--linea);
    box-shadow: var(--sombra-lg);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav > a { padding: 13px 4px; border-bottom: 1px solid var(--linea); opacity: 1; }
  .main-nav > a:last-child { border-bottom: 0; margin-top: 12px; justify-content: center; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 64px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; }
  .calc-fields { grid-template-columns: 1fr; }
  .calc-fields .span-2 { grid-column: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .lead-banner { padding: 28px 24px; border-radius: 20px; }
  .float-chip { display: none; }
  .result-card { margin-top: 10px; }
  .page-hero { padding-top: 36px; }
  .hero-ctas .btn { width: 100%; }
}

/* ---------- Impresión ---------- */
@media print {
  .site-header, .site-footer, .cta-strip, .lead-banner, .cookie-bar, .modal-overlay, .toast, .hero-visual, .btn { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .routine-card { box-shadow: none; border: 1px solid #ccc; }
  .section { padding: 20px 0; }
}
