/* ARCEMEDIC · arcemedic.pe
   Concepto: centro médico de barrio, claro y confiable. Azul de la marca como estructura,
   celeste como luz, rojo solo para el corazón (alertas y "destacado"). Celular primero. */
:root {
  --azul: #3075BB;          /* oficial: MEDIC, menú, botones */
  --azul-hondo: #1D4E85;    /* títulos y franja de laboratorio */
  --azul-noche: #163E6A;    /* pie de página */
  --celeste: #32BCDD;       /* oficial: ARCE, detalles */
  --celeste-claro: #8FDDF0; /* textos sobre azul */
  --celeste-suave: #EAF5FB; /* fondos suaves */
  --niebla: #F3F8FC;        /* secciones alternas */
  --rojo: #E6332A;          /* oficial: corazón */
  --rojo-texto: #B42318;
  --verde-wsp: #157A3E;     /* botones de WhatsApp (texto blanco legible) */
  --tinta: #3C3C3B;         /* oficial: gris del subtítulo */
  --texto-suave: #56616D;
  --linea: #DCE9F1;
  --blanco: #FFFFFF;
  --estrella: #F2A71B;

  --fuente: 'Figtree', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radio: 20px;
  --radio-sm: 14px;
  --ancho: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --seccion: clamp(72px, 8.5vw, 120px);
  --alto-menu: 92px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Al tocar el menú: el título de la sección queda ~40px bajo la barra fija */
[id] { scroll-margin-top: calc(var(--alto-menu) + 12px); }
.seccion[id] { scroll-margin-top: calc(var(--alto-menu) + 40px - var(--seccion)); }
.seccion--compacta[id] { scroll-margin-top: calc(var(--alto-menu) + 40px - clamp(56px, 6vw, 80px)); }
body {
  margin: 0;
  font-family: var(--fuente);
  font-size: 16px;
  line-height: 1.55;
  color: var(--tinta);
  background: var(--blanco);
}
img { max-width: 100%; display: block; }
a { color: var(--azul-hondo); }
a:hover { color: var(--azul); }
:focus-visible { outline: 3px solid var(--celeste); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; text-wrap: balance; color: var(--azul-hondo); }
p { margin: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } .cinta__pista { width: auto; flex-wrap: wrap; } .cinta__fila[aria-hidden] { display: none; } .cinta__fila { flex-wrap: wrap; justify-content: center; } }

.contenedor { max-width: var(--ancho); margin: 0 auto; padding-inline: var(--gutter); }
.seccion { padding-block: var(--seccion); }
.seccion--niebla { background: var(--niebla); }
.saltar { position: absolute; left: -999px; top: 8px; background: var(--blanco); padding: 10px 16px; z-index: 10; }
.saltar:focus { left: 8px; }

/* Etiquetas y títulos */
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--azul); }
.eyebrow--claro { color: var(--celeste-claro); }
.titulo-2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 900; }
.encabezado { display: flex; flex-direction: column; gap: 10px; }
.encabezado--centro { align-items: center; text-align: center; }
.encabezado--centro .titulo-2 { max-width: 760px; }
.pendiente { display: inline-block; padding: 2px 10px; border: 1.5px dashed #D98E1F; border-radius: 8px; background: #FFF6E6; color: #7A4300; font-weight: 700; font-size: 14px; }

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: var(--radio-sm);
  font-weight: 800; font-size: 16px; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease;
}
.boton:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(22, 62, 106, .16); }
.boton svg { flex: 0 0 auto; }
.boton--wsp { background: var(--verde-wsp); color: var(--blanco); }
.boton--wsp:hover { color: var(--blanco); }
.boton--azul { background: var(--azul); color: var(--blanco); }
.boton--azul:hover { color: var(--blanco); }
.boton--borde { background: var(--blanco); border-color: var(--azul); color: var(--azul-hondo); }
.boton--blanco { background: var(--blanco); color: var(--azul-hondo); }
.boton--rojo { background: var(--rojo-texto); color: var(--blanco); align-self: flex-start; margin-top: 10px; }
.boton--rojo:hover { color: var(--blanco); }
.boton--grande { min-height: 56px; font-size: 17px; }
.boton--brillo { position: relative; overflow: hidden; }
.boton--brillo::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-18deg); animation: brillo 4.5s ease-in-out 1.5s infinite; }
@keyframes brillo { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.botones { display: flex; flex-wrap: wrap; gap: 12px; }

/* Aviso superior */
.aviso { background: var(--rojo-texto); color: var(--blanco); text-align: center; font-weight: 700; font-size: 15px; padding: 10px var(--gutter); }

/* Barra superior */
.topbar { border-bottom: 1px solid #E2EDF4; font-size: 13.5px; font-weight: 600; color: var(--azul-hondo); }
.topbar .contenedor { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; padding-block: 8px; }
.topbar a { text-decoration: none; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.topbar__tels { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }

/* Menú */
.menu { background: var(--azul); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; transition: box-shadow .25s ease; }
.menu--bajado { box-shadow: 0 8px 24px rgba(22, 62, 106, .28); }
.menu .contenedor { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 28px; padding-block: 8px; }
.menu__logo img { height: clamp(60px, 6.2vw, 76px); width: auto; }
.menu__derecha { flex: 1 1 560px; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.menu nav { min-width: 0; display: flex; gap: 2px 24px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.menu nav::-webkit-scrollbar { display: none; }
.menu nav a { color: var(--blanco); text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 0; }
.menu nav a:hover { color: var(--celeste-claro); }
.menu__boton { flex: 0 0 auto; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 15px; }
.menu__movil { display: none; align-items: center; gap: 8px; }
.menu__wsp, .menu__abrir { width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; }
.menu__wsp { background: var(--blanco); color: var(--verde-wsp); }
.menu__abrir { background: rgba(255, 255, 255, .16); color: var(--blanco); }
.menu__abrir:hover { background: rgba(255, 255, 255, .26); }
@media (max-width: 820px) {
  .js .menu__movil { display: inline-flex; }
  .js .menu__derecha { display: none; flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: 8px; padding-block: 6px 14px; }
  .js .menu--abierto .menu__derecha { display: flex; animation: entrar .3s ease both; }
  .js .menu nav { flex-direction: column; gap: 0; overflow: visible; white-space: normal; }
  .js .menu nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, .16); font-size: 17px; }
  .js .menu__boton { justify-content: center; min-height: 50px; }
}

/* Fondo de marca cuando falta una foto */
.foto { position: relative; overflow: hidden; background: #D3E6F2; }
.foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foto__marca { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .7); }
.foto__marca svg { width: min(46%, 220px); height: auto; }
.foto__etiqueta { position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; }
.foto__etiqueta span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: var(--blanco); color: var(--azul-hondo); font-size: 12.5px; font-weight: 700; }

/* Portada */
.portada { position: relative; background: #DDEEF7; overflow: hidden; }
.portada__decor { position: absolute; inset: 0; pointer-events: none; }
.portada__grid { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 64px); padding-block: clamp(40px, 7vw, 88px) clamp(104px, 11vw, 140px); }
.portada__bloque { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.portada__bloque .botones { width: 100%; }
.portada__bloque .botones .boton { flex: 0 1 auto; }
.portada__media { flex: 1 1 420px; min-width: 0; position: relative; display: flex; flex-direction: column; gap: 18px; }
.diapos { position: relative; aspect-ratio: 3 / 2.15; width: 100%; max-width: 100%; }
.diapo { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(.97); transition: opacity .9s ease, transform 1.1s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.diapo.activa { opacity: 1; transform: none; z-index: 1; pointer-events: auto; }
.diapo .portada__marco { height: 100%; }
.diapo .insignia { opacity: 0; transition: opacity .5s ease .4s; }
.diapo.activa .insignia { opacity: 1; }
.puntos { display: flex; justify-content: center; gap: 4px; }
.punto { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.punto::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: #A9CBE0; transition: width .3s ease, background .3s ease; }
.punto.activo::before { width: 30px; background: var(--azul); }
.portada__marco { border-radius: 28px; width: 100%; box-shadow: 0 30px 60px rgba(22, 62, 106, .22); border: 6px solid var(--blanco); background: #C9DEEC; }
.portada__marco img { object-position: 50% 40%; }
.insignia { position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--blanco); color: var(--azul-hondo); font-weight: 800; font-size: 14.5px; box-shadow: 0 14px 30px rgba(22, 62, 106, .18); animation: flotar-suave 6s ease-in-out infinite; max-width: 240px; line-height: 1.25; }
.insignia svg { flex: 0 0 auto; color: var(--azul); }
.insignia--1 { left: -22px; bottom: 26px; }
.insignia--1 svg { color: var(--rojo); }
.insignia--2 { right: -16px; top: 22px; animation-delay: -3s; }
@keyframes flotar-suave { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.portada > .foto { position: absolute; inset: 0; background: #CFE3F0; }
.portada > .foto .foto__marca { justify-content: flex-start; padding-left: 4%; }
.portada > .foto .foto__marca svg { width: min(34%, 380px); }
.portada__fondo { overflow: hidden; }
.cruz { position: absolute; color: rgba(255, 255, 255, .72); display: block; }
.cruz svg { width: 100%; height: auto; display: block; }
.cruz--1 { width: min(30vw, 360px); right: -4%; bottom: -8%; animation: flotar 9s ease-in-out infinite; }
.cruz--2 { width: min(10vw, 110px); left: 38%; top: 8%; color: rgba(255, 255, 255, .5); animation: flotar 7s ease-in-out -2s infinite; }
.cruz--3 { width: min(14vw, 150px); left: -3%; bottom: 6%; color: rgba(50, 188, 221, .28); animation: flotar 11s ease-in-out -4s infinite; }
@keyframes flotar { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-18px) rotate(6deg); } }
.foto--lento img { animation: acercar 22s ease-in-out infinite alternate; }
@keyframes acercar { from { transform: scale(1); } to { transform: scale(1.08); } }
.portada__contenido { position: relative; display: flex; justify-content: flex-end; padding-block: clamp(48px, 9vw, 120px) clamp(104px, 12vw, 150px); }
.portada__tarjeta {
  flex: 0 1 600px; min-width: 0; padding: clamp(26px, 4vw, 44px); border-radius: 24px;
  background: rgba(255, 255, 255, .93); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  box-shadow: 0 20px 50px rgba(22, 62, 106, .12);
}
.portada__etiqueta { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--blanco); font-weight: 700; font-size: 14px; color: var(--azul-hondo); box-shadow: 0 4px 14px rgba(22, 62, 106, .08); }
.portada h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 900; }
.rotador { display: grid; margin-top: 4px; }
.rotador__palabra {
  grid-area: 1 / 1; color: var(--azul);
  background: linear-gradient(transparent 64%, #C4ECF6 64%, #C4ECF6 92%, transparent 92%);
  justify-self: start; align-self: center; padding-inline: 4px 6px; margin-left: -4px; white-space: nowrap;
  opacity: 0; transform: translateY(60%); transition: opacity .5s ease, transform .55s cubic-bezier(.2,.8,.2,1);
}
.rotador__palabra.activa { opacity: 1; transform: none; }
.rotador__palabra.sale { opacity: 0; transform: translateY(-60%); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.portada__nota { font-weight: 700; font-size: 15px; color: var(--azul-hondo); }
.portada__nota svg { display: inline; vertical-align: -3px; margin-right: 6px; }
.entra { animation: entrar .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0ms); }
@keyframes entrar { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.portada__texto { font-size: clamp(17px, 1.6vw, 19px); color: #3F4A56; max-width: 32em; }
.portada .botones { justify-content: center; width: 100%; }
.portada .botones .boton { flex: 1 1 170px; max-width: 230px; white-space: nowrap; padding-inline: 18px; }
.portada .botones .boton--wsp { flex: 1.5 1 250px; max-width: 310px; }

/* Franja de 3 */
.franja { position: relative; margin-top: clamp(-80px, -7vw, -56px); }
.franja__fila { display: flex; flex-wrap: wrap; border-radius: var(--radio); overflow: hidden; box-shadow: 0 16px 36px rgba(22, 62, 106, .18); }
.franja__item { flex: 1 1 260px; display: flex; gap: 14px; align-items: flex-start; padding: 24px 26px; color: var(--blanco); }
.franja__item:nth-child(1) { background: var(--azul); }
.franja__item:nth-child(2) { background: var(--azul-hondo); }
.franja__item:nth-child(3) { background: #19788F; }
.franja__item strong { display: block; font-size: 18px; }
.franja__item span { font-size: 15px; color: #E3EEF8; }
.franja__item svg { transition: transform .3s ease; }
.franja__item:hover svg { transform: scale(1.15) rotate(-6deg); }

/* Servicios */
.servicios { display: flex; flex-direction: column; gap: 32px; }
.tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.tarjeta { border-radius: 22px; overflow: hidden; background: var(--blanco); border: 1px solid var(--linea); display: flex; flex-direction: column; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease; }
.tarjeta:hover { transform: translateY(-8px); box-shadow: 0 24px 44px rgba(22, 62, 106, .16); border-color: #BFDDEE; }
.tarjeta .foto img, .tarjeta .foto__marca svg { transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.tarjeta:hover .foto img { transform: scale(1.07); }
.tarjeta:hover .foto__marca svg { transform: scale(1.12) rotate(8deg); }
.tarjeta__enlace { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; text-decoration: none; color: var(--azul); min-height: 40px; }
.tarjeta__enlace svg { transition: transform .3s ease; }
.tarjeta:hover .tarjeta__enlace svg, .tarjeta__enlace:focus-visible svg { transform: translateX(6px); }
.tarjeta--destacada { border: 2px solid var(--celeste); }
.tarjeta .foto { aspect-ratio: 4 / 3; max-height: 260px; width: 100%; }
.tarjeta__sello { position: absolute; top: 14px; right: 14px; z-index: 1; padding: 5px 11px; border-radius: 999px; background: var(--rojo); color: var(--blanco); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tarjeta__cuerpo { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.tarjeta h3 { font-size: 22px; font-weight: 800; }
.tarjeta p { font-size: 15.5px; color: var(--texto-suave); }
.mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.mini__item { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px; background: var(--niebla); transition: background .3s ease, transform .3s ease; }
.mini__item:hover { background: var(--azul); transform: translateY(-3px); }
.mini__item:hover strong, .mini__item:hover span { color: var(--blanco); }
.mini__item .icono-caja { transition: transform .3s ease; }
.mini__item:hover .icono-caja { transform: rotate(-8deg) scale(1.08); }
.mini__item strong { display: block; color: var(--azul-hondo); }
.mini__item span { font-size: 14px; color: var(--texto-suave); }
.icono-caja { flex: 0 0 44px; height: 44px; border-radius: 12px; background: var(--blanco); color: var(--azul); display: flex; align-items: center; justify-content: center; }

/* Laboratorio */
.lab { background: var(--azul-hondo); color: var(--blanco); display: flex; flex-wrap: wrap; }
.lab > .foto { flex: 1 1 440px; min-height: 460px; background: #2A5F96; }
.lab > .foto img { object-position: 50% 30%; }
.lab > .foto .foto__marca { color: rgba(255, 255, 255, .25); }
.lab__texto { flex: 1 1 440px; min-width: 0; padding: clamp(44px, 6vw, 84px) clamp(20px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.lab h2 { color: var(--blanco); }
.lab p { font-size: 18px; color: #D9E8F3; max-width: 32em; }
.cifras { display: flex; flex-wrap: wrap; gap: 12px; }
.cifra { flex: 1 1 130px; padding: 16px 18px; border-radius: 16px; background: #24598F; border: 1px solid #3A6FA6; transition: transform .3s ease, background .3s ease; }
.cifra:hover { transform: translateY(-3px); background: #2A6399; }
.cifra strong { display: block; font-size: 36px; font-weight: 900; line-height: 1; color: var(--celeste-claro); font-variant-numeric: tabular-nums; }
.cifra span { font-size: 14px; color: #D9E8F3; }
.lab .boton { align-self: flex-start; }

/* Cinta de exámenes */
.cinta { background: var(--celeste-suave); border-block: 1px solid #CFE7F2; overflow: hidden; padding-block: 16px; }
.cinta__pista { display: flex; width: max-content; animation: cinta 40s linear infinite; }
.cinta:hover .cinta__pista { animation-play-state: paused; }
.cinta__fila { display: flex; gap: 14px; margin: 0; padding: 0 14px 0 0; list-style: none; }
.cinta__fila li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 8px 16px; border-radius: 999px; background: var(--blanco); color: var(--azul-hondo); font-weight: 700; font-size: 15px; border: 1px solid #D3E8F2; }
.cinta__fila li svg { color: var(--celeste); }
@keyframes cinta { to { transform: translateX(-50%); } }

/* Preguntas frecuentes */
.preguntas { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.preguntas > .encabezado { flex: 1 1 300px; gap: 14px; }
.preguntas__lista { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pregunta { border: 1px solid var(--linea); border-radius: 16px; background: var(--blanco); transition: border-color .25s ease, box-shadow .25s ease; }
.pregunta[open] { border-color: #BFDDEE; box-shadow: 0 10px 24px rgba(22, 62, 106, .08); }
.pregunta summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 800; font-size: 17px; color: var(--azul-hondo); min-height: 44px; }
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary:hover { color: var(--azul); }
.pregunta__signo { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--celeste-suave); position: relative; transition: transform .3s ease, background .3s ease; }
.pregunta__signo::before, .pregunta__signo::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--azul); border-radius: 2px; transform: translate(-50%, -50%); }
.pregunta__signo::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s ease; }
.pregunta[open] .pregunta__signo { background: var(--azul); transform: rotate(180deg); }
.pregunta[open] .pregunta__signo::before, .pregunta[open] .pregunta__signo::after { background: var(--blanco); }
.pregunta[open] .pregunta__signo::after { transform: translate(-50%, -50%) rotate(0deg); }
.pregunta p { padding: 0 20px 18px; color: #48535F; }

/* Aparición suave al bajar (solo si el navegador puede; sin JavaScript todo se ve normal) */
.anim [data-revelar] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease var(--retraso, 0ms), transform .8s cubic-bezier(.2,.8,.2,1) var(--retraso, 0ms); }
.anim [data-revelar].visible { opacity: 1; transform: none; }
.anim .tarjeta[data-revelar].visible:hover, .anim .persona[data-revelar].visible:hover { transition-delay: 0ms; }

/* A domicilio */
.dos--invertido { flex-direction: row; }
.domicilio__media { flex: 1 1 420px; min-width: 0; position: relative; display: flex; }
.domicilio__media .foto { flex: 1; min-height: 380px; border-radius: 26px; }
.insignia--zona { left: 18px; bottom: 18px; animation: none; }
.domicilio__media .foto__etiqueta { top: 14px; bottom: auto; }
.insignia--zona svg { color: var(--rojo); }
.pasos { list-style: none; margin: 0; padding: 0; counter-reset: paso; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.pasos li { counter-increment: paso; position: relative; padding: 14px 14px 14px 56px; border-radius: 16px; background: var(--niebla); border: 1px solid var(--linea); transition: transform .3s ease, border-color .3s ease; }
.seccion--niebla .pasos li { background: var(--blanco); }
.pasos li:hover { transform: translateY(-3px); border-color: #BFDDEE; }
.pasos li::before { content: counter(paso); position: absolute; left: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--azul); color: var(--blanco); font-weight: 900; display: flex; align-items: center; justify-content: center; }
.pasos strong { display: block; color: var(--azul-hondo); }
.pasos span { font-size: 14px; line-height: 1.45; color: var(--texto-suave); display: block; }

/* Resultados con QR */
.chip-pronto { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 5px 12px; border-radius: 999px; background: var(--rojo); color: var(--blanco); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pasos-iconos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-weight: 700; color: var(--azul-hondo); }
.pasos-iconos li { display: flex; align-items: center; gap: 14px; }
.nota-suave { display: inline-flex; align-items: center; gap: 8px; font-size: 15px !important; color: var(--texto-suave) !important; }
.telefono { flex: 1 1 320px; display: flex; justify-content: center; }
.telefono__pantalla { width: min(100%, 290px); padding: 26px 22px; border-radius: 38px; background: var(--blanco); border: 10px solid #1E2A3A; box-shadow: 0 30px 60px rgba(22, 62, 106, .22); display: flex; flex-direction: column; align-items: center; gap: 14px; transition: transform .4s ease; }
.telefono:hover .telefono__pantalla { transform: rotate(-2deg) translateY(-6px); }
.telefono__logo { width: 120px; height: auto; }
.telefono__titulo { font-weight: 900; color: var(--azul-hondo); font-size: 18px; }
.telefono__pdf { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--texto-suave); padding: 6px 10px; border-radius: 8px; background: var(--niebla); }
.lab > .foto img { object-position: 60% 30%; }
.telefono__qr { position: relative; width: 150px; height: 150px; padding: 10px; border-radius: 14px; background: var(--celeste-suave); color: var(--azul-hondo); overflow: hidden; }
.qr { width: 100%; height: 100%; display: block; }
.telefono__escaneo { position: absolute; left: 6px; right: 6px; height: 3px; top: 10px; background: var(--rojo); border-radius: 3px; box-shadow: 0 0 12px var(--rojo); animation: escanear 2.6s ease-in-out infinite; }
@keyframes escanear { 0%, 100% { top: 10px; } 50% { top: calc(100% - 13px); } }
.telefono__fila { width: 100%; display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--niebla); font-size: 13.5px; color: var(--tinta); }
.telefono__fila b { color: var(--verde-wsp); }
.telefono__boton { width: 100%; text-align: center; padding: 12px; border-radius: 12px; background: var(--azul); color: var(--blanco); font-weight: 800; font-size: 14px; }

/* Staff */
.seccion--compacta { padding-block: clamp(56px, 6vw, 80px); }
.staff { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.staff__cabecera { display: flex; align-items: center; gap: 10px; }
.staff__cabecera h2 { font-size: 22px; font-weight: 900; }
.staff__lista { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.staff__lista li { display: flex; flex-direction: column; padding: 12px 18px; border-radius: 14px; background: var(--blanco); border: 1px solid var(--linea); transition: transform .3s ease, border-color .3s ease; }
.staff__lista li:hover { transform: translateY(-3px); border-color: #BFDDEE; }
.staff__lista strong { color: var(--azul-hondo); font-size: 15.5px; }
.staff__lista span { font-size: 13.5px; color: var(--texto-suave); }
.staff__invitacion { font-size: 14.5px; color: var(--texto-suave); }

/* Atención completa (recorrido) */
.atencion { display: flex; flex-direction: column; gap: 36px; }
.atencion__texto { font-size: 18px; color: #48535F; max-width: 36em; }
.ruta { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ruta::before { content: ""; position: absolute; top: 44px; left: 12%; right: 12%; height: 3px; background: repeating-linear-gradient(90deg, var(--celeste) 0 14px, transparent 14px 26px); background-size: 26px 3px; animation: avanzar 1.1s linear infinite; }
@keyframes avanzar { to { background-position: 26px 0; } }
.ruta__paso { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 0 8px; }
.ruta__icono { position: relative; width: 88px; height: 88px; border-radius: 50%; background: var(--blanco); color: var(--azul); border: 3px solid var(--celeste); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(22, 62, 106, .12); transition: transform .35s ease, background .35s ease, color .35s ease; margin-bottom: 6px; }
.ruta__paso:hover .ruta__icono { transform: translateY(-6px) scale(1.05); background: var(--azul); color: var(--blanco); }
.ruta__num { position: absolute; top: -4px; right: -4px; width: 30px; height: 30px; border-radius: 50%; background: var(--rojo); color: var(--blanco); font-weight: 900; font-size: 14px; display: flex; align-items: center; justify-content: center; border: 3px solid var(--blanco); }
.ruta__paso > strong { font-size: 18px; color: var(--azul-hondo); }
.ruta__paso > span { font-size: 15px; color: var(--texto-suave); max-width: 22em; }
@media (max-width: 760px) {
  .ruta { grid-template-columns: 1fr; gap: 22px; }
  .ruta::before { top: 20px; bottom: 20px; left: 43px; right: auto; width: 3px; height: auto; background: repeating-linear-gradient(180deg, var(--celeste) 0 14px, transparent 14px 26px); background-size: 3px 26px; animation-name: bajar; }
  .ruta__paso { flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; column-gap: 16px; row-gap: 2px; padding: 0; }
  .ruta__icono { width: 88px; height: 88px; margin: 0; flex: 0 0 88px; }
  .ruta__paso > strong, .ruta__paso > span { flex: 1 1 calc(100% - 104px); }
  .ruta__paso > span { margin-left: 104px; margin-top: -26px; }
}
@keyframes bajar { to { background-position: 0 26px; } }

/* Croquis */
.croquis { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--linea); background: var(--blanco); }
.croquis a { display: block; overflow: hidden; }
.croquis img { transition: transform .5s ease; width: 100%; }
.croquis a:hover img { transform: scale(1.04); }
.croquis figcaption { padding: 10px 14px; font-size: 14px; font-weight: 700; color: var(--azul-hondo); }

/* Dos columnas */
.dos { display: flex; flex-wrap: wrap; align-items: stretch; gap: clamp(32px, 4vw, 56px); }
.dos__texto { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.dos__texto .titulo-2 { font-size: clamp(28px, 3.3vw, 40px); }
.dos__texto > p { font-size: 18px; color: #48535F; max-width: 34em; }
.dos > .foto { flex: 1 1 420px; min-height: 380px; border-radius: 26px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-weight: 600; color: #2F5F93; }
.checks li { display: flex; align-items: center; gap: 10px; }

/* Profesionales */
.equipo { display: flex; flex-direction: column; gap: 32px; }
.persona { border-radius: 22px; overflow: hidden; background: var(--blanco); border: 1px solid var(--linea); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease; }
.persona:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(22, 62, 106, .14); }
.persona .foto img, .persona__iniciales { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.persona:hover .foto img { transform: scale(1.06); }
.persona:hover .persona__iniciales { transform: scale(1.1); }
.persona .foto { aspect-ratio: 1 / 1; max-height: 300px; width: 100%; display: flex; align-items: center; justify-content: center; }
.persona__iniciales { width: 96px; height: 96px; border-radius: 50%; background: var(--azul); color: var(--blanco); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 900; }
.persona__datos { padding: 20px 22px; }
.persona__datos strong { display: block; font-size: 19px; color: var(--azul-hondo); }
.persona__datos span { font-size: 15px; color: var(--texto-suave); }

/* Reseñas */
.resenas { display: flex; flex-direction: column; gap: 32px; }
.resenas__cabecera { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.resenas__cabecera .encabezado { flex: 1 1 420px; }
.promedio { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 18px; background: var(--niebla); border: 1px solid var(--linea); }
.promedio strong { font-size: 48px; font-weight: 900; line-height: 1; color: var(--azul-hondo); font-variant-numeric: tabular-nums; }
.promedio span { font-size: 14px; color: var(--texto-suave); }
.estrellas { display: flex; gap: 2px; color: var(--estrella); }
.resena { padding: 26px; border-radius: 20px; background: var(--blanco); border: 1px solid var(--linea); box-shadow: 0 10px 28px rgba(29, 78, 133, .07); display: flex; flex-direction: column; gap: 14px; }
.resena { transition: transform .35s ease, box-shadow .35s ease; }
.resena:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(29, 78, 133, .14); }
.resena p { font-size: 16px; color: #3F4A56; }
.resenas { align-items: stretch; }
.resena footer { display: flex; align-items: center; gap: 12px; }
.resena__inicial { width: 40px; height: 40px; border-radius: 50%; background: var(--celeste-suave); color: var(--azul); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.resena footer strong { display: block; font-size: 15px; color: var(--azul-hondo); }
.resena footer span { font-size: 13.5px; color: #66717D; }

/* Reseñas: estado inicial, sin reseñas reales todavía */
.resenas-vacias { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 4vw, 56px); }
.resenas-vacias > .encabezado { flex: 1 1 420px; gap: 14px; }
.resenas-vacias__texto { font-size: 18px; color: #48535F; max-width: 32em; }
.resenas-vacias__tarjeta { flex: 1 1 380px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: clamp(28px, 4vw, 40px); border-radius: 24px; background: var(--blanco); border: 1px solid var(--linea); box-shadow: 0 16px 36px rgba(22, 62, 106, .08); transition: transform .35s ease, box-shadow .35s ease; }
.resenas-vacias__tarjeta:hover { transform: translateY(-6px); box-shadow: 0 24px 44px rgba(22, 62, 106, .14); }
.resenas-vacias__tarjeta strong { font-size: 22px; font-weight: 900; color: var(--azul-hondo); }
.resenas-vacias__tarjeta span { font-size: 15px; color: var(--texto-suave); max-width: 30em; }
.resenas-vacias__tarjeta .boton { margin-top: 6px; }
.estrellas--vacias { gap: 6px; color: #F2C14E; }
.estrellas--vacias svg { animation: brillar 2.4s ease-in-out infinite; }
.estrellas--vacias svg:nth-child(2) { animation-delay: .15s; } .estrellas--vacias svg:nth-child(3) { animation-delay: .3s; }
.estrellas--vacias svg:nth-child(4) { animation-delay: .45s; } .estrellas--vacias svg:nth-child(5) { animation-delay: .6s; }
@keyframes brillar { 0%, 100% { transform: scale(1); opacity: .55; } 50% { transform: scale(1.15); opacity: 1; } }

/* Ubicación */
.ubicacion { display: flex; flex-wrap: wrap; align-items: stretch; gap: clamp(32px, 4vw, 56px); }
.ubicacion__datos { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.dato { display: flex; gap: 14px; align-items: flex-start; }
.dato strong { display: block; font-size: 17px; color: var(--azul-hondo); }
.dato span, .dato div > div { font-size: 15px; color: var(--texto-suave); }
.dato__tels { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 16px; font-weight: 600; }
.ubicacion__mapa { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.pestanas { display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px; border-radius: 999px; background: var(--blanco); border: 1px solid var(--linea); }
.pestanas button { border: 0; cursor: pointer; min-height: 40px; padding: 0 18px; border-radius: 999px; background: transparent; color: var(--azul-hondo); font: inherit; font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; transition: background .2s ease, color .2s ease; }
.pestanas button[aria-selected="true"] { background: var(--azul); color: var(--blanco); }
.paneles { flex: 1; display: flex; min-height: 400px; }
.panel { flex: 1; display: flex; border-radius: 22px; overflow: hidden; border: 1px solid #C9DDEA; background: #EEF4F8; }
.panel[hidden] { display: none; }
.panel .mapa, .panel .mapa-enlace { flex: 1; min-height: 100%; border-radius: 0; border: 0; }
.panel--croquis a { flex: 1; display: flex; align-items: center; justify-content: center; }
.panel--croquis img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; }
.panel--croquis a:hover img { transform: scale(1.03); }
.mapa { width: 100%; min-height: 380px; border: 0; border-radius: 22px; background: #DCE9F2; }
.mapa-enlace { min-height: 360px; border-radius: 22px; background: #DCE9F2; border: 1px solid #C9DDEA; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; text-decoration: none; }
.mapa-enlace strong { font-size: 18px; color: var(--azul-hondo); }
.mapa-enlace span { font-size: 14.5px; color: var(--texto-suave); max-width: 340px; }

/* Pagos */
.pagos { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; padding: clamp(22px, 3vw, 32px); border-radius: 24px; background: var(--blanco); border: 1px solid var(--linea); box-shadow: 0 12px 30px rgba(22, 62, 106, .06); }
.pagos__metodos { flex: 1 1 300px; display: flex; flex-direction: column; gap: 10px; }
.pastillas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.pastilla { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--niebla); border: 1px solid var(--linea); font-weight: 800; color: var(--azul-hondo); }
.alerta { flex: 1 1 420px; display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: 18px; background: #FDEDEC; border: 1px solid #F2B8B4; }
.alerta strong { display: block; font-size: 18px; color: #8E1B12; }
.alerta > div { display: flex; flex-direction: column; gap: 4px; }
.alerta span { font-size: 15px; color: #6E2A24; }

/* Pie */
.pie { background: var(--azul-noche); color: var(--blanco); padding-block: clamp(48px, 7vw, 72px) 28px; }
.pie a { color: var(--blanco); }
.pie__columnas { display: flex; flex-wrap: wrap; gap: 36px 48px; }
.pie__col { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: #D6E6F2; }
.pie__col--marca { flex-basis: 260px; gap: 16px; }
.pie__col--marca img { height: 76px; width: auto; align-self: flex-start; }
.pie__col--empresa { flex-basis: 300px; }
.pie__titulo { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--celeste-claro); }
.pie__titulo + * { margin-top: 2px; }
.pie__fuerte { color: var(--blanco); font-weight: 700; }
.pie__fila { display: flex; flex-wrap: wrap; gap: 4px 16px; font-weight: 600; }
.pie__base { margin-top: 36px; border-top: 1px solid #2F5A87; padding-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; font-size: 14px; color: #BFD5E6; }
.pie__base a { color: #D6E6F2; padding-block: 8px; }
.pie__base nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.pie__acceso { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.pie .boton--blanco { align-self: flex-start; min-height: 46px; border-radius: 999px; font-size: 15px; color: var(--azul-noche); }

/* Selector de número de WhatsApp (laboratorio / citas) */
.elegir { position: absolute; z-index: 20; width: min(310px, calc(100vw - 32px)); background: var(--blanco); border-radius: 16px; border: 1px solid var(--linea); box-shadow: 0 18px 40px rgba(22, 62, 106, .22); padding: 8px; display: flex; flex-direction: column; gap: 2px; animation: entrar .22s ease both; text-align: left; }
.elegir[hidden] { display: none; }
.elegir__titulo { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--texto-suave); padding: 8px 10px 4px; }
.elegir a, .pie .elegir a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--azul-hondo); white-space: normal; }
.elegir a:hover { background: var(--niebla); }
.elegir a svg { color: var(--azul); flex: 0 0 auto; }
.elegir strong { display: block; font-size: 15px; font-weight: 800; }
.elegir small { display: block; font-size: 12.5px; color: var(--texto-suave); font-weight: 500; }
.menu__escribenos, .pie__escribenos, .preguntas__escribenos { position: relative; display: inline-flex; align-self: flex-start; }
.menu__movil { position: relative; }
.elegir--menu { top: calc(100% + 10px); right: 0; }
.elegir--arriba { bottom: calc(100% + 10px); left: 0; }
.preguntas__escribenos .elegir { top: calc(100% + 10px); left: 0; }
.elegir--flotante { position: fixed; right: 16px; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); z-index: 7; }
.tel-etiqueta { font-weight: 600; opacity: .72; }
.tel-bloque { display: inline-flex; flex-direction: column; gap: 1px; text-decoration: none; font-size: 15.5px; font-weight: 700; line-height: 1.25; color: var(--azul-hondo); }
.tel-bloque .tel-etiqueta { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--azul); opacity: 1; }
.tel-bloque:hover { color: var(--azul); }
.dato__tels { gap: 8px 28px; margin-top: 4px; }
.pie__fila--tels { gap: 10px 28px; }
.pie .tel-bloque { color: var(--blanco); }
.pie .tel-bloque .tel-etiqueta { color: var(--celeste-claro); }
.pie .tel-bloque:hover { color: var(--celeste-claro); }
.js .menu--abierto .menu__escribenos { display: flex; align-self: stretch; }
.js .menu--abierto .menu__escribenos .boton { flex: 1; }

/* Botón flotante de WhatsApp (celular) */
.flotante {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 6;
  width: 58px; height: 58px; border-radius: 50%; background: var(--verde-wsp); color: var(--blanco);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}
.flotante:hover { color: var(--blanco); }
.flotante::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--verde-wsp); animation: latido 2.4s ease-out infinite; }
@keyframes latido { from { transform: scale(1); opacity: .7; } to { transform: scale(1.7); opacity: 0; } }
.flotante__texto { position: absolute; right: 70px; white-space: nowrap; background: var(--blanco); color: var(--azul-hondo); font-weight: 800; font-size: 14px; padding: 8px 14px; border-radius: 999px; box-shadow: 0 8px 20px rgba(0, 0, 0, .14); opacity: 0; transform: translateX(8px); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.flotante:hover .flotante__texto, .flotante:focus-visible .flotante__texto { opacity: 1; transform: none; }

/* Página de texto (privacidad) */
.legal { max-width: 760px; margin: 0 auto; padding: var(--seccion) var(--gutter); display: flex; flex-direction: column; gap: 18px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 900; letter-spacing: -0.02em; }
.legal h2 { font-size: 21px; font-weight: 800; margin-top: 14px; }
.legal p, .legal li { color: #48535F; }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 820px) { :root { --alto-menu: 78px; } }
@media (max-width: 640px) {
  .portada__grid { padding-top: 28px; gap: 36px; }
  .portada__bloque { align-items: center; text-align: center; }
  .rotador__palabra { justify-self: center; margin-left: 0; }
  .portada__bloque .botones .boton { flex: 1 1 100%; }
  .insignia { font-size: 13px; padding: 10px 12px; max-width: 200px; }
  .insignia--1 { left: -6px; bottom: -18px; }
  .insignia--2 { right: -6px; top: -14px; }
  .domicilio__media .foto { min-height: 280px; }
  .carrusel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 8px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .carrusel::-webkit-scrollbar { display: none; }
  .carrusel > * { flex: 0 0 85%; scroll-snap-align: center; }
  .telefono__pantalla { width: min(100%, 260px); }
  .topbar__item--dir { font-size: 12.5px; }
  .topbar__tels > .topbar__item { display: none; }
  .topbar__tels { font-size: 12.5px; gap: 2px 12px; }
  .portada__contenido { justify-content: center; }
  .portada > .foto .foto__marca { display: none; }
  .cruz--1 { right: -14%; bottom: 30%; width: 46vw; }
  .cruz--2 { left: auto; right: 6%; top: 3%; }
  .cruz--3 { display: none; }
  .lab > .foto { min-height: 240px; }
  .dos > .foto { min-height: 260px; }
  .persona .foto { max-height: 200px; }
  .portada .botones .boton { white-space: normal; }
}

