/* ==========================================================================
   BORJA — Sistema de diseño
   Referencias: Clinique La Prairie, Lanserhof, SHA Wellness, Cadogan Clinic.
   Principios: editorial, hairline, mucho aire, cero sombras, cero gradientes
   decorativos, una sola familia display de alto contraste.
   ========================================================================== */

:root {
  /* Neutros — base clínica clara */
  --white:   #ffffff;
  --bone:    #f5f2ef;
  --sand:    #ece7e2;
  --line:    #ddd6d2;
  --ash:     #6b6560; /* AA: >5:1 sobre blanco y sobre bone */
  --graphite:#3a3733;
  --ink:     #171216;

  /* Colores corporativos oficiales (Brand Book Borja Clinic)
     Teal  PANTONE P 127-6C  RGB 0/174/165
     Vino  PANTONE P 85-8C   RGB 111/6/79  */
  --teal:    #00aea5;
  --teal-d:  #008b84;
  --wine:    #6f064f;
  --wine-d:  #560540;
  --wine-l:  #8f2b74;

  /* Aliases del acento principal = vino (contraste 9:1 sobre blanco) */
  --bronze:  #6f064f;
  --bronze-l:#8f2b74;
  --bronze-text: #6f064f;

  /* Longevity (extensión) — se mantiene solo como tema secundario */
  --forest:  #1e3a32;
  --forest-d:#132621;
  --sage:    #7fa393;
  --mist:    #eef1ed;

  --border:  rgba(20,19,15,0.10);
  --border-i:rgba(255,255,255,0.14);

  /* Tipografía — sistema Clinique La Prairie en todo el sitio:
     Red Hat Display (títulos) + Red Hat Text (cuerpo) + Libre Bodoni (wordmark). */
  --display: 'Red Hat Display', -apple-system, sans-serif;
  --sans:    'Red Hat Text', -apple-system, BlinkMacSystemFont, sans-serif;
  --display-weight: 300;

  /* Ritmo */
  --nav-h:   76px;
  --gutter:  clamp(20px, 5vw, 80px);
  --section: clamp(34px, 4vw, 60px);

  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden; /* respaldo navegadores sin clip */
  overflow-x: clip;   /* recorta desborde horizontal SIN volver al body un contenedor de scroll (evita que la página abra desplazada) */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.sr-only:focus {
  position: fixed !important;
  top: 10px; left: 10px; z-index: 400;
  width: auto; height: auto; margin: 0; clip: auto;
  padding: 12px 20px;
  background: var(--ink); color: var(--white);
  font-size: 14px; text-decoration: none;
}

/* ── Tipografía ─────────────────────────────────────────────────────────── */

/* Titulares CLP: mayúsculas ligeras con tracking amplio, acento en itálica */
.display {
  font-family: var(--display);
  font-weight: var(--display-weight);
  text-transform: uppercase;
  line-height: 1.16;
  letter-spacing: 0.05em;
}

h1.display { font-size: clamp(28px, 4.6vw, 68px); }
h2.display { font-size: clamp(24px, 3.3vw, 46px); }
h3.display { font-size: clamp(19px, 2.2vw, 30px); }

.display em { font-style: italic; font-weight: 300; color: var(--bronze); }
/* Acento del hero: blanco y con más cuerpo/ancho */
.hero h1.display em { color: #ffffff; font-weight: 600; letter-spacing: 0.03em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ash);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ''; width: 28px; height: 2px;
  background: var(--teal); flex: none; opacity: 1;
}
.eyebrow.no-rule::before { display: none; }

.lede {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.62; font-weight: 300;
  color: var(--graphite);
  max-width: 62ch;
}

.body-sm { font-size: 15px; line-height: 1.7; color: var(--ash); }

.num {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; color: var(--bronze-text);
}

/* ── Layout ─────────────────────────────────────────────────────────────── */

.wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap-narrow { max-width: 940px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
section { padding-top: var(--section); padding-bottom: var(--section); }
.rule { height: 1px; background: var(--border); border: 0; }

.grid { display: grid; gap: clamp(24px, 3vw, 48px); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: minmax(0,0.9fr) minmax(0,1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }

.bg-bone { background: var(--bone); }
.bg-ink  { background: var(--ink); color: var(--bone); }
.bg-ink .eyebrow, .bg-ink .body-sm { color: rgba(246,244,240,0.62); }
.bg-ink .lede { color: rgba(246,244,240,0.80); }

/* Sección corporativa profunda en vino de marca */
.bg-wine {
  background: radial-gradient(130% 150% at 18% 0%, #74084f 0%, #560540 58%, #43042f 100%);
  color: #f3e6ee;
}
.bg-wine .eyebrow, .bg-wine .body-sm { color: rgba(243,230,238,0.66); }
.bg-wine .lede { color: rgba(243,230,238,0.86); }
.bg-wine .display em { color: var(--teal); }
.bg-wine .eyebrow::before { background: var(--teal); }

/* ── Botones ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; padding: 15px 30px;
  border: 1px solid var(--wine); background: var(--wine); color: var(--white);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  cursor: pointer;
}
.btn:hover { background: var(--wine-d); border-color: var(--wine-d); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-light { background: transparent; color: var(--bone); border-color: var(--border-i); }
.btn-light:hover { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.btn .arw { transition: transform .3s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

.link-u {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none;
  padding-bottom: 4px; border-bottom: 1px solid var(--border);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.link-u:hover { border-color: currentColor; color: var(--bronze-text); }

/* ── Navegación ─────────────────────────────────────────────────────────── */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 300;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--border); }

/* Nav sobre hero oscuro */
.nav.on-dark {
  background: transparent; color: var(--bone);
  border-bottom-color: rgba(255,255,255,0.10);
}
.nav.on-dark .nav-link { color: rgba(246,244,240,0.78); }
.nav.on-dark .nav-link:hover { color: #fff; }
.nav.on-dark .brand { color: var(--bone); }
/* CTA sólido blanco sobre hero oscuro — como "BOOK YOUR PROGRAM" de CLP */
.nav.on-dark .nav-cta { background: var(--white); border-color: var(--white); color: var(--ink); }
.nav.on-dark .nav-cta:hover { background: transparent; color: var(--bone); border-color: rgba(255,255,255,0.6); }
.nav.on-dark .burger span { background: var(--bone); }

.brand {
  display: flex; flex-direction: column; gap: 2px;
  text-decoration: none; color: var(--ink); line-height: 1.05;
}

/* Logotipo de imagen — home del hospital (color sobre nav claro, blanco sobre hero) */
.brand-logo { height: 46px; width: auto; display: block; }
.brand-logo-dark { display: none; }
.nav.on-dark .brand-logo-light { display: none; }
.nav.on-dark .brand-logo-dark { display: block; }
@media (max-width: 620px) { .brand-logo { height: 40px; } }

/* Wordmark de texto — usado en /longevity/ */
.brand-name {
  font-family: 'Libre Bodoni', Georgia, serif;
  font-weight: 400; font-size: 22px;
  letter-spacing: 0.24em; text-transform: uppercase;
}
.brand-sub {
  font-size: 8.5px; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ash); padding-left: 2px;
}
.nav.on-dark .brand-sub { color: rgba(246,244,240,0.6); }

.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); list-style: none; }
.nav-link {
  font-size: 12.5px; font-weight: 400; letter-spacing: 0.06em;
  color: var(--graphite); text-decoration: none;
  transition: color .25s var(--ease); white-space: nowrap;
}
.nav-link:hover { color: var(--ink); }
.nav-link.is-longevity { color: var(--forest); font-weight: 500; }
.nav.on-dark .nav-link.is-longevity { color: var(--sage); }

.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-cta {
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; padding: 11px 22px;
  border: 1px solid var(--wine); color: var(--wine);
  transition: all .3s var(--ease); white-space: nowrap;
}
.nav-cta:hover { background: var(--wine); color: var(--white); }

.burger { all: unset; display: none; width: 34px; height: 34px; cursor: pointer; flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px; }
.burger span { display: block; height: 1px; background: var(--ink); transition: all .4s var(--ease); }
.burger span:nth-child(1) { width: 24px; }
.burger span:nth-child(2) { width: 16px; }
.burger.open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger.open span:nth-child(2) { width: 24px; transform: translateY(-3.5px) rotate(-45deg); }

.drawer {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 290;
  background: var(--white); padding: 32px var(--gutter);
  display: none; flex-direction: column; gap: 2px; overflow-y: auto;
}
.drawer.open { display: flex; }
.drawer a {
  font-family: var(--display); font-size: 30px; letter-spacing: -0.01em;
  text-decoration: none; color: var(--ink);
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.drawer a.is-longevity { color: var(--forest); }
.drawer .drawer-foot { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh; /* fallback navegadores sin svh */
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-top: calc(var(--nav-h) + clamp(36px, 6vh, 72px)); /* el contenido nunca queda bajo el nav fijo */
  padding-bottom: clamp(48px, 7vw, 96px);
  background: var(--ink); color: var(--bone);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media img {
  object-position: 72% center; /* protagonistas a la derecha, texto a la izquierda */
  animation: kenburns 14s var(--ease) both; will-change: transform;
}
@keyframes kenburns { from { transform: scale(1.09); } to { transform: scale(1); } }

/* Velo esfumado en el lado del texto: blur que se desvanece hacia la derecha */
.hero-media::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  backdrop-filter: blur(7px) saturate(108%);
  -webkit-backdrop-filter: blur(7px) saturate(108%);
  mask-image: linear-gradient(90deg, #000 0%, #000 20%, transparent 46%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 20%, transparent 46%);
}

/* Entrada cinematográfica del hero */
.hero .eyebrow, .hero h1, .hero .lede, .hero-actions, .hero-meta {
  opacity: 0; transform: translateY(30px);
  animation: rise 1.2s var(--ease) forwards;
}
.hero .eyebrow  { animation-delay: .15s; }
.hero h1        { animation-delay: .30s; }
.hero .lede     { animation-delay: .48s; }
.hero-actions   { animation-delay: .66s; }
.hero-meta      { animation-delay: .84s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-media::after {
  content: ''; position: absolute; inset: 0; z-index: 2;
  /* Oscuro a la izquierda (texto), claro a la derecha (personas), remate abajo */
  background:
    linear-gradient(90deg, rgba(28,4,20,0.60) 0%, rgba(28,4,20,0.32) 40%, rgba(28,4,20,0.05) 72%),
    linear-gradient(180deg, rgba(28,4,20,0.18) 0%, rgba(28,4,20,0) 34%, rgba(28,4,20,0.60) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero h1 { max-width: 16ch; margin: 22px 0 0; }
.hero .eyebrow { color: rgba(246,244,240,0.82); }
.hero .lede { color: rgba(246,244,240,0.86); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* ── Intro bajo el hero (lede + CTAs + cifras) ──────────────────────────── */
.intro { padding-top: clamp(28px,3.4vw,48px); padding-bottom: clamp(28px,3.4vw,48px); }
.intro-grid {
  display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr);
  gap: clamp(32px,6vw,88px); align-items: center;
}
.intro .lede { max-width: 54ch; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.statrow {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: clamp(22px,3vw,34px) clamp(24px,4vw,52px);
  padding-left: clamp(0px,3vw,44px); border-left: 1px solid var(--border);
}
.statrow .k { font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(30px,3.4vw,48px); line-height: 1; color: var(--ink); }
.statrow .v { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ash); margin-top: 9px; }
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
  .statrow { border-left: 0; padding-left: 0; }
}
@media (max-width: 480px) { .statrow { gap: 22px 28px; } }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(32px, 4.5vw, 56px);
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.16);
}
.hero-meta div { min-width: 118px; }
.hero-meta .k { font-family: var(--display); font-size: clamp(28px, 3vw, 40px); line-height: 1; }
.hero-meta .v { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(246,244,240,0.62); margin-top: 8px; }

/* ── Marquesina de credenciales ─────────────────────────────────────────── */

.creds { border-bottom: 1px solid var(--border); padding: 26px 0; overflow: hidden; position: relative; }
.creds::before, .creds::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.creds::before { left: 0; background: linear-gradient(90deg, var(--white), transparent); }
.creds::after { right: 0; background: linear-gradient(270deg, var(--white), transparent); }
.creds-track {
  display: flex; align-items: center;
  width: max-content; flex-wrap: nowrap;
  animation: marquee 32s linear infinite;
}
.creds:hover .creds-track,
.creds:focus .creds-track,
.creds:focus-within .creds-track { animation-play-state: paused; }
.creds:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.creds-item {
  font-size: 12px; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ash); white-space: nowrap;
  display: flex; align-items: center; gap: clamp(48px, 6vw, 96px);
  margin-right: clamp(48px, 6vw, 96px); /* espaciado propio: -50% del track queda exacto, sin salto */
}
.creds-item::after { content: '·'; color: var(--teal); font-size: 18px; }

/* ── Índice de procedimientos ───────────────────────────────────────────── */

.index-row {
  display: grid; grid-template-columns: 56px 1fr auto;
  gap: 20px; align-items: baseline;
  padding: 26px 0; border-top: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: background .35s var(--ease), padding .35s var(--ease);
}
.index-row:last-child { border-bottom: 1px solid var(--border); }
.index-row:hover { background: var(--bone); padding-left: 16px; padding-right: 16px; }
.index-row .t { font-family: var(--display); font-size: clamp(21px, 2.1vw, 30px); line-height: 1.2; }
.index-row .d { font-size: 14px; color: var(--ash); max-width: 46ch; }

/* ── Directorio de especialidades (estilo Mayo Clinic) ──────────────────── */

.spec-dir {
  column-count: 3; column-gap: clamp(24px, 4vw, 72px);
  border-top: 1px solid var(--border);
}
.spec-dir a {
  display: block; break-inside: avoid;
  padding: 13px 2px 13px 0; border-bottom: 1px solid var(--border);
  font-family: var(--display); font-size: 16px; font-weight: 400;
  letter-spacing: 0.01em; line-height: 1.3;
  text-decoration: none; color: var(--graphite);
  transition: color .25s var(--ease), padding-left .25s var(--ease), border-color .25s var(--ease);
}
.spec-dir a:hover { color: var(--wine); padding-left: 8px; border-bottom-color: var(--wine); }
.spec-dir a .dot { color: var(--teal); margin-right: 10px; font-weight: 600; }
@media (max-width: 900px) { .spec-dir { column-count: 2; } }
@media (max-width: 560px) { .spec-dir { column-count: 1; } }

/* ── Tarjetas / método ──────────────────────────────────────────────────── */

.card { border-top: 1px solid var(--border); padding-top: 24px; }
.card h3 { font-family: var(--display); font-size: 25px; font-weight: 400; line-height: 1.2; margin: 12px 0 10px; }
.card p { font-size: 14.5px; color: var(--ash); }

.figure { position: relative; overflow: hidden; background: var(--sand); }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure figcaption {
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ash); padding-top: 14px;
}
.ratio-4-5 { aspect-ratio: 4/5; }
.ratio-3-2 { aspect-ratio: 3/2; }
.ratio-4-3 { aspect-ratio: 4/3; }

/* Galería de instalaciones (fotos reales) — más compacta que .grid */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 22px); }
.gallery .figure img { object-position: center; }
/* Nombre del área sobre la foto (no se recorta como un figcaption normal) */
.gallery .figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 15px 13px;
  background: linear-gradient(to top, rgba(24,10,20,0.86) 0%, rgba(24,10,20,0.30) 55%, transparent 100%);
  color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; line-height: 1.3;
}
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; } .gallery .figure figcaption { font-size: 10px; padding: 26px 11px 11px; letter-spacing: 0.06em; } }

/* Titulares más compactos en móvil (mejor lectura en celular) */
@media (max-width: 620px) {
  h1.display { font-size: 26px; letter-spacing: 0.02em; line-height: 1.15; }
  h2.display { font-size: 23px; letter-spacing: 0.02em; line-height: 1.18; }
  .lede { font-size: 16px; }
  .index-row .t { letter-spacing: 0.01em; }
}

/* ── Cita editorial ─────────────────────────────────────────────────────── */

.quote { text-align: center; }
.quote blockquote {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(26px, 3.6vw, 50px); line-height: 1.16;
  letter-spacing: -0.015em; max-width: 20ch; margin: 0 auto;
}
.quote cite {
  display: block; margin-top: 32px; font-style: normal;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ash);
}
.bg-ink .quote cite { color: rgba(246,244,240,0.66); }

/* ── Acordeón ───────────────────────────────────────────────────────────── */

.acc-item { border-top: 1px solid var(--border); }
.acc-item:last-child { border-bottom: 1px solid var(--border); }
.acc-head {
  all: unset; display: flex; width: 100%; box-sizing: border-box;
  align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; cursor: pointer;
  font-family: var(--display); font-size: clamp(19px, 1.9vw, 26px); line-height: 1.25;
}
.acc-sign { font-family: var(--sans); font-size: 20px; font-weight: 300; color: var(--ash); transition: transform .4s var(--ease); flex: none; }
.acc-item.open .acc-sign { transform: rotate(45deg); }
.acc-body {
  max-height: 0; overflow: hidden;
  visibility: hidden; /* saca del orden de tabulación los enlaces de paneles cerrados */
  transition: max-height .5s var(--ease), visibility .5s var(--ease);
}
.acc-item.open .acc-body { visibility: visible; }
.acc-body-inner { padding-bottom: 26px; max-width: 66ch; font-size: 15px; color: var(--ash); }

/* ── Longevity: tema verde + tipografía Clinique La Prairie ─────────────── */
/* Stack REAL de cliniquelaprairie.com (inspeccionado 2026-08):
   Red Hat Display (títulos) + Red Hat Text (cuerpo) + Libre Bodoni (acentos serif itálicos). */

.theme-lng { --bronze: var(--sage); }
.theme-lng .eyebrow { letter-spacing: 0.26em; }
/* Verde #55806e = AA sobre fondos claros; sage solo sobre fondos oscuros */
.theme-lng .display em { color: #55806e; }
.theme-lng .bg-forest .display em { color: var(--sage); }
.theme-lng .hero h1.display em { color: #ffffff; font-weight: 600; letter-spacing: 0.03em; }
.theme-lng .num { color: var(--forest); }
.theme-lng .btn { background: var(--forest); border-color: var(--forest); }
.theme-lng .btn:hover { background: var(--forest-d); border-color: var(--forest-d); }
.theme-lng .btn-ghost { background: transparent; color: var(--forest); border-color: rgba(30,58,50,0.25); }
.theme-lng .btn-ghost:hover { background: var(--forest); color: var(--white); }
/* Botones ghost claros dentro del tema verde — deben ir después de .theme-lng .btn en cascada */
.theme-lng .btn-light { background: transparent; color: var(--bone); border-color: var(--border-i); }
.theme-lng .btn-light:hover { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.theme-lng .link-u:hover { color: var(--forest); }
.theme-lng .index-row:hover { background: var(--mist); }
.bg-mist { background: var(--mist); }
.bg-forest { background: var(--forest); color: var(--mist); }
.bg-forest .eyebrow, .bg-forest .body-sm { color: rgba(238,241,237,0.62); }
.bg-forest .lede { color: rgba(238,241,237,0.82); }
.bg-forest .display em { color: var(--sage); }
.bg-forest .rule { background: rgba(255,255,255,0.14); }
.hero-lng { background: var(--forest-d); }
.hero-lng .hero-media::after {
  background: linear-gradient(180deg, rgba(13,28,24,0.58) 0%, rgba(13,28,24,0.42) 44%, rgba(13,28,24,0.84) 100%);
}
/* Hero de longevity más sobrio: sin franja de blur lateral (menos ruido) */
.hero-lng .hero-media::before { display: none; }
/* Encuadre para que la cara de la mujer quede visible (está arriba-centro-izquierda) */
.hero-lng .hero-media img { object-position: 44% 22%; }

/* ── Programas (3 tiers) ────────────────────────────────────────────────── */

.tier {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); padding: clamp(26px, 3vw, 40px);
  background: var(--white); transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.tier:hover { border-color: var(--forest); }
.tier.featured { background: var(--forest); color: var(--mist); border-color: var(--forest); }
.tier.featured .body-sm, .tier.featured .eyebrow { color: rgba(238,241,237,0.66); }
.tier.featured .tier-list li { color: rgba(238,241,237,0.86); border-color: rgba(255,255,255,0.14); }
.tier h3 { font-family: var(--display); font-size: 30px; font-weight: 400; margin: 14px 0 6px; }
.tier .dur { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ash); }
.tier.featured .dur { color: rgba(238,241,237,0.78); }
.tier-list { list-style: none; margin: 26px 0 32px; }
.tier-list li {
  font-size: 14.5px; color: var(--graphite);
  padding: 11px 0 11px 22px; border-top: 1px solid var(--border); position: relative;
}
.tier-list li::before { content: ''; position: absolute; left: 0; top: 20px; width: 8px; height: 1px; background: currentColor; opacity: .45; }
.tier .btn { margin-top: auto; justify-content: center; }
.tier.featured .btn { background: var(--mist); color: var(--forest); border-color: var(--mist); }
.tier.featured .btn:hover { background: transparent; color: var(--mist); border-color: var(--mist); }

/* ── Contacto / footer ──────────────────────────────────────────────────── */

.contact-item { border-top: 1px solid var(--border); padding: 22px 0; }
.contact-item .k { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ash); }
.contact-item .v { font-family: var(--display); font-size: clamp(19px, 1.8vw, 25px); margin-top: 8px; line-height: 1.3; }
.contact-item a { text-decoration: none; }
.contact-item a:hover { color: var(--bronze-text); }

.footer { background: #340722; color: var(--bone); padding: clamp(56px, 7vw, 96px) 0 34px; }
.footer h4 { color: var(--teal) !important; opacity: .95; }
.footer a { color: rgba(246,244,240,0.66); text-decoration: none; font-size: 14px; transition: color .25s; display: block; padding: 6px 0; }
.footer a:hover { color: var(--bone); }
.footer h4 { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(246,244,240,0.55); margin-bottom: 14px; font-weight: 500; }
.footer-bot {
  margin-top: clamp(44px, 6vw, 72px); padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-size: 12px; color: rgba(246,244,240,0.55);
}

.footer .powered { display: inline; font-size: 16px; color: rgba(246,244,240,0.85); letter-spacing: 0.01em; }
.footer .powered a { color: var(--teal); text-decoration: none; font-weight: 600; font-size: 16px; display: inline; padding: 0; }
.footer .powered a:hover { text-decoration: underline; }
.theme-lng .footer .powered a { color: var(--sage); }

/* Wordmark monumental — sello de las casas de lujo */
.footer-mark {
  font-family: 'Libre Bodoni', Georgia, serif;
  font-weight: 400;
  font-size: clamp(88px, 19vw, 280px);
  line-height: 0.82; letter-spacing: 0.08em; text-transform: uppercase;
  text-align: center; color: transparent;
  -webkit-text-stroke: 1px rgba(0,174,165,0.28);
  user-select: none; pointer-events: none;
  margin-top: clamp(48px, 7vw, 100px);
  margin-bottom: -0.12em; overflow: hidden;
}

.theme-lng .footer-mark { font-size: clamp(44px, 14vw, 240px); } /* "Longevity" = 9 caracteres, entra en móvil */

::selection { background: var(--wine); color: var(--white); }
.theme-lng ::selection { background: var(--forest); color: var(--mist); }

/* La página /longevity/ conserva su identidad verde: los acentos de marca
   (teal/vino) aplicados globalmente en la home se revierten al tema verde. */
.theme-lng .eyebrow::before { background: var(--sage); }
.theme-lng .creds-item::after { color: var(--sage); }
.theme-lng .footer { background: var(--forest-d); }
.theme-lng .footer h4 { color: rgba(238,241,237,0.55) !important; }
.theme-lng .footer-mark { -webkit-text-stroke: 1px rgba(238,241,237,0.16); }

/* ── Foco visible (teclado) ─────────────────────────────────────────────── */
.burger:focus-visible,
.acc-head:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.nav.on-dark .burger:focus-visible { outline-color: var(--bone); }
.theme-lng .acc-head:focus-visible { outline-color: var(--forest); }

/* ── WhatsApp flotante ──────────────────────────────────────────────────── */

.wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 250;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 22px rgba(0,0,0,0.18); transition: transform .3s var(--ease);
}
.wa:hover { transform: scale(1.07); }

/* ── Aviso legal / disclaimer médico ────────────────────────────────────── */

.disclaimer {
  font-size: 12px; line-height: 1.7; color: var(--ash);
  border-left: 1px solid var(--line); padding-left: 18px; max-width: 74ch;
}

/* ── Reveal ─────────────────────────────────────────────────────────────── */

.rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; }
  .hero .eyebrow, .hero h1, .hero .lede, .hero-actions, .hero-meta { animation: none; opacity: 1; transform: none; }
  .creds-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .split { grid-template-columns: 1fr; }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  #ruta-5 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 860px) {
  .g-3 { grid-template-columns: 1fr; }
  .index-row { grid-template-columns: 40px 1fr; }
  .index-row .d { grid-column: 2; }
  /* En móvil el texto cubre todo el ancho: sin franja de blur, velo oscuro uniforme */
  .hero-media::before { display: none; }
  .hero-media img { object-position: 62% center; }
  .hero-media::after {
    background: linear-gradient(180deg, rgba(28,4,20,0.66) 0%, rgba(28,4,20,0.44) 40%, rgba(28,4,20,0.88) 100%);
  }
  .hero-lng .hero-media::after {
    background: linear-gradient(180deg, rgba(19,38,33,0.72) 0%, rgba(19,38,33,0.50) 40%, rgba(19,38,33,0.92) 100%);
  }
}
@media (max-width: 620px) {
  .g-2, .g-4 { grid-template-columns: 1fr; }
  #ruta-5 { grid-template-columns: 1fr !important; }
  .nav-cta { display: none; }
  .hero-meta { gap: 26px 34px; }
  .hero-meta div { min-width: 96px; }
}
