/* ═══════════════════════════════════════════════════════════
   BASE COMPARTIDA — páginas de padecimientos
   Extraída de index.html para no triplicar el mismo CSS.
   Cualquier cambio de marca hecho aquí se refleja en las tres.
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   SISTEMA DE DISEÑO
   Paleta derivada del logotipo de la clínica: navy #005454 · teal #0C9C90
   Un solo acento (teal). Neutros de una sola familia (fríos).
   ═══════════════════════════════════════════════════════════ */
:root {
  --ink:       #002B2B;
  --deep-900:  #003B3B;
  --deep:      #005454;
  --deep-700:  #0A6E6E;
  --deep-400:  #3F7676;

  --teal:      #0C9C90;  /* decorativo: iconos, bordes, foco (3.5:1 vs blanco, ok para UI) */
  --teal-cta:  #0A7D74;  /* fondo de botón: texto blanco a 4.7:1 */
  --teal-600:  #07726B;  /* texto pequeño: 4.9:1 sobre --mist */
  --teal-300:  #60CCCC;
  --teal-050:  #E3F5F3;

  --paper:     #FFFFFF;
  --mist:      #F2F8F7;
  --mist-deep: #E6F1EF;
  --line:      #DAE8E6;
  --slate-700: #23403E;
  --slate-500: #42615E;
  --slate-400: #58736F;

  --whatsapp:   #25D366;
  --whatsapp-d: #1EA855;
  --danger:     #B3261E;

  /* Sombras tintadas con el azul de marca, no negro puro */
  --sh-xs:   0 1px 2px rgba(0,84,84,.06);
  --sh-sm:   0 2px 8px rgba(0,84,84,.07), 0 1px 2px rgba(0,84,84,.05);
  --sh-md:   0 8px 24px -6px rgba(0,84,84,.13), 0 2px 6px rgba(0,84,84,.06);
  --sh-lg:   0 22px 48px -14px rgba(0,84,84,.22), 0 6px 14px rgba(0,84,84,.08);
  --sh-teal: 0 12px 30px -10px rgba(12,156,144,.55);

  /* Radios variados: interiores ajustados, contenedores suaves */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-pill: 999px;

  /* Escala de z-index */
  --z-deco: 0;
  --z-base: 1;
  --z-nav: 100;
  --z-menu: 150;
  --z-grain: 190;
  --z-fab: 200;
  --z-skip: 300;

  --nav-h: 76px;
  --ease: cubic-bezier(.2,.7,.3,1);
  --spring: cubic-bezier(.34,1.4,.5,1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--slate-500);
  background: var(--paper);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grano fino sobre toda la página: quita la planitud digital */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-grain);
  opacity: .04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

/* ═══════════ ACCESIBILIDAD ═══════════ */
.skip-link {
  position: absolute;
  left: 16px; top: -120px;
  z-index: var(--z-skip);
  background: var(--deep);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-xs);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 16px; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
.is-dark :focus-visible { outline-color: var(--teal-300); }

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

/* ═══════════ TIPOGRAFÍA ═══════════ */
.section-title {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-size: clamp(1.85rem, 1.15rem + 2.6vw, 2.95rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.021em;
  color: var(--deep);
  text-wrap: balance;
  margin-bottom: 18px;
}
.is-dark .section-title { color: #fff; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  width: 26px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  flex: none;
}
.is-dark .section-label { color: var(--teal-300); }

.section-subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--slate-400);
  max-width: 58ch;
  line-height: 1.75;
  text-wrap: pretty;
}
.is-dark .section-subtitle { color: rgba(255,255,255,.62); }

.num { font-variant-numeric: tabular-nums; }

/* ═══════════ ESTRUCTURA ═══════════ */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
/* Padding inferior algo mayor que el superior: corrección óptica */
.section { padding-block: clamp(64px, 8vw, 108px) clamp(74px, 9.5vw, 124px); }

.head-center { text-align: center; margin-bottom: clamp(38px, 5vw, 66px); }
.head-center .section-subtitle { margin-inline: auto; }

/* ═══════════ BOTONES ═══════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .22s var(--spring), box-shadow .25s var(--ease),
              background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:active { transform: translateY(1px) scale(.985); }

.btn-accent { background: var(--teal-cta); color: #fff; box-shadow: var(--sh-teal); }
.btn-accent:hover { background: var(--teal-600); transform: translateY(-2px); box-shadow: 0 16px 38px -10px rgba(12,156,144,.6); }

.btn-solid { background: var(--deep); color: #fff; box-shadow: var(--sh-md); }
.btn-solid:hover { background: var(--deep-700); transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--deep); box-shadow: 0 14px 36px -12px rgba(0,0,0,.42); }
.btn-light:hover { background: var(--teal-050); transform: translateY(-2px); }

.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-outline:hover { border-color: rgba(255,255,255,.62); background: rgba(255,255,255,.07); }

.btn-block { width: 100%; }

/* Enlace terciario: baja el ruido de "un botón sólido + un fantasma" en todas partes */
.link-quiet {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--teal-600); font-weight: 600; font-size: .92rem;
  text-decoration: none; padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color .25s var(--ease), gap .25s var(--ease);
}
.link-quiet:hover { border-bottom-color: currentColor; gap: 11px; }
.link-quiet svg { width: 16px; height: 16px; }

/* ═══════════ ICONOS (trazo unificado 1.75) ═══════════ */
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ═══════════ REVELADO AL SCROLL ═══════════ */
/* Solo se ocultan si hay JS para volver a mostrarlas */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

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

/* ═══════════════════════════ NAV ═══════════════════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.is-scrolled {
  background: rgba(255,255,255,.94);
  border-bottom-color: var(--line);
  box-shadow: var(--sh-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--nav-h);
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 31px; height: 44px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -.01em;
  color: var(--deep);
}
.brand-sub {
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate-400);
}

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links > li { flex: none; }
.nav-links a {
  position: relative;
  color: var(--slate-500);
  text-decoration: none;
  font-weight: 500;
  font-size: .93rem;
  padding: 6px 0;
  white-space: nowrap;
  transition: color .25s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  border-radius: 2px;
  background: var(--teal);
  transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--deep); }
.nav-links a:hover::after { width: 100%; }
/* Sección actual: el usuario siempre sabe dónde está */
.nav-links a[aria-current="true"] { color: var(--deep); font-weight: 600; }
.nav-links a[aria-current="true"]::after { width: 100%; }

.nav-links a.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--deep);
  color: #fff !important;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  font-size: .87rem !important;
  font-weight: 600 !important;
  box-shadow: var(--sh-sm);
  transition: transform .22s var(--spring), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.nav-links a.nav-cta::after { display: none; }

.nav-links a.nav-cta:hover { background: var(--teal-cta); transform: translateY(-2px); box-shadow: var(--sh-teal); }
.nav-links a.nav-cta:active { transform: translateY(0) scale(.98); }

.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--deep);
  cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.nav-toggle:hover { background: var(--mist); border-color: var(--teal-300); }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }
/* ═══════════════════════════ BANDA CTA ═══════════════════════════ */
.cta-band {
  position: relative;
  padding-block: clamp(60px, 7vw, 90px);
  background: var(--deep);
  text-align: center;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(70% 130% at 50% 0%, rgba(12,156,144,.28), transparent 62%);
}
.cta-band > .container { position: relative; z-index: var(--z-base); }
.cta-band h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.65rem, 1.1rem + 2.2vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #fff;
  text-wrap: balance;
  margin-bottom: 14px;
}
.cta-band p {
  font-size: 1.03rem;
  font-weight: 300;
  color: rgba(255,255,255,.66);
  max-width: 50ch;
  margin: 0 auto 32px;
  text-wrap: pretty;
}

/* ═══════════════════════════ PIE ═══════════════════════════ */
.footer { background: var(--ink); color: rgba(255,255,255,.5); padding-block: clamp(48px, 6vw, 68px) 26px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(30px, 4vw, 56px);
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
/* El logotipo es navy sobre transparente: sobre fondo oscuro necesita una placa clara */
/* El logotipo tiene versión en blanco, así que ya no hace falta placa */
.footer .brand img { width: 28px; height: 40px; }
.footer .brand-name { color: #fff; }
.footer .brand-sub { color: rgba(255,255,255,.56); }
.footer-about { margin-top: 16px; font-size: .89rem; font-weight: 300; line-height: 1.75; max-width: 40ch; }
.footer h2 {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer ul a, .footer ul span { font-size: .89rem; font-weight: 300; }
.footer ul a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .25s var(--ease), padding-left .25s var(--ease);
}
.footer ul a:hover { color: var(--teal-300); padding-left: 4px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px 26px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: .8rem;
  font-weight: 300;
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { color: rgba(255,255,255,.5); text-decoration: none; transition: color .25s var(--ease); }
.footer-legal a:hover { color: var(--teal-300); }

/* ═══════════════════════════ BOTÓN FLOTANTE WHATSAPP ═══════════════════════════ */
.fab {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: var(--z-fab);
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 58px;
  padding: 0 16px;
  background: var(--whatsapp-d);
  color: #fff;
  border-radius: var(--r-pill);
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  box-shadow: 0 14px 34px -10px rgba(30,168,85,.7);
  transition: gap .35s var(--ease), padding .35s var(--ease), transform .25s var(--spring), box-shadow .25s var(--ease);
}
.fab svg { width: 26px; height: 26px; fill: currentColor; stroke: none; flex: none; }
.fab span {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width .35s var(--ease), opacity .25s var(--ease);
}
.fab:hover, .fab:focus-visible { gap: 10px; padding-right: 22px; }
.fab:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -10px rgba(30,168,85,.8); }
.fab:hover span, .fab:focus-visible span { max-width: 190px; opacity: 1; }
.fab:active { transform: translateY(0) scale(.97); }

/* ═══════════════════════════ RESPONSIVE ═══════════════════════════ */
/* El menú colapsa antes que el resto del layout: siete enlaces no caben cómodos bajo 900px */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    z-index: var(--z-menu);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px clamp(20px, 4vw, 40px) 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-lg);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  /* El <li> es el elemento flex: sin esto el enlace no ocupa el ancho y el separador queda cortado */
  .nav-links li { display: block; width: 100%; }
  .nav-links a { display: block; width: 100%; padding: 14px 4px; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-links a[aria-current="true"] { color: var(--teal-600); }
  .nav-links li:last-child { margin-top: 16px; }
  /* Más específico que `.nav-links a` para que el CTA siga siendo flex y no se apile el icono */
  .nav-links a.nav-cta { display: flex; align-items: center; justify-content: center; padding: 15px 20px; font-size: .95rem !important; border-bottom: 0 !important; }
}

/* ═══════════════════════════ BARRA DE DESPLAZAMIENTO ═══════════════════════════ */
@media (min-width: 721px) {
  ::-webkit-scrollbar { width: 10px; }
  ::-webkit-scrollbar-track { background: var(--mist); }
  ::-webkit-scrollbar-thumb { background: var(--deep-400); border-radius: 6px; border: 2px solid var(--mist); }
  ::-webkit-scrollbar-thumb:hover { background: var(--deep); }
}

/* ═══════════════════════════════════════════════════════════
   COMPONENTES DE LAS PÁGINAS DE PADECIMIENTOS
   ═══════════════════════════════════════════════════════════ */

/* ─────────── Portada de la página ─────────── */
.page-hero {
  position: relative;
  isolation: isolate;
  background: var(--deep-900);
  color: #fff;
  padding-block: calc(var(--nav-h) + clamp(42px, 5.5vw, 72px)) clamp(50px, 6.5vw, 84px);
  overflow: hidden;
}
/* Retícula tenue: la misma textura que el hero del inicio */
.page-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: var(--z-deco);
  background-image:
    linear-gradient(rgba(96,204,204,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,204,204,.07) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(115% 85% at 80% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(115% 85% at 80% 0%, #000 0%, transparent 72%);
}
.page-hero > * { position: relative; z-index: var(--z-base); }
/* La portada es oscura pero no lleva la clase .is-dark: sin esto el rótulo
   queda en teal oscuro sobre fondo oscuro (2.1:1). */
.page-hero .section-label { color: var(--teal-300); }
.page-hero-inner { max-width: 64ch; }
.page-hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 1.15rem + 3.2vw, 3.4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.024em;
  color: #fff;
  text-wrap: balance;
  margin-bottom: 20px;
}
/* Segundo tono en el titular: le da respiración editorial */
.page-hero h1 .soft { color: var(--teal-300); font-weight: 500; }
.page-lede {
  font-size: clamp(1.01rem, .95rem + .3vw, 1.16rem);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,.72);
  max-width: 60ch;
  text-wrap: pretty;
}
.page-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ─────────── Migas de pan ─────────── */
.crumbs { margin-bottom: 22px; }
.crumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  list-style: none;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: '/'; color: rgba(255,255,255,.28); }
.crumbs a { color: rgba(255,255,255,.62); text-decoration: none; transition: color .25s var(--ease); }
.crumbs a:hover { color: var(--teal-300); }
.crumbs [aria-current="page"] { color: rgba(255,255,255,.4); }

/* ─────────── Datos rápidos bajo la portada ─────────── */
.keyfacts { background: var(--mist); border-bottom: 1px solid var(--line); }
.keyfacts dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1px;
  background: var(--line);
  border-inline: 1px solid var(--line);
}
.keyfacts > .container { padding-inline: 0; }
.keyfacts div { background: var(--mist); padding: 26px clamp(18px, 2.4vw, 30px); }
.keyfacts dt {
  font-size: .71rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal-600); margin-bottom: 8px;
}
.keyfacts dd { font-size: .93rem; font-weight: 300; color: var(--slate-500); line-height: 1.65; }

/* ─────────── Rejilla del artículo: índice fijo + texto ─────────── */
.art-grid {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: clamp(34px, 5vw, 74px);
  align-items: start;
}
.toc { position: sticky; top: calc(var(--nav-h) + 26px); align-self: start; }
.toc h2 {
  font-size: .71rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--slate-400); margin-bottom: 16px;
}
.toc ol { list-style: none; counter-reset: toc; border-left: 1px solid var(--line); }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: 12px;
  padding: 9px 0 9px 16px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: .88rem; font-weight: 400; line-height: 1.45;
  color: var(--slate-400);
  text-decoration: none;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-variant-numeric: tabular-nums;
  font-size: .73rem; font-weight: 600;
  color: var(--deep-400);
  padding-top: .18em;
  flex: none;
}
.toc a:hover { color: var(--deep); border-left-color: var(--teal-300); }
.toc a[aria-current="true"] { color: var(--deep); font-weight: 600; border-left-color: var(--teal); }
.toc a[aria-current="true"]::before { color: var(--teal-600); }

/* ─────────── Cuerpo del artículo ─────────── */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.48rem, 1.08rem + 1.5vw, 2.05rem);
  font-weight: 600; line-height: 1.16; letter-spacing: -.018em;
  color: var(--deep);
  text-wrap: balance;
  margin-top: clamp(52px, 6vw, 80px);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.prose > h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1.08rem; font-weight: 600; line-height: 1.4;
  color: var(--deep-700);
  margin-top: 2em;
}
.prose p { font-size: 1rem; font-weight: 300; line-height: 1.8; color: var(--slate-500); text-wrap: pretty; }
.prose strong { font-weight: 600; color: var(--slate-700); }
.prose em { font-style: italic; color: var(--slate-700); }
.prose ul, .prose ol { padding-left: 1.3em; display: flex; flex-direction: column; gap: 10px; }
.prose li { font-size: 1rem; font-weight: 300; line-height: 1.75; color: var(--slate-500); }
.prose li::marker { color: var(--teal); }
.prose a:not(.btn):not(.link-quiet):not(.ref-link) {
  color: var(--teal-600); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: color .25s var(--ease);
}
.prose a:not(.btn):not(.link-quiet):not(.ref-link):hover { color: var(--deep); }

/* Llamada a la referencia: [1] volado, sin subrayado */
.ref-link {
  display: inline-block;
  font-size: .68em;
  font-weight: 600;
  vertical-align: super;
  line-height: 1;
  color: var(--teal-600);
  text-decoration: none;
  padding: 0 1px;
  transition: color .2s var(--ease);
}
.ref-link:hover { color: var(--deep); text-decoration: underline; }

/* Cita destacada dentro del texto */
.pull {
  border-left: 3px solid var(--teal);
  padding: 4px 0 4px 22px;
  margin-block: 2em;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.13rem, 1rem + .55vw, 1.38rem);
  font-weight: 500; line-height: 1.45; letter-spacing: -.012em;
  color: var(--deep);
}
.pull cite { display: block; margin-top: 12px; font-family: 'Outfit', sans-serif; font-size: .82rem; font-style: normal; font-weight: 400; color: var(--slate-400); }

/* Aviso / nota al margen */
.note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 20px 22px;
  margin-block: 2em;
  background: var(--teal-050);
  border: 1px solid var(--teal-300);
  border-radius: var(--r-md);
}
.note .ico { width: 22px; height: 22px; color: var(--teal-600); margin-top: 2px; }
.note p { font-size: .94rem; line-height: 1.7; color: var(--slate-700); }
.note p + p { margin-top: .7em; }
.note--alert { background: #FDF3F2; border-color: #E6BAB6; }
.note--alert .ico { color: var(--danger); }
.note b { color: var(--deep); font-weight: 600; }

/* ─────────── Lista de señales / síntomas ─────────── */
.signals {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 14px; margin-block: 2em; list-style: none; padding: 0;
}
.signals li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: .93rem; font-weight: 300; line-height: 1.6;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.signals li:hover { border-color: var(--teal-300); box-shadow: var(--sh-sm); transform: translateY(-2px); }
.signals .ico { width: 20px; height: 20px; color: var(--teal); margin-top: 2px; }
.signals b { display: block; font-weight: 600; color: var(--deep); margin-bottom: 3px; }

/* ─────────── Tabla comparativa ─────────── */
.tbl-wrap { margin-block: 2em; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 480px; }
.tbl caption { text-align: left; padding: 16px 20px 0; font-size: .82rem; color: var(--slate-400); }
.tbl th, .tbl td { padding: 14px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl thead th { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-600); background: var(--mist); }
.tbl tbody th { font-weight: 600; color: var(--deep); }
.tbl td { font-weight: 300; color: var(--slate-500); line-height: 1.6; }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }

/* ─────────── Proceso numerado (columna fija + pasos) ─────────── */
.process { background: var(--mist); border-block: 1px solid var(--line); }
.process-grid { display: grid; grid-template-columns: 1fr 1.28fr; gap: clamp(32px, 5vw, 76px); align-items: start; }
.process-sticky { position: sticky; top: calc(var(--nav-h) + 28px); align-self: start; }
.steps { position: relative; display: flex; flex-direction: column; }
/* Hilo vertical que une los pasos */
.steps::before {
  content: '';
  position: absolute; left: 21px; top: 42px; bottom: 42px;
  width: 1px; background: var(--line);
}
.step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; padding-block: 20px; }
.step .n {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: .81rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--deep-400);
  transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}
.step.is-in .n { background: var(--deep); border-color: var(--deep); color: #fff; }
.step h3 { font-size: 1.05rem; font-weight: 600; color: var(--deep); margin-bottom: 6px; }
.step p { font-size: .95rem; font-weight: 300; line-height: 1.7; color: var(--slate-500); }
.step .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  display: inline-flex; align-items: center;
  padding: 5px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: .75rem; font-weight: 500; color: var(--slate-400);
}

/* ─────────── Preguntas frecuentes ─────────── */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 4.5vw, 70px); align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 21px 0;
  font-size: 1.01rem; font-weight: 500; line-height: 1.5;
  color: var(--deep);
  cursor: pointer;
  list-style: none;
  transition: color .25s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--teal-600); }
/* Signo +/− dibujado con dos barras: la vertical gira al abrir */
.faq .pm { position: relative; width: 16px; height: 16px; flex: none; margin-top: 6px; }
.faq .pm::before, .faq .pm::after {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 16px; height: 2px; border-radius: 2px; background: var(--teal);
  transition: transform .3s var(--ease);
}
.faq .pm::after { transform: rotate(90deg); }
.faq details[open] .pm::after { transform: rotate(0deg); }
.faq .ans { padding: 0 44px 22px 0; font-size: .96rem; font-weight: 300; line-height: 1.8; color: var(--slate-500); }
.faq .ans + .ans { margin-top: -8px; }

/* ─────────── Ficha de autoría y revisión (señal E-E-A-T) ─────────── */
.byline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  margin-bottom: clamp(38px, 5vw, 58px);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.byline img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: top center; }
.byline .who { font-size: .96rem; font-weight: 600; color: var(--deep); }
.byline .role { font-size: .86rem; font-weight: 300; color: var(--slate-400); margin-top: 2px; }
.byline .when { font-size: .78rem; color: var(--slate-400); margin-top: 8px; }
.byline .when b { font-weight: 500; color: var(--slate-500); }

/* ─────────── Referencias ─────────── */
.refs { background: var(--mist); border-top: 1px solid var(--line); }
.refs ol { padding-left: 1.4em; display: flex; flex-direction: column; gap: 14px; max-width: 84ch; }
.refs li { font-size: .88rem; font-weight: 300; line-height: 1.65; color: var(--slate-500); scroll-margin-top: calc(var(--nav-h) + 24px); }
.refs li::marker { color: var(--teal-600); font-weight: 600; }
.refs cite { font-style: italic; }
.refs a { color: var(--teal-600); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.refs a:hover { color: var(--deep); }
.refs li:target { background: var(--teal-050); border-radius: var(--r-xs); box-shadow: 0 0 0 8px var(--teal-050); }

/* ─────────── Enlaces a los otros temas ─────────── */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 18px; }
.rel-card {
  display: flex; flex-direction: column;
  padding: 28px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.rel-card:hover { border-color: var(--teal-300); box-shadow: var(--sh-md); transform: translateY(-3px); }
.rel-card .svc-ico {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  background: var(--teal-050);
  color: var(--teal-600);
  border-radius: var(--r-sm);
  margin-bottom: 18px;
}
.rel-card h3 { font-family: 'Fraunces', Georgia, serif; font-size: 1.14rem; font-weight: 600; line-height: 1.25; color: var(--deep); margin-bottom: 9px; }
.rel-card p { font-size: .91rem; font-weight: 300; line-height: 1.65; color: var(--slate-400); }
/* El enlace queda abajo aunque las tarjetas tengan texto de distinto largo */
.rel-card .link-quiet { margin-top: auto; padding-top: 18px; }

/* ─────────── Descargo médico ─────────── */
.disclaimer { padding-block: 30px; background: var(--paper); border-top: 1px solid var(--line); }
.disclaimer p { font-size: .82rem; font-weight: 300; line-height: 1.7; color: var(--slate-400); max-width: 84ch; }

/* ─────────── Responsive ─────────── */
@media (max-width: 980px) {
  .art-grid { grid-template-columns: 1fr; }
  /* En móvil el índice pasa a ser una lista compacta sobre el texto */
  .toc { position: static; margin-bottom: 38px; padding: 20px 22px; background: var(--mist); border-radius: var(--r-md); }
  .toc ol { columns: 2; column-gap: 26px; border-left: 0; }
  .toc a { border-left: 0; padding-left: 0; }
  .toc a[aria-current="true"] { border-left: 0; }
  .process-grid { grid-template-columns: 1fr; }
  .process-sticky { position: static; }
  .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .toc ol { columns: 1; }
  .keyfacts dl { border-inline: 0; }
  .byline { grid-template-columns: 1fr; gap: 14px; }
}

/* El menú pasó de seis a siete enlaces: entre 901 y 1160 px hay que apretar
   el espaciado para que el nombre de la marca no se parta en dos líneas. */
.brand-name { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1160px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: .85rem; }
  .nav-links a.nav-cta { padding: 10px 15px; font-size: .82rem !important; }
}
