/* =========================================================
   San Martín Consultorio Odontológico — estilos globales
   Tipografía Inter · contenedor 80rem · paleta de marca
   ========================================================= */
:root {
  --blue: #1B34B8;
  --blue-700: #142A96;
  --pink: #DD1A5C;
  --pink-700: #B8124A;
  --navy: #0B2A5B;
  --ink: #0B2A5B;
  --text: #33445F;
  --muted: #5A6A84;
  --bg-soft: #F4F8FB;
  --ivory: #F9F7F2;
  --line: #E3E9F1;
  --white: #FFFFFF;
  --gold: #F2C14E;
  --wa: #25D366;
  --wa-hover: #1DA851;
  --radius: 18px;
  --shadow-sm: 0 2px 10px rgba(11, 42, 91, .06);
  --shadow-md: 0 14px 40px rgba(11, 42, 91, .10);
  --container: 80rem;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[id] { scroll-margin-top: calc(var(--header-h) - 4px); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200; padding: 10px 16px;
  background: var(--navy); color: #fff; border-radius: 10px; transform: translateY(-160%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; color: #fff; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.2; text-align: center;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-700); color: #fff; box-shadow: 0 8px 20px rgba(27, 52, 184, .25); }
.btn-pink { background: var(--pink); color: #fff; }
.btn-pink:hover { background: var(--pink-700); color: #fff; box-shadow: 0 8px 20px rgba(221, 26, 92, .3); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-light { background: #fff; color: var(--pink-700); }
.btn-light:hover { background: #fff; color: var(--navy); }
.btn-block { width: 100%; }

.eyebrow {
  margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--pink-700);
}
.eyebrow--light { color: #FF9BBD; }

/* =========================================================
   NAVEGACIÓN — transparente sobre el hero, blanca al hacer scroll
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: transparent;
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.nav-wrap {
  height: var(--header-h); display: flex; align-items: center; gap: 28px;
  padding: 0 clamp(16px, 3vw, 48px);
  transition: height .3s ease;
}
.brand { flex: none; display: block; }
.brand img { height: 56px; width: auto; transition: height .3s ease; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.main-nav a {
  position: relative; color: var(--ink); font-weight: 600; font-size: 15.5px;
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--pink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav a:hover { color: var(--blue); }
.main-nav a:hover::after { transform: scaleX(1); }
.ico-ext { width: 14px; height: 14px; }

.btn-reserva {
  flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px; border-radius: 999px; background: var(--blue); color: #fff;
  font-size: 16px; font-weight: 500; box-shadow: 0 8px 24px rgba(27, 52, 184, .28);
  transition: background-color .25s, transform .25s, box-shadow .25s;
}
.btn-reserva svg { width: 18px; height: 18px; }
.btn-reserva strong { font-weight: 700; letter-spacing: .01em; }
.btn-reserva:hover { background: var(--blue-700); color: #fff; transform: translateY(-1px); }
.btn-reserva__short { display: none; }
.main-nav + .btn-reserva { margin-left: 0; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, .9); box-shadow: var(--shadow-sm);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Estado inicial (escritorio): solo logo + botón */
@media (min-width: 900px) {
  .site-header:not(.scrolled):not(.is-solid) .main-nav {
    opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
  }
  .main-nav { transition: opacity .3s ease, transform .3s ease, visibility .3s; }
}
.site-header:not(.scrolled):not(.is-solid) .brand img { filter: drop-shadow(0 0 6px rgba(255,255,255,.9)) drop-shadow(0 0 2px rgba(255,255,255,.9)); }
.site-header.scrolled, .site-header.is-solid {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 0 var(--line), 0 8px 28px rgba(11, 42, 91, .08);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.site-header.scrolled .nav-wrap { height: 72px; }
.site-header.scrolled .brand img { height: 48px; }

/* =========================================================
   HERO DIVIDIDO
   ========================================================= */
.hero { position: relative; background: #EEF2F6; }
.c-blue { color: var(--blue); }
.c-pink { color: var(--pink); }

@media (min-width: 900px) {
  .hero { height: clamp(620px, 100svh, 1100px); overflow: hidden; }
  .hero-stage {
    --c1: 48%; --c2: 60%;   /* corte superior / inferior de la diagonal */
    --rl: 38%;              /* inicio del panel derecho */
    position: absolute; inset: 0;
  }
  .hero-stage.is-left  { --c1: 63%; --c2: 75%; --rl: 50%; }
  .hero-stage.is-right { --c1: 35%; --c2: 47%; }

  .hero-panel { position: absolute; top: 0; bottom: 0; outline: none; }
  .hero-media { position: absolute; inset: 0; overflow: hidden; }
  .hero-img { transition: transform .7s var(--ease), filter .7s var(--ease); }

  /* Panel derecho: empieza en --rl para que la doctora no quede oculta */
  .hero-panel--right { left: var(--rl); right: 0; transition: left .7s var(--ease); }
  .hero-panel--right .hero-img {
    width: 100%; height: 100%; object-fit: cover; object-position: 0% 30%;
    transform-origin: 40% 40%;
  }
  .is-left .hero-panel--right .hero-img { filter: brightness(.82) saturate(.9); }
  .is-right .hero-panel--right .hero-img { transform: scale(1.04); }

  /* Panel izquierdo: recorte diagonal */
  .hero-panel--left {
    left: 0; right: 0;
    clip-path: polygon(0 0, var(--c1) 0, var(--c2) 100%, 0 100%);
    transition: clip-path .7s var(--ease);
  }
  .hero-panel--left .hero-img {
    position: absolute; top: 0; left: 0; height: 100%; width: auto; max-width: none;
    min-width: 88vw; object-fit: cover; object-position: 20% 30%;
    transform: translateX(-6%); transform-origin: 26% 32%;
  }
  .is-left .hero-panel--left .hero-img { transform: translateX(-6%) scale(1.04); }
  .is-right .hero-panel--left .hero-img { filter: brightness(.92); }

  /* Franja difuminada que sigue al corte */
  .hero-seam { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
  .seam {
    position: absolute; inset: 0;
    transition: clip-path .7s var(--ease);
  }
  .seam--soft {
    --w: 38px;
    background: linear-gradient(90deg, rgba(255,255,255,.10), rgba(255,255,255,.22), rgba(255,255,255,.10));
    -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
  }
  .seam--mid {
    --w: 13px;
    background: rgba(255, 255, 255, .26);
    -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  }
  .seam--line { --w: 1px; background: rgba(221, 26, 92, .55); }
  .seam {
    clip-path: polygon(calc(var(--c1) - var(--w)) 0, calc(var(--c1) + var(--w)) 0,
                       calc(var(--c2) + var(--w)) 100%, calc(var(--c2) - var(--w)) 100%);
  }

  /* Titular: capa fija sobre la foto izquierda, junto al rostro */
  .hero-title-wrap {
    position: absolute; z-index: 3; left: 35%; top: 23%;
    pointer-events: none;
  }
  .hero-title {
    font-size: clamp(2.6rem, 3.25vw, 4.4rem);
    line-height: 1.07; font-weight: 800; letter-spacing: -.025em; margin: 0;
    text-shadow: 0 2px 22px rgba(255, 255, 255, .75);
  }
  .hero-title > span { display: block; }
  .hero-title { animation: heroIn .9s var(--ease) both .15s; }

  /* Placa de la doctora */
  .doc-plate {
    position: absolute; z-index: 3;
    left: clamp(16px, 2.4vw, 40px); bottom: clamp(16px, 3vh, 40px);
  }
  /* Cuadro de horario */
  .hero-hours {
    position: absolute; z-index: 3;
    right: clamp(16px, 3vw, 56px); bottom: clamp(92px, 11vh, 140px);
    width: clamp(392px, 28vw, 440px);
  }
}

@media (min-width: 900px) and (max-width: 1500px) {
  .hero-hours { padding: 18px 22px; }
  .hero-hours__title { font-size: 19px; margin-bottom: 8px; }
  .hero-hours__row { padding: 9px 0; }
  .hero-hours__loc { padding-top: 10px; }
}
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.doc-plate {
  padding: 14px 20px 14px 18px; border-radius: 16px;
  background: rgba(11, 42, 91, .58);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .28); border-left: 3px solid var(--pink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  color: #fff; animation: heroIn .8s var(--ease) both .45s;
}
.doc-plate p { margin: 0; color: #fff; }
.doc-plate__name { font-size: clamp(18px, 1.4vw, 22px); font-weight: 600; letter-spacing: -.01em; }
.doc-plate__reg { font-size: 13px; letter-spacing: .04em; opacity: .88; }

.hero-hours {
  padding: 24px 26px; border-radius: 18px; color: #fff;
  background: rgba(9, 20, 46, .64);
  -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
  animation: heroIn .8s var(--ease) both .55s;
}
.hero-hours__title {
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
  color: var(--gold); font-size: 21px; font-weight: 700; letter-spacing: -.01em;
}
.hero-hours__title svg { width: 22px; height: 22px; }
.hero-hours__list { margin: 0; }
.hero-hours__row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero-hours__row dt { white-space: nowrap; font-size: 14.5px; color: rgba(255, 255, 255, .82); }
.hero-hours__row dd { margin: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; font-weight: 700; }
.hero-hours__row dd.gold { color: var(--gold); font-size: 16px; }
.pill-time {
  font-size: 13.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); white-space: nowrap;
}
.hero-hours__loc {
  display: flex; gap: 10px; align-items: flex-start; padding-top: 14px; margin-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, .14); color: #fff; font-size: 14.5px; line-height: 1.45;
}
.hero-hours__loc svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--gold); }
.hero-hours__loc span { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); text-underline-offset: 3px; }
.hero-hours__loc:hover { color: #fff; }
.hero-hours__loc:hover span { text-decoration-color: var(--gold); }

/* =========================================================
   SECCIONES
   ========================================================= */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.sec-head {
  display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 24px 64px;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.sec-head h2 { font-size: clamp(30px, 2.6vw, 36px); line-height: 1.25; margin: 0; }
.sec-lead { margin: 0; font-size: 18px; color: var(--muted); max-width: 36rem; }
.sec-lead strong { color: var(--ink); }

/* ---------- Tratamientos ---------- */
.sec-trat { background: var(--ivory); }
.carousel { position: relative; }
.carousel-viewport {
  overflow: hidden; touch-action: pan-y; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.carousel-viewport.is-dragging { cursor: grabbing; }
.carousel-viewport.is-dragging a { pointer-events: none; }
.carousel-track { display: flex; gap: 24px; width: max-content; padding: 14px 0 26px; will-change: transform; }
.carousel-arrow {
  position: absolute; top: calc(50% - 26px); z-index: 3; width: 52px; height: 52px;
  display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--blue); box-shadow: var(--shadow-md);
  transition: background-color .25s, color .25s, transform .25s;
}
.carousel-arrow svg { width: 22px; height: 22px; }
.carousel-arrow:hover { background: var(--blue); color: #fff; transform: scale(1.06); }
.carousel-arrow--prev { left: clamp(10px, 2.5vw, 40px); }
.carousel-arrow--next { right: clamp(10px, 2.5vw, 40px); }

.t-card {
  position: relative; flex: none; width: 300px; display: flex; flex-direction: column;
  padding: 22px; border-radius: 20px; background: var(--tc-bg);
  border: 1px solid rgba(11, 42, 91, .06); box-shadow: var(--shadow-sm);
  transition: box-shadow .35s, transform .35s;
  user-select: none;
}
.t-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.t-card--featured { border: 2px solid var(--pink); box-shadow: 0 14px 36px rgba(221, 26, 92, .16); }
.t-badge {
  position: absolute; top: 16px; right: 16px; padding: 5px 11px; border-radius: 999px;
  background: var(--pink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.t-badge--static { position: static; display: inline-block; margin-bottom: 14px; }
.t-head { display: flex; flex-direction: column; gap: 10px; }
.t-icon { width: 46px; height: 46px; }
.t-head h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--tc-accent); white-space: nowrap; }
.t-photo { margin: 14px 0 16px; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: #fff; }
.t-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); pointer-events: none; }
.t-card:hover .t-photo img { transform: scale(1.08); }
.t-price { margin: 0 0 12px; color: var(--ink); line-height: 1; }
.t-price span { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.t-price strong { font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.t-desc {
  flex: 1; margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--tc-tint);
  font-size: 14px; line-height: 1.5; color: #23334E;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(3 * 1.5em + 28px);
}
.t-btn { margin-top: 16px; width: 100%; border-radius: 12px; }

.carousel-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; }
.carousel-toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 600;
}
.carousel-toggle svg { width: 14px; height: 14px; }
.carousel-toggle .ico-play { display: none; }
.carousel-toggle[aria-pressed="true"] .ico-play { display: block; }
.carousel-toggle[aria-pressed="true"] .ico-pause { display: none; }
.carousel-hint { margin: 0; font-size: 13.5px; color: var(--muted); }

.trat-extra { display: grid; grid-template-columns: 1.65fr 1fr; gap: 28px; margin-top: clamp(40px, 5vw, 64px); }
.orto-feature {
  display: grid; grid-template-columns: 1fr 1.15fr; background: #fff; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.orto-feature__media { position: relative; min-height: 280px; }
.orto-feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.orto-feature__body { padding: clamp(26px, 3vw, 40px); }
.orto-feature__body h3 { font-size: clamp(24px, 2vw, 28px); margin-bottom: 12px; }
.orto-feature__body p { color: var(--muted); }
.orto-feature__facts { display: flex; gap: 14px; margin: 6px 0 24px; }
.orto-feature__facts li { flex: 1; padding: 14px 16px; border-radius: 14px; background: var(--bg-soft); }
.orto-feature__facts strong { display: block; font-size: 28px; font-weight: 800; color: var(--blue); line-height: 1.1; }
.orto-feature__facts span { font-size: 13px; color: var(--muted); }

.trat-side { display: flex; flex-direction: column; gap: 16px; }
.side-card { border-radius: 22px; padding: 26px 28px; }
.side-card p { margin: 0; }
.side-card__k { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.side-card__v { font-size: 20px; margin: 4px 0 8px !important; }
.side-card__v strong { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.side-card--value { background: var(--blue); color: #fff; }
.side-card--value .side-card__k { color: #C9D2FF; }
.side-card--value .side-card__t { color: rgba(255, 255, 255, .85); font-size: 15px; }
.side-card--emerg {
  background: var(--pink); color: #fff; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px;
}
.side-card--emerg .side-card__k { color: #FFE0EA; grid-column: 1; }
.side-card--emerg .side-card__v { grid-column: 1; margin: 0 !important; }
.side-card--emerg .btn { grid-column: 2; grid-row: 1 / span 2; }

/* ---------- Modal de precios ---------- */
.modal, .lightbox { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; }
.modal::backdrop, .lightbox::backdrop { background: rgba(8, 20, 46, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal__box {
  width: min(760px, calc(100vw - 32px)); max-height: calc(100svh - 48px); overflow: auto;
  background: #fff; border-radius: 22px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}
.modal[open] .modal__box { animation: heroIn .35s var(--ease); }
.modal__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.modal__head h2 { margin: 0; font-size: 26px; }
.modal__close {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink);
  display: grid; place-items: center; flex: none;
}
.modal__close svg { width: 20px; height: 20px; }
.modal__close:hover { background: var(--bg-soft); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 13.5px; font-weight: 600; color: var(--ink); transition: background-color .2s, color .2s;
}
.filter:hover { border-color: var(--blue); }
.filter.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.table-scroll { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table th { text-align: left; background: var(--bg-soft); color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; padding: 12px 18px; }
.price-table td { padding: 12px 18px; border-top: 1px solid var(--line); }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; font-weight: 700; color: var(--ink); }
.price-table tbody tr { transition: background-color .2s; }
.price-table tbody tr:hover { background: #EEF2FD; }
.modal__note { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }

/* ---------- Encuéntranos ---------- */
.ubic-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: stretch; }
.map-frame { border-radius: 22px; overflow: hidden; min-height: 460px; background: var(--bg-soft); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-frame iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }
.info-card { background: var(--bg-soft); border-radius: 22px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 22px; }
.info-row { display: flex; gap: 16px; }
.info-row p { margin: 0 0 4px; }
.info-row h3 { font-size: 16px; margin: 6px 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.info-ico { flex: none; width: 46px; height: 46px; border-radius: 14px; background: #fff; color: var(--blue); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.info-ico svg { width: 22px; height: 22px; }
.status { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #E9EDF3; color: var(--muted); }
.status.is-open { background: #E2F5E9; color: #0F5E35; }
.status.is-closed { background: #FDE7EE; color: #A10F3F; }
.time-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 8px !important; }
.time-pills span { padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--ink); }
.link-strong { font-size: 20px; font-weight: 700; }
.info-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }

/* Consultas */
.consultas {
  position: relative; margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 4vw, 64px);
  padding: clamp(28px, 5vw, 64px); border-radius: 28px; color: #fff; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, #133A78 0%, var(--navy) 55%, #08214A 100%);
}
.consultas h3 { color: #fff; font-size: clamp(26px, 2.4vw, 34px); }
.consultas__intro p { color: rgba(255, 255, 255, .85); font-size: 16.5px; }
.consultas__list { display: grid; gap: 12px; margin-top: 22px; }
.consultas__list li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255, 255, 255, .9); font-size: 15px; }
.consultas__list svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: #FF9BBD; }
.consultas__list a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.consult-form { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .92); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; color: #fff;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .28);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select option { color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: #fff; background: rgba(255, 255, 255, .12); box-shadow: 0 0 0 3px rgba(221, 26, 92, .55);
}
.field [aria-invalid="true"] { border-color: #FF8FB2; }
.field-error { margin: 0; min-height: 18px; font-size: 12.5px; color: #FFB8CD; }
.field--check { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.field--check input { width: 20px; height: 20px; accent-color: var(--pink); flex: none; padding: 0; }
.field--check label { font-weight: 500; }
.field--check label a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.field--check .field-error { flex-basis: 100%; }
.form-actions { margin-top: 6px; }
.form-actions .btn { min-width: 200px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { grid-column: 1 / -1; margin-top: 14px; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); font-size: 15px; }
.form-status .btn { margin-top: 10px; background: var(--wa); color: #fff; }
.form-status .btn:hover { background: var(--wa-hover); }

/* ---------- Consultorio ---------- */
.sec-consultorio { background: var(--bg-soft); }
.cons-title { font-size: clamp(30px, 2.6vw, 36px); margin-bottom: clamp(28px, 4vw, 48px); }
.cons-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.cons-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 48px; }
.cons-photo { position: relative; padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: #dfe6ee; aspect-ratio: 4 / 4.6; box-shadow: var(--shadow-md); cursor: zoom-in; }
.cons-photo--b { transform: translateY(48px); }
.cons-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.cons-photo:hover img { transform: scale(1.05); }
.cons-quote {
  font-size: clamp(28px, 2.7vw, 40px); line-height: 1.2; font-weight: 700; color: var(--ink); letter-spacing: -.02em;
  padding-left: 22px; border-left: 4px solid var(--pink); margin-bottom: 20px;
}
.cons-text .muted { font-size: 17px; margin-bottom: 28px; }

.lightbox figure { margin: 0; }
.lightbox img { max-width: min(1200px, 92vw); max-height: 82svh; width: auto; border-radius: 16px; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 12px; font-size: 15px; }
.lightbox__close { position: fixed; top: 16px; right: 16px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: clamp(56px, 6vw, 80px) 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand img { height: 54px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); max-width: 26rem; }
.social {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  border: 1px solid var(--line); color: var(--blue); transition: background-color .25s, color .25s;
}
.social svg { width: 20px; height: 20px; }
.social:hover { background: var(--blue); color: #fff; }
.footer-col h2 { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin: 8px 0 18px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--text); }
.footer-col a:hover { color: var(--blue); }
.icon-list li { display: flex; gap: 10px; align-items: flex-start; }
.icon-list svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--pink); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  margin-top: 48px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--muted);
}
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--blue); }

/* =========================================================
   WHATSAPP FLOTANTE (píldora, abajo a la derecha)
   ========================================================= */
.wa-float {
  position: fixed; z-index: 60; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 26px 14px 18px; border-radius: 999px;
  background: var(--wa); color: #fff; font-weight: 700; font-size: 16px; letter-spacing: .005em;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .35), 0 4px 12px rgba(0, 0, 0, .14);
  transition: background-color .3s, transform .3s;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { background: var(--wa-hover); color: #fff; transform: scale(1.05); }

/* =========================================================
   PÁGINAS LEGALES
   ========================================================= */
.legal-main { padding: calc(var(--header-h) + 56px) 0 96px; background: linear-gradient(180deg, var(--bg-soft), #fff 320px); }
.legal-wrap { max-width: 860px; }
.legal-wrap h1 { font-size: clamp(32px, 3.4vw, 44px); margin-bottom: 20px; }
.legal-wrap h2 { font-size: 21px; margin-top: 36px; }
.legal-wrap p, .legal-wrap li { font-size: 16.5px; color: var(--text); }
.legal-wrap ul { list-style: disc; padding-left: 22px; }
.legal-wrap a { text-decoration: underline; text-underline-offset: 3px; }
.legal-updated { color: var(--muted); font-size: 14px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .btn-reserva { padding: 11px 18px; font-size: 15px; }
  .trat-extra { grid-template-columns: 1fr; }
  .trat-side { display: grid; grid-template-columns: 1fr 1fr; }
  .trat-side .btn-block { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  :root { --header-h: 72px; }
  .nav-wrap { gap: 12px; }
  .brand img, .site-header.scrolled .brand img { height: 44px; }
  .site-header.scrolled .nav-wrap { height: var(--header-h); }
  .nav-toggle { display: flex; }
  .btn-reserva { margin-left: auto; padding: 10px 16px; }
  .main-nav + .btn-reserva { margin-left: auto; }
  .main-nav {
    position: absolute; top: 100%; left: 12px; right: 12px; margin: 0;
    background: #fff; border-radius: 18px; box-shadow: var(--shadow-md); padding: 10px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: flex; padding: 14px 16px; border-radius: 12px; font-size: 17px; }
  .main-nav a::after { display: none; }
  .main-nav a:hover { background: var(--bg-soft); }
  .site-header { background: rgba(255, 255, 255, .0); }

  /* Hero apilado */
  .hero { display: flex; flex-direction: column; background: #fff; }
  .hero-title-wrap { padding: calc(var(--header-h) + 22px) var(--gutter) 26px; background: linear-gradient(180deg, #fff, var(--bg-soft)); }
  .hero-title { font-size: clamp(2.3rem, 9vw, 3.4rem); line-height: 1.06; font-weight: 800; letter-spacing: -.025em; margin: 0; }
  .hero-title > span { display: block; }
  .hero-stage { position: relative; display: flex; flex-direction: column; }
  .hero-panel { position: relative; }
  .hero-panel--left { order: 1; height: clamp(400px, 108vw, 620px); overflow: hidden; }
  .hero-panel--left .hero-media { position: absolute; inset: 0; }
  .hero-panel--left .hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 12% 22%; }
  .hero-panel--right { order: 2; margin-top: -40px; z-index: 1; }
  .hero-panel--right .hero-media {
    aspect-ratio: 4 / 3; max-height: 560px; overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 56px); mask-image: linear-gradient(180deg, transparent 0, #000 56px);
  }
  .hero-panel--right .hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 28% 40%; }
  .hero-seam { display: none; }
  .doc-plate { position: absolute; left: 16px; bottom: 56px; z-index: 2; }
  .hero-hours { position: relative; margin: -36px var(--gutter) 0; background: rgba(11, 30, 66, .94); z-index: 2; }

  .sec-head { grid-template-columns: 1fr; }
  .ubic-grid { grid-template-columns: 1fr; }
  .map-frame, .map-frame iframe { min-height: 340px; }
  .consultas { grid-template-columns: 1fr; }
  .cons-grid { grid-template-columns: 1fr; }
  .orto-feature { grid-template-columns: 1fr; }
  .orto-feature__media { min-height: 0; aspect-ratio: 16 / 9; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .carousel-hint { display: none; }
}

@media (max-width: 560px) {
  .btn-reserva { padding: 10px 14px; gap: 8px; }
  .btn-reserva__full { display: none; }
  .btn-reserva__short { display: inline; font-weight: 700; }
  .brand img, .site-header.scrolled .brand img { height: 40px; }
  .carousel-arrow { width: 44px; height: 44px; top: calc(50% - 22px); }
  .t-card { width: 272px; padding: 18px; }
  .t-head h3 { font-size: 17px; }
  .trat-side { grid-template-columns: 1fr; }
  .consult-form { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
  .orto-feature__facts { flex-direction: column; }
  .side-card--emerg { grid-template-columns: 1fr; }
  .side-card--emerg .btn { grid-column: 1; grid-row: auto; margin-top: 12px; }
  .cons-gallery { gap: 12px; padding-bottom: 28px; }
  .cons-photo--b { transform: translateY(28px); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { padding-bottom: 104px; }
  .hero-hours { padding: 20px; }
  .hero-hours__row { flex-direction: column; align-items: flex-start; }
  .hero-hours__row dd { justify-content: flex-start; }
  .wa-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); padding: 15px; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
