/* =========================================================
   Dra. Cristina Escobedo · Odontología Integral
   Hoja de estilos del sitio
   ========================================================= */

/* ---------- Colores y medidas (cambia aquí para ajustar todo el sitio) ---------- */
:root {
  --cielo: #4fc0e8;          /* azul del logotipo */
  --cielo-suave: #e3f4fc;
  --fondo: #f3fafe;
  --azul: #0b74b0;           /* botones y enlaces */
  --azul-oscuro: #085a8a;
  --tinta: #0b2540;          /* títulos */
  --texto: #46586b;          /* párrafos */
  --linea: #d6e8f2;
  --blanco: #ffffff;
  --whatsapp: #25d366;
  --whatsapp-tinta: #06301a;
  --radio: 28px;
  --radio-chico: 16px;
  --sombra: 0 18px 44px -22px rgba(11, 37, 64, 0.28);
  --sombra-suave: 0 8px 24px -14px rgba(11, 37, 64, 0.22);
  --ancho: 1180px;
  --titulos: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --cuerpo: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--cuerpo);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--texto);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul); }
h1, h2, h3, h4 {
  font-family: var(--titulos);
  color: var(--tinta);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
.acento { color: var(--azul); }
:focus-visible { outline: 3px solid var(--cielo); outline-offset: 3px; border-radius: 6px; }

.contenedor { width: min(100% - 40px, var(--ancho)); margin-inline: auto; }
.seccion { padding: clamp(64px, 9vw, 120px) 0; }
.seccion-fondo { background: var(--fondo); }
.saltar {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--tinta); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.saltar:focus { left: 8px; }

/* ---------- Iconos (dibujados una sola vez aquí) ---------- */
.i {
  display: inline-block; flex: none; width: 1.25em; height: 1.25em;
  background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
          mask: var(--i) center / contain no-repeat;
}
.i-wa { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.030-.967-.273-.099-.471-.148-.670.150-.197.297-.767.966-.940 1.164-.173.199-.347.223-.644.075-.297-.150-1.255-.463-2.390-1.475-.883-.788-1.480-1.761-1.653-2.059-.173-.297-.018-.458.130-.606.134-.133.298-.347.446-.520.149-.174.198-.298.298-.497.099-.198.050-.371-.025-.520-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.500-.669-.510-.173-.008-.371-.010-.570-.010-.198 0-.520.074-.792.372-.272.297-1.040 1.016-1.040 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.200 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.360.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.570-.347m-5.421 7.403h-.004a9.870 9.870 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.860 9.860 0 01-1.510-5.260c.001-5.450 4.436-9.884 9.888-9.884 2.640 0 5.122 1.030 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.450-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.050 0C5.495 0 .160 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.890-5.335 11.893-11.893a11.821 11.821 0 00-3.480-8.413z'/%3E%3C/svg%3E"); }
.i-fb { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.5 21v-7.5H16l.4-3h-2.900V8.600c0-.9.3-1.500 1.600-1.500h1.400V4.400c-.3 0-1.200-.1-2.200-.1-2.200 0-3.700 1.300-3.700 3.800v2.400H8v3h2.600V21h2.900Z'/%3E%3C/svg%3E"); }
.i-ig { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.4' cy='6.6' r='.7' fill='black'/%3E%3C/svg%3E"); }
.i-pin { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.i-reloj { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.i-check { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.i-flecha { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.i-menu { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E"); }
.i-cerrar { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E"); }
.i-brillo { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4l1.9 5.1L18 11l-5.1 1.9L11 18l-1.9-5.1L4 11l5.1-1.9L11 4Z'/%3E%3Cpath d='M19 16v4M17 18h4M19 3v3M17.5 4.5h3'/%3E%3C/svg%3E"); }
.i-escudo { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v6c0 4.500-3 7.600-7 9-4-1.400-7-4.500-7-9V6l7-3Z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.i-corazon { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.400-7-10a4 4 0 0 1 7-2.600A4 4 0 0 1 19 10c0 5.600-7 10-7 10Z'/%3E%3C/svg%3E"); }
.i-lupa { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M20 20l-4.500-4.500'/%3E%3C/svg%3E"); }
.i-gota { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 3s6 6.200 6 10.500a6 6 0 0 1-12 0C6 9.200 12 3 12 3Z'/%3E%3C/svg%3E"); }
.i-diente { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.500 3C5 3 4 5 4 7.500c0 2 .8 3.400 1.300 5.500.5 2.300.7 8 2.700 8 1.600 0 1.500-5 4-5s2.400 5 4 5c2 0 2.200-5.700 2.700-8 .5-2.100 1.300-3.500 1.300-5.500C20 5 19 3 16.500 3c-1.800 0-2.800 1-4.500 1S9.300 3 7.500 3Z'/%3E%3C/svg%3E"); }
.i-capas { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l9 5-9 5-9-5 9-5Z'/%3E%3Cpath d='M3 13l9 5 9-5'/%3E%3C/svg%3E"); }
.i-mas { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.i-birrete { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9l10-5 10 5-10 5L2 9Z'/%3E%3Cpath d='M6 11.500V16c0 1.500 2.700 3 6 3s6-1.500 6-3v-4.500'/%3E%3C/svg%3E"); }
.i-cedula { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='11' r='2'/%3E%3Cpath d='M6 16c.6-1.500 1.700-2 3-2s2.400.5 3 2M15 10h3M15 14h3'/%3E%3C/svg%3E"); }
.i-calendario { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--titulos); font-size: 1.02rem; font-weight: 500; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primario { background: var(--azul); color: #fff; box-shadow: 0 12px 24px -14px var(--azul); }
.btn-primario:hover { background: var(--azul-oscuro); }
.btn-wa { background: var(--whatsapp); color: var(--whatsapp-tinta); box-shadow: 0 12px 24px -14px #128c4a; }
.btn-wa:hover { background: #1fc45c; }
.btn-claro { background: #fff; color: var(--tinta); }
.btn-borde { background: transparent; color: var(--tinta); border-color: var(--linea); }
.btn-borde:hover { border-color: var(--cielo); }
.btn-ancho { width: 100%; }
.enlace-flecha {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--titulos); font-weight: 500;
  color: var(--azul); text-decoration: none;
}
.enlace-flecha .i { transition: transform 0.2s ease; }
.enlace-flecha:hover .i { transform: translateX(4px); }

/* ---------- Cabecera (menú flotante) ---------- */
.cabecera { position: sticky; top: 14px; z-index: 100; padding: 0 16px; height: 0; }
.nav {
  position: relative;
  width: min(100%, 1040px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 9px 9px 9px 20px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 10px 34px -18px rgba(11, 37, 64, 0.35), 0 0 0 1px rgba(11, 37, 64, 0.05);
}
.marca { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--tinta); }
.marca img { width: 34px; height: auto; }
.marca span { font-family: var(--titulos); font-weight: 600; font-size: 1.04rem; line-height: 1.1; }
.marca small { display: block; font-family: var(--cuerpo); font-weight: 400; font-size: 0.74rem; letter-spacing: 0.04em; color: var(--azul); margin-top: 3px; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a:not(.btn) {
  padding: 10px 14px; border-radius: 999px; font-family: var(--titulos); font-size: 0.98rem;
  color: var(--tinta); text-decoration: none; transition: background 0.2s ease, color 0.2s ease;
}
.nav-menu a:not(.btn):hover { background: var(--cielo-suave); }
.nav-menu a[aria-current="page"] { color: var(--azul); font-weight: 600; }
.nav-menu .btn { padding: 13px 24px; margin-left: 8px; }
.nav-boton {
  display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--cielo-suave); color: var(--tinta); align-items: center; justify-content: center; font-size: 1.1rem;
}

/* ---------- Portada ---------- */
.portada {
  position: relative; overflow: hidden;
  padding: clamp(130px, 15vw, 180px) 0 clamp(56px, 8vw, 100px);
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(79, 192, 232, 0.34), transparent 62%),
    radial-gradient(700px 480px at -5% 100%, rgba(79, 192, 232, 0.18), transparent 60%),
    linear-gradient(180deg, #eef9fe 0%, #f8fcfe 100%);
}
.portada-rejilla { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.antetitulo {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px;
  padding: 8px 16px; border-radius: 999px; background: #fff; color: var(--azul);
  font-family: var(--titulos); font-size: 0.9rem; font-weight: 500; box-shadow: var(--sombra-suave);
}
.portada p.entrada { font-size: 1.16rem; max-width: 34em; margin-bottom: 30px; }
.botones { display: flex; flex-wrap: wrap; gap: 12px; }
.sellos { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; font-size: 0.93rem; color: var(--tinta); }
.sellos li { display: flex; align-items: center; gap: 8px; }
.sellos .i { color: var(--azul); }
.portada-foto { position: relative; }
.marco {
  position: relative; overflow: hidden; border-radius: 36px; aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #8fd8f3, var(--cielo) 55%, #2aa5d6);
  box-shadow: var(--sombra);
}
.marco img.foto { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.foto-pendiente {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 16px;
  padding: 24px; text-align: center; color: #fff; font-family: var(--titulos); font-size: 0.98rem;
}
.foto-pendiente img { width: 42%; max-width: 190px; opacity: 0.95; }
.foto-pendiente span { background: rgba(11, 37, 64, 0.32); padding: 7px 14px; border-radius: 999px; }
.flotante {
  position: absolute; display: flex; align-items: center; gap: 12px; max-width: 250px;
  padding: 14px 18px; border-radius: 20px; background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: var(--sombra); font-size: 0.9rem; line-height: 1.35; color: var(--texto);
}
.flotante strong { display: block; font-family: var(--titulos); color: var(--tinta); font-size: 1rem; }
.flotante .burbuja { flex: none; }
.flotante-1 { left: -34px; top: 16%; }
.flotante-2 { right: -18px; bottom: 9%; }
.burbuja {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--cielo-suave); color: var(--azul); font-size: 1.15rem;
}

/* ---------- Encabezado de sección ---------- */
.encabezado { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.encabezado.centro { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.encabezado h2 { margin: 0; max-width: 17em; }
.encabezado p { margin: 12px 0 0; max-width: 27em; }
.encabezado.centro p { max-width: 36em; }
.etiqueta {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  padding: 6px 15px; border-radius: 999px; background: var(--azul); color: #fff;
  font-family: var(--titulos); font-size: 0.86rem; font-weight: 500;
}

/* ---------- Servicios ---------- */
.rejilla-servicios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tarjeta {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 30px 28px 26px; border-radius: var(--radio);
  background: #fff; border: 1px solid var(--linea); color: var(--texto); text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
a.tarjeta:hover { transform: translateY(-6px); box-shadow: var(--sombra); border-color: transparent; }
.tarjeta .burbuja { margin-bottom: 18px; }
.tarjeta h3 { margin-bottom: 4px; }
.tarjeta p { font-size: 0.99rem; margin-bottom: 18px; }
.tarjeta .enlace-flecha { margin-top: auto; }
.tarjeta-destacada { background: linear-gradient(150deg, #1586c4, var(--azul) 60%, #075f93); border-color: transparent; color: #dff2fb; }
.tarjeta-destacada h3, .tarjeta-destacada .enlace-flecha { color: #fff; }
.tarjeta-destacada .burbuja { background: rgba(255, 255, 255, 0.16); color: #fff; }
.insignia {
  position: absolute; top: 24px; right: 24px; padding: 5px 12px; border-radius: 999px;
  background: #fff; color: var(--azul); font-family: var(--titulos); font-size: 0.78rem; font-weight: 600;
}

/* Carrusel de servicios: gira solo, se detiene al tocarlo o pasar el cursor */
.carrusel {
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 12px 0 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.carrusel::-webkit-scrollbar { display: none; }
.carrusel-pista { display: flex; gap: 22px; width: max-content; padding-inline: 22px; }
.carrusel .tarjeta { flex: none; width: 290px; min-height: 400px; padding: 34px 28px 30px; }
.carrusel .tarjeta .burbuja { margin-bottom: 26px; }
.carrusel .tarjeta h3 { font-size: 1.4rem; margin-bottom: 10px; }
.carrusel .tarjeta .insignia { top: 34px; }
@media (max-width: 600px) { .carrusel .tarjeta { width: 258px; min-height: 380px; } }

/* Ventana emergente con el detalle de cada servicio */
html:has(dialog[open]) { overflow: hidden; }
.ventana {
  width: min(100% - 28px, 680px); max-height: min(88vh, 820px); overflow-y: auto; margin: auto;
  padding: clamp(26px, 5vw, 44px); border: 0; border-radius: var(--radio); background: #fff; color: var(--texto);
  box-shadow: 0 40px 90px -30px rgba(11, 37, 64, 0.6);
}
.ventana::backdrop { background: rgba(11, 37, 64, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ventana[open] { animation: ventana-entra 0.28s ease; }
@keyframes ventana-entra { from { opacity: 0; transform: translateY(18px) scale(0.98); } }
.ventana-cerrar {
  position: sticky; top: 0; float: right; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin: -8px -8px 0 12px;
  border: 0; border-radius: 50%; background: var(--cielo-suave); color: var(--tinta); font-size: 1.05rem; cursor: pointer;
}
.ventana-cerrar:hover { background: var(--cielo); color: #fff; }
.ventana .burbuja { width: 60px; height: 60px; font-size: 1.45rem; margin-bottom: 18px; }
.ventana h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
.ventana h3 { font-size: 1.08rem; margin-top: 1.3em; }
.ventana .lista-check { margin: 12px 0 24px; }
.ventana-foto { width: 100%; max-width: 340px; border-radius: 20px; margin: 0 0 24px; }
@media (prefers-reduced-motion: reduce) { .ventana[open] { animation: none; } }

/* Logotipo Philips Zoom (la palabra PHILIPS es el trazo oficial; ZOOM! va en letra Cinzel) */
.logo-zoom { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 5px; width: 156px; margin-bottom: 22px; }
.logo-zoom svg { display: block; width: 100%; height: auto; }
.logo-zoom .zoom-txt { font-family: "Cinzel", Georgia, "Times New Roman", serif; font-weight: 500; font-size: 31px; line-height: 0.95; letter-spacing: 0.03em; color: #10255f; }
.logo-zoom .zoom-txt small { font-size: 0.74em; }

/* ---------- Bloque de dos columnas ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.duo.invertido > :first-child { order: 2; }
.lista-check { display: grid; gap: 12px; margin: 22px 0 30px; }
.lista-check li { display: flex; gap: 12px; align-items: flex-start; color: var(--tinta); }
.lista-check .i { color: var(--azul); margin-top: 0.22em; }
.nota { font-size: 0.86rem; color: #6b7c8d; }

/* ---------- Comparador antes / después ---------- */
.comparador {
  --pos: 50%;
  position: relative; overflow: hidden; border-radius: var(--radio); aspect-ratio: 15 / 7;
  background: var(--cielo-suave); box-shadow: var(--sombra); user-select: none;
}
.comparador img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.comparador-antes { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.comparador .rotulo {
  position: absolute; top: 14px; z-index: 2; padding: 5px 13px; border-radius: 999px;
  background: rgba(11, 37, 64, 0.62); color: #fff; font-family: var(--titulos); font-size: 0.84rem;
}
.rotulo-antes { left: 14px; }
.rotulo-despues { right: 14px; }
.comparador-linea { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; z-index: 2; pointer-events: none; }
.comparador-linea::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--azul); font-size: 1.2rem; font-weight: 700; letter-spacing: 1px;
  box-shadow: 0 6px 18px rgba(11, 37, 64, 0.3);
}
.comparador input {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; touch-action: pan-y;
}
.comparador:focus-within { outline: 3px solid var(--cielo); outline-offset: 3px; }

/* ---------- Sobre la doctora ---------- */
.ficha { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0 30px; }
.ficha div { padding: 18px; border-radius: var(--radio-chico); background: #fff; border: 1px solid var(--linea); }
.seccion:not(.seccion-fondo) .ficha div { background: var(--fondo); border-color: transparent; }
.ficha dt, .ficha .dato-titulo { font-family: var(--titulos); font-weight: 600; color: var(--tinta); font-size: 0.95rem; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.ficha .i { color: var(--azul); }
.ficha dd, .ficha .dato-texto { margin: 0; font-size: 0.93rem; line-height: 1.45; }

/* ---------- Motivos ---------- */
.rejilla-motivos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.motivo { padding: 26px 24px; border-radius: var(--radio); background: #fff; box-shadow: var(--sombra-suave); }
.motivo .burbuja { margin-bottom: 16px; }
.motivo h3 { font-size: 1.14rem; }
.motivo p { font-size: 0.97rem; margin: 0; }

/* ---------- Resultados ---------- */
.galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.galeria figure { margin: 0; }
.galeria img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radio); box-shadow: var(--sombra-suave); }
.galeria figcaption { margin-top: 12px; font-size: 0.93rem; text-align: center; }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 20px; background: #fff; border: 1px solid var(--linea); overflow: hidden; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer;
  padding: 20px 22px; font-family: var(--titulos); font-weight: 500; font-size: 1.08rem; color: var(--tinta); list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--azul); background-color: var(--azul); transition: transform 0.25s ease; }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { padding: 0 22px 22px; margin: 0; }

/* ---------- Cita y contacto ---------- */
.cita { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 22px; align-items: stretch; }
.panel { padding: clamp(24px, 3.4vw, 40px); border-radius: var(--radio); background: var(--fondo); }
.seccion-fondo .panel { background: #fff; box-shadow: var(--sombra-suave); }
.panel-info { display: flex; flex-direction: column; gap: 22px; }
.dato { display: flex; gap: 14px; align-items: flex-start; }
.dato .burbuja { width: 42px; height: 42px; font-size: 1rem; }
.seccion-fondo .dato .burbuja { background: var(--fondo); }
.dato strong { display: block; font-family: var(--titulos); color: var(--tinta); font-weight: 600; }
.dato a { color: var(--azul); text-decoration: none; font-weight: 500; }
.dato a:hover { text-decoration: underline; }
.horario { display: grid; gap: 4px; font-size: 0.97rem; }
.horario div { display: flex; justify-content: space-between; gap: 18px; }
.mapa { flex: 1; min-height: 230px; border: 0; width: 100%; border-radius: 20px; background: var(--cielo-suave); }
.formulario { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.campo { display: grid; gap: 7px; }
.campo.completo { grid-column: 1 / -1; }
.campo label { font-family: var(--titulos); font-weight: 500; color: var(--tinta); font-size: 0.97rem; }
.campo input, .campo select, .campo textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--linea);
  background: #fff; color: var(--tinta); font: inherit; font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.seccion-fondo .campo input, .seccion-fondo .campo select, .seccion-fondo .campo textarea { background: var(--fondo); }
.campo textarea { min-height: 110px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: 0; border-color: var(--azul); box-shadow: 0 0 0 4px rgba(79, 192, 232, 0.28); }
.aviso-form { grid-column: 1 / -1; font-size: 0.86rem; margin: 0; }
.exito {
  grid-column: 1 / -1; display: none; padding: 14px 18px; border-radius: 14px;
  background: #e3f9ec; color: #0b4d28; font-size: 0.96rem;
}
.exito.visible { display: block; }
.exito a { color: #0b4d28; font-weight: 600; }

/* ---------- Franja de llamada ---------- */
.franja {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  padding: clamp(30px, 5vw, 56px); border-radius: 36px; color: #dff2fb;
  background: radial-gradient(520px 300px at 92% 0%, rgba(79, 192, 232, 0.5), transparent 70%), linear-gradient(140deg, #0e7fbe, #075f93);
}
.franja h2 { color: #fff; margin-bottom: 8px; }
.franja p { margin: 0; max-width: 34em; }

/* ---------- Encabezado de páginas internas ---------- */
.portadilla {
  padding: clamp(130px, 15vw, 170px) 0 clamp(44px, 6vw, 72px);
  background: radial-gradient(800px 420px at 90% 0%, rgba(79, 192, 232, 0.3), transparent 62%), linear-gradient(180deg, #eef9fe, #f8fcfe);
}
.portadilla h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 16em; }
.portadilla p { font-size: 1.12rem; max-width: 38em; margin: 0; }
.migas { font-size: 0.9rem; margin-bottom: 18px; }
.migas a { text-decoration: none; }

/* ---------- Página de servicios ---------- */
.servicio { display: grid; grid-template-columns: 76px 1fr; gap: 26px; padding: clamp(26px, 4vw, 44px); border-radius: var(--radio); background: #fff; border: 1px solid var(--linea); }
.servicio + .servicio { margin-top: 20px; }
.servicio .burbuja { width: 76px; height: 76px; font-size: 1.8rem; }
.servicio h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.servicio .columnas { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 30px; align-items: start; }
.servicio .lista-check { margin: 0 0 8px; }
.servicio-destacado { background: var(--fondo); border-color: transparent; }
.indice { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.indice a { padding: 9px 18px; border-radius: 999px; background: #fff; color: var(--tinta); text-decoration: none; font-family: var(--titulos); font-size: 0.95rem; box-shadow: var(--sombra-suave); }
.indice a:hover { color: var(--azul); }

/* ---------- Texto legal ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.4rem; margin-top: 1.8em; }
.legal ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.legal li { margin-bottom: 0.4em; }

/* ---------- Pie de página ---------- */
.pie { background: var(--tinta); color: #b7c9da; padding: clamp(52px, 7vw, 84px) 0 28px; font-size: 0.97rem; }
.pie-rejilla { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.pie .marca { color: #fff; margin-bottom: 16px; }
.pie .marca small { color: var(--cielo); }
.pie h3 { color: #fff; font-size: 1.02rem; margin-bottom: 14px; }
.pie a { color: #b7c9da; text-decoration: none; }
.pie a:hover { color: #fff; }
.pie li { margin-bottom: 9px; }
.redes { display: flex; gap: 10px; margin-top: 18px; }
.redes a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, 0.09); color: #fff; font-size: 1.05rem; transition: background 0.2s ease; }
.redes a:hover { background: var(--azul); }
.pie-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.13); font-size: 0.86rem; }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-flotante {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--whatsapp); color: #fff; font-size: 1.75rem;
  box-shadow: 0 14px 30px -10px rgba(18, 140, 74, 0.7); transition: transform 0.2s ease;
}
.wa-flotante:hover { transform: scale(1.08); }

/* ---------- Animación al aparecer ---------- */
.js .aparece { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .aparece.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .aparece { opacity: 1; transform: none; transition: none; }
  .btn, .tarjeta, .wa-flotante { transition: none; }
}

/* ---------- Modo borrador: resalta lo que falta confirmar ----------
   Para quitarlo, borra la palabra "borrador" de la etiqueta <body> de cada página. */
.borrador .pc { background: #fff3b0; color: #3d3100; outline: 2px dashed #d9aa00; outline-offset: 2px; border-radius: 6px; }
.aviso-borrador { display: none; }
.borrador .aviso-borrador {
  display: block; position: fixed; left: 14px; bottom: 14px; z-index: 95; max-width: min(300px, calc(100% - 100px));
  padding: 9px 14px; border-radius: 12px; background: #fff3b0; color: #3d3100; border: 2px dashed #d9aa00;
  font-size: 0.8rem; line-height: 1.35;
}

/* ---------- Tabletas ---------- */
@media (max-width: 1020px) {
  .rejilla-servicios { grid-template-columns: repeat(2, 1fr); }
  .rejilla-motivos { grid-template-columns: repeat(2, 1fr); }
  .pie-rejilla { grid-template-columns: 1fr 1fr; }
  .flotante-1 { left: -10px; }
  .flotante-2 { right: -8px; }
  .servicio .columnas { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- Celulares ---------- */
@media (max-width: 860px) {
  .nav { padding-left: 16px; }
  .nav-boton { display: inline-flex; }
  .nav-menu {
    display: none; position: absolute; left: 0; right: 0; top: calc(100% + 10px);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 14px; border-radius: 26px;
    background: #fff; box-shadow: var(--sombra);
  }
  .nav-menu.abierto { display: flex; }
  .nav-menu a:not(.btn) { padding: 14px 16px; font-size: 1.05rem; }
  .nav-menu .btn { margin: 8px 0 0; padding: 16px; }
  .portada-rejilla, .duo, .cita { grid-template-columns: 1fr; }
  .duo.invertido > :first-child { order: 0; }
  .portada-foto { max-width: 440px; width: 100%; margin-inline: auto; }
  .marco { aspect-ratio: 1 / 1.05; }
  .flotante-1 { left: -6px; top: 8%; }
  .flotante-2 { right: -6px; bottom: 6%; }
  .encabezado { grid-template-columns: 1fr; }
  .galeria { grid-template-columns: 1fr 1fr; }
  .franja { grid-template-columns: 1fr; }
  .ficha { grid-template-columns: 1fr; }
  .servicio { grid-template-columns: 1fr; gap: 16px; }
  .servicio .burbuja { width: 60px; height: 60px; font-size: 1.4rem; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .contenedor { width: min(100% - 32px, var(--ancho)); }
  .rejilla-servicios, .rejilla-motivos, .formulario, .pie-rejilla { grid-template-columns: 1fr; }
  .galeria { grid-template-columns: 1fr; }
  .botones .btn { width: 100%; }
  .marca span { font-size: 0.96rem; }
  .flotante { max-width: 210px; padding: 11px 14px; font-size: 0.82rem; }
  .flotante strong { font-size: 0.92rem; }
  .flotante .burbuja { width: 38px; height: 38px; font-size: 1rem; }
  .comparador { aspect-ratio: 4 / 3; }
  .wa-flotante { width: 56px; height: 56px; right: 14px; bottom: 14px; }
  .pie { padding-bottom: 92px; }
}

/* ---------- Marca registrada (Philips Zoom®) ---------- */
.registrada { font-style: italic; white-space: nowrap; }

/* ---------- Orden en celular: sellos debajo de la foto; cápsula "Sobre la doctora" arriba de la foto ---------- */
@media (max-width: 860px) {
  .portada-rejilla { gap: 0; }
  .portada-rejilla > div:first-child { display: contents; }
  .portada-rejilla .antetitulo { justify-self: start; }
  .portada-foto { order: 1; margin-top: 36px; }
  .portada-rejilla .sellos { order: 2; margin-top: 28px; }
  #doctora .duo { gap: 0; }
  #doctora .duo > div:last-child { display: contents; }
  #doctora .duo > div:first-child { margin-bottom: 28px; }
  #doctora .etiqueta { order: -1; justify-self: start; }
}
