/* ─── TOKENS ──────────────────────────────────────────── */
:root {
  --teal:              #76b9b9;
  --teal-dark:         #5a9a9a;
  --peach:             #f5e6dc;
  --peach-deep:        #fae3d4;
  --white:             #ffffff;
  --ink:               #2c3a3a;
  --ink-muted:         #677171;
  --cream:             #faf8f5;
  --hero-peach:        #f7e1d0;
  /* Franjas del hero: más luz que --peach-deep, mismo ritmo visual */
  --hero-stripe:       #f1ded2;
  --hero-edge-strong:  var(--peach-deep);
  --hero-edge-soft:    #f7ebe3;
  --hero-quote-color:  #76b8b1;
  --equipo-panel-base: #7fc4bd;
  --equipo-panel-stripe:#a9dad4;
  --equipo-panel-pale: #cceae6;

  /* Radios */
  --r-sm:      10px;
  --r-md:      18px;
  --r-lg:      28px;
  --r-portrait:36px;
  --r-circle:  50%;

  /* ── Transparencias teal ── */
  --teal-alpha-15: rgba(118, 185, 185, 0.15);
  --teal-alpha-22: rgba(118, 185, 185, 0.22);
  --teal-alpha-25: rgba(118, 185, 185, 0.25);
  --teal-alpha-30: rgba(118, 185, 185, 0.30);
  --teal-alpha-35: rgba(118, 185, 185, 0.35);
  --teal-alpha-45: rgba(118, 185, 185, 0.45);

  /* ── Sombras ── */
  --shadow-sm:  0 6px 20px  rgba(44, 58, 58, 0.10);
  --shadow-md:  0 10px 32px rgba(44, 58, 58, 0.10);
  --shadow-lg:  0 10px 36px rgba(44, 58, 58, 0.08);

  /* ── Escala tipográfica ── */
  --text-xs:   0.82rem;   /* pills, labels, nav   */
  --text-sm:   0.92rem;   /* notas, meta, pie     */
  --text-base: 1.05rem;   /* cuerpo principal     */
  --text-md:   1.15rem;   /* subtítulos h4 / h3   */
  --text-lg:   1.35rem;   /* subtítulos h3        */
  --text-xl:   1.6rem;    /* títulos de sección   */

  /* ── Pesos ── */
  --w-regular: 400;
  --w-bold:    700;

  /* ── Líneas de altura (coherencia tipográfica) ── */
  --lh-tight:   1.2;      /* headings */
  --lh-normal:  1.55;     /* body text */
  --lh-relaxed: 1.7;      /* text largo */
  --lh-compact: 1.45;     /* meta/footer */

  /* ── Escala de espaciado (coherencia visual) ── */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
}

/* ─── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Anclas de navegación */
#equipo, #equipo-detalle, #servicios, #servicios-extendidos,
#consultorio, #dra, #mas-sobre, #turnos {
  scroll-margin-top: 6rem;
}

body {
  margin: 0;
  padding-bottom: 0;
  font-family: "Merriweather", Georgia, "Times New Roman", serif;
  font-size: var(--text-base);
  font-weight: var(--w-regular);
  line-height: var(--lh-normal);
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-decoration: none; font-family: "Domine", Georgia, serif; }
a:hover { text-decoration: underline; }

/* ─── LAYOUT ──────────────────────────────────────────── */
.container { width: min(1120px, 100% - 3rem); margin-inline: auto; }
.section { padding: 4rem 0; }
.section--banner { padding-top: 0; }
.section-alt { background: var(--cream); }
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: stretch;
}

/* ─── TIPOGRAFÍA: componentes reutilizables ───────────── */

/* h2 de todas las secciones — igual en toda la página */
.section-heading {
  margin: 0 0 var(--space-sm);
  font-family: "Domine", Georgia, serif;
  font-size: var(--text-xl);
  font-weight: var(--w-bold);
  color: var(--teal);
  letter-spacing: 0.03em;
  line-height: var(--lh-tight);
}

/* h3 de todas las subsecciones — igual en toda la página */
.subsection-heading {
  margin: 0 0 var(--space-sm);
  font-family: "Domine", Georgia, serif;
  font-size: var(--text-md);
  font-weight: var(--w-bold);
  color: var(--teal);
  letter-spacing: 0.02em;
  line-height: var(--lh-tight);
}
/* Variante: color acento + tamaño lg (usado en h2 de perfiles dra) */
.subsection-heading--accent { color: var(--hero-quote-color); font-size: var(--text-lg); }

/* Chips de etiqueta */
.title-pill {
  display: inline-block;
  margin: 0 0 var(--space-md);
  padding: var(--space-xs) 1.1rem;
  font-family: "Domine", Georgia, serif;
  font-size: var(--text-xs);
  font-weight: var(--w-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--teal);
  border-radius: var(--r-sm);
}

/* Texto secundario */
.text-muted {
  color: var(--ink-muted);
  font-size: var(--text-base);
  line-height: var(--lh-relaxed);
}
.text-note {
  margin: var(--space-sm) 0 0;
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--ink-muted);
}

/* ─── HEADER ──────────────────────────────────────────── */
.site-header {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--teal-alpha-25);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "logo nav tools";
  align-items: center;
  gap: 1rem 1.5rem;
}
.site-header .logo { grid-area: logo; }
.site-nav { grid-area: nav; justify-self: center; min-width: 0; }
.header-tools {
  grid-area: tools;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: end;
}

/* Botón menú móvil */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  padding: 0; border: none;
  background: var(--teal-alpha-15);
  border-radius: var(--r-sm);
  cursor: pointer;
  align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--teal);
}
.nav-toggle:hover { background: var(--teal-alpha-30); }
.nav-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.nav-toggle-bars { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 20px; }
.nav-toggle-bars span { display: block; height: 2px; background: currentColor; border-radius: 1px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-family: "Domine", Georgia, serif;
  font-size: clamp(1.8rem, 2vw, 2.16rem);
  font-weight: var(--w-bold);
  color: var(--teal);
  letter-spacing: 0.02em;
}
.logo:hover { text-decoration: none; color: var(--teal-dark); }

/* Nav links */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 2vw, 2rem);
  list-style: none;
  margin: 0; padding: 0;
  font-family: "Domine", Georgia, serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.15;
}
.nav-links a { color: var(--teal); display: inline-block; text-align: center; }
.nav-links a:hover { color: var(--teal-dark); }

/* Redes sociales */
.social { display: flex; gap: 0.65rem; align-items: center; }
.social a {
  display: flex;
  align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--r-circle);
  background: var(--teal-alpha-15);
  color: var(--teal);
}
.social a:hover { background: var(--teal-alpha-30); text-decoration: none; }
.social img { width: 18px; height: 18px; display: block; }

/* ─── HERO ────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 0;
  background-color: var(--hero-peach);
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 42%,
      rgba(0, 0, 0, 0.04) 100%
    ),
    linear-gradient(
      to right,
      var(--hero-peach)  0%,
      var(--hero-peach)  79%,
      var(--hero-stripe)  79%,
      var(--hero-stripe)  91%,
      var(--hero-peach)  91%,
      var(--hero-peach)  92.1%,
      var(--hero-edge-soft) 92.1%,
      var(--hero-edge-soft) 94.2%,
      var(--hero-stripe)  94.2%,
      var(--hero-stripe)  96.1%,
      var(--hero-peach)  96.1%,
      var(--hero-peach)  100%
    );
}
/* Un poco más ancho que el .container global: el par imagen+cita usa mejor el espacio */
.hero .container {
  position: relative;
  z-index: 1;
  width: min(1180px, 100% - 2.5rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  gap: clamp(0.75rem, 2vw, 1.65rem);
  align-items: stretch;
  justify-items: stretch;
  /* Altura fija del bloque: los % en hijos resuelven bien y ambas columnas empatan */
  height: min(420px, 50vh);
  min-height: clamp(260px, 32vw, 380px);
  max-height: min(420px, 50vh);
  overflow: hidden;
  box-sizing: border-box;
}
.hero-visual {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}
.hero-quote {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: clamp(0.4rem, 1vw, 0.65rem);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}
.hero-quote blockquote {
  margin: 0;
  max-width: none;
  width: 100%;
  text-align: center;
  font-family: "Domine", Georgia, serif;
  font-size: clamp(1.3rem, 1.85vw, 1.52rem);
  font-weight: var(--w-bold);
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--hero-quote-color);
  font-style: italic;
}

/* ─── DRA (sección bio) ───────────────────────────────── */
#dra .container.two-col { padding-top: 2.75rem; gap: clamp(1.75rem, 3.2vw, 2.5rem); }

.bio-card { position: relative; display: flex; flex-direction: column; min-height: 0; height: 100%; }
/* Card component */
.card {
  position: relative;
  display: flex; flex-direction: column; flex: 1;
  min-height: 12rem; height: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.card--peach {
  background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, transparent 55%), #fdebdd;
  border: 1px solid rgba(237, 213, 197, 0.55);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem 1.75rem;
  padding-left: clamp(7rem, 22vw, 9.5rem);
}
.bio-card-visual {
  position: absolute;
  left: 1.25rem; top: -2.4rem;
  width: clamp(85px, 18vw, 120px);
  aspect-ratio: 4 / 5;
  border-radius: var(--r-portrait);
  overflow: hidden;
  background: #e8e4df;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.bio-card-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.bio-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.bio-body p { margin: 0 0 var(--space-md); color: var(--ink-muted); font-size: var(--text-sm); line-height: var(--lh-relaxed); }
.bio-actions { margin-top: auto; padding-top: var(--space-lg); text-align: right; }

/* Enfoque box */
.enfoque-box {
  display: flex; flex-direction: column;
  min-height: 0; height: 100%;
}
.enfoque-box .title-pill { background: var(--hero-quote-color); margin-bottom: 1.2rem; }
.enfoque-lead { margin: 0 0 var(--space-md); color: var(--ink-muted); font-size: var(--text-base); line-height: var(--lh-normal); }
.enfoque-box ul {
  flex: 0 1 auto;
  list-style: none;
  margin: 0; padding: 0;
  color: var(--ink-muted);
  font-size: var(--text-sm);
}
.enfoque-box li { position: relative; padding-left: 1.1rem; margin-bottom: var(--space-sm); }
.enfoque-box li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px;
  border-radius: var(--r-circle);
  background: var(--hero-quote-color);
}
.enfoque-outro { margin: var(--space-lg) 0 0; color: var(--ink-muted); font-size: var(--text-sm); line-height: var(--lh-normal); font-style: italic; }

/* ─── BOTONES ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.6rem 1.6rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--text-xs);
  font-weight: var(--w-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none; border-radius: var(--r-sm); cursor: pointer;
}
/* BEM: btn--primary (botones principales) */
.btn--primary { background: var(--hero-quote-color); color: var(--white); }
.btn--primary:hover { background: var(--teal-dark); text-decoration: none; color: var(--white); }
/* BEM: btn--secondary (botones secundarios) */
.btn--secondary { background: var(--peach); color: var(--teal); }
.btn--secondary:hover { background: var(--white); color: var(--teal-dark); text-decoration: none; }
/* ─── EQUIPO PANEL (resumen) ──────────────────────────── */
.team-band { background: var(--cream); padding: var(--space-xl) 0; }
.card--team {
  border-radius: var(--r-md);
  padding: clamp(0.85rem, 2vw, 1.2rem) clamp(1rem, 3vw, 1.75rem) clamp(1rem, 2.2vw, 1.35rem);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(44, 58, 58, 0.22);
  background-color: var(--equipo-panel-base);
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 42%,
      rgba(0, 0, 0, 0.04) 100%
    ),
    linear-gradient(
      to right,
      var(--equipo-panel-base) 0%,
      var(--equipo-panel-base) 79%,
      var(--equipo-panel-stripe) 79%,
      var(--equipo-panel-stripe) 91%,
      var(--equipo-panel-base) 91%,
      var(--equipo-panel-base) 92.1%,
      var(--equipo-panel-pale) 92.1%,
      var(--equipo-panel-pale) 94.2%,
      var(--equipo-panel-stripe) 94.2%,
      var(--equipo-panel-stripe) 96.1%,
      var(--equipo-panel-base) 96.1%,
      var(--equipo-panel-base) 100%
    );
}
.team-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1rem);
  column-gap: clamp(0.75rem, 2vw, 1.25rem);
}
.team-panel-title {
  margin: 0;
  font-family: "Domine", Georgia, serif;
  font-size: var(--text-xl);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: var(--w-bold);
  color: var(--white);
  justify-self: start;
  align-self: center;
}
.team-center-col {
  grid-column: 2;
  justify-self: center;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-width: 0; width: max-content; max-width: 100%;
}
.team-members-cluster { display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); width: auto; }
.team-members-row {
  display: flex; flex-wrap: wrap;
  align-items: flex-start; justify-content: center;
  gap: clamp(1.25rem, 4vw, 2.75rem);
  width: 100%;
}
.team-member {
  display: flex; flex-direction: column;
  align-items: center; gap: var(--space-xs);
  margin: 0; flex: 0 1 auto;
  max-width: 11rem; text-align: center;
}
.team-member-photo {
  flex-shrink: 0;
  width: clamp(76px, 11vw, 112px); aspect-ratio: 1;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.team-member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.team-member figcaption {
  display: block; margin: 0; padding: 0;
  font-family: "Domine", Georgia, serif;
  font-size: clamp(0.75rem, 1.3vw, var(--text-sm));
  font-weight: var(--w-bold);
  line-height: var(--lh-tight);
  color: var(--white);
  text-align: center; max-width: 11rem;
}
.team-cta {
  grid-column: 3;
  justify-self: end; align-self: center;
  flex-shrink: 0;
}
.team-cta .btn--secondary,
.team-cta .btn-peach {
  border-radius: var(--r-sm); padding: var(--space-xs) 0.95rem;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  color: var(--teal);
}
.team-cta .btn--secondary:hover,
.team-cta .btn-peach:hover { color: var(--teal-dark); }

/* ─── SERVICIOS (resumen) ─────────────────────────────── */
.servicios-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 238px;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  margin-top: var(--space-xs);
}
.servicios-main { min-width: 0; }
.servicios-main p { font-size: var(--text-sm); line-height: var(--lh-compact); }
.servicios-main .list,
.servicios-main .list { font-size: var(--text-sm); line-height: var(--lh-compact); }
.servicios-main .list li,
.servicios-main .list li { margin-bottom: 0.25rem; }
.servicios-aside { width: 238px; flex-shrink: 0; }
/* Generic list component (consolidated from servicios-list) */
.list { margin: var(--space-md) 0 0; padding-left: 1.2rem; color: var(--ink-muted); font-size: var(--text-base); }
.list li { margin-bottom: var(--space-xs); }
.servicios-actions { margin-top: var(--space-lg); text-align: right; }
.servicios-visual { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.servicios-visual img { width: 100%; height: auto; display: block; }

/* ─── CONSULTORIO ─────────────────────────────────────── */
.consultorio-section { background: var(--white); padding-top: 0; padding-bottom: 0; }
.section-banner {
  width: 100%;
  margin: clamp(1.75rem, 4vw, 2.5rem) 0;
  padding: var(--space-sm) 0;
  background-color: var(--hero-peach);
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 50%, rgba(0,0,0,0.03) 100%),
    linear-gradient(
      to right,
      var(--peach-deep)     0%,
      var(--peach-deep)     2%,
      var(--hero-edge-soft) 2%,
      var(--hero-edge-soft) 5.5%,
      var(--peach-deep)     5.5%,
      var(--peach-deep)     7.2%,
      var(--hero-edge-soft) 7.2%,
      var(--hero-edge-soft) 8.5%,
      var(--hero-peach)     8.5%,
      var(--hero-peach)     100%
    );
  text-align: right;
}
.section-banner h2 {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--text-md);
  font-weight: var(--w-bold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}
.consultorio-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.consultorio-main { min-width: 0; }
.consultorio-main p { margin: 0 0 var(--space-sm); max-width: 58ch; color: var(--ink-muted); font-size: var(--text-base); line-height: var(--lh-normal); }
.consultorio-main a { color: var(--teal-dark); font-weight: var(--w-bold); }
.consultorio-main a:hover { color: var(--teal); }
.consultorio-block { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.consultorio-block:last-child { margin-bottom: 0; }
/* List variant for consultorio section */
.list--consultorio { margin: var(--space-sm) 0 0; padding-left: 1.25rem; }
.list--consultorio li { margin-bottom: var(--space-xs); padding-left: 0.15rem; }
.list--consultorio li strong { font-weight: var(--w-bold); color: var(--ink); }
/* Backward compatibility */
.consultorio-list { margin: var(--space-sm) 0 0; padding-left: 1.25rem; color: var(--ink-muted); font-size: var(--text-base); }
.consultorio-list li { margin-bottom: var(--space-xs); padding-left: 0.15rem; }
.consultorio-list li strong { font-weight: var(--w-bold); color: var(--ink); }
.consultorio-aside { display: flex; flex-direction: column; gap: var(--space-md); position: sticky; top: 5.25rem; }
.consultorio-aside img { width: 100%; max-width: 400px; height: auto; display: block; border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.consultorio-map { width: 100%; height: 220px; border: 0; display: block; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.turnos-iframe-wrap { margin-top: var(--space-md); position: relative; }
.turnos-iframe { width: 100%; height: 540px; border: 0; display: block; border-radius: var(--r-md); box-shadow: var(--shadow-sm); background: var(--cream); }
/* Spinner de carga de iframe */
.iframe-loader {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--space-md);
  background: var(--cream);
  border-radius: var(--r-md);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.iframe-loader.is-hidden { opacity: 0; pointer-events: none; }
.iframe-loader-ring {
  width: 44px; height: 44px;
  border: 3px solid var(--teal-alpha-25);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: iframe-spin 0.8s linear infinite;
}
.iframe-loader-text {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--text-xs);
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}
@keyframes iframe-spin {
  to { transform: rotate(360deg); }
}
.consultorio-address { margin: 0; font-size: var(--text-sm); line-height: var(--lh-compact); color: var(--ink-muted); }

/* ─── MÁS SOBRE ───────────────────────────────────────── */
#mas-sobre p { color: var(--ink-muted); font-size: var(--text-base); max-width: 65ch; margin-bottom: var(--space-md); }
/* CV: foto un poco más ancha solo en escritorio */
#mas-sobre .team-profile {
  grid-template-columns: minmax(160px, 280px) minmax(0, 1fr);
}

/* ─── PERFILES EQUIPO (detalle) ───────────────────────── */
.team-profiles { padding: clamp(1.25rem, 3vw, 2rem) 0 0; }
.team-profile {
  display: grid;
  grid-template-columns: minmax(120px, 200px) minmax(0, 1fr);
  gap: clamp(1.1rem, 3vw, 2rem);
  align-items: start;
  padding-bottom: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px solid var(--teal-alpha-45);
}
.team-profile:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.team-profile-media { border-radius: var(--r-md); overflow: hidden; background: #e8ecec; box-shadow: var(--shadow-sm); }
.team-profile-media img { width: 100%; height: auto; display: block; }
.team-profile-bio p { margin: 0 0 var(--space-lg); color: var(--ink-muted); font-size: var(--text-base); line-height: var(--lh-normal); }
.team-profile-bio p:last-child { margin-bottom: 0; }
.team-profile-social { margin: var(--space-md) 0 0; }
.team-profile-social a { display: inline-flex; align-items: center; gap: var(--space-sm); color: var(--teal-dark); font-weight: var(--w-bold); font-size: var(--text-sm); text-decoration: none; }
.team-profile-social a:hover { color: var(--teal); text-decoration: underline; }
.team-profile-social img { width: 22px; height: 22px; flex-shrink: 0; }

/* ─── SERVICIOS EXTENDIDOS ────────────────────────────── */
.servicios-ext-back { margin: 0 0 var(--space-lg); font-size: var(--text-sm); }
.servicios-ext-back a { font-weight: var(--w-bold); color: var(--teal-dark); }
.servicios-extended-body { max-width: 72ch; margin-top: var(--space-lg); }
.servicios-heading {
  margin: var(--space-xl) 0 var(--space-sm);
  font-family: "Domine", Georgia, serif;
  font-size: var(--text-lg);
  font-weight: var(--w-bold);
  color: var(--teal);
  letter-spacing: 0.03em;
  line-height: var(--lh-tight);
}
.servicios-subheading {
  margin: var(--space-lg) 0 var(--space-xs);
  font-family: "Domine", Georgia, serif;
  font-size: var(--text-md);
  font-weight: var(--w-bold);
  color: var(--teal-dark);
  line-height: var(--lh-tight);
}
.servicios-puberty-group {
  margin: var(--space-md) 0 var(--space-xs);
  font-family: "Domine", Georgia, serif;
  font-size: var(--text-base);
  font-weight: var(--w-bold);
  color: var(--ink);
}
.servicios-extended-body > p { color: var(--ink-muted); margin: 0 0 var(--space-sm); font-size: var(--text-base); line-height: var(--lh-normal); }
.servicios-note { margin: var(--space-xs) 0 var(--space-sm); font-size: var(--text-sm); font-weight: var(--w-bold); color: var(--ink-muted); }
/* List modifiers */
.list--extended { margin: var(--space-sm) 0 0; padding-left: 1.2rem; color: var(--ink-muted); font-size: var(--text-base); }
.list--extended li { margin-bottom: var(--space-xs); }
.list--small { font-size: var(--text-sm); margin: var(--space-xs) 0 var(--space-sm); line-height: var(--lh-compact); }
.list--tight { margin-top: var(--space-xs); }
/* Backward compatibility */

/* ─── ACCORDION ──────────────────────────────────────── */
.accordion { width: 100%; }
.accordion-item {
  border-bottom: 1px solid var(--teal-alpha-25);
}
.accordion-item:first-child { border-top: 1px solid var(--teal-alpha-25); }
.accordion-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  font-family: "Domine", Georgia, serif;
  font-size: var(--text-md);
  font-weight: var(--w-bold);
  color: var(--teal);
  line-height: var(--lh-tight);
  user-select: none;
}
.accordion-item > summary::-webkit-details-marker { display: none; }
.accordion-item > summary::marker { display: none; }
.accordion-item > summary::after {
  content: "+";
  flex-shrink: 0;
  width: 1.6rem; height: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--teal);
  border-radius: var(--r-circle);
  background: var(--teal-alpha-15);
  transition: transform 0.2s ease, background 0.15s ease;
  line-height: 1;
}
.accordion-item[open] > summary::after { transform: rotate(45deg); background: var(--teal-alpha-25); }
.accordion-item > summary:hover { color: var(--teal-dark); }
.accordion-item > summary:hover::after { background: var(--teal-alpha-25); }
.accordion-item > summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 2px; }
.accordion-body { padding: var(--space-sm) 0 var(--space-lg); }
/* Subtítulo visible dentro del summary (siempre visible) */
.accordion-summary-content { flex: 1; display: flex; flex-direction: column; gap: 0.2rem; }
.accordion-summary-title { font-family: "Domine", Georgia, serif; font-size: var(--text-md); font-weight: var(--w-bold); color: inherit; line-height: var(--lh-tight); }
.accordion-summary-sub { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: var(--text-xs); font-weight: var(--w-regular); color: var(--ink-muted); }

/* ─── BOTONES FLOTANTES ───────────────────────────────── */
.footer-turno-fab {
  position: fixed;
  right: var(--space-lg); bottom: calc(1.5rem + 68px);
  width: 56px; height: 56px;
  border-radius: var(--r-circle);
  background: var(--teal); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  z-index: 100; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.footer-turno-fab:hover { transform: scale(1.06); box-shadow: 0 6px 20px rgba(0,0,0,0.24); }
.footer-turno-fab svg { width: 26px; height: 26px; }
.footer-location-fab {
  position: fixed;
  right: var(--space-lg); bottom: calc(1.5rem + 136px);
  width: 56px; height: 56px;
  border-radius: var(--r-circle);
  background: var(--teal-dark); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  z-index: 100; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.footer-location-fab:hover { transform: scale(1.06); box-shadow: 0 6px 20px rgba(0,0,0,0.24); }
.footer-location-fab svg { width: 26px; height: 26px; }

/* ─── MODAL TURNOS ────────────────────────────────────── */
.modal-turnos {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  z-index: 300;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
}
.modal-turnos[hidden] { display: none !important; }
.modal-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(44, 58, 58, 0.72);
  opacity: 0; transition: opacity 0.25s ease;
}
.modal-box {
  position: relative; z-index: 1;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 60px rgba(44,58,58,0.2);
  width: min(580px, 94vw); max-height: 90vh;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 2rem 2rem 2.5rem;
  transform: translateY(14px) scale(0.98); opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.modal-box--wide { width: min(720px, 96vw); }
.modal-turnos.is-open .modal-overlay { opacity: 1; }
.modal-turnos.is-open .modal-box { transform: none; opacity: 1; }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 36px; height: 36px; border-radius: var(--r-circle);
  border: none; background: var(--teal-alpha-15);
  color: var(--teal); cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background 0.15s;
}
.modal-close:hover { background: var(--teal-alpha-30); }
.modal-close svg { width: 20px; height: 20px; }
.modal-back {
  display: inline-flex; align-items: center; gap: 0.35rem;
  border: none; background: none; padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--text-xs); font-weight: var(--w-bold);
  letter-spacing: 0.05em; color: var(--teal-dark); cursor: pointer;
  margin-bottom: var(--space-md);
}
.modal-back:hover { color: var(--teal); }
.modal-heading {
  margin: 0 0 var(--space-sm);
  font-family: "Domine", Georgia, serif;
  font-size: var(--text-xl); font-weight: var(--w-bold);
  color: var(--teal); line-height: var(--lh-tight);
}
.modal-intro { margin: 0 0 var(--space-lg); color: var(--ink-muted); font-size: var(--text-base); }
/* Elección primera vez / control */
.modal-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.modal-choice-btn {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 0.3rem; padding: 1.25rem 1.1rem;
  border: 1.5px solid var(--teal-alpha-35); border-radius: var(--r-md);
  background: var(--cream); cursor: pointer; text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.modal-choice-btn:hover { border-color: var(--teal); background: var(--white); }
.modal-choice-btn strong { font-family: "Domine", Georgia, serif; font-size: var(--text-base); color: var(--teal); line-height: 1.2; }
.modal-choice-btn span:not(.modal-choice-icon) { font-size: var(--text-xs); color: var(--ink-muted); }
.modal-choice-icon { font-size: 1.3rem; color: var(--teal); margin-bottom: 0.2rem; }
.modal-iframe { width: 100%; height: 500px; border: 0; display: block; border-radius: var(--r-md); background: var(--cream); box-shadow: var(--shadow-sm); margin-top: var(--space-sm); }
/* Modal ubicación */
.modal-location-map { width: 100%; height: 240px; border: 0; display: block; border-radius: var(--r-md); box-shadow: var(--shadow-sm); margin: var(--space-md) 0; }
.modal-address-block { display: flex; flex-direction: column; gap: var(--space-sm); }
.modal-address-line { display: flex; align-items: flex-start; gap: var(--space-sm); font-size: var(--text-base); color: var(--ink-muted); line-height: var(--lh-normal); }
.modal-address-line svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--teal); margin-top: 0.15em; }
.modal-directions-btn { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: var(--space-md); padding: 0.65rem 1.4rem; background: var(--teal); color: #fff; border: none; border-radius: var(--r-sm); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: var(--text-xs); font-weight: var(--w-bold); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; text-decoration: none; transition: background 0.15s; }
.modal-directions-btn:hover { background: var(--teal-dark); color: #fff; text-decoration: none; }
.modal-directions-btn svg { width: 16px; height: 16px; }
/* Formulario */
.turnos-form { display: flex; flex-direction: column; gap: var(--space-md); }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.form-label { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: var(--text-sm); font-weight: var(--w-bold); color: var(--ink); }
.form-label span { color: var(--teal); }
.form-input {
  padding: 0.6rem 0.85rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--text-base); color: var(--ink);
  border: 1.5px solid var(--teal-alpha-35); border-radius: var(--r-sm);
  background: var(--white); width: 100%;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.form-input:focus { outline: none; border-color: var(--teal); }
.form-input--error { border-color: #d9534f !important; }
.form-textarea { resize: vertical; min-height: 80px; }
.form-required-note { margin: 0; font-size: var(--text-xs); color: var(--ink-muted); }
.form-submit { align-self: flex-end; margin-top: var(--space-xs); }
@media (max-width: 600px) {
  .modal-turnos { align-items: flex-start; }
  .modal-box {
    width: 100%;
    height: 100%;
    min-height: unset;
    max-height: none;
    border-radius: 0;
    padding: 1.25rem 1rem 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal-choice-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-submit { align-self: stretch; text-align: center; }
}

/* ─── FOOTER ──────────────────────────────────────────── */
.site-footer {
  padding: 0;
  background: var(--ink);
  color: rgba(255,255,255,0.68);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--text-sm);
  line-height: var(--lh-compact);
}
.footer-inner { padding: var(--space-lg) 0 var(--space-xl); }
/* Franja de marca */
.footer-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-lg) 0 var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: var(--space-xl);
  gap: var(--space-lg);
}
.footer-brand { display: flex; flex-direction: column; gap: 0.2rem; }
.footer-brand-name {
  font-family: "Domine", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: var(--w-bold); color: var(--white);
  letter-spacing: 0.02em; line-height: 1.2;
}
.footer-brand-sub { font-size: var(--text-xs); color: rgba(255,255,255,0.45); letter-spacing: 0.06em; }
.footer-top-social { display: flex; gap: var(--space-sm); align-items: center; flex-shrink: 0; }
.footer-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--r-circle);
  background: rgba(255,255,255,0.1); text-decoration: none;
  transition: background 0.15s;
}
.footer-social-link:hover { background: rgba(255,255,255,0.2); text-decoration: none; }
.footer-social-link img { width: 16px; height: 16px; display: block; filter: brightness(0) invert(1); opacity: 0.8; }
/* Columnas: 2 bloques */
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl) 3rem; align-items: start; }
.footer-col { display: flex; gap: var(--space-md); align-items: flex-start; }
.footer-col-icon { flex-shrink: 0; width: 22px; height: 22px; color: var(--teal); margin-top: 0.15rem; }
.footer-col-icon svg { width: 100%; height: 100%; display: block; }
.footer-col p { margin: 0; color: rgba(255,255,255,0.68); }
.footer-col a { color: var(--white); text-decoration: none; font-weight: var(--w-bold); }
.footer-col a:hover { text-decoration: underline; }
.footer-col-sub { display: block; margin-top: var(--space-xs); font-size: var(--text-xs); color: rgba(255,255,255,0.45); line-height: var(--lh-normal); }
.footer-col-action { flex-direction: column; gap: var(--space-lg); align-items: flex-start; }
.footer-wa-info { display: flex; gap: var(--space-md); align-items: flex-start; }
.footer-cta-btn {
  display: inline-block; padding: 0.6rem 1.5rem;
  background: var(--teal); color: var(--white); border: none;
  border-radius: var(--r-sm); cursor: pointer;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--text-xs); font-weight: var(--w-bold);
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 0.15s;
}
.footer-cta-btn:hover { background: var(--teal-dark); }
/* Meta / copyright */
.footer-meta {
  margin-top: var(--space-xl); padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-wrap: wrap;
  gap: var(--space-sm) 1.5rem;
  justify-content: space-between; align-items: center;
  font-size: var(--text-xs); color: rgba(255,255,255,0.38);
}
.footer-meta a { color: rgba(255,255,255,0.55); }
.footer-meta a:hover { color: var(--white); }
.legal { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.footer-wa-fab {
  position: fixed;
  right: var(--space-lg); bottom: var(--space-lg);
  width: 56px; height: 56px;
  border-radius: var(--r-circle);
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 100; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.footer-wa-fab:hover { transform: scale(1.06); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); color: #fff; text-decoration: none; }
.footer-wa-fab svg { width: 30px; height: 30px; }

/* Accesibilidad */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  .site-header { padding: var(--space-sm) 0; }
  .site-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "logo tools" "nav nav";
    column-gap: var(--space-sm); row-gap: var(--space-xs);
    align-items: center;
  }
  .site-header .logo { font-size: clamp(1.12rem, 4.5vw, 1.4rem); line-height: var(--lh-tight); }
  .header-tools { flex-direction: row; align-items: center; gap: var(--space-xs); }
  .header-tools .social { gap: var(--space-xs); }
  .nav-toggle { display: inline-flex; width: 38px; height: 38px; border-radius: var(--r-sm); }
  .nav-toggle-bars { width: 20px; gap: 5px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    justify-self: stretch;
    max-height: 0; overflow: hidden;
    opacity: 0; visibility: hidden;
    transition: max-height 0.35s ease, opacity 0.2s ease, visibility 0.2s;
  }
  .site-nav.is-open {
    max-height: 22rem; opacity: 1; visibility: visible;
    padding-top: var(--space-sm); margin-top: var(--space-xs);
    border-top: 1px solid var(--teal-alpha-22);
  }
  .nav-links { flex-direction: column; align-items: flex-start; gap: var(--space-xs); }
  /* Hero a ancho de pantalla; la cita lleva su propio padding lateral */
  .hero .container {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }
  .hero-visual {
    width: 100%;
    height: clamp(230px, 59.8vw, 345px);
    min-height: 230px;
    border-radius: 0;
    box-shadow: none;
  }
  .hero-visual img {
    height: 100%;
    min-height: clamp(230px, 59.8vw, 345px);
  }
  .hero-quote {
    height: auto;
    overflow-y: visible;
    padding: 2.5rem clamp(1rem, 5vw, 1.5rem);
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .hero-quote blockquote {
    max-width: 22rem;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    line-height: 1.35;
    font-size: clamp(1.02rem, 3.9vw, 1.28rem);
  }
  .hero {
    background-image:
      linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 42%, rgba(0,0,0,0.025) 100%),
      linear-gradient(to right,
        var(--hero-peach)     0%,
        var(--hero-peach)     50%,
        var(--hero-stripe)    50%,
        var(--hero-stripe)    79%,
        var(--hero-peach)     79%,
        var(--hero-peach)     81%,
        var(--hero-edge-soft) 81%,
        var(--hero-edge-soft) 86%,
        var(--hero-stripe)    86%,
        var(--hero-stripe)    91%,
        var(--hero-peach)     91%,
        var(--hero-peach)     100%);
  }
  .two-col { grid-template-columns: 1fr; }
  #dra .container.two-col { padding-top: var(--space-lg); }
  .card--peach {
    padding: var(--space-lg);
    /* Foto aún “flota”, pero menos hacia arriba → menos choque con el hero */
    padding-top: calc(min(176px, 58vw) * 1.25 - 2rem + 1rem);
  }
  .bio-card-visual {
    left: 50%;
    transform: translateX(-50%);
    top: -1.35rem;
    width: min(176px, 58vw);
  }
  .team-bar { grid-template-columns: 1fr; justify-items: stretch; gap: 0; row-gap: 0; }
  .card--team { padding-bottom: clamp(0.35rem, 1.2vw, 0.55rem); }
  .team-panel-title { text-align: center; justify-self: center; margin-bottom: var(--space-xs); }
  .team-center-col { grid-column: auto; width: 100%; max-width: none; align-items: stretch; }
  .team-members-cluster { width: 100%; align-items: stretch; }
  .team-members-row { flex-direction: column; align-items: stretch; gap: var(--space-sm); }
  .team-member { flex-direction: row; align-items: center; max-width: none; text-align: left; gap: var(--space-lg); }
  .team-member-photo { width: 76px; min-width: 76px; max-width: 76px; }
  .team-member figcaption { text-align: left; max-width: none; flex: 1; font-size: clamp(1rem, 3.6vw, 1.15rem); }
  .team-cta { grid-column: auto; justify-self: end; width: 100%; text-align: right; }
  .servicios-layout { grid-template-columns: 1fr; }
  /* Texto primero, imagen debajo (orden del DOM) */
  .servicios-aside { position: static; width: 100%; }
  .servicios-visual { max-width: 238px; margin: 0 auto; }
  .consultorio-layout { grid-template-columns: 1fr; }
  .consultorio-aside { position: static; }
  .consultorio-aside .consultorio-address {
    text-align: center;
    max-width: 400px;
    margin-inline: auto;
  }
  .team-profile { grid-template-columns: 1fr; }
  .team-profile-media { max-width: 240px; margin-inline: auto; }
  /* Sobre la Dra.: sin foto en móvil, texto a todo ancho */
  #mas-sobre .team-profile-media { display: none; }
  #mas-sobre .team-profile { grid-template-columns: 1fr; }
  #mas-sobre p { max-width: none; }
  .accordion { width: 90%; margin-left: auto; margin-right: auto; }
  .footer-inner { padding-right: calc(56px + var(--space-lg) * 2); }
  .footer-top { flex-direction: column; align-items: flex-end; gap: var(--space-md); text-align: right; }
  .footer-brand { align-items: flex-end; }
  .footer-cols { grid-template-columns: 1fr; gap: var(--space-lg); }
  .footer-col { flex-direction: row-reverse; text-align: right; justify-content: flex-end; }
  .footer-col > div { text-align: right; }
  .footer-col-sub { text-align: right; }
  .footer-col-action { flex-direction: column; align-items: flex-end; }
  .footer-wa-info { flex-direction: row-reverse; justify-content: flex-end; }
  .footer-cta-btn { width: 100%; text-align: center; }
  .footer-meta { flex-direction: column; align-items: flex-end; text-align: right; }
}
@media (max-width: 600px) { body { font-size: 1rem; } }
