
:root {
  --navy: #003C6F;
  --blue: #0080C8;
  --sky: #1EB8E8;
  --sky-soft: #DBEFFA;
  --green: #22C55E;
  --green-soft: #DCFCE7;
  --cream: #FAFBFC;
  --cream-warm: #F4F1EB;
  --ink: #0F172A;
  --muted: #64748B;
  --line: #E5E7EB;
  --line-soft: #F1F3F5;
  --red: #EF4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.serif { font-family: 'Playfair Display', serif; }

/* ─── UTILITY BAR ─── */
.utility-bar {
  background: var(--navy);
  color: white;
  font-size: 13px;
  padding: 10px 0;
}
.utility-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.utility-inner .left, .utility-inner .right { display: flex; gap: 24px; align-items: center; }
.utility-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.85); }
.utility-item svg { color: var(--sky); }
.utility-inner a { color: white; text-decoration: none; }
.utility-inner a:hover { color: var(--sky); }

/* ─── NAV ─── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand svg { height: 52px; width: auto; display: block; flex-shrink: 0; }
.brand img { height: 52px; width: auto; display: block; flex-shrink: 0; }
.brand-text {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-corpo { color: var(--navy); }
.brand-sano  { color: var(--sky); }
.brand-text small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
  font-weight: 600;
  margin-top: 4px;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue); }
.nav-cta {
  padding: 10px 20px;
  background: var(--navy);
  color: white !important;
  border-radius: 999px;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--blue) !important; }

/* Contenedor mobile: botón agendar + hamburger */
.nav-mobile-actions {
  display: none;
  align-items: center;
  gap: 12px;
}
.nav-cta-mobile {
  padding: 9px 16px;
  font-size: 13px !important;
}

/* Mobile nav toggle */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s;
}


/* ─── Checkbox toggle (CSS-only, sin JS) ─── */
.nav-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
/* ─── Mobile nav drawer ─── */
.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
}
.nav-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.nav-drawer-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(80vw, 300px);
  height: 100%;
  background: white;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: -4px 0 24px rgba(0,0,0,0.18);
  overflow-y: auto;
}
.nav-drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 24px;
  padding: 4px;
}
.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav-drawer-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.2s;
}
.nav-drawer-links a:hover { color: var(--blue); }
.nav-drawer-links .nav-cta {
  margin-top: 24px;
  text-align: center;
  border-bottom: none;
  padding: 14px 20px;
  border-radius: 999px;
  font-size: 16px !important;
}
#nav-toggle:checked ~ .nav-drawer { display: block; }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, #001E3D 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, var(--sky) 0%, transparent 60%);
  opacity: 0.10;
  border-radius: 50%;
  pointer-events: none;
}

/* Foto de fondo — sustituir src con foto real cuando esté disponible */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: none;
  background-size: cover;
  background-position: left 15% center;
  z-index: 0;
}

/* Overlay direccional: denso a la izquierda (contenido), transparente a la derecha (foto) */
/* Resultado: 60% foto visible, 40% peso en el contenido */
.hero-overlay {
  display: none;
}
.hero-overlay::after { display: none; }

/* Contenido sobre el overlay */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 32px 88px;
  display: flex;
  justify-content: center;
}

.hero-content-inner {
  max-width: 760px;
  width: 100%;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(30, 184, 232, 0.18);
  border: 1px solid rgba(30, 184, 232, 0.4);
  color: #a8e8fc;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  animation: fadeUp 0.7s ease 0.1s both;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--sky);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--sky);
}
h1.headline {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55), 0 4px 32px rgba(0,20,50,0.45);
  animation: fadeUp 0.7s ease 0.2s both;
}
h1.headline em { font-style: italic; color: var(--sky); }
.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 40px;
  max-width: 520px;
  line-height: 1.65;
  animation: fadeUp 0.7s ease 0.3s both;
  margin-left: auto;
  margin-right: auto;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  margin-bottom: 56px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.7s ease 0.4s both;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 28px;
  background: var(--sky);
  color: var(--navy);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 8px 28px -6px rgba(30,184,232,0.6);
}
.btn-primary:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -8px rgba(30,184,232,0.5);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 28px;
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.45);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.75);
}
.wa-icon { width: 18px; height: 18px; fill: currentColor; }

/* Stats sobre foto — separador visual sutil */
.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.18);
  justify-content: center;
  animation: fadeUp 0.7s ease 0.5s both;
}
.hero-stat strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 34px;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat span { font-size: 13px; color: rgba(255,255,255,0.62); margin-top: 6px; display: block; }

/* ─── TRUST BAR ─── */
.trust-bar {
  background: white;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 32px;
}
.trust-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}
.trust-item svg { color: var(--blue); flex-shrink: 0; }
.trust-item strong { color: var(--ink); }
.trust-divider { width: 1px; height: 32px; background: var(--line); }

/* ─── SECTIONS ─── */
section { padding: 120px 32px; }
.container { max-width: 1280px; margin: 0 auto; }

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--blue); }

h2.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 24px;
  max-width: 820px;
}
h2 em { font-style: italic; color: var(--blue); }
.section-sub { font-size: 18px; color: var(--muted); max-width: 680px; margin-bottom: 60px; }

/* ─── ABOUT ─── */
.about { background: var(--cream-warm); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.about-visual {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--line-soft);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-visual-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.about-visual svg {
  width: 65%;
  max-width: 220px;
  opacity: 0.85;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.2));
}
.about-visual-tag {
  position: absolute;
  bottom: 28px; left: 28px;
  background: rgba(255,255,255,0.95);
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 13px;
  color: var(--navy);
  font-weight: 500;
  z-index: 1;
}
.about-visual-tag strong { color: var(--blue); font-weight: 700; }

/* trust signal in visual */
.about-visual-trust {
  position: absolute;
  top: 24px; right: 24px;
  background: rgba(255,255,255,0.95);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--navy);
  font-weight: 500;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.about-visual-trust svg { color: var(--blue); flex-shrink: 0; }

.about-content h2 { margin-bottom: 28px; }
.about-content p { font-size: 17px; color: var(--muted); margin-bottom: 20px; line-height: 1.7; }
.about-content p strong { color: var(--ink); font-weight: 500; }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 36px;
}
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.about-feature-icon {
  width: 38px; height: 38px;
  background: var(--sky-soft);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.about-feature h4 { font-family: 'Fraunces'; font-weight: 500; font-size: 15px; color: var(--navy); margin-bottom: 2px; }
.about-feature p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ─── MISIÓN / VISIÓN ─── */
.mv-section { background: var(--cream); }
.mv-header { margin-bottom: 56px; }
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.mv-card {
  position: relative;
  padding: 48px 40px;
  border-radius: 24px;
  overflow: hidden;
}
.mv-card.mission {
  background: var(--navy);
  color: white;
}
.mv-card.mission::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--sky) 0%, transparent 70%);
  opacity: 0.25;
}
.mv-card.vision {
  background: #EEF7FD;
  border: 1px solid #C8E3F5;
}
.mv-card .mv-label {
  font-family: 'Inter';
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
}
.mv-card.mission .mv-label { color: var(--sky); }
.mv-card.vision .mv-label { color: var(--blue); }
.mv-card h3 {
  font-family: 'Fraunces';
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
  position: relative;
}
.mv-card.mission h3 em { color: var(--sky); font-style: italic; }
.mv-card.vision h3 em { color: var(--blue); font-style: italic; }
.mv-card p {
  font-size: 16px;
  line-height: 1.7;
  position: relative;
  margin-bottom: 16px;
}
.mv-card.mission p { color: rgba(255,255,255,0.82); }
.mv-card.vision p { color: var(--muted); }
.mv-quote-mark {
  font-family: 'Fraunces';
  font-size: 96px;
  line-height: 0.8;
  position: absolute;
  bottom: 20px; right: 28px;
  opacity: 0.08;
  pointer-events: none;
}
.mv-card.mission .mv-quote-mark { color: var(--sky); }
.mv-card.vision .mv-quote-mark { color: var(--blue); }

/* ─── SPECIALTIES ─── */
.specialties { background: var(--cream-warm); }
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.spec-card {
  background: white;
  padding: 32px 28px;
  border-radius: 18px;
  border: 1px solid var(--line);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.spec-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}
.spec-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle at top right, var(--sky-soft) 0%, transparent 70%);
}
.spec-icon {
  width: 56px; height: 56px;
  background: var(--sky-soft);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  position: relative;
  color: var(--navy);
  transition: background 0.3s, color 0.3s;
}

.spec-card:hover .spec-icon { background: var(--navy); color: white; }
.spec-card h3 {
  font-family: 'Fraunces';
  font-weight: 500;
  font-size: 19px;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.spec-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.spec-card .avail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}
.spec-card .avail::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
}
.spec-card .more {
  margin-top: 4px;
  display: inline-block;
  font-size: 13px;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.spec-card .more::after { content: ' →'; }
.spec-card-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.spec-book-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--sky-soft);
  color: var(--navy);
  border: 1.5px solid rgba(0,128,200,0.2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.01em;
}
.spec-book-btn svg {
  width: 15px; height: 15px;
  flex-shrink: 0;
  color: var(--blue);
  transition: color 0.2s;
}
.spec-book-btn:hover {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -6px rgba(0,60,111,0.35);
}
.spec-book-btn:hover svg { color: var(--sky); }
.spec-cta-card {
  background: var(--navy);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 28px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}
.spec-cta-card::before {
  content: '';
  position: absolute;
  bottom: -50px; left: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--sky) 0%, transparent 70%);
  opacity: 0.25;
}
.spec-cta-card h3 {
  font-family: 'Fraunces';
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 12px;
  position: relative;
}
.spec-cta-card h3 em { color: var(--sky); font-style: italic; }
.spec-cta-card p { font-size: 14px; color: rgba(255,255,255,0.75); margin-bottom: 22px; position: relative; }
.spec-cta-card a {
  background: var(--sky);
  color: var(--navy);
  padding: 11px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  align-self: flex-start;
  position: relative;
  transition: background 0.2s;
}
.spec-cta-card a:hover { background: white; }

.doctor-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
}
/* Desktop: mostrar 3 tarjetas sin scroll */
/* Desktop: carrusel siempre activo, tarjetas más anchas */
@media (min-width: 1025px) {
  .doctors-grid .doctor-card { flex: 0 0 320px; }
}
.doctor-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: default;
}
.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(0,60,111,0.22);
}
.doctor-photo {
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--sky-soft), #C8E3F5);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.doctor-photo-icon {
  width: 50%;
  max-width: 120px;
  opacity: 0.5;
  color: var(--navy);
}
.doctor-photo .badge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,0.95);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.doctor-info { padding: 24px; }
.doctor-info h3 {
  font-family: 'Fraunces';
  font-weight: 500;
  font-size: 21px;
  color: var(--navy);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.doctor-specialty {
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.doctor-bio { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; min-height: 84px; }
.doctor-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.doctor-credentials span {
  font-size: 11px;
  background: var(--cream-warm);
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--navy);
  font-weight: 500;
}
.doctor-book-btn {
  display: block;
  margin-top: 16px;
  padding: 11px;
  background: var(--sky-soft);
  color: var(--navy);
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.doctor-book-btn:hover { background: var(--navy); color: white; }

/* ─── WHY ─── */
.why {
  background: #ffffff;
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.why::before {
  display: none;
}
.why h2.section-title { color: var(--navy); }
.why h2 em { color: var(--blue); }
.why .section-sub { color: var(--muted); margin-bottom: 0; }
.why .section-eyebrow { color: var(--blue); }
.why .section-eyebrow::before { background: var(--blue); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 80px;
  position: relative;
}
.why-card {
  padding: 56px 48px 56px 0;
  background: transparent;
  border: none;
  border-radius: 0;
  position: relative;
  overflow: visible;
  transition: none;
  display: flex;
  flex-direction: column;
}

/* Separador vertical entre cards */
.why-card + .why-card {
  padding-left: 48px;
  padding-right: 48px;
  border-left: 1px solid var(--line);
}
.why-card:last-child {
  padding-right: 0;
}

.why-card::before { display: none; }
.why-card:hover {
  background: transparent;
  transform: none;
  box-shadow: none;
}

/* Número grande — elemento tipográfico decorativo */
.why-card-num {
  font-family: 'Fraunces';
  font-style: italic;
  font-size: 96px;
  color: var(--sky-soft);
  display: block;
  margin-bottom: 24px;
  line-height: 1;
  letter-spacing: -0.04em;
  opacity: 1;
  color: #D6EBF8;
  transition: color 0.3s;
}
.why-card:hover .why-card-num { color: #b8d9f0; }

/* Icono minimal */
.why-card-icon {
  width: 36px;
  height: 36px;
  color: var(--blue);
  margin-bottom: 20px;
  flex-shrink: 0;
}

.why-card h3 {
  font-family: 'Fraunces';
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--navy);
}
.why-card > p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 0;
}
.why-card .testimonial { display: none; }

/* ─── GOOGLE REVIEWS ─── */
.reviews-section {
  padding: 140px 32px;
  background: var(--cream);
}
.reviews-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.reviews-header-left { flex: 1; min-width: 260px; }
.reviews-score-badge {
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 28px;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.reviews-score-number {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.02em;
}
.reviews-score-right { display: flex; flex-direction: column; gap: 6px; }
.reviews-stars { display: flex; gap: 3px; }
.reviews-stars svg { color: #F59E0B; }
.reviews-score-meta { font-size: 13px; color: var(--muted); }
.reviews-score-meta strong { color: var(--ink); font-weight: 500; }
.reviews-google-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.review-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.review-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}
.review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.reviewer-info { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 500;
  color: white;
  flex-shrink: 0;
}
.reviewer-name { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.reviewer-date { font-size: 12px; color: var(--muted); margin-top: 2px; }
.review-card-stars { display: flex; gap: 2px; }
.review-card-stars svg { color: #F59E0B; }
.review-card-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}
.review-card-specialty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  background: var(--sky-soft);
  padding: 4px 10px;
  border-radius: 20px;
  align-self: flex-start;
}
.reviews-cta {
  text-align: center;
  padding-top: 8px;
}
.reviews-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  border: 2px solid var(--blue);
  padding: 14px 28px;
  border-radius: 50px;
  transition: background 0.2s, color 0.2s;
}
.reviews-cta-link:hover {
  background: var(--blue);
  color: white;
}
.reviews-cta-link svg { flex-shrink: 0; }

/* Mobile: reviews */
@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .reviews-header { flex-direction: column; align-items: flex-start; }
  .reviews-header-left { text-align: left; }
  .reviews-score-badge { width: 100%; }
}
@media (max-width: 640px) {
  .reviews-score-number { font-size: 42px; }
}

/* ─── LOCATION ─── */
.location-block {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 60px;
  align-items: stretch;
  margin-top: 56px;
}
.location-info { display: flex; flex-direction: column; }
.location-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 16px;
}
.location-card h4 {
  font-family: 'Fraunces';
  font-weight: 500;
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.location-card h4 svg { color: var(--blue); }
.location-card p { font-size: 15px; color: var(--muted); line-height: 1.65; }
.location-card strong { color: var(--ink); font-weight: 500; }
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.hours-row:last-child { border-bottom: none; }
.hours-row span:first-child { color: var(--muted); }
.hours-row span:last-child { color: var(--ink); font-weight: 500; }

/* Trust signals block */
.trust-signals {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 26px;
}
.trust-signals h4 {
  font-family: 'Fraunces';
  font-weight: 500;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.trust-signals h4 svg { color: var(--blue); }
.trust-reg {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trust-reg-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}
.trust-reg-item:last-child { border-bottom: none; }
.trust-reg-item span:first-child { color: var(--muted); }
.trust-reg-item strong { color: var(--ink); }

.location-map {
  background: linear-gradient(135deg, var(--sky-soft) 0%, #C8E3F5 100%);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  min-height: 480px;
  cursor: pointer;
  transition: box-shadow 0.3s;
}
.location-map:hover { box-shadow: 0 20px 40px -20px rgba(0,60,111,0.2); }
.location-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,60,111,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,60,111,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.map-pin {
  position: absolute;
  top: 44%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.map-pin-dot {
  width: 32px; height: 32px;
  background: var(--blue);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  margin: 0 auto 12px;
  box-shadow: 0 0 0 8px rgba(0,128,200,0.2), 0 0 0 16px rgba(0,128,200,0.1);
  animation: pinPulse 2.5s ease infinite;
  position: relative;
}
.map-pin-dot::after {
  content: '';
  width: 12px; height: 12px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) rotate(45deg);
}
.map-pin-label {
  background: white;
  padding: 10px 16px;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.map-pin-label strong { display: block; color: var(--navy); font-size: 14px; font-family: 'Fraunces'; font-weight: 500; }
.map-pin-label span { font-size: 12px; color: var(--muted); }
.map-open-link {
  position: absolute;
  bottom: 20px; right: 20px;
  background: var(--navy);
  color: white;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}
.map-open-link:hover { background: var(--blue); }

/* ─── FINAL CTA ─── */
.final-cta {
  background: linear-gradient(135deg, var(--navy) 0%, #001E3D 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--sky) 0%, transparent 60%);
  opacity: 0.13;
  border-radius: 50%;
}
.final-cta .container { position: relative; z-index: 1; }
.final-cta h2 {
  font-family: 'Fraunces';
  font-weight: 300;
  font-size: clamp(38px, 5.8vw, 72px);
  line-height: 1.0;
  margin: 0 auto 32px;
  max-width: 900px;
  letter-spacing: -0.03em;
}
.final-cta h2 em {
  color: var(--sky);
  font-style: italic;
  font-weight: 400;
  display: inline-block;
  position: relative;
}
.final-cta h2 em::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--sky), transparent);
  border-radius: 2px;
  opacity: 0.6;
}
.final-cta > .container > p { font-size: 18px; color: rgba(255,255,255,0.72); margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
.final-cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 48px; }
.final-cta .btn-primary { background: var(--sky); color: var(--navy); font-size: 17px; padding: 18px 32px; }
.final-cta .btn-primary:hover { background: white; }
.final-cta .btn-secondary { color: white; border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.06); }
.final-cta .btn-secondary:hover { background: white; color: var(--navy); border-color: white; }

/* ─── FOOTER ─── */
footer {
  background: #001A33;
  color: rgba(255,255,255,0.6);
  padding: 80px 32px 30px;
  font-size: 14px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand .brand img { opacity: 0.92; }
.footer-brand .brand-text { color: white; }
.footer-brand .brand-text small { color: var(--sky); }
.footer-brand p { max-width: 300px; line-height: 1.7; }
.footer-brand .trust-note {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-socials a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
}
.footer-socials a:hover { background: var(--sky); color: var(--navy); }
.footer-col h5 { color: white; font-size: 13px; font-weight: 600; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-col a { display: block; color: rgba(255,255,255,0.6); text-decoration: none; padding: 6px 0; }
.footer-col a:hover { color: white; }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pinPulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(0,128,200,0.2), 0 0 0 16px rgba(0,128,200,0.1); }
  50% { box-shadow: 0 0 0 12px rgba(0,128,200,0.15), 0 0 0 24px rgba(0,128,200,0.05); }
}

/* Intersection Observer fade-in */
.reveal { opacity: 1; transform: translateY(0); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
/* reveal.animate disabled */

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 60px; }
  .about-grid, .location-block, .mv-grid { grid-template-columns: 1fr; gap: 32px; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .trust-bar-inner { gap: 24px; }
  .trust-divider { display: none; }
}
@media (max-width: 1024px) {
  .section-eyebrow { margin-bottom: 16px; }
  section { padding: 56px 16px; }
  .hero { min-height: 86svh; }
  .hero-content { padding: 44px 20px 56px; justify-content: center; }
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 28, 58, 0.75) 0%,
      rgba(0, 40, 80, 0.70) 50%,
      rgba(0, 55, 110, 0.60) 100%
    );
  }
  .utility-bar { display: none; }
  .nav-links { display: none; }
  .nav-mobile-actions { display: flex; }
  .nav-hamburger { display: flex; }

  /* Grids → single column */
  .mv-grid,
  .spec-grid,
  .doctors-grid,
  .why-grid,
  .about-features { grid-template-columns: 1fr; }

  /* Mission/Vision cards: reduce padding so text fits */
  .mv-card { padding: 32px 24px; }
  .mv-card h3 { font-size: 20px; }
  .mv-quote-mark { font-size: 64px; bottom: 10px; right: 16px; }

  /* Specialty cards */
  .spec-card { padding: 24px 20px; }
  .spec-cta-card { padding: 28px 20px; }

  /* Doctor cards */
  .doctor-info { padding: 18px; }

  /* Why cards */
  .why-card { padding: 40px 0; border-left: none !important; padding-left: 0 !important; border-bottom: 1px solid var(--line); }
  .why-card:last-child { border-bottom: none; }
  .why-card-num { font-size: 72px; }
  .why-card h3 { font-size: 18px; }

  /* Hero stats */
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .hero-stat strong { font-size: 28px; }

  /* Nav / brand */
  .brand img { height: 44px; }
  .brand-text { font-size: 18px; }

  /* Trust / footer */
  .trust-bar { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }

  /* Location */
  .location-map { min-height: 320px; }
}

/* ─── DOCTORS: filtros por especialidad + grid ─── */
.doctor-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 48px;
}
.filter-chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.filter-chip:hover { border-color: var(--blue); color: var(--blue); }
.filter-chip:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.filter-chip.active { background: var(--navy); border-color: var(--navy); color: white; }
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.doctor-card.is-hidden { display: none; }
.doctor-reg {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: var(--sky-soft);
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 12px;
}
.doctor-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 70%, var(--sky) 100%);
}
.doctor-avatar span {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.04em;
}
.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.spec-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  transition: gap 0.2s, color 0.2s;
}
.spec-detail-link:hover { color: var(--navy); gap: 12px; }

/* ─── PÁGINA DE ESPECIALIDAD ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 28px;
}
.breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.breadcrumb a:hover { color: var(--sky); }
.breadcrumb span[aria-hidden] { color: rgba(255,255,255,0.35); }
.esp-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #00509a 100%);
  color: white;
  padding: 88px 32px 96px;
}
.esp-hero .container { max-width: 1280px; margin: 0 auto; }
.esp-hero .eyebrow { color: var(--sky); }
.esp-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 600;
  line-height: 1.15;
  margin: 12px 0 18px;
  max-width: 760px;
}
.esp-hero h1 em { font-style: italic; color: var(--sky); }
.esp-hero p { font-size: 18px; line-height: 1.65; color: rgba(255,255,255,0.85); max-width: 640px; margin-bottom: 32px; }
.esp-hero .hero-ctas {
  justify-content: flex-start;
  margin-bottom: 0;
  animation: none;
}
.esp-services { background: var(--cream-warm); }
.esp-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.esp-service {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
.esp-service svg { flex-shrink: 0; color: var(--green); margin-top: 2px; }
.esp-cta-strip {
  background: var(--sky-soft);
  border-radius: 18px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 64px;
}
.esp-cta-strip h3 { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 600; color: var(--navy); }
.esp-cta-strip p { color: var(--muted); font-size: 15px; margin-top: 6px; }
@media (max-width: 640px) {
  .esp-hero { padding: 64px 24px 72px; }
  .esp-cta-strip { padding: 28px 24px; }
}

/* ─── LISTADO DE ESPECIALIDADES: buscador + filtros + tarjetas ─── */
.spec-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 48px;
}
.spec-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 320px;
  max-width: 440px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--muted);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.spec-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 128, 200, 0.12);
}
.spec-search svg { flex-shrink: 0; }
.spec-search input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink);
}
.spec-search input::placeholder { color: var(--muted); }
#spec-list .spec-card { position: relative; }
.spec-goto {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--sky-soft);
  color: var(--blue);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.spec-goto:hover { background: var(--navy); color: white; transform: translate(2px, -2px); }
.spec-goto:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.spec-cat-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 11px;
  margin: 14px 0 4px;
}
.spec-cat-badge.medica { background: var(--sky-soft); color: var(--blue); }
.spec-cat-badge.quirurgica { background: #EAF7EF; color: #1E7C45; }
.spec-empty {
  margin-top: 40px;
  padding: 28px 32px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}
.spec-empty a { color: var(--blue); font-weight: 600; }
@media (max-width: 640px) {
  .spec-toolbar { margin-top: 36px; }
  .spec-search { flex-basis: 100%; max-width: none; }
}

/* ─── INDEX: 4 tarjetas de especialidad en una sola fila ─── */
.spec-grid-home { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1180px) { .spec-grid-home { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .spec-grid-home { grid-template-columns: 1fr; } }

/* ─── PESTAÑAS DE ESPECIALIDAD ─── */
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: 56px;
}
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  font-family: 'Inter', sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn:focus-visible { outline: 2px solid var(--sky); outline-offset: -2px; border-radius: 6px; }
.tab-btn.active { color: var(--navy); border-bottom-color: var(--blue); }
.esp-intro p { max-width: 800px; font-size: 16.5px; line-height: 1.75; color: var(--ink); margin-top: 8px; }
.esp-block { margin-top: 72px; }
.esp-block .esp-services-grid { margin-top: 40px; }

/* ─── BENEFICIOS ─── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.benefit-card {
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px 24px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(0,60,111,0.25); }
.benefit-num {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--sky);
  margin-bottom: 10px;
}
.benefit-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.benefit-card p { font-size: 14.5px; line-height: 1.65; color: var(--muted); }

/* ─── TARJETA DE MÉDICO: enlace a perfil ─── */
.doctor-profile-link { background: var(--navy); color: white; }
.doctor-profile-link:hover { background: var(--blue); color: white; }
.doctor-card .doctor-book-btn + .doctor-book-btn { margin-top: 10px; }

/* ─── PERFIL DE MÉDICO ─── */
.profile-grid {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: 56px;
  align-items: start;
}
.profile-photo {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--sky-soft), #C8E3F5);
  aspect-ratio: 5/6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.profile-photo .doctor-avatar { width: 100%; height: 100%; }
.profile-photo .doctor-avatar span { font-size: 96px; }
.profile-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 4px 0 20px;
}
.profile-meta .doctor-reg { margin-bottom: 0; }
.profile-esp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.profile-esp-chip:hover { border-color: var(--blue); color: var(--navy); }
.profile-bio { font-size: 16.5px; line-height: 1.75; color: var(--ink); max-width: 640px; }
.profile-block { margin-top: 40px; }
.profile-block h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.profile-creds { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}
.btn-secondary-dark {
  display: inline-flex;
  align-items: center;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary-dark:hover { border-color: var(--navy); background: var(--sky-soft); }
@media (max-width: 900px) {
  .profile-grid { grid-template-columns: 1fr; gap: 36px; }
  .profile-photo { max-width: 420px; }
}
@media (max-width: 640px) {
  .tab-btn { padding: 13px 16px; font-size: 14.5px; }
  .esp-block { margin-top: 56px; }
}

/* ─── Botón de agendar en perfil de médico (estilo del header) ─── */
.profile-actions .nav-cta {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* ─── CAMPAÑA TRAUMATOLOGÍA: bloques de conversión (prefijos .cta- / .prp-) ─── */
/* Construidos únicamente con tokens existentes del sitio (variables :root,
   Playfair/Inter, pills 999px, tarjetas blancas borde --line, navy del esp-hero). */
.cta-medesk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 28px;
  background: var(--navy);
  color: white;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.cta-medesk:hover { background: var(--blue); }

/* Bloque 1: evaluación con ecografía */
.cta-eval-section { padding: 56px 32px 0; }
.cta-eval-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  overflow: hidden;
}
.cta-eval-main { padding: 40px 44px; }
.cta-eval-main h2.section-title { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 16px; }
.cta-eval-main > p { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 560px; }
.cta-eval-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cta-eval-point {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}
.cta-eval-point svg { color: var(--green); flex-shrink: 0; }
.cta-eval-side {
  border-left: 1px solid var(--line);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}
.cta-eval-badge {
  background: var(--green-soft);
  color: #1E7C45;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cta-eval-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cta-eval-price-old { font-size: 20px; color: var(--muted); text-decoration: line-through; }
.cta-eval-price-now {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}
.cta-eval-price-note { font-size: 13px; color: var(--muted); max-width: 150px; text-align: left; }
.cta-eval-hours { font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) {
  .cta-eval-section { padding: 40px 16px 0; }
  .cta-eval-card { grid-template-columns: 1fr; }
  .cta-eval-main { padding: 28px 22px; }
  .cta-eval-side { border-left: none; border-top: 1px solid var(--line); padding: 28px 22px; }
  .cta-eval-side .cta-medesk { width: 100%; }
}

/* Bloque 2: sección PRP (ancla de campaña #prp) */
.prp-section {
  margin-top: 72px;
  background: var(--sky-soft);
  border-radius: 24px;
  padding: 56px 48px;
  scroll-margin-top: 96px;
}
.prp-section .section-eyebrow { color: var(--navy); }
.prp-section .section-eyebrow::before { background: var(--navy); }
.prp-intro { max-width: 780px; font-size: 16.5px; line-height: 1.75; color: var(--ink); }
.prp-section .benefits-grid { margin-top: 36px; }
.prp-price-strip {
  margin-top: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.prp-price-strip p { font-size: 16px; color: var(--ink); }
.prp-price-strip strong { color: var(--navy); font-weight: 700; }
.prp-offer {
  margin-top: 20px;
  background: linear-gradient(135deg, var(--navy) 0%, #00509a 100%);
  color: white;
  border-radius: 20px;
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.prp-offer-main { flex: 1 1 380px; }
.prp-offer-badge {
  display: inline-flex;
  align-items: center;
  background: var(--green-soft);
  color: #1E7C45;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.prp-offer h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.25;
  max-width: 560px;
  margin-bottom: 14px;
}
.prp-offer h3 em { font-style: italic; color: var(--sky); }
.prp-offer-desglose { font-size: 14.5px; color: rgba(255,255,255,0.8); }
.prp-offer-desglose s { color: rgba(255,255,255,0.55); }
.prp-offer-price { text-align: center; }
.prp-offer-price-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  font-weight: 600;
  margin-bottom: 8px;
}
.prp-offer-price-value {
  font-family: 'Playfair Display', serif;
  font-size: clamp(44px, 5vw, 60px);
  font-weight: 600;
  line-height: 1;
  color: white;
}
.prp-note { margin-top: 20px; font-size: 13px; color: var(--muted); line-height: 1.6; }
@media (max-width: 640px) {
  .prp-section { margin-top: 56px; padding: 32px 20px; border-radius: 18px; }
  .prp-offer { padding: 28px 24px; }
  .prp-price-strip { padding: 20px; }
  .prp-price-strip .cta-medesk { width: 100%; }
}
