/* ===================================================================
   ABP RADIÓLOGOS — Design tokens
=================================================================== */
:root {
  --navy: #0A3C5B;
  --navy-deep: #082C44;
  --navy-darker: #06202F;
  --gold: #BB9D6D;
  --gold-light: #D9C6A3;
  --gold-dark: #9C8055;
  --gold-deep: #7C5F39; /* AA-contrast text variant of gold-dark (5.9:1 on white vs 3.7:1) */
  --blue: #6090B3;
  --blue-tint: #EEF3F7;
  --blue-tint-2: #E3ECF3;
  --black: #101820;
  --white: #FFFFFF;
  --cream: #FAF8F5;
  --ink: #14202B;
  --ink-soft: #45535F;
  --ink-faint: #5E6B75;
  --line: #E4E1DA;
  --line-soft: rgba(16, 24, 32, 0.08);

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1200px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 8px rgba(10, 60, 91, 0.06);
  --shadow-md: 0 12px 32px rgba(10, 60, 91, 0.10);
  --shadow-lg: 0 24px 64px rgba(6, 32, 47, 0.18);
  --shadow-gold: 0 10px 30px rgba(187, 157, 109, 0.35);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.2s;
  --dur-med: 0.45s;
  --dur-slow: 0.8s;

  --header-h: 84px;
}

@media (max-width: 767px) {
  :root { --header-h: 68px; }
}

/* ===================================================================
   Reset & base
=================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
svg { display: block; }

::selection { background: var(--gold); color: var(--navy-deep); }

:focus-visible {
  outline: 2.5px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 12px; }

/* ===================================================================
   Typography
=================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1.5px;
  background: var(--gold);
  display: inline-block;
}
.on-dark .eyebrow { color: var(--gold-light); }

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--navy-deep);
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--navy-deep);
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.28;
  color: var(--navy-deep);
}
.section-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 62ch;
}
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark p, .on-dark .section-lead { color: var(--white); }
.on-dark .section-lead { color: rgba(255,255,255,0.78); }

.section-head { margin-bottom: 56px; max-width: 720px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 18px; }

/* ===================================================================
   Buttons
=================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  padding: 16px 30px;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  min-height: 52px;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:active { transform: scale(0.97); }

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 16px 36px rgba(187,157,109,0.42); }

.btn-outline-dark {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
  background: rgba(255,255,255,0.04);
}
.btn-outline-dark:hover { border-color: var(--white); background: rgba(255,255,255,0.1); transform: translateY(-2px); }

.btn-outline-light {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-outline-light:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }

.btn-block { width: 100%; }
.btn-sm { padding: 12px 22px; min-height: 44px; font-size: 14.5px; }
@media (max-width: 380px) {
  /* Safety net: let long labels wrap on very narrow screens instead of overflowing. */
  .btn-block { white-space: normal; text-align: center; line-height: 1.3; }
}

/* ===================================================================
   Header / Nav
=================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease), height var(--dur-med) var(--ease), backdrop-filter var(--dur-med) var(--ease);
  background: transparent;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 6px 24px rgba(10,60,91,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img { height: 40px; width: auto; flex-shrink: 0; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.1;
  color: var(--navy-deep);
  transition: color var(--dur-med) var(--ease);
  white-space: nowrap;
}
.brand-word span {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 2px;
  white-space: nowrap;
}
@media (max-width: 479px) {
  .brand-word { font-size: 15px; }
  .brand-word span { display: none; }
}
.site-header:not(.is-scrolled) .brand-word { color: var(--white); }
.site-header:not(.is-scrolled) .brand-word span { color: var(--gold-light); }

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
}
.nav-links a {
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: var(--radius-full);
  color: var(--ink-soft);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.site-header:not(.is-scrolled) .nav-links a { color: rgba(255,255,255,0.85); }
.nav-links a:hover { background: var(--blue-tint); color: var(--navy-deep); }
.site-header:not(.is-scrolled) .nav-links a:hover { background: rgba(255,255,255,0.14); color: var(--white); }
.nav-links a[aria-current="page"] { background: var(--blue-tint); color: var(--navy-deep); font-weight: 600; }
.site-header:not(.is-scrolled) .nav-links a[aria-current="page"] { background: rgba(255,255,255,0.16); color: var(--white); }
.mobile-panel nav a[aria-current="page"] { color: var(--gold-light); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-actions .btn { padding: 12px 20px; min-height: 44px; font-size: 14px; }
.header-actions .btn-outline-light { display: none; }
@media (min-width: 1100px) {
  .header-actions .btn-outline-light { display: inline-flex; }
}
@media (max-width: 479px) {
  .header-actions .btn-gold {
    padding: 0;
    width: 44px;
    height: 44px;
    min-height: 44px;
    border-radius: 50%;
  }
  .header-actions .btn-gold .btn-text { display: none; }
  .header-actions .btn-gold svg { width: 19px; height: 19px; }
  .header-actions { gap: 8px; }
}
.site-header:not(.is-scrolled) .btn-outline-light { border-color: rgba(255,255,255,0.5); color: var(--white); }
.site-header:not(.is-scrolled) .btn-outline-light:hover { background: rgba(255,255,255,0.14); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: rgba(10,60,91,0.06);
  border: none;
  flex-shrink: 0;
}
.site-header:not(.is-scrolled) .nav-toggle { background: rgba(255,255,255,0.12); }
.nav-toggle svg { width: 22px; height: 22px; color: var(--navy-deep); }
.site-header:not(.is-scrolled) .nav-toggle svg { color: var(--white); }
@media (min-width: 900px) { .nav-toggle { display: none; } }

/* Mobile panel */
.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 150;
  visibility: hidden;
  pointer-events: none;
}
.mobile-panel.is-open { visibility: visible; pointer-events: auto; }
.mobile-panel__backdrop {
  position: absolute; inset: 0;
  background: rgba(6,32,47,0.55);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease);
}
.mobile-panel.is-open .mobile-panel__backdrop { opacity: 1; }
.mobile-panel__sheet {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 86vw);
  background: var(--navy-deep);
  padding: 28px 28px 40px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--dur-med) var(--ease);
  overflow-y: auto;
}
.mobile-panel.is-open .mobile-panel__sheet { transform: translateX(0); }
.mobile-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}
.mobile-panel__close {
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  border: none;
  display: flex; align-items: center; justify-content: center;
}
.mobile-panel__close svg { width: 20px; height: 20px; color: var(--white); }
.mobile-panel nav ul { display: flex; flex-direction: column; gap: 4px; margin-bottom: 32px; }
.mobile-panel nav a {
  display: block;
  padding: 14px 4px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-panel__actions { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }

/* ===================================================================
   Hero
=================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: 64px;
  background: linear-gradient(160deg, var(--navy-darker) 0%, var(--navy-deep) 46%, var(--navy) 100%);
  overflow: hidden;
  color: var(--white);
}
.hero__bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  width: 60vw; height: 60vw;
  max-width: 900px; max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(187,157,109,0.22) 0%, rgba(187,157,109,0) 70%);
  top: -10%;
  right: -18%;
}
.hero__glow--blue {
  background: radial-gradient(circle, rgba(96,144,179,0.22) 0%, rgba(96,144,179,0) 70%);
  width: 46vw; height: 46vw;
  top: auto; bottom: -20%; left: -10%; right: auto;
}
.hero__rings {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: min(46vw, 560px);
  opacity: 0.9;
}
@media (max-width: 900px) {
  .hero__rings { opacity: 0.35; right: -8%; }
}
.hero__wave {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  opacity: 0.5;
}
.hero__wave path { animation: waveDrift 14s ease-in-out infinite; }
@keyframes waveDrift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-3%); }
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 40px;
}
@media (min-width: 1000px) {
  .hero__inner { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
}
.hero__content { max-width: 660px; }
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero p.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  max-width: 56ch;
  margin-bottom: 38px;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hero__trust-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* Trust marquee */
.trust-strip {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 48px;
  padding-top: 28px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.trust-strip__track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .trust-strip__track { animation: none; flex-wrap: wrap; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.trust-strip__item {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
}

/* Hero panel (image / card) */
.hero__panel {
  position: relative;
  border-radius: var(--radius-lg);
  min-height: 380px;
  background: linear-gradient(155deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.14);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 28px;
}
.hero__panel-media {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(96,144,179,0.35), transparent 60%),
    radial-gradient(120% 90% at 100% 100%, rgba(187,157,109,0.3), transparent 55%);
}
.hero__panel-scan {
  position: absolute;
  inset: 0;
  opacity: 0.55;
}
.hero__panel-card {
  position: relative;
  z-index: 2;
  background: rgba(10,60,91,0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero__panel-card svg { width: 30px; height: 30px; color: var(--gold-light); flex-shrink: 0; }
.hero__panel-card strong { display: block; font-family: var(--font-display); font-size: 18px; color: var(--white); }
.hero__panel-card span { font-size: 13.5px; color: rgba(255,255,255,0.72); }

/* ===================================================================
   Stats bar
=================================================================== */
.stats {
  background: var(--navy-deep);
  padding: 56px 0;
  position: relative;
  z-index: 3;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
}
@media (min-width: 720px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
}
.stat {
  text-align: left;
  border-left: 2px solid rgba(187,157,109,0.4);
  padding-left: 18px;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 600;
  color: var(--gold-light);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat__label {
  font-size: 13.5px;
  color: rgba(255,255,255,0.68);
  margin-top: 6px;
  line-height: 1.4;
}

/* ===================================================================
   Section spacing / alt backgrounds
=================================================================== */
section { position: relative; }
.section-pad { padding: 96px 0; }
@media (max-width: 767px) { .section-pad { padding: 72px 0; } }
.bg-cream { background: var(--cream); }
.bg-blue-tint { background: linear-gradient(180deg, var(--blue-tint), var(--white)); }
.bg-navy { background: linear-gradient(150deg, var(--navy-deep), var(--navy)); }
.bg-white { background: var(--white); }

/* ===================================================================
   Nosotros
=================================================================== */
.about__grid {
  display: grid;
  gap: 56px;
}
@media (min-width: 960px) {
  .about__grid { grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 72px; }
}
.about__art {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about__art-pattern { position: absolute; inset: 0; opacity: 0.9; }
.about__art-badge {
  position: absolute;
  left: 24px; bottom: 24px; right: 24px;
  background: rgba(6,32,47,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  color: var(--white);
}
.about__art-badge strong { font-family: var(--font-display); font-size: 20px; display: block; }
.about__art-badge span { font-size: 13px; color: rgba(255,255,255,0.7); }

.about__body p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.75; margin-bottom: 20px; }
.check-list { display: grid; gap: 14px; margin-top: 28px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
}
.check-list svg {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: var(--gold-dark);
  margin-top: 1px;
}

/* ===================================================================
   Cards grid (Servicios)
=================================================================== */
.grid-cards {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-cards { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--blue-tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: background var(--dur-med) var(--ease);
}
.service-card__icon svg { width: 26px; height: 26px; color: var(--navy); }
.service-card:hover .service-card__icon { background: var(--gold); }
.service-card:hover .service-card__icon svg { color: var(--navy-deep); }
.service-card h3 { margin-bottom: 10px; font-size: 1.12rem; }
.service-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }

/* ===================================================================
   Procedimientos
=================================================================== */
.proc__grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 860px) { .proc__grid { grid-template-columns: repeat(3, 1fr); } }
.proc-card {
  background: var(--navy-deep);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.proc-card::before {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(187,157,109,0.22), transparent 70%);
  top: -60px; right: -60px;
}
.proc-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(187,157,109,0.16);
  border: 1px solid rgba(187,157,109,0.35);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  position: relative; z-index: 1;
}
.proc-card__icon svg { width: 24px; height: 24px; color: var(--gold-light); }
.proc-card h3 { color: var(--white); margin-bottom: 14px; position: relative; z-index: 1; }
.proc-card ul { display: grid; gap: 10px; position: relative; z-index: 1; }
.proc-card li {
  font-size: 14.5px;
  color: rgba(255,255,255,0.78);
  display: flex;
  align-items: center;
  gap: 10px;
}
.proc-card li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ===================================================================
   Médicos
=================================================================== */
.doctors__grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 860px) { .doctors__grid { grid-template-columns: repeat(3, 1fr); } }

.doctor-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.doctor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.doctor-card > .photo-slot { border-radius: 0; border-width: 0 0 1.5px 0; box-shadow: none; }

.doctor-card__media {
  position: relative;
  aspect-ratio: 4 / 3.6;
  background: linear-gradient(150deg, var(--blue-tint), var(--blue-tint-2));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.doctor-card__media::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.5), transparent 55%);
}
.doctor-card__monogram {
  width: 92px; height: 92px;
  border-radius: 50%;
  background: var(--navy-deep);
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--gold-light);
  position: relative;
  z-index: 1;
}
.doctor-card__photo-note {
  position: absolute;
  bottom: 12px; left: 12px; right: 12px;
  z-index: 1;
  font-size: 11px;
  text-align: center;
  color: var(--ink-faint);
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius-full);
  padding: 5px 10px;
  letter-spacing: 0.02em;
}
.doctor-card__body { padding: 26px 26px 28px; }
.doctor-card__specialty {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--blue-tint);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}
.doctor-card__body h3 { margin-bottom: 4px; }
.doctor-card__role { font-size: 13.5px; color: var(--gold-deep); font-weight: 600; margin-bottom: 16px; }
.doctor-card__creds { display: grid; gap: 9px; }
.doctor-card__creds li {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}
.doctor-card__creds li::before {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* ===================================================================
   Valores
=================================================================== */
.values__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 640px) { .values__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .values__grid { grid-template-columns: repeat(3, 1fr); } }

.value-card {
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line-soft);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.value-card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.value-card__icon svg { width: 22px; height: 22px; color: var(--navy-deep); }
.value-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.value-card p { font-size: 13.8px; color: var(--ink-soft); line-height: 1.55; }

.quote-banner {
  margin-top: 64px;
  text-align: center;
  padding: 56px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--navy-deep), var(--navy));
  position: relative;
  overflow: hidden;
}
.quote-banner p {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  color: var(--white);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.4;
}
.quote-banner .quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  color: rgba(187,157,109,0.3);
  line-height: 0.5;
  display: block;
  margin-bottom: 12px;
}

/* ===================================================================
   Visión 2030
=================================================================== */
.vision {
  background: linear-gradient(160deg, var(--navy-darker), var(--navy-deep) 60%, var(--navy));
  color: var(--white);
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}
.vision__arc {
  position: absolute;
  right: -12%;
  top: 50%;
  transform: translateY(-50%);
  width: min(50vw, 620px);
  opacity: 0.5;
}
.vision__grid {
  display: grid;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 900px) { .vision__grid { grid-template-columns: 0.55fr 1fr; } }
.vision__year {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 600;
  color: var(--gold);
  line-height: 0.9;
}
.vision__year span {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 14px;
}
.vision p.lede { font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.55; color: rgba(255,255,255,0.9); font-family: var(--font-display); font-weight: 400; }

/* ===================================================================
   CTA / Contacto
=================================================================== */
.contact__grid {
  display: grid;
  gap: 48px;
}
@media (min-width: 960px) { .contact__grid { grid-template-columns: 1fr 1fr; gap: 64px; } }

.contact-list { display: grid; gap: 16px; margin: 32px 0 36px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--cream);
  border: 1px solid var(--line-soft);
}
.contact-item__icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item__icon svg { width: 20px; height: 20px; color: var(--gold-light); }
.contact-item strong { display: block; font-size: 14.5px; color: var(--navy-deep); margin-bottom: 2px; }
.contact-item span, .contact-item a { font-size: 14px; color: var(--ink-soft); }
.contact-item a:hover { color: var(--navy); }

.contact__panel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-deep);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}
.contact__map { position: relative; aspect-ratio: 16/11; background: var(--blue-tint); filter: grayscale(0.15); }
.contact__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact__map-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,0.92);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  gap: 6px;
}
.contact__map-tag svg { width: 14px; height: 14px; color: var(--gold-dark); }
.contact__panel-body { padding: 30px 28px; }
.contact__panel-body h3 { color: var(--white); margin-bottom: 10px; }
.contact__panel-body p { color: rgba(255,255,255,0.72); font-size: 14.5px; line-height: 1.6; margin-bottom: 22px; }

/* ===================================================================
   Footer
=================================================================== */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 32px;
}
.footer__grid {
  display: grid;
  gap: 44px;
  margin-bottom: 56px;
}
@media (min-width: 780px) { .footer__grid { grid-template-columns: 1.3fr 0.85fr 0.85fr 1fr; gap: 32px; } }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer__brand img { height: 38px; }
.footer__brand strong { font-family: var(--font-display); font-size: 18px; color: var(--white); display: block; }
.footer__brand span { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.footer p.desc { font-size: 13.8px; line-height: 1.65; max-width: 34ch; color: rgba(255,255,255,0.55); }
.footer h4 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 18px;
}
.footer__links { display: grid; gap: 11px; }
.footer__links a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color var(--dur-fast); }
.footer__links a:hover { color: var(--gold-light); }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.footer__social svg { width: 16px; height: 16px; color: rgba(255,255,255,0.75); }
.footer__social a:hover { background: var(--gold); border-color: var(--gold); }
.footer__social a:hover svg { color: var(--navy-deep); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255,255,255,0.4);
}
.footer__bottom a { color: rgba(255,255,255,0.4); }
.footer__bottom a:hover { color: var(--gold-light); }
.footer__bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ===================================================================
   Floating WhatsApp button
=================================================================== */
.fab-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--gold);
  color: var(--navy-deep);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-gold);
  padding: 15px;
  transition: padding var(--dur-med) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), opacity var(--dur-med) var(--ease);
  overflow: hidden;
}
/* Hidden while the hero (which already has a prominent WhatsApp CTA) is in view;
   revealed on scroll via .is-visible (see wireFab in main.js). Defaults to
   visible so the button still works if JS fails to load. */
.js-fab-ready .fab-whatsapp { opacity: 0; transform: scale(0.85); pointer-events: none; }
.js-fab-ready .fab-whatsapp.is-visible { opacity: 1; transform: scale(1); pointer-events: auto; }
.fab-whatsapp svg { width: 26px; height: 26px; flex-shrink: 0; }
.fab-whatsapp__label {
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  font-weight: 700;
  font-size: 14.5px;
  transition: max-width var(--dur-med) var(--ease), opacity var(--dur-med) var(--ease), margin var(--dur-med) var(--ease);
}
@media (min-width: 768px) {
  .fab-whatsapp:hover { padding: 15px 22px 15px 16px; transform: translateY(-2px); box-shadow: 0 16px 40px rgba(187,157,109,0.5); }
  .fab-whatsapp:hover .fab-whatsapp__label { max-width: 220px; opacity: 1; margin-left: 10px; }
}
.fab-whatsapp__ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0;
  animation: fabPulse 2.6s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) { .fab-whatsapp__ring { animation: none; } }
@keyframes fabPulse {
  0% { transform: scale(0.85); opacity: 0.55; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { opacity: 0; }
}

/* ===================================================================
   Modal (Ver mis estudios placeholder)
=================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  pointer-events: none;
}
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(6,32,47,0.62);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease);
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__box {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 460px;
  width: 100%;
  padding: 40px 32px 32px;
  text-align: center;
  transform: translateY(18px) scale(0.97);
  opacity: 0;
  transition: transform var(--dur-med) var(--ease), opacity var(--dur-med) var(--ease);
  box-shadow: var(--shadow-lg);
}
.modal.is-open .modal__box { transform: translateY(0) scale(1); opacity: 1; }
.modal__icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--blue-tint);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.modal__icon svg { width: 32px; height: 32px; color: var(--navy); }
.modal__box h3 { margin-bottom: 12px; }
.modal__box p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; margin-bottom: 26px; }
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
}
.modal__close svg { width: 16px; height: 16px; color: var(--ink-soft); }

/* ===================================================================
   Page hero — smaller banner used at the top of inner pages
   (Nosotros, Servicios, Procedimientos, Médicos, Contacto)
=================================================================== */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 64px;
  background: linear-gradient(160deg, var(--navy-darker) 0%, var(--navy-deep) 46%, var(--navy) 100%);
  color: var(--white);
  overflow: hidden;
}
.page-hero__rings {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: min(38vw, 460px);
  opacity: 0.35;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; max-width: 16ch; }
.page-hero p.lede { font-size: clamp(1.02rem, 1.5vw, 1.15rem); line-height: 1.65; color: rgba(255,255,255,0.8); max-width: 58ch; }
.page-hero__crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 22px;
}
.page-hero__crumb a { color: rgba(255,255,255,0.75); }
.page-hero__crumb a:hover { color: var(--gold-light); }

/* ===================================================================
   Photo slots — clearly-marked placeholders for real photography.
   Swap by replacing the <div class="photo-slot"> with an <img>.
=================================================================== */
.photo-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(135deg, rgba(10,60,91,0.05) 0 12px, rgba(10,60,91,0.02) 12px 24px),
    linear-gradient(155deg, var(--blue-tint), var(--blue-tint-2));
  border: 1.5px dashed rgba(10,60,91,0.28);
  padding: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.photo-slot__icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.photo-slot__icon svg { width: 24px; height: 24px; color: var(--navy); }
.photo-slot__label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  color: var(--navy-deep);
  max-width: 26ch;
  line-height: 1.4;
}
.photo-slot__hint {
  font-size: 11.5px;
  color: var(--ink-faint);
  max-width: 26ch;
  line-height: 1.4;
}
/* Real photos */
.photo-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: var(--blue-tint);
}
.doctor-card > .photo-img { border-radius: 0; box-shadow: none; }
.doctor-profile__photo .photo-img { max-width: 340px; margin: 0 auto; }
/* Aspect ratios */
.photo-slot--portrait { aspect-ratio: 4 / 5; }
.photo-slot--square { aspect-ratio: 1 / 1; }
.photo-slot--wide { aspect-ratio: 16 / 9; }
.photo-slot--tall { aspect-ratio: 3 / 4; }
.photo-slot--banner { aspect-ratio: 21 / 9; }
/* Dark variant, for use on navy backgrounds */
.photo-slot--dark {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 12px, rgba(255,255,255,0.015) 12px 24px),
    linear-gradient(155deg, var(--navy), var(--navy-deep));
  border-color: rgba(255,255,255,0.22);
}
.photo-slot--dark .photo-slot__icon { background: rgba(255,255,255,0.12); }
.photo-slot--dark .photo-slot__icon svg { color: var(--gold-light); }
.photo-slot--dark .photo-slot__label { color: var(--white); }
.photo-slot--dark .photo-slot__hint { color: rgba(255,255,255,0.6); }

/* ===================================================================
   CTA band — short, centered call-to-action banner reused across pages
=================================================================== */
.cta-band__inner { max-width: 640px; margin: 0 auto; text-align: center; }
.cta-band__inner .eyebrow { justify-content: center; margin-bottom: 16px; }
.cta-band__inner h2 { margin-bottom: 14px; }
.cta-band__inner p.section-lead { margin: 0 auto 30px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ===================================================================
   Photo grid — a row of photo-slots (facilities / team / in-action)
=================================================================== */
.photo-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
.photo-grid .photo-slot--wide { grid-column: span 1; }
@media (min-width: 720px) {
  .photo-grid--feature .photo-slot:first-child { grid-column: span 2; }
}

/* ===================================================================
   Teaser doctor cards (home) — compact variant of .doctor-card
=================================================================== */
.doctor-card--teaser .doctor-card__body { padding: 22px 22px 24px; }
.doctor-card--teaser .doctor-card__body h3 { font-size: 1.05rem; }
.doctor-card--teaser .doctor-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
}
.doctor-card--teaser .doctor-card__more svg { width: 15px; height: 15px; }

/* ===================================================================
   Institutions grid — simple pill list (Nosotros: "dónde hemos trabajado")
=================================================================== */
.institutions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.institutions-grid__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--navy-deep);
}
.institutions-grid__item svg { width: 18px; height: 18px; color: var(--gold-dark); flex-shrink: 0; }

/* ===================================================================
   Doctor profile — full bio row (Médicos page), alternates sides
=================================================================== */
.doctor-profile {
  display: grid;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
}
.doctor-profile + .doctor-profile { border-top: 1px solid var(--line-soft); }
@media (min-width: 860px) {
  .doctor-profile { grid-template-columns: 0.55fr 1fr; gap: 64px; }
  .doctor-profile--reverse { grid-template-columns: 1fr 0.55fr; }
  .doctor-profile--reverse .doctor-profile__photo { order: 2; }
}
.doctor-profile__photo .photo-slot { max-width: 340px; margin: 0 auto; }
.doctor-profile__specialty {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--blue-tint);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}
.doctor-profile__body h3 { margin-bottom: 4px; }
.doctor-profile__role { font-size: 14.5px; color: var(--gold-deep); font-weight: 600; margin-bottom: 20px; }
.doctor-profile__creds { display: grid; gap: 12px; }
.doctor-profile__creds li {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  padding-left: 22px;
  position: relative;
}
.doctor-profile__creds li::before {
  content: '';
  position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ===================================================================
   Reveal-on-scroll base state (JS adds .is-visible via GSAP/ScrollTrigger;
   this fallback keeps content visible if JS fails to load)
=================================================================== */
.reveal { opacity: 1; }
.js-anim-ready .reveal { opacity: 0; }

/* ===================================================================
   Utilities
=================================================================== */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); line-height: 1.75; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin: 0 0 8px; }
.legal a { color: var(--navy); text-decoration: underline; }

/* Team photo banner */
.team-photo { margin-bottom: 56px; }
.team-photo .photo-img { box-shadow: var(--shadow-lg); }
.about__grid--single { grid-template-columns: 1fr !important; max-width: 820px; margin: 0 auto; }
