/* ══════════════════════════════════════════════
   DESIGN SYSTEM — Dra. Mercedes Sidders
   Framework: F.R.A.M.E. v2.0 (Carriere adaptation)
   Style guide: Erode + General Sans
   ══════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  /* Paleta Verde Seco */
  --forest:    #2A3B32;
  --charcoal:  #444444;
  --mint:      #A87654;
  --cream:     #FCFBF9;
  --white:     #FFFFFF;

  /* Derivados de uso */
  --forest-90: rgba(42,59,50,0.90);
  --mint-12:   rgba(168,118,84,0.12);
  --mint-20:   rgba(168,118,84,0.20);
  --charcoal-50: rgba(68,68,68,0.50);
  --charcoal-20: rgba(68,68,68,0.20);

  /* Tipografía */
  --font-main:    'General Sans', system-ui, sans-serif;
  --font-accent:  'Erode', Georgia, serif;

  /* Escala tipo */
  --text-hero:    clamp(38px, 5.5vw, 72px);
  --text-h2:      clamp(28px, 3.8vw, 50px);
  --text-h3:      clamp(20px, 2vw, 28px);
  --text-body:    clamp(15px, 1.1vw, 17px);
  --text-sm:      13px;
  --text-label:   12px;

  /* Layout */
  --max-w:        1200px;
  --pad-x:        clamp(20px, 4.5vw, 60px);
  --section-py:   clamp(64px, 9vh, 112px);
  --radius-card:  12px;
  --radius-pill:  40px;
  --radius-btn:   6px;

  /* Utils legacy */
  --container-prose: 720px;
  --space-2: .5rem; --space-4: 1rem; --space-6: 1.5rem; --space-8: 2rem; --space-12: 3rem;
}

/* ── RESET ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: var(--font-main);
  background: var(--cream);
  color: var(--forest);
  font-size: var(--text-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
strong { font-weight: 600; }
h1, h2, h3, h4 { font-family: var(--font-accent); line-height: 1.1; margin-bottom: 1rem; font-weight: 700; }

/* ── ACCESIBILIDAD ── */
.skip { position:absolute; left:-9999px; top:0; background:var(--forest); color:var(--cream); padding:10px 18px; z-index:200; font-size:14px; }
.skip:focus { left:0; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

/* ── UTILITY ── */
.label {
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 14px;
  display: block;
}
.serif { font-family: var(--font-accent); font-style: italic; font-weight: 500; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.prose { max-width: var(--container-prose); margin-left: auto; margin-right: auto; padding: 0 var(--pad-x); }

/* ── BUTTONS (standalone, like reference) ── */
.btn-primary {
  display: inline-block;
  background: var(--mint);
  color: var(--white);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 13px 28px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: #8E6346; transform: translateY(-1px); color: var(--white); }

.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--forest);
  color: var(--forest);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--forest); color: var(--cream); }

.btn-primary-light {
  display: inline-block;
  background: var(--mint);
  color: var(--white);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 15px;
  padding: 15px 32px;
  border-radius: var(--radius-btn);
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary-light:hover { background: #8E6346; transform: translateY(-1px); color: var(--white); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════
   ANNOUNCEMENT BAR
   ══════════════════════════ */
.announcement-bar {
  background: var(--forest);
  color: var(--cream);
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ══════════════════════════
   HEADER / NAVBAR
   ══════════════════════════ */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252,251,249,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--charcoal-20);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 16px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo .logo-serif { font-family: var(--font-accent); font-style: italic; font-weight: 500; color: var(--mint); }
nav ul { display: flex; gap: clamp(16px, 2.5vw, 36px); align-items: center; }
nav a { font-size: 14px; font-weight: 500; color: var(--charcoal); transition: color 0.2s; }
nav a:hover { color: var(--forest); }
.nav-cta { margin-left: 8px; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > button { background: none; border: none; font: inherit; font-weight: 500; font-size: 14px;
  color: var(--charcoal); cursor: pointer; padding: 4px 0; display: inline-flex; align-items: center; gap: 4px; }
.nav-dropdown > button::after { content: "▾"; font-size: .7em; }
.nav-dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--white); border: 1px solid var(--charcoal-20);
  border-radius: var(--radius-card); box-shadow: 0 8px 24px rgba(42,59,50,.12); padding: 8px; min-width: 220px; display: none; z-index: 110; }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 8px 12px; border-radius: 4px; color: var(--forest); }
.nav-dropdown-menu a:hover { background: var(--cream); color: var(--mint); }

/* Botón hamburguesa — sólo mobile */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; margin: -8px -8px -8px 0;
  color: var(--forest); border-radius: 6px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 680px) {
  .nav-toggle { display: block; }

  /* El nav pasa a ser un panel desplegable bajo el header */
  nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--charcoal-20);
    box-shadow: 0 10px 24px rgba(42,59,50,0.10);
    max-height: calc(100svh - 100%); overflow-y: auto;
  }
  nav.open { display: block; }

  nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 4px var(--pad-x) 20px; }
  nav ul .hide-mobile { display: block; }
  nav ul li { border-bottom: 1px solid var(--charcoal-20); }
  nav ul li:last-child { border-bottom: none; }
  nav ul li > a { display: block; padding: 14px 0; font-size: 16px; }

  /* "Para pacientes" se muestra expandido: sin hover, los links van indentados */
  .nav-dropdown > button { pointer-events: none; padding: 14px 0 6px; font-size: 12px;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--charcoal-50); }
  .nav-dropdown > button::after { content: none; }
  .nav-dropdown-menu { position: static; display: block; background: none;
    border: none; box-shadow: none; padding: 0 0 8px; min-width: 0; }
  .nav-dropdown-menu a { padding: 10px 0 10px 14px; font-size: 16px; }

  .nav-cta { margin-left: 0; margin-top: 14px; text-align: center; }
  nav ul li > a.nav-cta { padding: 15px 32px; }
}

/* ══════════════════════════
   HERO
   ══════════════════════════ */
.hero {
  max-width: var(--max-w); margin: 0 auto;
  padding: clamp(48px, 8vh, 100px) var(--pad-x) clamp(40px, 6vh, 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-text { display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo, .hero-photo-wrap { order: -1; }
}
.hero-content { display: flex; flex-direction: column; justify-content: flex-end; }
.hero-eyebrow {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal-50);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.hero-desc {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--charcoal);
  max-width: 44ch;
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-photo-wrap {
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
}
/* img.hero-photo — homepage: imagen portrait directamente como grid item */
img.hero-photo {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}
/* div.hero-photo — curso: contenedor 16:9 con imagen adentro */
div.hero-photo {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-card);
  background: var(--charcoal-20);
  overflow: hidden;
}
div.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ══════════════════════════
   DARK BAND — MÉTRICAS
   ══════════════════════════ */
.metrics-band {
  background: var(--forest);
  padding: clamp(40px, 6vh, 64px) 0;
}
.metrics-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 768px) { .metrics-inner { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (max-width: 480px) { .metrics-inner { grid-template-columns: 1fr; gap: 32px; } }
.metric { text-align: center; }
.metric-value {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  display: flex; align-items: baseline; justify-content: center; gap: 4px;
}
.metric-value .mint-accent { color: var(--mint); }
.metric-label {
  font-size: 13px;
  color: rgba(252,251,249,0.60);
  margin-top: 6px;
  line-height: 1.4;
}

/* ══════════════════════════
   CONDICIONES / TARJETAS
   ══════════════════════════ */
.conditions {
  max-width: var(--max-w); margin: 0 auto;
  padding: var(--section-py) var(--pad-x);
}
.conditions-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(40px, 6vh, 64px);
}
@media (max-width: 640px) { .conditions-header { grid-template-columns: 1fr; } }
.conditions h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.conditions-desc { font-size: var(--text-body); color: var(--charcoal); max-width: 44ch; }

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.condition-card {
  border: 1px solid var(--charcoal-20);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}
.condition-card:hover {
  border-color: var(--mint);
  box-shadow: 0 4px 24px var(--mint-12);
}
.condition-img {
  width: 100%; aspect-ratio: 4/3;
  overflow: hidden;
}
.condition-img svg {
  width: 100%; height: 100%; display: block;
}
.condition-name {
  padding: 16px 18px 18px;
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font-accent);
  color: var(--forest);
}
.condition-text { padding: 0 18px 16px; font-size: 14px; color: var(--charcoal); line-height: 1.5; }
.condition-cta { padding: 0 18px 18px; display: block; }

/* ══════════════════════════
   CÓMO TRABAJO (2 col)
   ══════════════════════════ */
.surgery {
  background: var(--white);
  padding: var(--section-py) 0;
}
.surgery-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 720px) { .surgery-inner { grid-template-columns: 1fr; } }
.surgery-photo {
  aspect-ratio: 4/3;
  background: var(--charcoal-20);
  border-radius: var(--radius-card);
  overflow: hidden;
  object-fit: cover;
  width: 100%;
}
.surgery h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.surgery-features { display: flex; flex-direction: column; gap: 16px; }
.surgery-feature {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: flex-start;
}
.feature-dot {
  width: 8px; height: 8px;
  background: var(--mint);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.feature-title { font-weight: 600; font-size: 15px; margin-bottom: 3px; color: var(--forest); }
.feature-desc { font-size: 14px; color: var(--charcoal); line-height: 1.5; }

/* ══════════════════════════
   FILOSOFÍA / SOBRE LA DRA
   ══════════════════════════ */
.philosophy {
  max-width: var(--max-w); margin: 0 auto;
  padding: var(--section-py) var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 720px) { .philosophy { grid-template-columns: 1fr; } }
.philosophy h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.philosophy-body { font-size: var(--text-body); color: var(--charcoal); line-height: 1.7; margin-bottom: 28px; }
.philosophy-photo {
  aspect-ratio: 3/4;
  background: var(--charcoal-20);
  border-radius: var(--radius-card);
  object-fit: cover;
  width: 100%;
}

/* ══════════════════════════
   PULL-QUOTE / TESTIMONIAL
   ══════════════════════════ */
.testimonial {
  background: var(--forest);
  padding: clamp(48px, 7vh, 80px) 0;
}
.testimonial-inner {
  max-width: 740px; margin: 0 auto;
  padding: 0 var(--pad-x);
  text-align: center;
}
.quote-mark {
  font-size: 56px;
  line-height: 1;
  color: var(--mint);
  font-family: Georgia, serif;
  margin-bottom: 8px;
}
.quote-text {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500;
  color: var(--cream);
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  font-family: var(--font-accent);
  font-style: italic;
}
.quote-author {
  font-size: 14px;
  font-weight: 700;
  color: var(--mint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.quote-role {
  font-size: 13px;
  color: rgba(252,251,249,0.55);
  margin-top: 2px;
}

/* ══════════════════════════
   SEDES / LOCATIONS
   ══════════════════════════ */
.locations {
  max-width: var(--max-w); margin: 0 auto;
  padding: var(--section-py) var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 720px) { .locations { grid-template-columns: 1fr; } }
.locations h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.location-list { display: flex; flex-direction: column; gap: 0; }
.location-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--charcoal-20);
  cursor: pointer;
  transition: color 0.2s;
}
.location-item:first-child { border-top: 1px solid var(--charcoal-20); }
.location-item:hover .location-name { color: var(--mint); }
.location-name { font-weight: 600; font-size: 16px; }
.location-desc { font-size: 14px; margin-top: 4px; color: var(--charcoal); }
.location-arrow { color: var(--mint); font-size: 18px; }
.location-map {
  border-radius: var(--radius-card);
  aspect-ratio: 4/3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--charcoal-20);
  overflow: hidden;
  position: relative;
}
.location-map iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
}
.location-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  box-shadow: 0 4px 20px rgba(29,45,39,0.10);
  font-size: 14px;
  color: var(--charcoal);
  max-width: 260px;
  text-align: left;
}
.location-card strong { display: block; color: var(--forest); font-size: 15px; margin-bottom: 6px; }

/* ══════════════════════════
   CTA PRE-FOOTER
   ══════════════════════════ */
.cta-band {
  background: var(--forest);
  padding: clamp(56px, 9vh, 96px) 0;
}
.cta-band-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 28px;
}
.cta-band-text {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  color: var(--cream);
  max-width: 20ch;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.cta-band-text .serif { color: rgba(252,251,249,0.65); }

/* ══════════════════════════
   FOOTER — FIRMA XXL
   ══════════════════════════ */
footer {
  background: #0D0D0D;
  padding: clamp(48px, 8vh, 80px) 0 0;
  color: var(--cream);
}
.footer-top {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--pad-x) clamp(40px, 6vh, 60px);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(32px, 5vw, 60px);
}
@media (max-width: 680px) { .footer-top { grid-template-columns: 1fr; } }
.footer-desc { font-size: 15px; color: rgba(252,251,249,0.55); max-width: 38ch; line-height: 1.65; }
.footer-col h4 {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(252,251,249,0.35);
  margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: rgba(252,251,249,0.65); transition: color 0.2s; }
.footer-col a:hover { color: var(--mint); }

.footer-legal {
  max-width: var(--max-w); margin: 0 auto;
  padding: 24px var(--pad-x);
  border-top: 1px solid rgba(252,251,249,0.08);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-size: 12px; color: rgba(252,251,249,0.30);
}

/* LA FIRMA: nombre XXL que ocupa todo el ancho */
.footer-name-xxl {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(252,251,249,0.08);
  padding: 20px var(--pad-x) 0;
}
.footer-name-xxl span {
  display: block;
  font-size: clamp(60px, 12vw, 160px);
  font-weight: 700;
  color: rgba(252,251,249,0.08);
  letter-spacing: -0.04em;
  line-height: 0.9;
  white-space: nowrap;
  transform-origin: left bottom;
}

/* ══════════════════════════
   MOBILE STICKY CTA
   ══════════════════════════ */
.mobile-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 99;
  background: var(--forest);
  padding: 12px 20px;
  border-top: 1px solid rgba(168,118,84,0.3);
}
@media (max-width: 640px) {
  .mobile-cta { display: flex; gap: 10px; }
  body { padding-bottom: 72px; } /* espacio para que el sticky CTA no tape el final del contenido */
}
.mobile-cta .btn-primary { flex: 1; text-align: center; }
.mobile-cta .btn-wa {
  display: inline-block;
  background: #25D366;
  color: white;
  font-weight: 700;
  font-size: 14px;
  padding: 13px 18px;
  border-radius: var(--radius-btn);
  white-space: nowrap;
}

/* ══════════════════════════
   COMPONENTES HEREDADOS (Páginas interiores)
   ══════════════════════════ */
.section { padding: var(--section-py) 0; }
.page-hero { background: var(--cream); padding: clamp(56px, 8vh, 80px) 0 clamp(40px, 6vh, 64px); border-bottom: 1px solid var(--charcoal-20); }
.page-hero h1 { max-width: 22ch; font-size: var(--text-hero); }
.page-hero .lead { font-size: var(--text-h3); color: var(--charcoal); max-width: 44ch; }
.split { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1fr; } }
.split-photo img { border-radius: var(--radius-card); }

.article-body h2 { margin-top: var(--space-12); font-size: var(--text-h2); }
.article-body h3 { margin-top: var(--space-8); font-size: var(--text-h3); }
.article-body img { border-radius: var(--radius-card); margin: var(--space-8) auto; }
.article-meta { color: var(--charcoal); font-size: var(--text-sm); margin-bottom: var(--space-8); border-bottom: 1px solid var(--charcoal-20); padding-bottom: 16px; }
.article-footer-bio { display: flex; gap: var(--space-6); align-items: center; background: var(--white); border: 1px solid var(--charcoal-20); border-radius: var(--radius-card); padding: 24px; margin-top: var(--space-12); }
.article-footer-bio img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.article-footer-bio p { font-size: 14px; color: var(--charcoal); margin: 0; }
.article-footer-bio .bio-name { font-family: var(--font-accent); font-weight: 600; font-size: 18px; color: var(--forest); margin-bottom: 4px; }

.recipe-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.recipe-meta span { background: var(--cream); border: 1px solid var(--charcoal-20); color: var(--forest); font-size: 13px; font-weight: 500; padding: 4px 12px; border-radius: var(--radius-pill); }
.recipe-section { background: var(--white); border: 1px solid var(--charcoal-20); border-radius: var(--radius-card); padding: 32px; margin-bottom: 32px; }
.recipe-section h2 { font-size: var(--text-h3); margin-top: 0; }

.form-card { background: var(--white); border: 1px solid var(--charcoal-20); border-radius: var(--radius-card); padding: 32px; max-width: 600px; }
.form-field { margin-bottom: 24px; }
.form-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.form-field input, .form-field textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--charcoal-20); border-radius: 4px; font: inherit; background: var(--cream); }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--mint); border-color: var(--mint); }
.form-note { font-size: 13px; color: var(--charcoal); }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.breadcrumb { font-size: 13px; color: var(--charcoal-50); margin-bottom: 16px; }
.breadcrumb a { color: var(--charcoal); }
.breadcrumb span { margin: 0 8px; }

.note-box { background: var(--white); border-left: 4px solid var(--mint); border-radius: 4px; padding: 20px 24px; font-size: 15px; color: var(--charcoal); margin: 32px 0; box-shadow: 0 4px 12px rgba(42,59,50,0.05); }

/* Utilities */
p { margin-bottom: 1.2rem; }
.text-center { text-align: center; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.muted { color: var(--charcoal); }
.card-link { font-weight: 600; font-size: 14px; text-decoration: none; color: var(--mint); display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; }
.card-link::after { content: "→"; }
.card-link:hover { text-decoration: underline; }

.card-grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
/* Grillas de exactamente 2 columnas (evita la 3ra columna huérfana en pantallas anchas) */
@media (min-width: 700px) { .mf-pillars, .mf-who { grid-template-columns: 1fr 1fr; } }
.card-grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card-grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }

.card { background: var(--white); border: 1px solid var(--charcoal-20); border-radius: var(--radius-card); overflow: hidden; display: flex; flex-direction: column; padding: 24px; }
.card h3 { font-size: var(--text-h3); margin-bottom: 12px; }
.card p { font-size: var(--text-body); color: var(--charcoal); line-height: 1.6; }
.card-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.card-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-media.aspect-auto img { aspect-ratio: auto; }

/* .btn alias for interior pages that still use class="btn btn-primary" */
.btn { display: inline-block; font-family: var(--font-main); font-weight: 700; font-size: 14px; padding: 13px 28px; border-radius: var(--radius-btn); border: none; cursor: pointer; transition: background 0.2s, transform 0.15s; text-align: center; }

/* Section subtle */
.section-subtle { background: var(--white); }

/* ══════════════════════════
   TABLE (medicina funcional vs convencional)
   ══════════════════════════ */
table { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 14px; background: var(--white); border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--charcoal-20); }
thead { background: var(--forest); color: var(--cream); }
thead th { padding: 14px 16px; text-align: left; font-weight: 700; font-size: 13px; letter-spacing: 0.02em; }
tbody th { padding: 12px 16px; font-weight: 600; color: var(--forest); background: rgba(42,59,50,0.04); text-align: left; font-size: 14px; white-space: nowrap; }
tbody td { padding: 12px 16px; color: var(--charcoal); line-height: 1.5; border-bottom: 1px solid var(--charcoal-20); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: none; }

/* ══════════════════════════
   ACCORDION / FAQ
   ══════════════════════════ */
.accordion, .faq { display: flex; flex-direction: column; gap: 0; margin: 24px 0; }
.accordion details, .faq details { border-bottom: 1px solid var(--charcoal-20); }
.accordion details:first-child, .faq details:first-child { border-top: 1px solid var(--charcoal-20); }
.accordion summary, .faq summary {
  padding: 18px 0;
  font-weight: 600;
  font-size: 16px;
  color: var(--forest);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.accordion summary::after, .faq summary::after { content: "+"; font-size: 20px; color: var(--mint); font-weight: 400; transition: transform 0.2s; }
.accordion details[open] summary::after, .faq details[open] summary::after { content: "−"; }
.accordion summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.accordion-body, .faq-body { padding: 0 0 18px; color: var(--charcoal); font-size: var(--text-body); line-height: 1.6; }

/* Article body lists */
.article-body ul, .article-body ol { margin: 16px 0; padding-left: 24px; }
.article-body li { margin-bottom: 10px; line-height: 1.6; color: var(--charcoal); }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body a { color: var(--mint); text-decoration: underline; }
.article-body a:hover { color: var(--forest); }

/* CTA band used inside interior pages (with .container child) */
.cta-band .container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.cta-band .container h2 { font-size: var(--text-h2); color: var(--cream); margin-bottom: 16px; }
.cta-band .container p { color: rgba(252,251,249,0.7); margin-bottom: 24px; max-width: 50ch; }
.lc-detail { margin-top: 4px; color: var(--charcoal-50); font-size: 13px; }

/* ══════════════════════════
   SCIENCE BOX — caja diferenciada para base científica
   ══════════════════════════ */
.science-box {
  background: var(--white);
  border: 1px solid var(--charcoal-20);
  border-radius: var(--radius-card);
  padding: clamp(32px, 5vw, 48px);
}
.science-box-header {
  margin-bottom: clamp(24px, 4vh, 40px);
}
.science-box-header h2 {
  font-size: var(--text-h2);
  margin-bottom: 12px;
}
.science-box-header p {
  font-size: var(--text-body);
  color: var(--charcoal);
  max-width: 50ch;
}
.science-box .card {
  border: 1px solid var(--charcoal-20);
  padding: 0;
}
.science-box .card-body {
  padding: 20px;
}
.science-box .card-media img {
  border-radius: 0;
}

/* Section kicker (category tag in note cards) */
.section-kicker {
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 8px;
}
.section-intro {
  font-size: var(--text-body);
  color: var(--charcoal);
  max-width: 50ch;
  margin-bottom: 24px;
}

/* "Cargar más" button pattern */
.nota-hidden { display: none !important; }
.load-more-wrap {
  text-align: center;
  margin-top: clamp(32px, 5vh, 48px);
}
.load-more-btn {
  min-width: 240px;
}

/* ══════════════════════════
   CONDITION PAGES — SHARED
   ══════════════════════════ */
.cond-hero {
  background: var(--forest);
  padding: clamp(48px, 8vh, 90px) var(--pad-x) clamp(40px, 6vh, 72px);
}
.cond-hero-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
@media (max-width: 768px) {
  .cond-hero-inner { grid-template-columns: 1fr; }
  .cond-hero-img { order: -1; }
}
.cond-hero .label { color: var(--mint); }
.cond-hero h1 { color: var(--cream); }
.cond-hero .lead { color: rgba(252,251,249,0.75); margin-bottom: 28px; font-size: clamp(15px, 1.3vw, 18px); }
.cond-hero-img { border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 4/3; }
.cond-hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }

.symptom-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
.symptom-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--charcoal-20);
  border-radius: var(--radius-pill); padding: 8px 16px;
  font-size: 14px; font-weight: 500; color: var(--forest);
}
.symptom-chip::before { content: "•"; color: var(--mint); font-size: 20px; line-height: 1; }

.step-cards { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 640px) { .step-cards { grid-template-columns: repeat(3, 1fr); } }
.step-card {
  background: var(--white); border: 1px solid var(--charcoal-20);
  border-radius: var(--radius-card); padding: 24px 24px 28px;
}
.step-num {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mint);
  margin-bottom: 12px; display: block;
}
.step-card h3 { font-size: clamp(16px, 1.4vw, 19px); margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--charcoal); margin: 0; line-height: 1.6; }

.case-cards { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 640px) { .case-cards { grid-template-columns: 1fr 1fr; } }
.case-card {
  background: var(--cream); border: 1px solid var(--charcoal-20);
  border-radius: var(--radius-card); padding: 24px 28px;
  border-left: 4px solid var(--mint);
}
.case-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mint);
  margin-bottom: 10px; display: block;
}
.case-card h3 { font-size: clamp(15px, 1.3vw, 17px); margin-bottom: 10px; }
.case-card p { font-size: 14px; color: var(--charcoal); margin: 0; line-height: 1.6; }

/* ══════════════════════════
   QUÉ ES LA MEDICINA FUNCIONAL
   ══════════════════════════ */

/* Hero con fondo forest oscuro */
.mf-page-hero {
  background: var(--forest);
  border-bottom: none;
}
.mf-page-hero h1 { color: var(--cream); }
.mf-page-hero .lead { color: rgba(252,251,249,0.75); }
.mf-page-hero .label { color: var(--mint); }

.mf-badges {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 24px 0 32px;
}
.mf-badge {
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  padding: 6px 14px; border-radius: var(--radius-pill);
  border: 1.5px solid rgba(168,118,84,0.6);
  color: rgba(252,251,249,0.75);
}

/* Statement band */
.mf-statement {
  background: #1E2D25;
  padding: clamp(40px, 6vh, 64px) 0;
  text-align: center;
}
.mf-statement .container { max-width: 780px; }
.mf-statement-q {
  font-size: clamp(14px, 1.3vw, 17px);
  color: rgba(252,251,249,0.5);
  margin-bottom: 14px;
}
.mf-statement-a {
  font-size: clamp(19px, 2.2vw, 28px);
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--cream);
  line-height: 1.45;
  margin: 0;
}

/* Pillar cards */
.pillar-card {
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
}
@media (max-width: 480px) { .pillar-card { flex-direction: column; } }
.pillar-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  background: var(--mint-12);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--mint);
}
.pillar-icon svg { width: 26px; height: 26px; }
.pillar-card h3 { margin-bottom: 8px; }

/* Condition cards */
.cond-card {
  text-decoration: none; color: inherit;
  flex-direction: row; gap: 18px; align-items: flex-start;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cond-card:hover { border-color: var(--mint); box-shadow: 0 4px 20px var(--mint-12); }
.cond-card-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  background: var(--mint-12); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--mint);
}
.cond-card-icon svg { width: 22px; height: 22px; }
.cond-card h3 { margin-bottom: 8px; font-size: clamp(16px, 1.5vw, 20px); }

/* Comparison two-column */
.mf-compare {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-top: 32px;
}
@media (max-width: 600px) { .mf-compare { grid-template-columns: 1fr; } }
.mf-compare-col {
  border: 1px solid var(--charcoal-20);
  border-radius: var(--radius-card); overflow: hidden;
}
.mf-col-header {
  padding: 14px 20px; font-weight: 700; font-size: 14px;
  letter-spacing: 0.02em;
}
.mf-conv .mf-col-header { background: rgba(68,68,68,0.07); color: var(--charcoal); }
.mf-func .mf-col-header { background: var(--forest); color: var(--cream); }
.mf-compare-col ul { list-style: none; padding: 0; margin: 0; }
.mf-compare-col li {
  padding: 11px 20px; font-size: 14px; color: var(--charcoal);
  border-bottom: 1px solid var(--charcoal-20);
  display: flex; gap: 10px; align-items: flex-start; line-height: 1.45;
}
.mf-compare-col li:last-child { border-bottom: none; }
.mf-conv li::before { content: "·"; color: var(--charcoal-50); font-weight: 700; flex-shrink: 0; line-height: 1.45; }
.mf-func li { color: var(--forest); font-weight: 500; }
.mf-func li::before { content: "✓"; color: var(--mint); font-weight: 700; flex-shrink: 0; line-height: 1.45; }

/* Who cards */
.who-card {
  flex-direction: row; gap: 16px; align-items: flex-start;
}
.who-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--mint-12); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--mint);
}
.who-icon svg { width: 20px; height: 20px; }
.who-card h3 { margin-bottom: 6px; font-size: clamp(16px, 1.4vw, 19px); }


/* ══ COURSE LANDING PAGE ══════════════════════════════════════════════════ */

.cond-hero .breadcrumb { color: rgba(252,251,249,0.45); margin-bottom: 12px; }
.cond-hero .breadcrumb a { color: rgba(252,251,249,0.65); }
.cond-hero .breadcrumb span { margin: 0 6px; }
.course-trust { font-size: 12px; color: rgba(252,251,249,0.5); margin: 12px 0 0; letter-spacing: 0.03em; }

/* Outcomes */
.outcome-grid { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 580px) { .outcome-grid { grid-template-columns: 1fr 1fr; } }
.outcome-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 20px;
  background: var(--white); border: 1px solid var(--charcoal-20);
  border-radius: var(--radius-card);
}
.outcome-item svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--mint); margin-top: 2px; }
.outcome-item p { font-size: 15px; color: var(--forest); font-weight: 500; margin: 0; line-height: 1.45; }

/* Modules */
.module-cards { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 768px) { .module-cards { grid-template-columns: repeat(3, 1fr); } }
.module-card {
  background: var(--white); border: 1px solid var(--charcoal-20);
  border-radius: var(--radius-card); padding: 28px 24px;
}
.module-num {
  font-size: 10px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--mint); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.module-num::after { content: ''; flex: 1; height: 1px; background: var(--mint-12); }
.module-card h3 { font-size: clamp(16px, 1.4vw, 18px); margin-bottom: 10px; }
.module-card > p { font-size: 14px; color: var(--charcoal); margin-bottom: 14px; }
.module-card ul { margin: 0; padding-left: 0; list-style: none; }
.module-card li {
  font-size: 14px; color: var(--charcoal);
  padding: 7px 0; border-bottom: 1px solid var(--charcoal-20);
  display: flex; gap: 10px; align-items: flex-start; line-height: 1.5;
}
.module-card li:last-child { border-bottom: none; padding-bottom: 0; }
.module-card li::before { content: "→"; color: var(--mint); flex-shrink: 0; font-weight: 700; }

/* Bonuses */
.bonus-cards { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 640px) { .bonus-cards { grid-template-columns: repeat(3, 1fr); } }
.bonus-card {
  background: var(--white); border: 1px solid var(--charcoal-20);
  border-radius: var(--radius-card); padding: 22px 24px;
  border-top: 3px solid var(--mint);
}
.bonus-label { font-size: 10px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--mint); margin-bottom: 10px; display: block; }
.bonus-card h3 { font-size: clamp(14px, 1.2vw, 16px); margin-bottom: 8px; color: var(--forest); }
.bonus-card p { font-size: 13px; color: var(--charcoal); margin: 0; line-height: 1.55; }

/* For whom */
.for-whom-grid { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 640px) { .for-whom-grid { grid-template-columns: 1fr 1fr; } }
.for-whom-col { border: 1px solid var(--charcoal-20); border-radius: var(--radius-card); overflow: hidden; }
.for-whom-header { padding: 14px 20px; font-weight: 700; font-size: 14px; letter-spacing: 0.01em; }
.for-whom-yes .for-whom-header { background: var(--forest); color: var(--cream); }
.for-whom-no .for-whom-header { background: rgba(68,68,68,0.07); color: var(--charcoal); }
.for-whom-col ul { list-style: none; padding: 0; margin: 0; }
.for-whom-col li {
  padding: 11px 20px; font-size: 14px; color: var(--charcoal);
  border-bottom: 1px solid var(--charcoal-20);
  display: flex; gap: 10px; align-items: flex-start; line-height: 1.45;
}
.for-whom-col li:last-child { border-bottom: none; }
.for-whom-yes li::before { content: "✓"; color: var(--mint); font-weight: 700; flex-shrink: 0; line-height: 1.45; }
.for-whom-no li { color: var(--charcoal-50); }
.for-whom-no li::before { content: "✕"; color: var(--charcoal-50); font-weight: 700; flex-shrink: 0; line-height: 1.45; }

/* Instructor */
.instructor-split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 768px) { .instructor-split { grid-template-columns: 260px 1fr; } }
.instructor-photo { border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 3/4; }
.instructor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.instructor-creds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.instructor-cred { font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--mint-12); color: var(--forest); }

/* Course details box */
.course-box {
  background: var(--white); border: 1px solid var(--charcoal-20);
  border-radius: var(--radius-card); padding: 28px 32px;
  max-width: 700px; margin: 32px auto 0;
}
.course-box h3 { font-size: clamp(17px, 1.5vw, 20px); margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--charcoal-20); }
.course-box-grid { display: grid; gap: 16px 32px; }
@media (min-width: 480px) { .course-box-grid { grid-template-columns: 1fr 1fr; } }
.course-box-item { display: flex; gap: 12px; align-items: flex-start; }
.course-box-item svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--mint); margin-top: 3px; }
.course-box-item div { font-size: 14px; color: var(--charcoal); line-height: 1.45; }
.course-box-item strong { display: block; font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--charcoal-50); margin-bottom: 3px; }

/* Taller Sueño — landing de lanzamiento */
.sleep-event-hero .cond-hero-inner {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.7fr);
}
.sleep-event-card img { aspect-ratio: 4 / 5; object-position: center; }
.sleep-event-poster {
  aspect-ratio: 4 / 5;
  max-width: 440px;
  width: 100%;
  justify-self: end;
  order: 0;
  box-shadow: 0 20px 60px rgba(10, 24, 17, 0.3);
}
.sleep-event-poster img { object-position: center; }
.sleep-event-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  background: var(--mint-12);
  color: var(--mint);
  font-weight: 800;
  font-size: 13px;
}
.sleep-event-agenda {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.sleep-event-agenda .module-card > p { margin-bottom: 0; }
.sleep-event-agenda-visual {
  max-width: 520px;
  margin: clamp(32px, 6vh, 56px) auto 0;
  text-align: center;
}
.sleep-event-agenda-visual img {
  border-radius: var(--radius-card);
  box-shadow: 0 14px 40px rgba(30, 45, 37, 0.12);
}
.sleep-event-agenda-visual figcaption { margin-top: 12px; color: var(--charcoal-50); font-size: 12px; }
.sleep-event-instructors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 40px);
  margin-top: 32px;
}
.sleep-event-instructor { display: flex; flex-direction: column; min-width: 0; }
.sleep-event-instructor-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background: var(--charcoal-20);
}
.sleep-event-instructor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sleep-event-instructor-photo.flor img { object-position: center 34%; }
.sleep-event-instructor-photo.mercedes img { object-position: center 42%; }
.sleep-event-instructor .case-card {
  flex: 1;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  border-top: 0;
  border-left-width: 1px;
}
.sleep-event-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}
.sleep-event-offer > div:first-child > p { max-width: 58ch; }
.sleep-event-offer ul { margin: 24px 0 0; padding-left: 20px; }
.sleep-event-offer li { margin: 8px 0; color: var(--charcoal); }
.sleep-event-price {
  background: var(--forest);
  color: var(--cream);
  border-radius: var(--radius-card);
  padding: clamp(28px, 4vw, 40px);
  text-align: center;
  box-shadow: 0 16px 46px rgba(30, 45, 37, 0.18);
}
.sleep-event-price-label {
  margin: 0 0 8px;
  color: var(--mint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sleep-event-price-value {
  margin: 0;
  color: var(--cream);
  font-family: var(--font-accent);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  line-height: 1;
}
.sleep-event-price-value span { font-family: var(--font-main); font-size: 13px; letter-spacing: 0.08em; }
.sleep-event-installments { margin: 12px 0 24px; color: rgba(252,251,249,0.78); font-size: 14px; }
.sleep-event-price .btn { width: 100%; }
.sleep-event-price-note { margin: 14px 0 0; color: rgba(252,251,249,0.55); font-size: 11px; line-height: 1.5; }
.sleep-event-final-note { margin: 16px 0 0; color: rgba(252,251,249,0.58); font-size: 12px; }
@media (max-width: 768px) {
  .sleep-event-hero .cond-hero-inner,
  .sleep-event-offer { grid-template-columns: 1fr; }
  .sleep-event-poster { justify-self: center; max-width: 380px; }
  .sleep-event-agenda { grid-template-columns: 1fr; }
  .sleep-event-instructors { grid-template-columns: 1fr; }
}

/* ══ BENTO GRID — HOMEPAGE CONDITIONS ════════════════════════════════════ */

.cond-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 12px;
  margin-top: 32px;
}
@media (max-width: 520px) {
  .cond-bento { grid-template-columns: 1fr; }
  .bento-tall, .bento-wide { grid-row: auto; grid-column: auto; }
}
@media (min-width: 521px) and (max-width: 767px) {
  .cond-bento { grid-template-columns: 1fr 1fr; }
  .bento-tall { grid-row: span 2; }
  .bento-wide { grid-column: span 2; }
}
@media (min-width: 768px) {
  .bento-tall { grid-row: span 2; }
  .bento-wide { grid-column: span 2; }
}

.bento-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  min-height: 220px;
}
.bento-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(42,59,50,0.18); }

/* Photo bg */
.bento-photo {
  background-size: cover;
  background-position: center top;
  color: var(--cream);
}
.bento-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(30,45,37,0.15) 0%, rgba(30,45,37,0.82) 100%);
  z-index: 0;
}
.bento-photo > * { position: relative; z-index: 1; }

/* Solid variants */
.bento-forest { background: var(--forest); color: var(--cream); }
.bento-warm   { background: #A87654; color: var(--cream); }
.bento-dark   { background: #1a2820; color: var(--cream); }
.bento-cream  { background: var(--cream); color: var(--forest); border: 1px solid var(--charcoal-20); }

/* Card copy */
.bento-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0.55; margin-bottom: 8px; display: block;
}
.bento-title {
  font-size: clamp(16px, 1.8vw, 22px); font-weight: 700; line-height: 1.25;
  margin-bottom: 8px; color: inherit;
}
.bento-tall .bento-title { font-size: clamp(21px, 2.4vw, 30px); }
.bento-desc { font-size: 14px; opacity: 0.78; line-height: 1.5; margin-bottom: 16px; }
.bento-cta {
  font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px;
  opacity: 0.85;
}
.bento-cream .bento-cta { color: var(--forest); opacity: 1; }

/* ══ INFO BOX CAROUSEL ════════════════════════════════════════════════════ */

.info-carousel { margin-top: 32px; }
.info-carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--pad-x);
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.info-carousel-track::-webkit-scrollbar { display: none; }
.info-box {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: min(80vw, 300px);
  min-height: 320px;
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.info-box:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(42,59,50,0.18); }
.info-carousel-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.info-carousel-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--charcoal-20);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1;
  color: var(--forest);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.info-carousel-btn:hover:not(:disabled) { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.info-carousel-btn:disabled { opacity: 0.35; cursor: default; }

/* ══ CARD COLOR VARIANTS (pillar, module, step, case) ════════════════════ */

/* Forest dark */
.pillar-card.forest,
.module-card.forest,
.step-card.forest,
.case-card.forest {
  background: var(--forest);
}
.pillar-card.forest .pillar-icon { background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.85); }
.pillar-card.forest h3, .module-card.forest h3, .step-card.forest h3, .case-card.forest h3 { color: var(--cream); }
.pillar-card.forest p, .module-card.forest p, .step-card.forest p, .case-card.forest p { color: rgba(252,251,249,0.72); }
.module-card.forest .module-num { color: rgba(252,251,249,0.5); }
.module-card.forest .module-num::after { background: rgba(255,255,255,0.15); }
.module-card.forest li { color: rgba(252,251,249,0.75); border-bottom-color: rgba(255,255,255,0.12); }
.module-card.forest li::before { color: rgba(255,255,255,0.45); }
.step-card.forest .step-num { color: rgba(252,251,249,0.5); }

/* Warm terracotta */
.pillar-card.warm,
.module-card.warm,
.step-card.warm {
  background: #A87654;
}
.pillar-card.warm .pillar-icon { background: rgba(255,255,255,0.13); color: rgba(255,255,255,0.9); }
.pillar-card.warm h3, .module-card.warm h3, .step-card.warm h3 { color: var(--cream); }
.pillar-card.warm p, .module-card.warm p, .step-card.warm p { color: rgba(252,251,249,0.80); }
.step-card.warm .step-num { color: rgba(252,251,249,0.6); }

/* Mint-tinted (light accent) */
.pillar-card.tinted { background: var(--mint-12); border-color: rgba(168,118,84,0.25); }

/* ══════════════════════════
   FULL-BLEED HERO
   ══════════════════════════ */
.hero-fullbleed {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: right center;
  color: var(--cream);
  overflow: hidden;
}
.hero-fullbleed::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(30,45,37,0.92) 0%,
    rgba(30,45,37,0.70) 45%,
    rgba(30,45,37,0.22) 100%);
  z-index: 0;
}
.hero-fullbleed.overlay-center::before {
  background: rgba(30,45,37,0.70);
}
.hero-fullbleed-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(100px, 16vh, 160px) var(--pad-x) clamp(64px, 10vh, 100px);
}
.hero-fullbleed-content { max-width: 600px; }
.hero-fullbleed .label { color: var(--mint); display: block; margin-bottom: 16px; }
.hero-fullbleed h1 {
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin-bottom: 20px;
}
.hero-fullbleed .lead {
  color: rgba(252,251,249,0.82);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 50ch;
}
.hero-fullbleed .hero-eyebrow { color: rgba(252,251,249,0.6); margin-bottom: 16px; }
.hero-fullbleed .hero-desc { color: rgba(252,251,249,0.78); margin-bottom: 32px; }
.hero-fullbleed .symptom-chips { margin: 20px 0 32px; }
.hero-fullbleed .symptom-chip {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
  color: var(--cream);
}
.hero-fullbleed .course-trust { color: rgba(252,251,249,0.50); margin-top: 12px; }
.hero-fullbleed .breadcrumb { color: rgba(252,251,249,0.45); margin-bottom: 14px; }
.hero-fullbleed .breadcrumb a { color: rgba(252,251,249,0.65); }
@media (max-width: 768px) {
  .hero-fullbleed {
    background-position: center top;
    align-items: flex-end;
  }
  .hero-fullbleed::before {
    background: linear-gradient(to top,
      rgba(30,45,37,0.96) 0%,
      rgba(30,45,37,0.80) 45%,
      rgba(30,45,37,0.35) 100%);
  }
  .hero-fullbleed.overlay-center::before {
    background: rgba(30,45,37,0.80);
  }
  .hero-fullbleed-inner { padding-top: clamp(48px, 8vh, 80px); }
  .hero-fullbleed-content { max-width: 100%; }
}

/* ══════════════════════════
   PHOTO BAND — full-width photo strip
   ══════════════════════════ */
.photo-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  height: clamp(200px, 28vw, 340px);
  overflow: hidden;
}
.photo-band img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.condition-banner {
  width: 100%;
  height: clamp(200px, 28vw, 340px);
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width: 640px) {
  .photo-band { grid-template-columns: 1fr 1fr; height: 180px; }
  .photo-band img:last-child { display: none; }
  .condition-banner { height: 180px; }
}

/* ══════════════════════════════════════════════
   V3 LOOK & FEEL — motion, micro-interacciones
   y componentes editoriales
   ══════════════════════════════════════════════ */

::selection { background: var(--mint-20); color: var(--forest); }

/* ── Reveals escalonados (JS asigna --d por índice de hermano) ── */
.reveal { transition-delay: var(--d, 0s); }

/* ── Entrada del hero al cargar la página ── */
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-hero .container > *,
.hero-fullbleed-content > * {
  animation: rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.page-hero .container > *:nth-child(2),
.hero-fullbleed-content > *:nth-child(2) { animation-delay: 0.08s; }
.page-hero .container > *:nth-child(3),
.hero-fullbleed-content > *:nth-child(3) { animation-delay: 0.16s; }
.page-hero .container > *:nth-child(4),
.hero-fullbleed-content > *:nth-child(4) { animation-delay: 0.24s; }
.page-hero .container > *:nth-child(5),
.hero-fullbleed-content > *:nth-child(5) { animation-delay: 0.32s; }

/* ── Ken Burns sutil en heroes full-bleed ── */
@keyframes hero-zoom { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero-fullbleed { isolation: isolate; }
.hero-fullbleed::after {
  content: '';
  position: absolute; inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: inherit;
  z-index: -1;
  animation: hero-zoom 12s ease-out both;
}

/* ── Botones: barrido de luz + flecha ── */
.btn-primary, .btn-primary-light, .btn.btn-primary {
  position: relative; overflow: hidden;
}
.btn-primary::before, .btn-primary-light::before, .btn.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.28) 50%, transparent 60%);
  transform: translateX(-130%);
  transition: transform 0.55s ease;
  pointer-events: none;
}
.btn-primary:hover::before, .btn-primary-light:hover::before, .btn.btn-primary:hover::before { transform: translateX(130%); }
.btn-outline { transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s; }
.btn-outline:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(42,59,50,0.14); }

/* ── Nav: subrayado animado ── */
nav ul li > a:not(.nav-cta) {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: left bottom;
  padding-bottom: 3px;
  transition: background-size 0.28s ease, color 0.2s;
}
nav ul li > a:not(.nav-cta):hover { background-size: 100% 1.5px; }

/* ── Header con sombra al scrollear ── */
header { transition: box-shadow 0.3s ease; }
header.scrolled { box-shadow: 0 8px 30px rgba(42,59,50,0.09); }

/* ── Cards: lift + íconos vivos ── */
.card { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--mint-20); box-shadow: 0 16px 40px rgba(42,59,50,0.10); }
.pillar-icon, .who-icon, .cond-card-icon {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s, color 0.25s;
}
.pillar-card:hover .pillar-icon,
.who-card:hover .who-icon,
.cond-card:hover .cond-card-icon {
  transform: rotate(-6deg) scale(1.08);
  background: var(--mint);
  color: var(--white);
}
.pillar-card.forest:hover .pillar-icon { background: rgba(255,255,255,0.22); color: var(--white); }
.pillar-card.warm:hover .pillar-icon { background: rgba(255,255,255,0.25); color: var(--white); }

/* ── Bento / info-box: CTA con flecha que respira ── */
.bento-cta { transition: gap 0.25s ease; }
.bento-card:hover .bento-cta, .info-box:hover .bento-cta { gap: 10px; }

/* ── Location rows: flecha que se desliza ── */
.location-arrow { transition: transform 0.25s ease; }
.location-item:hover .location-arrow { transform: translateX(6px); }
.card-link { transition: gap 0.25s ease; }
.card-link:hover { gap: 9px; }

/* ── FAQ / acordeón: apertura suave ── */
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.accordion details[open] .accordion-body,
.faq details[open] .faq-body { animation: faq-open 0.35s ease both; }
.accordion summary, .faq summary { transition: color 0.2s; }
.accordion summary:hover, .faq summary:hover { color: var(--mint); }
.accordion details[open] summary::after, .faq details[open] summary::after { transform: rotate(180deg); }

/* ── MARQUEE — banda editorial en movimiento ── */
.marquee {
  background: var(--forest);
  color: var(--cream);
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid rgba(252,251,249,0.08);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-seq {
  display: flex; align-items: center;
  flex-shrink: 0;
}
.marquee-seq span {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(17px, 2.2vw, 24px);
  white-space: nowrap;
  padding: 0 18px;
}
.marquee-seq i {
  font-style: normal;
  color: var(--mint);
  font-size: 14px;
}
@keyframes marquee-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-seq { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .marquee-seq + .marquee-seq { display: none; }
}

/* ── Retratos con arco editorial ── */
.photo-arch {
  border-radius: 999px 999px var(--radius-card) var(--radius-card) !important;
  overflow: hidden;
}
.photo-arch img { 
  border-radius: 0 !important; 
  width: 100%; 
  height: 100%; 
  max-height: 600px;
  object-fit: cover; 
  object-position: center 25%;
}

/* ── Ornamento botánico (marca de agua en bandas oscuras) ── */
.cta-band { position: relative; overflow: hidden; }
.cta-band::after {
  content: '';
  position: absolute;
  right: clamp(-60px, -4vw, -20px);
  bottom: -70px;
  width: clamp(220px, 30vw, 380px);
  aspect-ratio: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23FCFBF9' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M100 192C100 130 100 60 100 10'/%3E%3Cpath d='M100 150C66 142 50 112 57 84C90 92 102 120 100 150Z'/%3E%3Cpath d='M100 116C134 108 150 78 143 50C110 58 98 86 100 116Z'/%3E%3Cpath d='M100 82C76 76 64 54 69 34C92 40 101 60 100 82Z'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0.07;
  transform: rotate(-14deg);
  pointer-events: none;
}
.cta-band .container, .cta-band-inner { position: relative; z-index: 1; }

/* ── Métricas: acento tipográfico editorial ── */
.metric { position: relative; }
@media (min-width: 769px) {
  .metric + .metric::before {
    content: '';
    position: absolute;
    left: -12px; top: 50%;
    transform: translateY(-50%);
    height: 44px; width: 1px;
    background: rgba(252,251,249,0.14);
  }
}
.metric-value { font-family: var(--font-accent); }

/* ── Fotos linkeadas: zoom sutil ── */
.split-photo { overflow: hidden; border-radius: var(--radius-card); }
.split-photo img { transition: transform 0.6s ease; }
a .split-photo:hover img { transform: scale(1.04); }

/* ── ÁREA ROWS — lista editorial de condiciones (servicios) ── */
.area-list {
  display: flex; flex-direction: column;
  margin-top: 32px;
  border-top: 1px solid var(--charcoal-20);
}
.area-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  padding: clamp(22px, 3.5vh, 34px) 8px;
  border-bottom: 1px solid var(--charcoal-20);
  text-decoration: none;
  transition: background 0.25s ease, padding-left 0.25s ease;
}
.area-row:hover { background: var(--mint-12); padding-left: 20px; }
.area-num {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--mint);
}
.area-row h3 { margin: 0 0 6px; font-size: clamp(18px, 2vw, 24px); }
.area-row p { margin: 0; font-size: 14px; color: var(--charcoal); max-width: 60ch; }
.area-arrow { font-size: 22px; color: var(--mint); transition: transform 0.25s ease; }
.area-row:hover .area-arrow { transform: translateX(8px); }
@media (max-width: 560px) {
  .area-row { grid-template-columns: 40px 1fr; }
  .area-arrow { display: none; }
}

/* ── HERO CON VIDEO DE FONDO ── */
.hero-video::after { display: none; } /* el video ya aporta movimiento propio, sin duplicar el Ken Burns */
.hero-fullbleed-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
}
@media (prefers-reduced-motion: reduce) {
  .hero-fullbleed-video { display: none; } /* el background-image inline del section actúa de fallback estático */
}
