/* ============================================================
   DIONISI CAUTURES — Sistema de Diseño
   Tipografía: Branch (display) + Afacad Flux (body)
   ============================================================ */

/* Branch — Fontshare */
@import url('https://api.fontshare.com/v2/css?f[]=branch@400,500,600,700&display=swap');
/* Afacad Flux — Google Fonts (variable) */
@import url('https://fonts.googleapis.com/css2?family=Afacad+Flux:wght@100..1000&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --color-white:      #FFFFFF;
  --color-surface:    #F8F7F5;
  --color-border:     #E8E4DF;
  --color-text:       #1A1918;
  --color-muted:      #6B6560;
  --color-accent:     #B8956A;
  --color-accent-lt:  #EDE3D9;
  --color-dark:       #0D0C0B;

  --font-display: 'Branch', Georgia, serif;
  --font-body:    'Afacad Flux', system-ui, sans-serif;

  --size-xs:   0.75rem;
  --size-sm:   0.875rem;
  --size-base: 1rem;
  --size-md:   1.125rem;
  --size-lg:   1.375rem;
  --size-xl:   1.75rem;
  --size-2xl:  2.25rem;
  --size-3xl:  3rem;
  --size-4xl:  2.75rem;
  --size-5xl:  3.5rem;
  --size-6xl:  4.5rem;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-full: 999px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.06);
  --shadow-md:  0 4px 20px rgba(0,0,0,.07);

  --ease-smooth: cubic-bezier(.4,0,.2,1);
  --ease-out:    cubic-bezier(0,0,.2,1);

  --nav-height: 108px;
  --content-max: 1200px;
  --content-wide: 1380px;
  --gutter: clamp(1.5rem, 5vw, 5rem);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--size-base);
  font-weight: 380;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ── Tipografía ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-dark);
}
h1 { font-size: clamp(var(--size-3xl), 5vw, var(--size-5xl)); letter-spacing: -.02em; }
h2 { font-size: clamp(var(--size-2xl), 3.5vw, var(--size-4xl)); letter-spacing: -.015em; }
h3 { font-size: clamp(var(--size-lg), 2.5vw, var(--size-2xl)); }
h4 { font-size: clamp(var(--size-base), 1.8vw, var(--size-xl)); }
p  { max-width: 68ch; }

.display-italic { font-style: italic; color: var(--color-accent); font-weight: 400; }
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--size-xs);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* ── Layout helpers ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide {
  max-width: var(--content-wide);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

/* ── Separadores ─────────────────────────────────────────── */
.rule {
  width: 56px;
  height: 1px;
  background: var(--color-accent);
  margin-block: 1.5rem;
}
.rule--center { margin-inline: auto; }

/* ── Botones ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 2rem;
  font-family: var(--font-body);
  font-size: var(--size-sm);
  font-weight: 500;
  letter-spacing: .04em;
  border-radius: var(--radius-full);
  transition: background .22s var(--ease-smooth),
              color .22s var(--ease-smooth),
              transform .22s var(--ease-smooth),
              box-shadow .22s var(--ease-smooth),
              border-color .22s var(--ease-smooth);
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-dark);
  color: var(--color-white);
  box-shadow: 0 2px 8px rgba(13,12,11,.18);
}
.btn--primary:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(184,149,106,.4);
}
.btn--primary:active { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(13,12,11,.2); }
.btn--outline {
  border: 1.5px solid var(--color-dark);
  color: var(--color-dark);
}
.btn--outline:hover {
  background: var(--color-dark);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(13,12,11,.2);
}
.btn--outline:active { transform: translateY(-1px); }
.btn--ghost {
  color: var(--color-accent);
  padding-inline: 0;
  border-radius: 0;
  border-bottom: 1px solid transparent;
  font-size: var(--size-sm);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.btn--ghost:hover {
  border-bottom-color: var(--color-accent);
  letter-spacing: .1em;
}
.btn svg { width: 16px; height: 16px; transition: transform .22s var(--ease-smooth); }
.btn:hover svg { transform: translateX(3px); }

/* ── WhatsApp flotante ───────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s var(--ease-smooth);
}
.wa-float:hover {
  transform: scale(1.15);
  box-shadow: 0 10px 36px rgba(37,211,102,.5);
}
.wa-float svg { width: 28px; height: 28px; }

/* ══════════════════════════════════════════════════════════
   NAVEGACIÓN
══════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
  transition: box-shadow .3s var(--ease-smooth);
}
.nav.scrolled {
  box-shadow: 0 2px 16px rgba(13,12,11,.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.nav__logo img { height: 90px; width: auto; }
.nav__logo-img {
  height: 90px;
  width: auto;
  display: block;
  /* En mobile menu-open el logo queda blanco no aplica aquí - es PNG con transparencia */
}
.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--color-dark);
  line-height: 1.2;
}
.nav__logo-text span { display: block; font-weight: 300; font-size: .95rem; color: var(--color-muted); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav__item { position: relative; }
.nav__link {
  display: block;
  padding: .5rem 1.1rem;
  font-size: var(--size-sm);
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: .01em;
  transition: color .2s;
}
.nav__link:hover { color: var(--color-accent); }
.nav__link--active { color: var(--color-accent); }

/* Dropdown */
.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: .75rem 0;
  padding-top: calc(.75rem + .5rem); /* incluye el espacio-puente */
  margin-top: 0;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s var(--ease-smooth), transform .2s var(--ease-smooth);
}
/* Pseudo-puente: cubre el hueco entre nav link y dropdown */
.nav__dropdown::before {
  content: '';
  position: absolute;
  top: -.5rem;
  left: 0;
  right: 0;
  height: .5rem;
}
.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.nav__dropdown a {
  display: block;
  padding: .55rem 1.25rem;
  font-size: var(--size-sm);
  color: var(--color-muted);
  transition: color .15s, background .15s;
  line-height: 1.4;
}
.nav__dropdown a:hover {
  color: var(--color-accent);
  background: var(--color-surface);
}
.nav__dropdown-label {
  padding: .4rem 1.25rem .25rem;
  font-size: var(--size-xs);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.nav__cta {
  margin-left: 1.5rem;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-dark);
  transition: transform .25s, opacity .25s;
}

/* ══════════════════════════════════════════════════════════
   HERO — INICIO
══════════════════════════════════════════════════════════ */
.hero-home {
  min-height: 92svh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* Imagen de fondo full-bleed */
.hero-home__bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
  will-change: transform;
}
/* Overlay: más denso a la izquierda donde está el texto */
.hero-home__bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(13,12,11,.55);
}
.hero-home__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: calc(var(--nav-height) + 6rem) var(--gutter) 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-home__content .eyebrow { margin-bottom: 1.5rem; color: var(--color-accent); }
.hero-home__title {
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 1.75rem;
  color: var(--color-white);
}
.hero-home__title em { font-style: normal; color: var(--color-accent); font-weight: 400; }
.hero-home__subtitle {
  font-size: var(--size-md);
  color: rgba(255,255,255,.80);
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 52ch;
  text-align: center;
}
.hero-home__actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
/* Ocultar el slot de imagen lateral (ya no se usa) */
.hero-home__image { display: none !important; }
.hero-home__image-overlay { display: none !important; }

/* ══════════════════════════════════════════════════════════
   BREADCRUMB — barra propia debajo del nav
══════════════════════════════════════════════════════════ */
.breadcrumb-bar { display: none; }
.hero-inner .breadcrumb { display: none; }
.hero-simple .breadcrumb { display: none; }

/* ══════════════════════════════════════════════════════════
   HERO — INTERIOR (páginas internas)
══════════════════════════════════════════════════════════ */
.hero-inner {
  padding-top: 7rem;
  padding-bottom: 7rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.hero-inner .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-inner__text .eyebrow { margin-bottom: 1.25rem; }
.hero-inner__text h1 { margin-bottom: 1.25rem; }
.hero-inner__text p { font-size: var(--size-md); color: var(--color-muted); margin-bottom: 2rem; }
.hero-inner__image { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.hero-inner__image img { width: 100%; height: 100%; object-fit: cover; }

/* Hero simple (sin imagen) */
.hero-simple {
  background: var(--color-surface);
  padding-top: calc(var(--nav-height) + 5rem);
  padding-bottom: 7rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.hero-simple h1 { margin-bottom: 1rem; }
.hero-simple p { font-size: var(--size-md); color: var(--color-muted); margin-inline: auto; }

/* ══════════════════════════════════════════════════════════
   SECCIONES COMUNES
══════════════════════════════════════════════════════════ */
.section {
  padding-block: clamp(4rem, 8vw, 8rem);
}
.section--surface { background: var(--color-surface); }
.section--dark {
  background: var(--color-dark);
  color: var(--color-white);
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--color-white); }
.section--dark p { color: rgba(255,255,255,.65); }
.section--dark .eyebrow { color: var(--color-accent); }

.section__header {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section__header--center { text-align: center; }
.section__header--center p { margin-inline: auto; }
.section__header .eyebrow { margin-bottom: .75rem; }
.section__header h2 { margin-bottom: 1rem; }
.section__header p { font-size: var(--size-md); color: var(--color-muted); }
.section--dark .section__header p { color: rgba(255,255,255,.6); }

/* ══════════════════════════════════════════════════════════
   CARDS — PROCEDIMIENTOS
══════════════════════════════════════════════════════════ */
.proc-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-white);
  transition: transform .3s var(--ease-smooth), box-shadow .3s var(--ease-smooth);
}
.proc-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(13,12,11,.12);
}
.proc-card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.proc-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease-smooth);
}
.proc-card:hover .proc-card__image img { transform: scale(1.04); }
.proc-card__body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.proc-card__body .eyebrow { margin-bottom: .5rem; }
.proc-card__body h3 {
  font-size: var(--size-xl);
  margin-bottom: .75rem;
}
.proc-card__body p {
  color: var(--color-muted);
  font-size: var(--size-sm);
  margin-bottom: 1.5rem;
  flex: 1;
}
.proc-card__link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem 1.2rem;
  font-size: var(--size-sm);
  font-weight: 500;
  letter-spacing: .01em;
  white-space: nowrap;
  color: var(--color-white);
  background: var(--color-dark);
  border-radius: var(--radius-full);
  transition: background .25s, transform .25s, box-shadow .25s;
  align-self: flex-start;
}
.proc-card__link::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  flex-shrink: 0;
  transition: transform .22s var(--ease-smooth);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center/contain no-repeat;
}
.proc-card__link:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184,149,106,.35);
}
.proc-card__link:hover::after { transform: translateX(3px); }
.proc-card:hover .proc-card__link { gap: .7rem; }
.proc-card__link svg {
  display: none; /* ocultamos SVGs hardcodeados en el HTML si existen */
}

/* ══════════════════════════════════════════════════════════
   MÉDICOS — CARDS
══════════════════════════════════════════════════════════ */
.doctor-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-border);
}
.doctor-card:last-child { border-bottom: none; }
.doctor-card--reverse { }
.doctor-card__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
}
.doctor-card__image img { width: 100%; height: 100%; object-fit: cover; }
.doctor-card__text .eyebrow { margin-bottom: 1rem; }
.doctor-card__text h3 { margin-bottom: .25rem; }
.doctor-card__specialty {
  font-size: var(--size-sm);
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}
.doctor-card__text p {
  font-size: var(--size-sm);
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}
.credentials { display: flex; flex-direction: column; gap: .5rem; }
.credentials li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: var(--size-sm);
  color: var(--color-muted);
}
.credentials li::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  margin-top: .55rem;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   ESTADÍSTICAS
══════════════════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  background: var(--color-white);
  padding: 2.5rem 2rem;
  text-align: center;
}
.stat-item__number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--color-dark);
  line-height: 1;
  margin-bottom: .25rem;
}
.stat-item__number span { color: var(--color-accent); }
.stat-item__label {
  font-size: var(--size-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ══════════════════════════════════════════════════════════
   TESTIMONIOS
══════════════════════════════════════════════════════════ */
.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}
.testimonial-card__quote {
  font-family: var(--font-display);
  font-size: var(--size-lg);
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
}
.testimonial-card__stars {
  display: flex;
  gap: .2rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
}
.testimonial-card__author {
  font-size: var(--size-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ══════════════════════════════════════════════════════════
   FAQ — ACORDEÓN
══════════════════════════════════════════════════════════ */
.faq { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-white);
  transition: border-color .2s, box-shadow .2s;
}
.faq-item:has(.faq-btn[aria-expanded="true"]) {
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(184,149,106,.1);
}
.faq-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--size-base);
  font-weight: 500;
  color: var(--color-dark);
  cursor: pointer;
  background: none;
  border: none;
  gap: 1.25rem;
  transition: color .2s, background .2s;
}
.faq-btn:hover { background: var(--color-surface); }
.faq-btn[aria-expanded="true"] { color: var(--color-accent); background: var(--color-surface); }
.faq-btn__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s, transform .25s;
}
.faq-btn[aria-expanded="true"] .faq-btn__icon {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: rotate(45deg);
}
.faq-btn__icon svg { width: 14px; height: 14px; stroke: var(--color-dark); stroke-width: 2; fill: none; transition: stroke .2s; }
.faq-btn[aria-expanded="true"] .faq-btn__icon svg { stroke: var(--color-white); }
.faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s var(--ease-smooth), border-color .35s;
  border-top: 0px solid transparent;
}
.faq-body.open {
  max-height: 600px; /* suficiente para cualquier respuesta */
  border-top: 1px solid var(--color-border);
}
.faq-body__inner {
  padding: 1rem 1.5rem 1.25rem;
  color: var(--color-muted);
  font-size: var(--size-base);
  line-height: 1.75;
}

/* ══════════════════════════════════════════════════════════
   CTA BANNER
══════════════════════════════════════════════════════════ */
.cta-banner {
  background: var(--color-dark);
  padding: 5rem var(--gutter);
  text-align: center;
  border-radius: var(--radius-lg);
}
.cta-banner h2 { color: var(--color-white); margin-bottom: 1rem; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.cta-banner p { color: rgba(255,255,255,.6); margin-inline: auto; margin-bottom: 2.5rem; }
.cta-banner .btn--primary {
  background: var(--color-accent);
  padding: 1rem 2.5rem;
  font-size: var(--size-base);
}
.cta-banner .btn--primary:hover { background: var(--color-white); color: var(--color-dark); }
.cta-banner .btn--outline {
  border-color: rgba(255,255,255,.55);
  color: var(--color-white);
}
.cta-banner .btn--outline:hover {
  background: var(--color-white);
  color: var(--color-dark) !important;
  border-color: var(--color-white);
}
.cta-banner [style*="display:flex"] {
  justify-content: center;
}

/* ══════════════════════════════════════════════════════════
   FORMULARIO DE CONTACTO
══════════════════════════════════════════════════════════ */
.contact-form {
  max-width: 640px;
  margin-inline: auto;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: .5rem; }
.form-field--full { grid-column: 1 / -1; }
.form-label {
  font-size: var(--size-xs);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.form-input, .form-select, .form-textarea {
  padding: .875rem 1.125rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--size-base);
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color .2s;
  outline: none;
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-accent);
}
.form-textarea { min-height: 130px; resize: vertical; }
.form-submit { margin-top: .75rem; }
.form-submit .btn { width: 100%; justify-content: center; padding: 1rem; }

/* ══════════════════════════════════════════════════════════
   TRATAMIENTOS RELACIONADOS
══════════════════════════════════════════════════════════ */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.related-card {
  display: block;
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease-smooth);
}
.related-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 12px 36px rgba(184,149,106,.18);
  transform: translateY(-5px);
}
.related-card .eyebrow { margin-bottom: .5rem; }
.related-card h4 { font-size: var(--size-xl); margin-bottom: .5rem; }
.related-card p { font-size: var(--size-sm); color: var(--color-muted); }

/* ══════════════════════════════════════════════════════════
   INFO BOXES (Beneficios, Indicaciones)
══════════════════════════════════════════════════════════ */
.info-list { display: flex; flex-direction: column; gap: 1rem; }
.info-list__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: transform .3s var(--ease-smooth);
}
.info-list__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .15rem;
  transition: background .3s var(--ease-smooth);
}
.info-list__icon svg { width: 16px; height: 16px; color: var(--color-accent); }
.info-list__text h4 { font-size: var(--size-base); font-weight: 500; margin-bottom: .2rem; }
.info-list__text p { font-size: var(--size-sm); color: var(--color-muted); max-width: none; }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,.7);
  padding-top: 5rem;
  padding-bottom: 2.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 2rem;
}
.footer__brand p {
  font-size: var(--size-sm);
  margin-top: 1.25rem;
  line-height: 1.7;
  max-width: 36ch;
}
.footer__col h5 {
  font-family: var(--font-body);
  font-size: var(--size-xs);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 1.25rem;
}
.footer__col a {
  display: block;
  font-size: var(--size-sm);
  padding: .3rem 0;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer__col a:hover { color: var(--color-accent); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--size-xs);
  color: rgba(255,255,255,.3);
}
.footer__bottom a { color: rgba(255,255,255,.4); transition: color .2s; }
.footer__bottom a:hover { color: var(--color-accent); }
.footer__logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-white);
}
.footer__logo-text span { display: block; font-size: .8rem; color: rgba(255,255,255,.4); font-weight: 300; }

/* ══════════════════════════════════════════════════════════
   ANIMACIONES
══════════════════════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}
/* Elementos en el hero siempre visibles — no dependen de scroll */
.hero-inner [data-reveal],
.hero-simple [data-reveal],
.hero-bg [data-reveal],
.hero-home [data-reveal] {
  opacity: 1;
  transform: none;
  animation: heroFadeIn .6s var(--ease-out) both;
}
.hero-inner [data-reveal-delay="1"],
.hero-simple [data-reveal-delay="1"],
.hero-bg [data-reveal-delay="1"],
.hero-home [data-reveal-delay="1"] { animation-delay: .1s; }
.hero-inner [data-reveal-delay="2"],
.hero-simple [data-reveal-delay="2"],
.hero-bg [data-reveal-delay="2"],
.hero-home [data-reveal-delay="2"] { animation-delay: .2s; }
.hero-inner [data-reveal-delay="3"],
.hero-simple [data-reveal-delay="3"],
.hero-bg [data-reveal-delay="3"],
.hero-home [data-reveal-delay="3"] { animation-delay: .3s; }
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
[data-reveal-delay="4"] { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */

/* Hero simple con imagen de fondo */
.hero-simple[style*="background-image"] {
  position: relative;
  color: var(--color-white);
}
.hero-simple[style*="background-image"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13,12,11,.55);
  z-index: 0;
}
.hero-simple[style*="background-image"] .container {
  position: relative;
  z-index: 1;
}
.hero-simple[style*="background-image"] h1,
.hero-simple[style*="background-image"] h2 {
  color: var(--color-white);
}
.hero-simple[style*="background-image"] .eyebrow {
  color: var(--color-accent);
}
.hero-simple[style*="background-image"] p {
  color: rgba(255,255,255,.8);
}
.hero-simple[style*="background-image"] .rule {
  background: var(--color-accent);
}

@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-home { min-height: 85svh; }
  .hero-home__content { max-width: 100%; }
  .hero-inner .container {
    grid-template-columns: 1fr;
    gap: 2rem 0;
  }
  .hero-inner__image {
    order: -1;
    max-height: 280px;
  }
  .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .doctor-card { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-height: 72px; }
  .nav__menu, .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  /* Nav abierto: ocupa toda la pantalla */
  .nav.menu-open {
    height: 100svh;
    background: var(--color-dark);
    box-shadow: none;
    backdrop-filter: none;
    overflow-y: auto;
    /* volver a flex-column pero el inner maneja el layout interno */
    align-items: stretch;
    flex-direction: column;
  }

  /* nav__inner en grid: fila 1 = logo + toggle, fila 2 = menú */
  .nav.menu-open .nav__inner {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: var(--nav-height) 1fr;
    align-items: center;
    flex: 1;
    padding-inline: var(--gutter);
    padding-bottom: 2rem;
  }

  /* Logo: columna 1, fila 1 */
  .nav.menu-open .nav__logo { grid-column: 1; grid-row: 1; }

  /* Toggle (X): columna 2, fila 1 */
  .nav.menu-open .nav__toggle {
    grid-column: 2;
    grid-row: 1;
    margin-left: 0;
    justify-self: end;
  }

  /* Menú: columna 1-2, fila 2 — ocupa todo el ancho */
  .nav.menu-open .nav__menu {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 0;
    /* resetear estilos heredados */
    position: static;
    background: transparent;
  }

  /* CTA oculto */
  .nav.menu-open .nav__cta { display: none; }

  .nav.menu-open .nav__logo-text { color: var(--color-white); }
  .nav.menu-open .nav__logo-text span { color: rgba(255,255,255,.5); }
  .nav.menu-open .nav__toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav.menu-open .nav__toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav.menu-open .nav__toggle span { background: var(--color-white); }

  /* Menú: ocupa el espacio restante, centrado verticalmente */
  .nav.menu-open .nav__menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    padding: 1.5rem 0 3rem;
    gap: 0;
    position: static; /* ya no necesita fixed */
  }

  .nav.menu-open .nav__link {
    padding: .9rem 2rem;
    color: rgba(255,255,255,.8);
    font-size: var(--size-lg);
    font-family: var(--font-display);
    font-weight: 400;
    text-align: center;
    border-bottom: none;
    justify-content: center;
  }
  .nav.menu-open .nav__link:hover,
  .nav.menu-open .nav__link--active { color: var(--color-accent); }

  /* Items con submenú: chevron centrado */
  .nav.menu-open .nav__item:has(.nav__dropdown) > .nav__link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
  }
  .nav.menu-open .nav__item:has(.nav__dropdown) > .nav__link::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: rgba(255,255,255,.4);
    flex-shrink: 0;
    transition: transform .25s, background-color .2s;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  }
  .nav.menu-open .nav__item--open > .nav__link::after { transform: rotate(180deg); background-color: var(--color-accent); }
  .nav.menu-open .nav__item--open > .nav__link { color: var(--color-accent); }

  /* Dropdown accordion mobile */
  .nav.menu-open .nav__dropdown {
    position: static;
    opacity: 1;
    pointer-events: all;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(255,255,255,.04);
    margin: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s var(--ease-smooth);
    padding: 0;
  }
  .nav.menu-open .nav__item--open .nav__dropdown { max-height: 500px; }
  .nav.menu-open .nav__dropdown__inner { padding-bottom: .5rem; }
  .nav.menu-open .nav__dropdown a {
    display: block;
    padding: .6rem 2rem;
    color: rgba(255,255,255,.5);
    font-size: var(--size-sm);
    text-align: center;
  }
  .nav.menu-open .nav__dropdown a:hover { color: var(--color-accent); }
  .nav.menu-open .nav__dropdown-label {
    padding: .5rem 2rem .25rem;
    color: var(--color-accent);
    font-size: var(--size-xs);
    text-align: center;
  }
  .nav.menu-open .nav__cta { display: none; }

  .hero-home__content {
    padding: calc(var(--nav-height) + 3rem) var(--gutter) 3rem;
  }

  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: .75rem; text-align: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .grid-3, .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .cta-banner { padding: 3rem 1.5rem; }
  .hero-home__actions { flex-direction: column; }
  .hero-home__actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 600px) {
  /* Galería consultorio en quienes-somos */
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }
  [style*="grid-column:span 2"] {
    grid-column: span 2 !important;
  }
}

/* ══════════════════════════════════════════════════════════
   CARRUSEL CONSULTORIO
══════════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════
   MARQUEE — carrusel automático de fotos horizontales
══════════════════════════════════════════════════════════ */
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-section {
  padding-bottom: 0;
}
.marquee {
  overflow: hidden;
  margin-top: 3rem;
  /* Máscaras de fade en los bordes */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}
.marquee__track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
  will-change: transform;
}
/* Pausa al hacer hover */
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
/* Respetar prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}
.marquee__item {
  flex-shrink: 0;
  width: 520px;
  height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 28px rgba(13,12,11,.12);
  cursor: pointer;
  transition: box-shadow .35s var(--ease-smooth);
}
.marquee__item:hover {
  box-shadow: 0 14px 44px rgba(13,12,11,.22);
}
.marquee__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .6s var(--ease-smooth);
}
.marquee__item:hover img {
  transform: scale(1.04);
}
/* Overlay dorado tenue al hover */
.marquee__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(184,149,106,0);
  transition: background .35s;
  pointer-events: none;
  border-radius: var(--radius-lg);
}
.marquee__item:hover::after {
  background: rgba(184,149,106,.10);
}

@media (max-width: 768px) {
  .marquee__item { width: 340px; height: 230px; }
  .marquee__track { animation-duration: 22s; }
}

/* Lightbox */
.consultorio-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(13,12,11,.92);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  backdrop-filter: blur(8px);
}
.consultorio-lightbox.active {
  opacity: 1;
  pointer-events: all;
}
.consultorio-lightbox__img {
  max-height: 88svh;
  max-width: 90vw;
  border-radius: var(--radius-lg);
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  transition: transform .3s var(--ease-smooth);
}
.consultorio-lightbox__close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: white;
  cursor: pointer;
  transition: background .2s;
  border: 1px solid rgba(255,255,255,.2);
}
.consultorio-lightbox__close:hover { background: rgba(255,255,255,.2); }
.consultorio-lightbox__close svg { width: 20px; height: 20px; }
.consultorio-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: white;
  cursor: pointer;
  transition: background .2s;
  border: 1px solid rgba(255,255,255,.2);
}
.consultorio-lightbox__nav:hover { background: rgba(255,255,255,.25); }
.consultorio-lightbox__nav svg { width: 24px; height: 24px; }
.consultorio-lightbox__nav--prev { left: 1.5rem; }
.consultorio-lightbox__nav--next { right: 1.5rem; }

@media (max-width: 600px) {
}

/* ══════════════════════════════════════════════════════════
   HERO CON IMAGEN DE FONDO — hero-bg
   Reemplaza hero-simple en páginas internas con foto real
══════════════════════════════════════════════════════════ */
.hero-bg {
  position: relative;
  padding-top: calc(var(--nav-height) + 7rem);
  padding-bottom: 7rem;
  text-align: center;
  overflow: hidden;
  border-bottom: none;
  color: var(--color-white);
}
.hero-bg__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
  will-change: transform;
}
.hero-bg__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(13,12,11,.60) 0%,
    rgba(13,12,11,.45) 60%,
    rgba(13,12,11,.65) 100%
  );
}
.hero-bg .container {
  position: relative;
  z-index: 2;
}
.hero-bg h1,
.hero-bg h2 { color: var(--color-white); }
.hero-bg .eyebrow { color: var(--color-accent); }
.hero-bg p { color: rgba(255,255,255,.82); margin-inline: auto; }
.hero-bg .rule { background: rgba(255,255,255,.3); margin-inline: auto; }

/* ── Efecto parallax suave en scroll ────────────────────── */
.hero-bg__photo[data-parallax] {
  transform: translateY(0px);
  transition: transform 0s linear;
}

/* ══════════════════════════════════════════════════════════
   QUOTE BAND — banda con foto de fondo y cita
   Uso: secciones de corte entre contenido
══════════════════════════════════════════════════════════ */
.quote-band {
  position: relative;
  padding-block: clamp(5rem, 10vw, 9rem);
  overflow: hidden;
  text-align: center;
}
.quote-band__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  will-change: transform;
}
.quote-band__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(13,12,11,.62);
}
.quote-band .container {
  position: relative;
  z-index: 2;
}
.quote-band__text {
  max-width: 700px;
  margin-inline: auto;
}
.quote-band__text .eyebrow {
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}
.quote-band__text h2 {
  color: var(--color-white);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.quote-band__text p {
  color: rgba(255,255,255,.78);
  font-size: var(--size-md);
  margin-inline: auto;
  margin-bottom: 2rem;
}
.quote-band__text .btn--primary {
  background: var(--color-accent);
  box-shadow: 0 4px 20px rgba(184,149,106,.35);
}
.quote-band__text .btn--primary:hover {
  background: var(--color-white);
  color: var(--color-dark);
}

/* ══════════════════════════════════════════════════════════
   EFECTOS — HOVERS Y TRANSICIONES ELEGANTES
══════════════════════════════════════════════════════════ */

/* Doctor cards — lift sutil */
.doctor-card {
  transition: transform .4s var(--ease-smooth), box-shadow .4s var(--ease-smooth);
  border-radius: var(--radius-lg);
  /* Espacio lateral para que la sombra no quede recortada por el container */
  margin-inline: -2rem;
  padding-inline: 2rem;
}
.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 64px rgba(13,12,11,.13);
}
.doctor-card__image {
  overflow: hidden;
}
.doctor-card__image img {
  transition: transform .6s var(--ease-smooth);
}
.doctor-card:hover .doctor-card__image img {
  transform: scale(1.03);
}

/* Info list items — línea de acento al hover */
.info-list__item {
  transition: transform .3s var(--ease-smooth);
}
.info-list__item:hover {
  transform: translateX(6px);
}
.info-list__icon {
  transition: background .3s var(--ease-smooth), color .3s var(--ease-smooth);
}
.info-list__item:hover .info-list__icon {
  background: var(--color-accent);
  color: var(--color-white);
}
.info-list__icon svg {
  transition: stroke .3s var(--ease-smooth);
}
.info-list__item:hover .info-list__icon svg {
  stroke: var(--color-white);
}

/* Testimonial cards — glow de acento */
.testimonial-card {
  transition: transform .35s var(--ease-smooth), box-shadow .35s var(--ease-smooth);
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(184,149,106,.15);
}

/* Footer links — deslizamiento lateral */
.footer__col a {
  position: relative;
  padding-left: 0;
  transition: color .2s, padding-left .2s var(--ease-smooth);
}
.footer__col a:hover {
  padding-left: 6px;
}

/* Proc-card link arrow bounce */
.proc-card__link svg {
  transition: transform .25s var(--ease-smooth);
}
.proc-card__link:hover svg {
  transform: translateX(5px);
}

/* Nav CTA pulse suave */
.nav__cta {
  position: relative;
  overflow: hidden;
}
.nav__cta::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.12);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity .35s, transform .35s;
}
.nav__cta:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* Formulario — foco elegante */
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(184,149,106,.18);
  transition: border-color .25s, box-shadow .25s;
}

/* ── Smooth image reveal al cargar ──────────────────────── */
img {
  opacity: 1;
  transition: opacity .4s var(--ease-out);
}
img[loading="lazy"] {
  opacity: 0;
}
img.loaded {
  opacity: 1;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — hero-bg
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero-bg {
    padding-top: calc(var(--nav-height) + 5rem);
    padding-bottom: 5rem;
  }
  .hero-bg__photo {
    object-position: center center;
  }
  .quote-band {
    padding-block: 4rem;
  }
}

/* ══════════════════════════════════════════════════════════
   HERO BG-DOCTORES — ajuste de encuadre
══════════════════════════════════════════════════════════ */
.hero-home__bg-photo {
  object-position: center 25%;
}

/* ══════════════════════════════════════════════════════════
   SECCIÓN EQUIPO — fondo oscuro elegante
══════════════════════════════════════════════════════════ */
.section--team {
  background: var(--color-dark);
  position: relative;
  overflow: hidden;
}
/* Textura tenue: patrón de puntos muy sutiles */
.section--team::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(184,149,106,.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.section--team .container { position: relative; z-index: 1; }
/* Ajustar colores de texto en fondo oscuro */
.section--team .section__header p,
.section--team .eyebrow { color: var(--color-accent); }
.section--team h2,
.section--team h3 { color: var(--color-white); }
.section--team p { color: rgba(255,255,255,.72); }
.section--team .rule { background: rgba(184,149,106,.3); }
.section--team .credentials li { color: rgba(255,255,255,.6); }
.section--team .doctor-card__specialty { color: rgba(255,255,255,.55); }
.section--team .btn--ghost {
  color: var(--color-accent);
  border-color: rgba(184,149,106,.4);
}
.section--team .btn--ghost:hover {
  background: rgba(184,149,106,.12);
}
/* Doctor card en fondo oscuro */
.section--team .doctor-card {
  background: rgba(255,255,255,.04);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.08);
  padding: 2.5rem;
  margin-inline: 0;
}
.section--team .doctor-card:hover {
  background: rgba(255,255,255,.07);
  box-shadow: 0 20px 64px rgba(0,0,0,.3);
}
.section--team .doctor-card__image img {
  border-radius: calc(var(--radius-lg) - 2px);
}

/* ══════════════════════════════════════════════════════════
   SECCIÓN DIFERENCIALES — columna con foto
══════════════════════════════════════════════════════════ */
.grid-2--photo-text {
  align-items: stretch;
  gap: 0;
}
.dif-photo-col {
  position: relative;
  min-height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-right: 3rem;
}
.dif-photo-col img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.dif-photo-col__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13,12,11,.82) 0%,
    rgba(13,12,11,.45) 50%,
    rgba(13,12,11,.20) 100%
  );
}
.dif-photo-col__text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem;
  z-index: 2;
}
.dif-photo-col__text .eyebrow { color: var(--color-accent); }
.dif-photo-col__text h2 { color: var(--color-white); margin-bottom: .75rem; }
.dif-photo-col__text h2 em { font-style: normal; }
.dif-photo-col__text p { color: rgba(255,255,255,.75); font-size: var(--size-sm); max-width: none; }

/* ══════════════════════════════════════════════════════════
   SECCIÓN TESTIMONIOS — fondo con foto oscura
══════════════════════════════════════════════════════════ */
.section--testimonios {
  position: relative;
  overflow: hidden;
}
.section--testimonios::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/images/backgrounds/bg-05.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(.18) saturate(.4);
  z-index: 0;
}
.section--testimonios .container { position: relative; z-index: 1; }
.section--testimonios .section__header .eyebrow { color: var(--color-accent); }
.section--testimonios h2,
.section--testimonios .testimonial-card__stars { color: var(--color-white); }
.section--testimonios .rule--center { background: rgba(184,149,106,.4); }
.section--testimonios .testimonial-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.section--testimonios .testimonial-card:hover {
  background: rgba(255,255,255,.12);
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
  border-color: rgba(184,149,106,.3);
}
.section--testimonios .testimonial-card__quote { color: rgba(255,255,255,.8); }
.section--testimonios .testimonial-card__author { color: var(--color-accent); }

/* ══════════════════════════════════════════════════════════
   SECCIÓN CONTACTO — columna foto izquierda
══════════════════════════════════════════════════════════ */
.contact-photo-col {
  position: relative;
  min-height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.contact-photo-col img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.contact-photo-col__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13,12,11,.88) 0%,
    rgba(13,12,11,.55) 50%,
    rgba(13,12,11,.25) 100%
  );
}
.contact-photo-col__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem;
  z-index: 2;
}
.contact-photo-col__info .eyebrow { color: var(--color-accent); }
.contact-photo-col__info h2 { color: var(--color-white); margin-bottom: 1.5rem; font-size: clamp(1.5rem, 2.5vw, 2.25rem); }
.contact-photo-col__info h2 em { font-style: normal; color: var(--color-accent); }
.contact-photo-col__datos { display: flex; flex-direction: column; gap: .85rem; }
.contact-dato {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: var(--size-sm);
  color: rgba(255,255,255,.75);
}
.contact-dato svg { flex-shrink: 0; stroke: var(--color-accent); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .dif-photo-col { margin-right: 0; margin-bottom: 2rem; min-height: 380px; }
  .contact-photo-col { min-height: 380px; }
  .section--team .doctor-card { padding: 1.5rem; }
}
