/* ============================================================
   CLÍNICA CONCEPCIÓN — Hoja de estilos
   Paleta: Azul Reflex #0c1c8c · Naranja #f7941d
   Tipografía: Poppins (títulos) · Inter (cuerpo)
   ============================================================ */

:root {
  --primary: #0c1c8c;
  --primary-dark: #091568;
  --primary-light: #2336c4;
  --primary-tint: #f1f3fa;
  --secondary: #f7941d;
  --secondary-dark: #e88912;
  --accent-text: #985000;
  --whatsapp: #0c1c8c;
  --whatsapp-dark: #091568;
  --bg: #ffffff;
  --bg-alt: #f6f7fa;
  --text: #202432;
  --text-2: #535b6b;
  --border: #dce0e8;
  --border-strong: #818a9d;
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --type-xs: .8125rem;
  --type-sm: .9375rem;
  --type-base: 1rem;
  --type-lg: 1.125rem;
  --type-card: 1.25rem;
  --type-section: clamp(1.75rem, 3vw, 2.5rem);
  --type-hero: clamp(2rem, 3.6vw, 3.5rem);
  --leading-body: 1.7;
  --leading-title: 1.18;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-none: none;
  --shadow-sm: 0 2px 8px rgba(12, 28, 140, .04);
  --shadow-md: 0 8px 24px rgba(12, 28, 140, .08);
  --shadow-lg: 0 24px 64px rgba(9, 21, 104, .2);
  --shadow: var(--shadow-sm);
  --shadow-hover: var(--shadow-md);
  --page-width: 1200px;
  --section-space: clamp(3rem, 6vw, 6rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; color: var(--primary); }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-head); font-weight: 600; text-decoration: none;
  border: none; border-radius: 50px; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.btn-sm { font-size: .85rem; padding: .6em 1.3em; }
.btn-lg { font-size: 1.05rem; padding: .9em 1.8em; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: var(--secondary-dark); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-block { width: 100%; margin-top: 1rem; }

/* ---------- Navbar ---------- */
/* Fija y transparente sobre el hero; gana fondo sólido al hacer scroll */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent;
  box-shadow: none;
  transition: background .35s ease, box-shadow .35s ease;
}
.navbar.scrolled {
  background: var(--primary-dark);
  box-shadow: 0 2px 14px rgba(0,0,0,.25);
}
/* El navbar usa todo el ancho de la pantalla: logo pegado al borde izquierdo */
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 88px;
  width: 100%; margin: 0; padding: 0 max(2.5%, 14px) 0 14px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 78px; width: auto; }
@media (max-width: 920px) {
  .nav-inner { min-height: 76px; padding-left: 10px; }
  .nav-logo img { height: 64px; }
}
.nav-menu { display: flex; align-items: center; gap: 1.4rem; }
.nav-link {
  color: #fff; text-decoration: none; font-family: var(--font-head);
  font-size: .92rem; font-weight: 500; padding: .35em 0;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.nav-link:hover, .nav-link.active { color: var(--secondary); border-bottom-color: var(--secondary); }
.nav-ctas { display: flex; gap: .6rem; margin-left: .8rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--primary-dark), #1a2db0);
  overflow: hidden;
  padding-top: 96px;
}
.hero-bg { position: absolute; inset: -60px 0; will-change: transform; }
.hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  animation: heroZoom 22s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,29,139,.88) 0%, rgba(11,29,139,.62) 55%, rgba(11,29,139,.35) 100%);
}
/* Scrim superior: legibilidad del navbar transparente sobre la foto */
.hero-overlay::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 170px;
  background: linear-gradient(180deg, rgba(8,14,60,.65), transparent);
}
/* Orbes decorativos flotantes (sutiles, colores de marca) */
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(70px); z-index: 1;
  pointer-events: none; opacity: .5;
  animation: orbFloat 14s ease-in-out infinite alternate;
}
.hero-orb-1 { width: 420px; height: 420px; right: -80px; top: -60px; background: radial-gradient(circle, rgba(247,148,29,.55), transparent 70%); }
.hero-orb-2 { width: 360px; height: 360px; right: 18%; bottom: -120px; background: radial-gradient(circle, rgba(35,54,196,.8), transparent 70%); animation-delay: -7s; }
@keyframes orbFloat {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-40px, 34px, 0); }
}
.hero-content { position: relative; z-index: 2; padding: 6rem 0; color: #fff; max-width: 760px; }
.hero-kicker {
  font-family: var(--font-head); font-size: clamp(.72rem, 1.4vw, .88rem); font-weight: 600;
  text-transform: uppercase; letter-spacing: .34em;
  color: var(--secondary); margin-bottom: 1.1rem;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; color: #fff; margin-bottom: 1.1rem; }
.hero h1 .accent { color: var(--secondary); }
.hero-sub { font-size: clamp(1rem, 2vw, 1.25rem); color: rgba(255,255,255,.92); margin-bottom: 2rem; max-width: 580px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 1.6rem; font-size: .92rem; color: rgba(255,255,255,.85); }
.hero-badges i { color: var(--secondary); margin-right: .4em; }
/* Entrada cinemática del hero */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-kicker, .hero h1, .hero-sub, .hero-ctas, .hero-badges {
  animation: heroRise .8s cubic-bezier(.22,.8,.32,1) backwards;
}
.hero h1      { animation-delay: .15s; }
.hero-sub     { animation-delay: .3s; }
.hero-ctas    { animation-delay: .45s; }
.hero-badges  { animation-delay: .6s; }
/* Curva de transición hacia la siguiente sección */
.hero-curve {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2;
  width: 100%; height: 70px; display: block; pointer-events: none;
}
.scroll-indicator {
  position: absolute; bottom: 92px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 1.3rem; z-index: 2; opacity: .8;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ---------- Secciones ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--secondary); margin-bottom: .5rem;
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: .8rem; }
.section-head p { color: var(--text-2); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid-4, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Servicios overview ---------- */
.service-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.service-img { height: 170px; overflow: hidden; background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.service-card:hover .service-img img { transform: scale(1.06); }
.service-body { padding: 1.4rem 1.4rem 1.6rem; position: relative; flex: 1; }
.service-icon {
  position: absolute; top: -26px; left: 1.3rem;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--secondary); color: #fff; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(247,148,29,.4);
}
.service-body h3 { font-size: 1.05rem; margin: 1.2rem 0 .5rem; }
.service-body p { font-size: .9rem; color: var(--text-2); }

/* ---------- Servicios entregados (expandibles) ---------- */
.detail-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; transition: transform .25s ease, box-shadow .25s ease;
  align-self: start;
}
.detail-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.detail-head {
  display: block; width: 100%; text-align: left; background: none; border: none;
  cursor: pointer; padding: 1.6rem; font-family: inherit;
}
.detail-icon {
  width: 54px; height: 54px; border-radius: 14px; margin-bottom: 1rem;
  background: color-mix(in srgb, var(--ic, var(--primary)) 12%, white);
  color: var(--ic, var(--primary)); font-size: 1.35rem;
  display: flex; align-items: center; justify-content: center;
}
.detail-head h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.detail-brief { font-size: .9rem; color: var(--text-2); margin-bottom: .9rem; }
.detail-toggle {
  font-family: var(--font-head); font-size: .85rem; font-weight: 600; color: var(--secondary);
  display: inline-flex; align-items: center; gap: .5em;
}
.detail-toggle i { transition: transform .3s ease; }
.detail-card.open .detail-toggle i { transform: rotate(180deg); }
.detail-body {
  max-height: 0; overflow: hidden; transition: max-height .45s ease;
  padding: 0 1.6rem; background: var(--bg-alt);
}
.detail-card.open .detail-body { padding-bottom: 1.6rem; }
.detail-body img { border-radius: 10px; margin: 1.2rem 0 1rem; height: 170px; width: 100%; object-fit: cover; }
.detail-body h4 {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--secondary); margin: 1rem 0 .4rem;
}
.detail-body ul { padding-left: 1.2rem; font-size: .9rem; color: var(--text-2); }
.detail-body li { margin-bottom: .3rem; }
.detail-body p { font-size: .9rem; color: var(--text-2); margin-bottom: .5rem; }
.detail-meta { font-weight: 600; color: var(--primary) !important; margin: .6rem 0 1rem; }
.detail-meta i { color: var(--secondary); }

/* Fallback de imagen rota */
.img-fallback {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  position: relative; min-height: 150px;
}
.img-fallback::after {
  font-family: var(--font-head);
  content: 'Clínica Concepción';
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.75); font-size: .9rem; font-weight: 600;
}

/* ---------- Patologías: filtros y acordeón ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2.2rem; }
.filter-btn {
  font-family: var(--font-head); font-size: .85rem; font-weight: 500;
  padding: .5em 1.2em; border-radius: 50px; cursor: pointer;
  border: 1.5px solid var(--border); background: #fff; color: var(--text-2);
  transition: all .2s ease;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Layout patologías: mapa corporal + acordeón */
.path-layout {
  display: grid; grid-template-columns: 290px 1fr;
  gap: 2.5rem; align-items: start;
}
.body-map-wrap {
  position: sticky; top: 100px;
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem 1.2rem 1.6rem; text-align: center; box-shadow: var(--shadow);
}
.body-map-hint {
  font-family: var(--font-head); font-size: .85rem; font-weight: 600;
  color: var(--primary); margin-bottom: 1rem;
}
.body-map-hint i { color: var(--secondary); margin-right: .4em; animation: hintTap 1.8s ease-in-out infinite; display: inline-block; }
@keyframes hintTap {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px) scale(.92); }
}
.body-map { width: 100%; max-width: 235px; margin: 0 auto; display: block; }
.bm-zone {
  fill: rgba(12, 28, 140, .25);
  stroke: #fff; stroke-width: 2.5; stroke-dasharray: 6 5;
  cursor: pointer; transition: fill .2s ease;
  animation: zonePulse 2.4s ease-in-out infinite;
  paint-order: stroke fill;
}
.bm-zone:hover { fill: rgba(247, 148, 29, .55); stroke: #fff; animation: none; }
.bm-zone.active {
  fill: rgba(247, 148, 29, .65); stroke: #fff;
  stroke-dasharray: none; animation: none;
}
@keyframes zonePulse {
  0%, 100% { stroke-opacity: .3; }
  50% { stroke-opacity: 1; }
}
.bm-label {
  margin-top: .9rem; min-height: 1.3em;
  font-family: var(--font-head); font-size: .92rem; font-weight: 600;
  color: var(--secondary);
}
.bm-reset { margin-top: .7rem; }

/* Nota de evidencia científica en patologías */
.acc-evidence {
  background: rgba(12, 28, 140, .05);
  border-left: 3px solid var(--secondary);
  padding: .6rem .9rem; border-radius: 8px;
  font-size: .88rem;
}
.acc-evidence i { color: var(--secondary); margin-right: .3em; }

.accordion { display: flex; flex-direction: column; gap: .9rem; }

/* Mensaje inicial: aún no se selecciona zona */
.acc-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .9rem; text-align: center;
  background: #fff; border: 1.5px dashed var(--border); border-radius: var(--radius);
  padding: 3rem 2rem; color: var(--text-2);
}
.acc-placeholder i {
  font-size: 2rem; color: var(--secondary);
  animation: hintTap 1.8s ease-in-out infinite;
}
.acc-placeholder p { max-width: 420px; font-size: .95rem; margin: 0; }
.acc-placeholder.hidden { display: none; }

@media (max-width: 900px) {
  .path-layout { grid-template-columns: 1fr; gap: 1.8rem; }
  .body-map-wrap { position: static; max-width: 320px; margin: 0 auto; }
}
.acc-item {
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: border-color .25s ease, box-shadow .25s ease;
}
.acc-item.open { border-color: var(--primary); box-shadow: var(--shadow); }
.acc-item.hidden { display: none; }
.acc-head {
  display: flex; align-items: center; gap: 1rem; width: 100%;
  padding: 1.1rem 1.4rem; background: none; border: none; cursor: pointer;
  font-family: var(--font-head); font-size: 1rem; font-weight: 600; color: var(--primary);
  text-align: left;
}
.acc-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px;
  background: rgba(12,28,140,.08); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.acc-head span { flex: 1; }
.acc-plus { color: var(--secondary); transition: transform .3s ease; }
.acc-item.open .acc-plus { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.acc-content { padding: 0 1.5rem 1.5rem; font-size: .93rem; color: var(--text-2); }
.acc-content p { margin-bottom: .7rem; }
.acc-content strong { color: var(--primary); }
.acc-content .btn { margin-top: .4rem; }

/* ---------- Equipo: buscador ---------- */
.team-search {
  position: relative; max-width: 460px; margin: 0 auto 2.4rem;
}
.team-search i {
  position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%);
  color: var(--text-2); font-size: .95rem;
}
.team-search input {
  width: 100%; padding: .85em 1.2em .85em 2.8em;
  font-family: var(--font-body); font-size: .95rem; color: var(--text);
  border: 1.5px solid var(--border); border-radius: 50px; outline: none;
  transition: border-color .2s, box-shadow .2s; background: #fff;
}
.team-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(12,28,140,.08); }
.team-no-results { text-align: center; color: var(--text-2); margin-bottom: 2rem; }

/* ---------- Equipo ---------- */
.team-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.team-photo { height: 320px; overflow: hidden; background: var(--bg-alt); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .4s ease; }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.team-body h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.team-role { font-family: var(--font-head); font-size: .82rem; font-weight: 600; color: var(--secondary); margin-bottom: .7rem; }
.team-bio { font-size: .88rem; color: var(--text-2); margin-bottom: 1.2rem; flex: 1; }
.team-card { cursor: pointer; }
.team-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.team-actions .btn { flex: 1; min-width: 140px; }

/* ---------- Modal perfil profesional ---------- */
.profile-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: none; align-items: center; justify-content: center;
  padding: 1.2rem;
}
.profile-modal.open { display: flex; }
body.modal-open { overflow: hidden; }
.pm-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 14, 60, .68);
  backdrop-filter: blur(3px);
}
.pm-dialog {
  position: relative; background: #fff; border-radius: var(--radius);
  width: min(800px, 100%); max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .4);
  animation: pmIn .25s ease;
}
@keyframes pmIn {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.pm-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.18); color: #fff; font-size: 1.15rem;
  transition: background .2s, transform .2s;
}
.pm-close:hover { background: var(--secondary); transform: rotate(90deg); }
.pm-head {
  display: flex; align-items: center; gap: 1.4rem;
  padding: 2rem 2.2rem;
  background: linear-gradient(120deg, var(--primary-dark), #1a2db0);
}
.pm-photo {
  width: 110px; height: 110px; border-radius: 50%; object-fit: cover; object-position: top center;
  border: 3px solid var(--secondary); flex-shrink: 0;
}
.pm-head h3 { color: #fff; font-size: 1.35rem; margin-bottom: .3rem; }
.pm-title { color: var(--secondary); font-family: var(--font-head); font-size: .9rem; font-weight: 600; }
.pm-body { padding: 1.8rem 2.2rem .6rem; }
.pm-body h4 {
  font-family: var(--font-head); font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em; color: var(--secondary);
  margin: 1.4rem 0 .6rem; padding-bottom: .35rem; border-bottom: 1.5px solid var(--border);
}
.pm-body h4:first-child { margin-top: 0; }
.pm-body p { font-size: .92rem; color: var(--text-2); margin-bottom: .7rem; }
.pm-body p strong, .pm-body li strong { color: var(--primary); }
.pm-body ul { padding-left: 1.3rem; margin-bottom: .8rem; }
.pm-body li { font-size: .92rem; color: var(--text-2); margin-bottom: .4rem; }
.pm-footer {
  display: flex; flex-wrap: wrap; gap: .8rem;
  padding: 1.2rem 2.2rem 2rem;
}
.pm-footer .btn { flex: 1; min-width: 220px; font-size: .92rem; padding: .8em 1.2em; }
@media (max-width: 560px) {
  .pm-head { flex-direction: column; text-align: center; padding: 2.4rem 1.4rem 1.6rem; gap: .9rem; }
  .pm-photo { width: 92px; height: 92px; }
  .pm-body { padding: 1.4rem 1.4rem .4rem; }
  .pm-footer { padding: 1rem 1.4rem 1.6rem; }
}

/* ---------- Testimonios ---------- */
.testimonials-section { background: linear-gradient(135deg, var(--primary-dark), #18299f); }
.testimonials-section .eyebrow { color: var(--secondary); }
.testimonials-section h2.on-dark { color: #fff; }
.carousel { display: flex; align-items: center; gap: 1rem; max-width: 980px; margin: 0 auto; }
.car-viewport { overflow: hidden; flex: 1; }
.car-track { display: flex; transition: transform .5s ease; }
.t-slide { flex: 0 0 100%; padding: .4rem; }
@media (min-width: 768px) { .t-slide { flex: 0 0 50%; } }
@media (min-width: 1100px) { .t-slide { flex: 0 0 33.3333%; } }
.t-card {
  background: #fff; border-radius: var(--radius); padding: 1.8rem; height: 100%;
  display: flex; flex-direction: column; box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.t-stars { color: var(--secondary); margin-bottom: .8rem; font-size: .9rem; }
.t-text { font-size: .93rem; color: var(--text); font-style: italic; flex: 1; margin-bottom: 1rem; }
.t-name { font-family: var(--font-head); font-weight: 600; color: var(--primary); font-size: .95rem; }
.t-meta { font-size: .8rem; color: var(--text-2); }
.car-arrow {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); background: transparent; color: #fff;
  font-size: 1rem; cursor: pointer; transition: all .2s ease;
}
.car-arrow:hover { background: var(--secondary); border-color: var(--secondary); }
.car-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.8rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.car-dot {
  width: 10px; height: 10px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.35); transition: all .25s ease; padding: 0;
}
.car-dot.active { background: var(--secondary); width: 26px; border-radius: 6px; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.4rem; align-items: stretch; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 1.4rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 13px;
  background: rgba(12,28,140,.08); color: var(--primary); font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
}
.contact-item h4 { font-size: .95rem; margin-bottom: .15rem; }
.contact-item p, .contact-item a { font-size: .92rem; color: var(--text-2); text-decoration: none; }
.contact-item a:hover { color: var(--secondary); }
.contact-map {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); min-height: 380px; background: var(--bg-alt);
  display: flex; flex-direction: column;
}
.contact-map iframe { flex: 1; min-height: 330px; }
.map-link {
  display: flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8rem; background: var(--primary); color: #fff;
  font-family: var(--font-head); font-size: .9rem; font-weight: 600;
  text-decoration: none; transition: background .2s;
}
.map-link:hover { background: var(--primary-light); }
.map-link i { color: var(--secondary); }

/* ---------- Footer ---------- */
.footer { background: var(--primary-dark); color: rgba(255,255,255,.85); }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 2.4rem;
  padding: 3.5rem 0 2.5rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { height: 52px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: .88rem; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-col a { display: block; color: rgba(255,255,255,.8); text-decoration: none; font-size: .9rem; margin-bottom: .55rem; transition: color .2s; }
.footer-col a:hover { color: var(--secondary); }
.footer-col p { font-size: .88rem; margin-bottom: .55rem; }
.footer-col p i { color: var(--secondary); width: 20px; }
.footer-col p a { display: inline; }
.footer-social { display: flex; gap: .7rem; }
.footer-ig { margin-top: .8rem; }
.footer-ig a { display: inline; font-family: var(--font-head); font-weight: 600; color: var(--secondary); }
.footer-social a {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
  transition: background .2s, transform .2s; margin-bottom: 0;
}
.footer-social a:hover { background: var(--secondary); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 1.2rem 0; text-align: center; font-size: .82rem; }

/* ---------- Botones flotantes ---------- */
.float-btn {
  position: fixed; bottom: 22px; z-index: 1100;
  display: flex; align-items: center; justify-content: center; gap: .5em;
  border-radius: 50px; color: #fff; text-decoration: none;
  font-family: var(--font-head); font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
  transition: transform .2s ease;
}
.float-btn:hover { transform: scale(1.08); }
.float-wsp { right: 22px; width: 60px; height: 60px; background: var(--whatsapp); font-size: 1.7rem; }
.float-agenda { left: 22px; height: 56px; padding: 0 1.4em; background: var(--secondary); font-size: .95rem; }

/* ---------- Responsive: navbar móvil ---------- */
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--primary-dark);
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,.25);
  }
  .nav-menu.open { max-height: 480px; }
  .nav-link { padding: .9rem 6%; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-ctas { flex-direction: column; padding: 1rem 6% 1.4rem; margin-left: 0; gap: .7rem; }
  .hero { min-height: 92vh; padding-top: 80px; }
  .hero-ctas .btn { width: 100%; }
  .section { padding: 3.5rem 0; }
  .float-agenda span { display: inline; }
}
@media (max-width: 480px) {
  .float-agenda { padding: 0 1.1em; font-size: .85rem; height: 50px; }
  .float-wsp { width: 54px; height: 54px; font-size: 1.5rem; }
}

/* ---------- Números de capítulo en eyebrows ---------- */
.eyebrow-num {
  display: inline-block; margin-right: .9em; position: relative;
  color: rgba(12, 28, 140, .45); font-weight: 700;
}
.eyebrow-num::after {
  content: ''; position: absolute; right: -.62em; top: 50%;
  width: 1px; height: 1em; transform: translateY(-50%) rotate(18deg);
  background: rgba(12, 28, 140, .3);
}
.testimonials-section .eyebrow-num { color: rgba(255,255,255,.55); }
.testimonials-section .eyebrow-num::after { background: rgba(255,255,255,.35); }

/* ---------- Banda de cifras ---------- */
.stats-band { padding: 3.4rem 0 1rem; background: var(--bg); }
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem;
  width: min(640px, 100%); margin: 0 auto;
}
.stat {
  text-align: center; padding: .6rem 1rem;
  border-left: 1px solid var(--border);
}
.stat:first-child { border-left: none; }
.stat-num {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.3rem, 4.5vw, 3.4rem); line-height: 1.1; color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block; margin-top: .35rem;
  font-family: var(--font-head); font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; color: var(--text-2);
}

/* ---------- Galería de instalaciones ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 185px; gap: 14px;
}
.g-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: none; padding: 0; cursor: zoom-in; background: var(--bg-alt);
  box-shadow: var(--shadow); text-align: left;
}
.g-featured { grid-column: span 2; grid-row: span 2; }
.g-tall { grid-row: span 2; }
.g-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.06); }
.g-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2rem 1.1rem .85rem;
  background: linear-gradient(180deg, transparent, rgba(7, 16, 71, .78));
  color: #fff; font-family: var(--font-head); font-size: .88rem; font-weight: 600;
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.g-item:hover .g-caption, .g-item:focus-visible .g-caption { opacity: 1; transform: translateY(0); }
.gallery-note {
  margin-top: 1.6rem; text-align: center;
  font-family: var(--font-head); font-size: .92rem; font-weight: 600; color: var(--primary);
}
.gallery-note i { color: var(--secondary); margin-right: .4em; }
@media (max-width: 820px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .g-item .g-caption { opacity: 1; transform: none; padding: 1.4rem .8rem .6rem; font-size: .8rem; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 2100;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  background: rgba(5, 10, 45, .92);
  padding: 2.5rem 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: min(1100px, 88vw); max-height: 100%; margin: 0; text-align: center; }
.lightbox img {
  max-width: 100%; max-height: calc(100vh - 10rem);
  width: auto; height: auto; margin: 0 auto;
  border-radius: 10px; box-shadow: 0 24px 70px rgba(0,0,0,.5);
}
.lightbox figcaption {
  margin-top: 1rem; color: #fff;
  font-family: var(--font-head); font-size: .95rem; font-weight: 600;
}
.lb-close {
  position: absolute; top: 18px; right: 18px;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font-size: 1.2rem;
  transition: background .2s, transform .2s;
}
.lb-close:hover { background: var(--secondary); transform: rotate(90deg); }
.lb-arrow {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); background: transparent; color: #fff;
  font-size: 1.05rem; cursor: pointer; transition: all .2s ease;
}
.lb-arrow:hover { background: var(--secondary); border-color: var(--secondary); }
@media (max-width: 640px) {
  .lightbox { padding: 1rem .4rem; gap: .4rem; }
  .lb-arrow { width: 40px; height: 40px; }
}

/* ---------- Statement gigante (motto) ---------- */
.statement {
  padding: 7rem 0 7.5rem; background: var(--bg);
  text-align: center; overflow: hidden;
}
.statement-kicker {
  font-family: var(--font-head); font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .34em;
  color: var(--secondary); margin-bottom: 1.4rem;
}
.statement-text {
  font-size: clamp(2.4rem, 7.5vw, 5.2rem); font-weight: 800;
  line-height: 1.08; letter-spacing: -.01em; margin: 0;
}
/* Cada letra parte "apagada" y se enciende con el scroll */
.statement-text .st-ch {
  color: rgba(12, 28, 140, .13);
  transition: color .35s ease;
}
.statement-text .st-ch.lit { color: var(--primary); }
.statement-text .st-ch.st-accent.lit { color: var(--secondary); }

/* ---------- Barra de progreso de scroll ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 1300;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--secondary), #ffb85c);
  border-radius: 0 3px 3px 0;
}

/* ---------- Aparición al hacer scroll (reveal) ---------- */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,.8,.32,1);
  transition-delay: var(--rd, 0s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Accesibilidad: sin movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .hero-kicker, .hero h1, .hero-sub, .hero-ctas, .hero-badges { animation: none; }
  .hero-bg img, .hero-orb, .scroll-indicator { animation: none; }
  .hero-bg { transform: none !important; }
}

/* ============================================================
   DIRECCIÓN C — PRECISIÓN FUNCIONAL
   Parches sobre la base existente; se conservan sus componentes.
   ============================================================ */

body { font-size: var(--type-base); line-height: var(--leading-body); }
.container { width: min(var(--page-width), calc(100% - 3rem)); }
h1, h2, h3, h4 { font-weight: 600; text-wrap: balance; }
.section { padding-block: var(--section-space); }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: left; max-width: 760px; margin: 0 0 var(--space-7); }
.section-head h2 { font-size: var(--type-section); line-height: var(--leading-title); letter-spacing: -.035em; font-weight: 600; margin-bottom: var(--space-4); }
.section-head p { font-size: var(--type-base); max-width: 65ch; }
.eyebrow { color: var(--text-2); font-size: var(--type-xs); letter-spacing: .1em; margin-bottom: var(--space-4); }
.eyebrow-num { color: var(--primary); border-left: 3px solid var(--secondary); padding-left: var(--space-3); margin-right: var(--space-4); }
.eyebrow-num::after { display: none; }
.grid { gap: var(--space-5); }

/* Acciones: una prioridad clara, formas precisas y foco visible. */
.btn { min-height: 44px; border-radius: var(--radius-sm); line-height: 1.4; white-space: normal; text-align: center; font-weight: 600; transition: background .18s, color .18s, border-color .18s; }
.btn-sm { font-size: var(--type-xs); padding: var(--space-3) var(--space-4); }
.btn-lg { font-size: var(--type-sm); padding: var(--space-4) var(--space-5); }
.btn:hover { transform: none; box-shadow: none; }
.btn-secondary { color: var(--primary-dark); }
.btn-whatsapp { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-whatsapp:hover { background: var(--primary-tint); }
.btn-outline { border-width: 1px; }
:where(a, button, input, [tabindex]):focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; box-shadow: 0 0 0 6px #fff; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: 1rem; z-index: 3000; background: #fff; color: var(--primary); }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Hero: panel azul legible y fotografía propia sin teñir. */
.navbar, .navbar.scrolled { background: var(--primary); box-shadow: none; border-bottom: 1px solid rgba(255,255,255,.18); }
.nav-inner { width: min(var(--page-width), calc(100% - 3rem)); padding: 0; margin: auto; min-height: 88px; gap: var(--space-5); }
.nav-logo { min-width: 0; flex-shrink: 0; }
.nav-logo img { width: 230px; height: auto; object-fit: contain; }
.nav-menu { gap: var(--space-5); }
.nav-link { font-size: var(--type-xs); }
.nav-ctas { gap: var(--space-3); margin-left: var(--space-3); }
.navbar .btn-whatsapp, .hero .btn-whatsapp { color: #fff; border-color: #fff; }
.navbar .btn-whatsapp:hover, .hero .btn-whatsapp:hover { background: rgba(255,255,255,.12); }
.hero { min-height: 720px; min-height: min(820px, 94svh); padding-top: 88px; background: var(--primary); }
.hero-bg { inset: 88px 0 0 52%; transform: none !important; will-change: auto; }
.hero-bg img { animation: none; object-position: 56% center; }
.hero-overlay, .hero-orb, .hero-curve, .scroll-indicator { display: none; }
.hero-content { max-width: var(--page-width); padding: var(--space-8) 0; margin-inline: auto; }
.hero-content > * { max-width: 46%; }
.hero-kicker { color: var(--secondary); font-size: var(--type-xs); letter-spacing: .16em; margin-bottom: var(--space-5); }
.hero h1 { font-size: var(--type-hero); line-height: var(--leading-title); letter-spacing: -.045em; font-weight: 600; margin-bottom: var(--space-5); }
.hero h1 .accent { color: #fff; }
.hero-sub { font-size: var(--type-lg); line-height: var(--leading-body); color: #fff; margin-bottom: var(--space-6); }
.hero-ctas { gap: var(--space-3); margin-bottom: var(--space-6); }
.hero-badges { display: grid; gap: var(--space-2); font-size: var(--type-xs); color: #fff; }
.hero-kicker, .hero h1, .hero-sub, .hero-ctas, .hero-badges { animation: none; }

/* Cifras compactas: información, no un segundo hero. */
.stats-band { padding: var(--space-6) 0; border-bottom: 1px solid var(--border); }
.stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); width: min(640px, calc(100% - 3rem)); }
.stat { min-width: 0; padding: var(--space-2) var(--space-4); }
.stat-num { font-size: var(--type-section); font-weight: 600; }
.stat-label { font-size: var(--type-xs); text-transform: none; letter-spacing: 0; overflow-wrap: anywhere; }

/* Servicios: foto útil, borde definido y llamada a la acción. */
.service-card { border: 1px solid var(--border); box-shadow: none; border-radius: var(--radius); }
.service-card:hover { transform: none; box-shadow: none; border-color: var(--primary); }
.service-img { height: auto; aspect-ratio: 4 / 3; }
.service-img img { height: 100%; object-position: center; }
.service-card:hover .service-img img { transform: none; }
.service-icon { display: none; }
.service-body { padding: var(--space-5); display: flex; flex-direction: column; align-items: flex-start; }
.service-body h3 { font-size: var(--type-card); line-height: 1.35; margin: 0 0 var(--space-3); letter-spacing: -.02em; }
.service-body p { font-size: var(--type-sm); margin-bottom: var(--space-5); }
.service-body .btn { margin-top: auto; }
.coverage-note { margin-top: var(--space-5); padding: var(--space-4) var(--space-5); border-left: 3px solid var(--secondary); background: var(--primary-tint); color: var(--text); font-size: var(--type-sm); }

/* Prestaciones y patologías conservan sus desplegables. */
.detail-grid { align-items: start; }
.detail-card { border: 1px solid var(--border); box-shadow: none; }
.detail-card:hover { transform: none; box-shadow: none; border-color: var(--border-strong); }
.detail-heading { padding: var(--space-5) var(--space-5) 0; }
.detail-heading h3 { font-size: var(--type-lg); line-height: 1.4; margin-bottom: var(--space-3); }
.detail-icon { display: none; }
.detail-brief { font-size: var(--type-sm); line-height: var(--leading-body); margin: 0; }
.detail-head { padding: var(--space-4) var(--space-5); min-height: 44px; }
.detail-toggle { color: var(--primary); font-size: var(--type-xs); }
.detail-body, .acc-body { max-height: none; transition: none; }
.detail-body[hidden], .acc-body[hidden] { display: none; }
.detail-body { padding-inline: var(--space-5); }
.detail-body h4, .pm-body h4 { color: var(--primary); letter-spacing: .04em; }
.detail-body p, .detail-body li, .acc-content { font-size: var(--type-sm); line-height: var(--leading-body); }
.filters { justify-content: flex-start; gap: var(--space-2); margin-bottom: var(--space-4); }
.filter-btn { border-radius: var(--radius-sm); min-height: 44px; border-color: var(--border-strong); font-size: var(--type-xs); }
.filter-status { color: var(--text-2); font-size: var(--type-sm); margin-bottom: var(--space-5); }
.body-map-wrap { box-shadow: none; border: 1px solid var(--border); }
.body-map-hint i, .bm-zone, .acc-placeholder i { animation: none; }
.bm-zone { stroke: var(--primary); stroke-width: 2; stroke-dasharray: none; fill: rgba(12,28,140,.12); }
.bm-zone:hover, .bm-zone:focus-visible, .bm-zone.active { fill: rgba(247,148,29,.5); stroke: var(--primary); }
.bm-label { color: var(--primary); }
.acc-heading { margin: 0; }
.acc-head { line-height: 1.5; font-size: var(--type-sm); }
.acc-item { border-width: 1px; }
.acc-item.open { box-shadow: none; }
.acc-icon { width: 32px; height: 32px; border-radius: var(--radius-sm); }
.acc-plus, .acc-evidence i, .body-map-hint i, .acc-placeholder i { color: var(--primary); }
.acc-evidence { border-radius: var(--radius-sm); }

/* Fotografía natural; las personas conservan su protagonismo. */
.gallery-grid { gap: var(--space-3); }
.g-item { border-radius: var(--radius); box-shadow: none; }
.g-item:hover img, .g-item:focus-visible img { transform: none; }
.g-caption { opacity: 1; transform: none; background: linear-gradient(transparent, rgba(9,21,104,.9)); }
.statement { padding: var(--section-space) 0; border-block: 1px solid var(--border); text-align: left; background: var(--primary-tint); }
.statement-kicker { color: var(--text-2); letter-spacing: .1em; font-size: var(--type-xs); }
.statement-text { font-weight: 600; font-size: clamp(2rem, 5vw, 4rem); color: var(--primary); }
.statement-text .st-ch, .statement-text .st-ch.st-accent.lit { color: var(--primary); }
.team-search { margin: 0 0 var(--space-6); }
.team-search input { border-radius: var(--radius-sm); border-color: var(--border-strong); }
.team-card { border: 1px solid var(--border); box-shadow: none; }
.team-card[hidden] { display: none; }
.team-card:hover { transform: none; box-shadow: none; border-color: var(--border-strong); }
.team-card:hover .team-photo img { transform: none; }
.team-photo { height: auto; aspect-ratio: 6 / 5; }
.team-body { padding: var(--space-5); }
.team-body h3 { font-size: var(--type-lg); letter-spacing: -.02em; }
.team-role { color: var(--primary); font-size: var(--type-xs); font-weight: 500; }
.team-bio { font-size: var(--type-sm); line-height: var(--leading-body); }
.team-actions .btn { min-width: 0; flex: 1 1 140px; }
.team-actions .btn-primary { background: transparent; border: 1px solid var(--border-strong); color: var(--primary); }
.team-actions .btn-outline { background: var(--primary); color: #fff; }

/* Testimonios y modales: controles estables y sin animación continua. */
.testimonials-section { background: var(--primary-dark); }
.testimonials-section .eyebrow, .testimonials-section .eyebrow-num { color: #fff; }
.car-viewport { min-width: 0; }
.t-card { box-shadow: none; border-radius: var(--radius); padding: var(--space-5); }
.t-text { font-style: normal; font-size: var(--type-base); }
.t-stars { color: var(--accent-text); }
.car-arrow, .lb-arrow { border-radius: var(--radius-sm); }
.car-arrow:hover, .lb-arrow:hover, .lb-close:hover, .pm-close:hover { color: var(--primary-dark); transform: none; }
.car-dot, .car-dot.active { width: 24px; height: 24px; border-radius: var(--radius-sm); background: transparent; position: relative; }
.car-dot::after { content: ''; position: absolute; width: 8px; height: 8px; background: #fff; left: 8px; top: 8px; border-radius: 2px; }
.car-dot.active::after { background: var(--secondary); }
.pm-dialog { box-shadow: var(--shadow-lg); max-height: 90svh; }
.pm-head { background: var(--primary); padding-right: var(--space-8); }
.pm-head h2 { color: #fff; font-size: var(--type-card); margin-bottom: var(--space-2); }
.pm-footer .btn { min-width: 0; white-space: normal; }
.pm-photo { border-width: 2px; }
.pm-body p, .pm-body li { font-size: var(--type-sm); }
.lightbox figure { min-width: 0; }

/* Contacto y acciones permanentes dentro de la misma marca. */
.contact-item h3 { font-size: var(--type-base); margin-bottom: var(--space-1); }
.contact-icon { border-radius: var(--radius-sm); }
.contact-item a:hover { color: var(--primary); text-decoration: underline; }
.contact-map { box-shadow: none; border: 1px solid var(--border); }
.footer { background: var(--primary-dark); padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.footer-logo { height: auto; width: 190px; }
.footer-social a:hover { color: var(--primary-dark); transform: none; }
.float-btn { bottom: calc(20px + env(safe-area-inset-bottom)); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); min-height: 48px; }
.float-btn:hover { transform: none; }
.float-agenda { left: 24px; color: var(--primary-dark); height: 50px; font-size: var(--type-sm); }
.float-wsp { right: 24px; width: auto; height: 50px; padding: 0 var(--space-4); background: #fff; border: 1px solid var(--primary); color: var(--primary); font-size: var(--type-sm); }
.scroll-progress { height: 2px; background: var(--secondary); border-radius: 0; }
.reveal, .reveal.in { opacity: 1; transform: none; transition: none; will-change: auto; }
html { scroll-padding-top: 108px; scroll-padding-bottom: 100px; }

@media (max-width: 1100px) {
  .nav-inner { min-height: 76px; }
  .nav-logo img { width: 210px; }
  .nav-toggle { display: block; }
  .nav-menu { position: absolute; top: 100%; left: 0; right: 0; background: var(--primary); flex-direction: column; align-items: stretch; gap: 0; max-height: 0; overflow: hidden; }
  .nav-menu.open { max-height: calc(100svh - 76px); overflow-y: auto; }
  .nav-link { padding: var(--space-4) 6%; border-bottom: 1px solid rgba(255,255,255,.18); }
  .nav-ctas { flex-direction: column; padding: var(--space-4) 6% var(--space-5); margin: 0; }
  .hero { padding-top: 76px; min-height: 680px; }
  .hero-bg { top: 76px; left: 54%; }
  .hero-content > * { max-width: 49%; }
  .hero-ctas .btn { width: 100%; }
}
@media (max-width: 700px) {
  .container, .nav-inner { width: calc(100% - 2.5rem); }
  .hero { display: flex; flex-direction: column; min-height: 0; align-items: stretch; }
  .hero-content { order: 1; padding-block: var(--space-7); }
  .hero-content > * { max-width: 100%; }
  .hero h1 { font-size: clamp(2rem, 7.5vw, 3rem); }
  .hero-sub { font-size: var(--type-base); }
  .hero-bg { order: 2; position: relative; inset: auto; width: 100%; height: 280px; }
  .hero-bg img { object-position: center; }
  .section-head { margin-bottom: var(--space-6); }
  .service-img { aspect-ratio: 3 / 2; }
  .stats-grid { width: calc(100% - 2.5rem); gap: var(--space-2); }
  .stat { padding-inline: var(--space-2); }
  .path-layout { gap: var(--space-5); }
  .acc-head { padding: var(--space-4); gap: var(--space-3); }
  .acc-content { padding: 0 var(--space-4) var(--space-5); }
  .carousel { gap: var(--space-2); }
  .car-arrow { width: 36px; height: 44px; }
  .t-card { padding: var(--space-4); }
  .contact-grid { gap: var(--space-6); }
  .pm-head { padding: var(--space-7) var(--space-5) var(--space-5); }
  .pm-footer { padding: var(--space-4); }
  .pm-footer .btn { flex-basis: 100%; }
  .float-agenda { left: 12px; }
  .float-wsp { right: 12px; }
  .g-caption { font-size: var(--type-xs); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Evolución interactiva: formas suaves y respuestas ligadas a la acción. */
.btn, .float-btn, .filter-btn, .team-search input { border-radius: 999px; }
.btn, .float-btn, .filter-btn {
  transition: transform .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.btn:active, .float-btn:active, .filter-btn:active { transform: scale(.97); }
.hero { background: linear-gradient(125deg, var(--primary-dark), var(--primary) 65%); }
.hero-bg { border-radius: 110px 0 0 32px; overflow: hidden; }
.hero-bg img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.hero-kicker { display: inline-flex; align-items: center; gap: .7rem; letter-spacing: .1em; }
.hero-kicker::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); flex-shrink: 0; }
.section-alt { background: linear-gradient(145deg, #f1f3fa, #fafbfe); }
.section-head h2 { max-width: 24ch; }
.service-card, .team-card, .detail-card, .acc-item {
  border-radius: var(--radius); overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, background .28s ease;
}
.service-card, .team-card { box-shadow: 0 8px 32px rgba(12,28,140,.055); }
.service-img img, .team-photo img, .g-item img { transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.service-body .btn { gap: .65rem; }
.service-body .btn i { transition: transform .22s ease; }
.coverage-note { border-radius: 0 var(--radius) var(--radius) 0; }
.detail-card.open, .acc-item.open { border-color: var(--primary); box-shadow: var(--shadow-md); }
.detail-card.open .detail-head, .acc-item.open .acc-head { background: var(--primary-tint); }
.detail-head, .acc-head { transition: background .22s ease; }
.detail-head:hover, .acc-head:hover { background: var(--primary-tint); }
.detail-toggle { display: inline-flex; align-items: center; gap: .5rem; }
.detail-toggle i, .acc-plus { transition: transform .25s ease; }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(12,28,140,.15); }
.filter-btn.is-preview { background: var(--primary-tint); color: var(--primary); border-color: var(--primary); }
.body-map-wrap {
  border-radius: 32px; border-color: #cbd2eb;
  background: radial-gradient(ellipse at 50% 45%, #fff 25%, #edf0fb 100%);
  box-shadow: 0 16px 48px rgba(12,28,140,.08);
}
.body-map { max-width: 255px; }
.bm-zone { cursor: pointer; transition: fill .22s ease, stroke-width .22s ease, filter .22s ease; }
.bm-zone:hover, .bm-zone:focus-visible, .bm-zone.is-preview {
  fill: rgba(247,148,29,.65); stroke: var(--primary); stroke-width: 3;
  filter: drop-shadow(0 0 5px rgba(247,148,29,.4));
}
.bm-zone.active { fill: var(--secondary); stroke: var(--primary); stroke-width: 3; }
.bm-label { border-radius: 999px; background: #fff; padding: .65rem 1rem; box-shadow: var(--shadow-sm); }
.filter-status { border-left: 3px solid var(--secondary); padding-left: 1rem; }
.acc-icon { border-radius: 50%; }
.g-item { border-radius: 24px; }
.g-caption { padding: 2.5rem 1.25rem 1.25rem; transition: padding .25s ease; }
.g-item::after { content: '+'; position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--primary); font-size: 24px; pointer-events: none; }
.car-arrow, .lb-arrow, .pm-close, .lb-close { border-radius: 50%; }
.car-dot::after, .car-dot.active::after { border-radius: 50%; transition: transform .2s ease, background .2s ease; }
.car-dot.active::after { transform: scale(1.4); }
.contact-icon { border-radius: 50%; }
.contact-map, .pm-dialog { border-radius: var(--radius-lg); overflow: hidden; }
.service-card:focus-within, .team-card:focus-within, .g-item:focus-visible { border-color: var(--primary); box-shadow: var(--shadow-md); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover, .float-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(12,28,140,.16); }
  .service-card:hover, .team-card:hover { transform: translateY(-7px); box-shadow: 0 18px 40px rgba(12,28,140,.12); }
  .service-card:hover .service-img img, .team-card:hover .team-photo img, .g-item:hover img, .g-item:focus-visible img { transform: scale(1.045); }
  .service-card:hover .service-body .btn i { transform: translateX(3px); }
  .hero-bg:hover img { transform: scale(1.035); }
  .filter-btn:hover { transform: translateY(-2px); border-color: var(--primary); }
  .g-item:hover .g-caption { padding-bottom: 1.6rem; }
}
@media (max-width: 700px) {
  .hero-bg { border-radius: 48px 48px 0 0; }
  .body-map-wrap { width: 100%; }
  .float-btn { padding-inline: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .float-btn:hover, .service-card:hover, .team-card:hover,
  .filter-btn:hover, .service-card:hover .service-img img,
  .team-card:hover .team-photo img, .g-item:hover img, .g-item:focus-visible img,
  .hero-bg:hover img, .btn:active, .float-btn:active, .filter-btn:active { transform: none; }
}
