/* ═══════════════════════════════════════════════════════════
   CENTRO VETERINARIO MERAKI — Hoja de estilos
   ═══════════════════════════════════════════════════════════ */

:root {
  --azul-principal: #01689A;
  --azul-claro: #39ACCF;
  --azul-profundo: #064E72;
  --azul-noche: #072B3D;
  --gris-texto: #5E7180;
  --blanco: #FFFFFF;
  --fondo-suave: #F4FAFC;
  --fondo-tenue: #EDF7FA;
  --texto-oscuro: #123040;
  --linea: #DDECF1;
  --linea-suave: #E9F3F6;
  --ambar: #F4B43A;
  --verde-whatsapp: #25D366;
  --verde-whatsapp-oscuro: #128C7E;

  --sombra-sm: 0 4px 16px rgba(18, 48, 64, .06);
  --sombra: 0 24px 70px rgba(18, 48, 64, .10);
  --sombra-lg: 0 32px 90px rgba(18, 48, 64, .14);

  --radio-grande: 32px;
  --radio-medio: 20px;
  --radio-chico: 14px;
  --header-height: 84px;

  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);

  /* Degradado de opacidad para fundir el borde inferior de la imagen del hero.
     Los pasos intermedios evitan el bandeado que deja un degradado lineal simple. */
  --desvanecido-inferior: linear-gradient(
    to bottom,
    #000 0%, #000 64%,
    rgba(0, 0, 0, .95) 72%,
    rgba(0, 0, 0, .80) 80%,
    rgba(0, 0, 0, .52) 88%,
    rgba(0, 0, 0, .22) 95%,
    transparent 100%
  );

  --fuente: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system,
            BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Base ─────────────────────────────────────────────────── */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--texto-oscuro);
  background: var(--blanco);
  font-family: var(--fuente);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { display: block; }
::selection { color: white; background: var(--azul-principal); }

.container { width: min(1180px, calc(100% - 44px)); margin-inline: auto; }
.section { position: relative; padding: 118px 0; }
.section-anchor { scroll-margin-top: calc(var(--header-height) + 16px); }

.skip-link {
  position: fixed; z-index: 999; top: -70px; left: 16px;
  padding: 12px 18px; color: white; background: var(--azul-principal);
  border-radius: 10px; font-weight: 700; transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 14px; }

/* Barra de progreso de lectura */
.scroll-progress {
  position: fixed; z-index: 120; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--azul-principal), var(--azul-claro));
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .1s linear;
}

/* ── Tipografía ───────────────────────────────────────────── */
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
h1 { max-width: 15ch; margin-bottom: 20px; font-size: clamp(2.6rem, 4.7vw, 4.4rem); }
h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--azul-principal), var(--azul-claro));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
h2 { margin-bottom: 20px; font-size: clamp(1.95rem, 3.7vw, 3.15rem); }
h3 { margin-bottom: 12px; font-size: 1.32rem; }
p { color: var(--gris-texto); }

.eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
  color: var(--azul-principal); font-size: .74rem; font-weight: 800;
  letter-spacing: .15em; line-height: 1.3; text-transform: uppercase;
}
.eyebrow span {
  width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--azul-claro), transparent);
}
.eyebrow-light { color: rgba(255, 255, 255, .8); }
.eyebrow-light span { background: linear-gradient(90deg, rgba(255,255,255,.8), transparent); }

.mini-label {
  display: inline-flex; align-self: flex-start; padding: 7px 13px;
  color: var(--azul-principal); background: var(--fondo-tenue);
  border-radius: 999px; font-size: .67rem; font-weight: 800;
  letter-spacing: .1em; line-height: 1.3; text-transform: uppercase;
}
.mini-label-light { color: white; background: rgba(255, 255, 255, .14); }

.section-heading { margin-bottom: 58px; }
.section-heading h2 { max-width: 20ch; }
.section-heading p { max-width: 56ch; margin-bottom: 0; font-size: 1.04rem; }
.split-heading { display: grid; grid-template-columns: 1.1fr .8fr; align-items: end; gap: 70px; }
.split-heading h2 { margin-bottom: 0; }
.centered { display: grid; justify-items: center; max-width: 740px; margin-inline: auto; text-align: center; }
.centered h2 { max-width: none; }

/* ── Botones ──────────────────────────────────────────────── */
.button {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 9px; min-height: 50px; padding: 13px 22px;
  border: 1px solid transparent; border-radius: 14px; cursor: pointer;
  font-size: .88rem; font-weight: 700; line-height: 1.2; white-space: nowrap;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out),
              background-color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.button svg { width: 19px; height: 19px; fill: currentColor; }
.button:hover { transform: translateY(-3px); }
.button:active { transform: translateY(-1px); }

.button-primary { color: white; background: var(--azul-principal); box-shadow: 0 14px 30px rgba(1, 104, 154, .24); }
.button-primary:hover { background: var(--azul-profundo); box-shadow: 0 20px 40px rgba(1, 104, 154, .32); }
.button-secondary { color: var(--azul-principal); background: white; border-color: #CFE5ED; }
.button-secondary:hover { border-color: var(--azul-claro); box-shadow: 0 14px 30px rgba(18, 48, 64, .09); }
.button-white { color: var(--azul-principal); background: white; box-shadow: 0 16px 34px rgba(0, 0, 0, .13); }
.button-outline-light { color: white; background: transparent; border-color: rgba(255, 255, 255, .38); }
.button-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: white; }
.button-large { min-height: 58px; padding: 16px 26px; border-radius: 16px; font-size: .92rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--azul-principal); font-size: .87rem; font-weight: 800;
}
.text-link span { transition: transform .3s var(--ease-out); }
.text-link:hover span { transform: translateX(5px); }
.text-link-light { color: white; }

:where(.button, .nav-link, .call-button, .faq-item summary, .social-card, .google-button, .rating-display, input, select, textarea, .menu-toggle, .circle-link):focus-visible {
  outline: 3px solid rgba(57, 172, 207, .5); outline-offset: 3px;
}

/* ═══════════ HEADER ═══════════ */
.site-header {
  position: fixed; z-index: 100; top: 0; right: 0; left: 0;
  height: var(--header-height); border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease-out), box-shadow .35s var(--ease-out),
              border-color .35s var(--ease-out), height .35s var(--ease-out);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .88);
  border-color: rgba(18, 48, 64, .07);
  box-shadow: 0 8px 34px rgba(18, 48, 64, .08);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
}
.header-inner {
  display: flex; align-items: center; gap: 22px;
  width: min(1340px, calc(100% - 34px)); height: 100%; margin-inline: auto;
}

.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 11px; }
.brand-logo {
  display: none; width: 152px; max-height: 54px;
  object-fit: contain; object-position: left center;
  transition: transform .35s var(--ease-spring);
}
.brand:hover .brand-logo { transform: scale(1.04); }
.brand.logo-ready .brand-logo { display: block; }
.brand.logo-ready .brand-symbol, .brand.logo-ready .brand-copy { display: none; }
.brand-symbol {
  display: grid; width: 42px; height: 42px; place-items: center;
  color: white; background: linear-gradient(145deg, var(--azul-principal), var(--azul-claro));
  border-radius: 13px; box-shadow: 0 9px 20px rgba(1, 104, 154, .22);
}
.brand-symbol svg { width: 27px; fill: currentColor; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { color: var(--azul-principal); font-size: 1rem; font-weight: 800; letter-spacing: .17em; }
.brand-copy small { margin-top: 5px; color: var(--gris-texto); font-size: .59rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; justify-content: center; margin-left: auto; gap: 2px; }
.nav-link {
  position: relative; padding: 10px 11px; color: var(--gris-texto);
  border-radius: 10px; font-size: .86rem; font-weight: 600; white-space: nowrap;
  transition: color .3s var(--ease-out), background-color .3s var(--ease-out);
}
.nav-link::after {
  position: absolute; right: 11px; bottom: 4px; left: 11px; height: 2px;
  content: ""; background: var(--azul-claro); border-radius: 3px;
  transform: scaleX(0); transition: transform .35s var(--ease-out);
}
.nav-link:hover, .nav-link.active { color: var(--azul-principal); background: rgba(57, 172, 207, .08); }
.nav-link.active::after { transform: scaleX(1); }
/* Contacto: destacado como acción principal, sin ocupar más ancho que los demás. */
.nav-link-cta { color: var(--azul-principal); background: #E8F4F9; font-weight: 700; }
.nav-link-cta:hover, .nav-link-cta.active { color: white; background: var(--azul-principal); }
.nav-link-cta.active::after { background: rgba(255, 255, 255, .7); }
/* Franja apretada: con 9 enlaces, entre 1241 y 1340 px el menú casi toca el botón
   de llamar. Se reduce un poco antes de que entre el breakpoint de 1240. */
@media (min-width: 1241px) and (max-width: 1340px) {
  .nav-link { padding-inline: 8px; font-size: .8rem; }
}

.header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }

/* Botón LLAMAR AHORA del header */
.call-button {
  position: relative; display: inline-flex; align-items: center; gap: 11px;
  padding: 9px 18px 9px 9px; overflow: hidden;
  color: white; background: linear-gradient(135deg, var(--azul-principal), var(--azul-profundo));
  border-radius: 999px; box-shadow: 0 12px 26px rgba(1, 104, 154, .28);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.call-button::before {
  position: absolute; inset: 0; content: "";
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease-out);
}
.call-button:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(1, 104, 154, .38); }
.call-button:hover::before { transform: translateX(120%); }
.call-button-icon {
  position: relative; display: grid; flex: 0 0 auto;
  width: 38px; height: 38px; place-items: center;
  background: rgba(255, 255, 255, .18); border-radius: 50%;
}
.call-button-icon::after {
  position: absolute; inset: 0; content: "";
  border: 2px solid rgba(255, 255, 255, .55); border-radius: 50%;
  animation: ring-out 2.4s ease-out infinite;
}
.call-button-icon svg { width: 18px; fill: currentColor; animation: phone-shake 2.6s ease-in-out infinite; }
.call-button-copy { display: flex; flex-direction: column; line-height: 1.15; }
.call-button-copy small { color: rgba(255, 255, 255, .72); font-size: .6rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.call-button-copy strong { font-size: .9rem; font-weight: 800; letter-spacing: .01em; }

.menu-toggle { display: none; }

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative; min-height: 900px; padding: 160px 0 48px; overflow: hidden;
  background: linear-gradient(150deg, #FFF 0%, #F7FCFD 55%, #E9F6FA 100%);
}
.hero::before {
  position: absolute; top: 0; right: 0; width: 50%; height: 100%; content: "";
  background-image: radial-gradient(rgba(57, 172, 207, .25) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to left, black, transparent);
  -webkit-mask-image: linear-gradient(to left, black, transparent);
  opacity: .4;
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.hero-orb-one { top: 90px; left: -140px; width: 330px; height: 330px; background: rgba(57, 172, 207, .1); animation: float-slow 12s ease-in-out infinite; }
.hero-orb-two { right: 4%; bottom: 30px; width: 230px; height: 230px; border: 46px solid rgba(1, 104, 154, .04); animation: float-slow 15s ease-in-out infinite reverse; }

.hero-grid {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: 1fr 1.06fr; align-items: center; gap: 40px;
}
.hero-copy { padding: 30px 0 66px; }
.hero-tagline {
  margin-bottom: 18px; color: var(--azul-principal);
  font-size: 1.16rem; font-weight: 700; font-style: italic; letter-spacing: -.01em;
}
.hero-lead { max-width: 60ch; margin-bottom: 34px; font-size: 1.06rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-note { display: flex; align-items: center; gap: 10px; color: var(--gris-texto); font-size: .84rem; }
.hero-note strong { color: var(--texto-oscuro); }
.availability-dot {
  width: 9px; height: 9px; background: #25B96B; border: 2px solid white;
  border-radius: 50%; box-shadow: 0 0 0 5px rgba(37, 185, 107, .14);
  animation: soft-blink 2.6s ease-in-out infinite;
}

/* Visual del hero — MÁS GRANDE */
.hero-visual { position: relative; min-height: 680px; }
.hero-image-shell { position: absolute; inset: -4% -6%; display: grid; place-items: center; }
.hero-image-shell::before {
  position: absolute; width: min(100%, 610px); aspect-ratio: 1; content: "";
  background: linear-gradient(145deg, #D9F1F8, #F7FCFD 72%);
  border: 1px solid white;
  border-radius: 46% 54% 58% 42% / 46% 43% 57% 54%;
  box-shadow: var(--sombra); transform: rotate(-6deg);
  animation: blob-morph 16s ease-in-out infinite;
}
.hero-ring {
  position: absolute; width: 78%; aspect-ratio: 1;
  border: 1px solid rgba(57, 172, 207, .32); border-radius: 50%;
  animation: rotate-ring 18s linear infinite;
}
.hero-ring::before, .hero-ring::after { position: absolute; content: ""; background: var(--azul-claro); border-radius: 50%; }
.hero-ring::before { top: 8%; left: 10%; width: 13px; height: 13px; box-shadow: 0 0 0 8px rgba(57, 172, 207, .14); }
.hero-ring::after { right: 5%; bottom: 18%; width: 8px; height: 8px; }

/* El PNG del perro está recortado en seco por abajo (el pecho termina en línea recta).
   Se difumina de arriba hacia abajo para que se funda con el fondo en vez de verse cortado. */
.hero-image-shell > img,
.hero-image-shell > picture > img {
  position: relative; z-index: 2;
  /* height:auto en vez de max-height: así la caja del <img> calza exactamente con la
     foto. Con max-height la caja quedaba más alta que el contenido y el degradado
     se desalineaba (empezaba dentro del perro y terminaba en el vacío de abajo). */
  width: min(104%, 660px); height: auto; align-self: center;
  filter: drop-shadow(0 14px 20px rgba(18, 48, 64, .13));
  -webkit-mask-image: var(--desvanecido-inferior);
          mask-image: var(--desvanecido-inferior);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;   mask-size: 100% 100%;
}
.hero-fallback {
  position: absolute; z-index: 1; width: min(88%, 490px); height: min(80%, 500px);
  border-radius: 45% 55% 55% 45% / 44% 45% 55% 56%;
}
.hero-fallback svg { width: 110px; fill: rgba(1, 104, 154, .15); }

.floating-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 11px;
  padding: 13px 17px; background: rgba(255, 255, 255, .93);
  border: 1px solid rgba(255, 255, 255, .85); border-radius: 16px;
  box-shadow: 0 16px 40px rgba(18, 48, 64, .13);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  animation: float 5s ease-in-out infinite;
}
.floating-chip strong, .floating-chip small { display: block; line-height: 1.25; }
.floating-chip strong { font-size: .92rem; font-weight: 800; }
.floating-chip small { color: var(--gris-texto); font-size: .68rem; }
.floating-chip-rating { top: 12%; right: -2%; }
.floating-chip-rating strong span { color: var(--ambar); }
.floating-chip-care { bottom: 13%; left: -5%; animation-delay: -2.4s; }
.chip-icon {
  display: grid; flex: 0 0 auto; width: 34px; height: 34px; place-items: center;
  color: white; background: linear-gradient(140deg, var(--azul-claro), var(--azul-principal));
  border-radius: 10px;
}
.chip-icon svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* Franja de confianza */
.trust-strip {
  position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .92); border: 1px solid rgba(205, 230, 238, .8);
  border-radius: 22px; box-shadow: 0 20px 60px rgba(18, 48, 64, .09);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.trust-item { position: relative; padding: 25px 28px; }
.trust-item + .trust-item::before {
  position: absolute; top: 26%; bottom: 26%; left: 0; width: 1px;
  content: ""; background: var(--linea);
}
.trust-item strong { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.trust-stars { display: block; margin-top: 2px; color: var(--ambar); font-size: .72rem; letter-spacing: .06em; }
.trust-item small { display: block; margin-top: 5px; color: var(--gris-texto); font-size: .73rem; }

/* ═══════════ SERVICIOS ═══════════ */
.services { background: white; }
.services-layout { display: grid; grid-template-columns: .86fr 1.14fr; gap: 20px; }
/* Segunda fila de servicios, invertida para dar ritmo visual.
   La tarjeta destacada (Oftalmología) queda a la derecha en escritorio. */
.services-layout-reverse { grid-template-columns: 1.14fr .86fr; margin-top: 20px; }
.service-feature-specialty .service-tag { color: #FFD060; }

.service-feature {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 100%; padding: 44px; overflow: hidden; color: white;
  background: linear-gradient(155deg, var(--azul-profundo), var(--azul-principal));
  border-radius: var(--radio-grande); box-shadow: 0 26px 60px rgba(1, 104, 154, .24);
}
.service-feature::before {
  position: absolute; top: -120px; right: -90px; width: 350px; height: 350px;
  content: ""; border: 58px solid rgba(255, 255, 255, .06); border-radius: 50%;
  transition: transform .8s var(--ease-out);
}
.service-feature:hover::before { transform: scale(1.12) rotate(20deg); }
.service-feature::after {
  position: absolute; right: 0; bottom: 0; left: 0; height: 55%; content: "";
  background: linear-gradient(to top, rgba(0, 40, 62, .34), transparent);
}
.service-feature > * { position: relative; z-index: 1; }
.service-number {
  position: absolute; top: 30px; right: 36px; color: rgba(255, 255, 255, .28);
  font-size: 4.8rem; font-weight: 800; letter-spacing: -.08em; line-height: 1;
}

.service-icon {
  display: grid; flex: 0 0 auto; width: 56px; height: 56px; place-items: center;
  color: var(--azul-principal); background: var(--fondo-tenue); border-radius: 17px;
  transition: transform .4s var(--ease-spring), background .3s var(--ease-out), color .3s var(--ease-out);
}
.service-icon svg { width: 31px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.service-feature .service-icon {
  width: 72px; height: 72px; margin-bottom: 32px; color: white;
  background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .16);
}
.service-feature .service-icon svg { width: 39px; }

.service-tag { display: block; margin-bottom: 8px; color: var(--azul-claro); font-size: .66rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.service-feature .service-tag { color: rgba(255, 255, 255, .68); }
.service-feature h3 { font-size: 2rem; }
.service-feature p { max-width: 40ch; color: rgba(255, 255, 255, .78); }
.service-feature .text-link { color: white; }

.service-stack { display: grid; gap: 13px; }
.service-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  padding: 26px 28px; background: white;
  border: 1px solid var(--linea); border-radius: var(--radio-medio);
  transition: transform .4s var(--ease-out), border-color .3s var(--ease-out), box-shadow .4s var(--ease-out);
}
.service-row:hover {
  transform: translateX(7px); border-color: #B4DDE9;
  box-shadow: 0 18px 44px rgba(18, 48, 64, .08);
}
.service-row:hover .service-icon { color: white; background: var(--azul-principal); transform: rotate(-8deg) scale(1.06); }
.service-row .service-icon { margin-right: 22px; }
.service-row h3 { margin-bottom: 5px; font-size: 1.18rem; }
.service-row p { margin-bottom: 0; font-size: .86rem; }

.circle-link {
  display: grid; width: 42px; height: 42px; place-items: center;
  color: var(--azul-principal); background: var(--fondo-suave); border-radius: 50%;
  font-weight: 800; transition: color .3s var(--ease-out), background .3s var(--ease-out), transform .3s var(--ease-spring);
}
.circle-link:hover { color: white; background: var(--azul-principal); transform: rotate(-25deg) scale(1.1); }

.complementary-services {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; margin-top: 20px;
  overflow: hidden; background: var(--fondo-suave);
  border: 1px solid var(--linea); border-radius: var(--radio-medio);
}
.complementary-intro { padding: 28px; }
.complementary-intro h3 { margin: 14px 0 6px; font-size: 1.14rem; }
.complementary-intro p { margin: 0; font-size: .78rem; }
.compact-service {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  padding: 26px; border-left: 1px solid var(--linea);
  transition: background .3s var(--ease-out), transform .3s var(--ease-out);
}
.compact-service:hover { background: white; transform: translateY(-3px); }
.compact-service span { font-size: .87rem; font-weight: 800; }
.compact-service small { margin-top: 5px; color: var(--gris-texto); font-size: .71rem; line-height: 1.45; }
.compact-service b {
  position: absolute; top: 15px; right: 17px; color: var(--azul-claro);
  font-weight: 500; transition: transform .3s var(--ease-out);
}
.compact-service:hover b { transform: translate(3px, -3px); }

/* ═══════════ MARCAS ═══════════ */
.brands-strip {
  padding: 46px 0; background: var(--fondo-suave);
  border-block: 1px solid var(--linea);
}
.brands-inner { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.brands-label {
  margin: 0; color: var(--gris-texto); font-size: .73rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; opacity: .8;
}
.brands-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 44px; width: 100%; }
.brands-group { display: flex; flex-direction: column; align-items: center; gap: 13px; }
.brands-group-title { color: var(--azul-principal); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.brands-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.brand-chip {
  padding: 7px 17px; color: var(--azul-profundo); background: var(--blanco);
  border: 1px solid var(--linea); border-radius: 100px;
  font-size: .8rem; font-weight: 700;
  transition: transform .3s var(--ease-spring), border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.brand-chip:hover { transform: translateY(-3px); border-color: var(--azul-claro); box-shadow: var(--sombra-sm); }

/* ═══════════ LIMPIEZA DENTAL ═══════════ */
.dental { padding-top: 0; }
/* Dos paneles de especialidad lado a lado (limpieza dental y oftalmología).
   Cada panel es vertical: arte arriba, texto abajo, para que quepan a la par. */
.specialty-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.dental-shell {
  position: relative; display: flex; flex-direction: column;
  overflow: hidden; color: white;
  background: linear-gradient(135deg, #064E72 0%, #01689A 55%, #1590B5 100%);
  border-radius: 34px; box-shadow: 0 30px 74px rgba(1, 104, 154, .24);
}
/* Variante para diferenciar el segundo panel sin salirse de la paleta. */
.dental-shell-eye { background: linear-gradient(215deg, #05496B 0%, #0A72A2 52%, #2C9FC2 100%); }
.dental-shell::after {
  position: absolute; right: -120px; bottom: -240px; width: 460px; height: 460px;
  content: ""; border: 64px solid rgba(255, 255, 255, .04); border-radius: 50%;
}
.dental-art {
  position: relative; display: grid; align-content: center; justify-items: center;
  padding: 44px 40px 34px; overflow: hidden; background: rgba(0, 0, 0, .09);
}
.dental-art::before {
  position: absolute; top: 12px; width: 330px; height: 330px; content: "";
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); border-radius: 50%;
}
.dental-circle {
  position: relative; z-index: 1; display: grid; width: 196px; height: 196px; place-items: center;
  background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.04));
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%;
  box-shadow: inset 0 0 50px rgba(255, 255, 255, .05);
  animation: gentle-pulse 5s ease-in-out infinite;
}
.dental-circle svg { width: 104px; fill: none; stroke: white; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
.dental-caption {
  /* Sin margen negativo abajo: el chip debe quedar dentro del área con overflow:hidden,
     si no se recorta su segunda línea en pantallas angostas. */
  position: relative; z-index: 2; width: min(100%, 300px); margin: -14px 0 0; padding: 16px 20px;
  color: var(--texto-oscuro); background: white; border-radius: var(--radio-chico);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18); text-align: left;
}
.dental-caption strong, .dental-caption small { display: block; }
.dental-caption strong { font-size: .82rem; font-weight: 800; }
/* min-height reserva dos renglones para que ambos chips midan igual
   aunque un texto sea más corto que el otro. */
.dental-caption small { margin-top: 4px; min-height: 2.9em; color: var(--gris-texto); font-size: .68rem; line-height: 1.45; }

.dental-copy { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; padding: 48px 46px 44px; }
.dental-copy h2 { max-width: 20ch; font-size: 1.95rem; }
.dental-copy p { color: rgba(255, 255, 255, .78); font-size: .92rem; }
.dental-copy .button { align-self: flex-start; margin-top: auto; }
.check-list { display: grid; gap: 12px; margin: 26px 0 32px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 28px; color: rgba(255, 255, 255, .92); font-size: .86rem; }
.check-list li::before {
  position: absolute; top: .15em; left: 0; display: grid; width: 19px; height: 19px;
  place-items: center; content: "✓"; color: var(--azul-principal); background: white;
  border-radius: 50%; font-size: .64rem; font-weight: 900;
}

/* ═══════════ EQUIPO ═══════════ */
.doctors { background: var(--fondo-suave); }
/* Fichas sin fotografía: el peso visual lo cargan el monograma y la especialidad. */
.doctor-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px;
  max-width: 1050px; margin-inline: auto;
}
.doctor-card {
  display: flex; flex-direction: column; padding: 40px;
  background: white; border: 1px solid #E2EFF3; border-radius: 30px;
  box-shadow: 0 20px 54px rgba(18, 48, 64, .07);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s var(--ease-out);
}
.doctor-card:hover { transform: translateY(-6px); border-color: #C4E4EE; box-shadow: var(--sombra-lg); }

.doctor-card-top { display: flex; align-items: center; gap: 15px; margin-bottom: 26px; }
.doctor-monogram {
  display: grid; flex: 0 0 auto; width: 74px; height: 74px; place-items: center;
  color: white; background: linear-gradient(145deg, var(--azul-principal), var(--azul-claro));
  border-radius: 22px; box-shadow: 0 14px 30px rgba(1, 104, 154, .26);
  font-size: 1.5rem; font-weight: 800; letter-spacing: .03em;
}
.doctor-monogram-alt { background: linear-gradient(145deg, #1B7D66, #2FA98C); box-shadow: 0 14px 30px rgba(27, 125, 102, .26); }

.doctor-specialty-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px;
  color: var(--azul-principal); background: #EAF6FA;
  border: 1px solid #C9E6EF; border-radius: 999px;
  font-size: .74rem; font-weight: 800; letter-spacing: .02em;
}
.doctor-specialty-badge svg { width: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.4; }
.doctor-specialty-badge-alt { color: #1B7D66; background: #E8F6F2; border-color: #C3E6DC; }

.doctor-card h3 { margin-top: 10px; margin-bottom: 6px; font-size: 1.42rem; line-height: 1.25; }
.doctor-role { margin-bottom: 14px; color: var(--azul-principal); font-size: .86rem; font-weight: 800; }
.doctor-card > p { font-size: .89rem; }
.doctor-card .text-link { margin-top: auto; }
.editable-data { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.editable-data span {
  padding: 7px 12px; color: var(--gris-texto); background: var(--fondo-suave);
  border: 1px solid var(--linea-suave); border-radius: 8px; font-size: .68rem; font-weight: 600;
}

/* ═══════════ FALLBACK DE IMÁGENES ═══════════ */
.media-frame { position: relative; }
.media-frame .image-fallback { position: absolute; inset: 0; }

/* El placeholder solo aparece cuando la imagen real no carga.
   Sin esto se transparenta a través de los PNG con fondo transparente. */
.media-frame .image-fallback, .hero-image-shell .image-fallback { opacity: 0; transition: opacity .3s var(--ease-out); }
.media-frame.image-missing .image-fallback, .hero-image-shell.image-missing .image-fallback { opacity: 1; }

.image-fallback {
  display: grid; align-content: center; justify-items: center; padding: 20px;
  color: var(--azul-principal); background: linear-gradient(150deg, #E5F5F9, #F8FCFD);
  text-align: center;
}
.image-fallback span { font-size: .76rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.image-fallback small { color: var(--gris-texto); font-size: .65rem; font-weight: 500; letter-spacing: 0; text-transform: none; }

/* ═══════════ INSTALACIONES ═══════════ */
.facilities { overflow: hidden; background: white; }
.facility-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.facility-points span {
  padding: 7px 13px; color: var(--azul-principal); background: var(--fondo-suave);
  border: 1px solid var(--linea); border-radius: 999px; font-size: .69rem; font-weight: 700;
}
.facility-collage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.facility-image {
  position: relative; margin: 0; aspect-ratio: 1 / .92; overflow: hidden;
  background: var(--fondo-suave); border-radius: 26px;
  box-shadow: 0 16px 44px rgba(18, 48, 64, .08);
}
.facility-image img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.facility-image:hover img { transform: scale(1.06); }
.facility-image::after {
  position: absolute; z-index: 2; inset: 0; content: "";
  background: linear-gradient(to top, rgba(6, 44, 66, .55), transparent 48%);
  opacity: 0; transition: opacity .45s var(--ease-out);
}
.facility-image:hover::after { opacity: 1; }
.facility-image figcaption {
  position: absolute; z-index: 3; bottom: 16px; left: 16px; padding: 9px 14px;
  color: white; background: rgba(6, 78, 114, .78);
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px;
  font-size: .72rem; font-weight: 700;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.facility-card {
  display: flex; flex-direction: column; justify-content: center;
  aspect-ratio: 1 / .92; padding: 40px; color: white;
  background: linear-gradient(155deg, var(--azul-principal), var(--azul-profundo));
  border-radius: 26px; box-shadow: 0 20px 50px rgba(1, 104, 154, .24);
}
.facility-card h3 { margin-top: 22px; font-size: 1.5rem; }
.facility-card p { margin-bottom: 22px; color: rgba(255, 255, 255, .78); font-size: .88rem; }
.facility-card-icon {
  display: grid; width: 54px; height: 54px; place-items: center;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px;
}
.facility-card-icon svg { width: 26px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ═══════════ RESEÑAS ═══════════ */
.reviews { background: linear-gradient(180deg, var(--fondo-suave), white); }
.review-summary {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 38px;
  margin-bottom: 44px; padding-bottom: 36px; border-bottom: 1px solid var(--linea);
}
.review-summary h2 { max-width: 20ch; margin-bottom: 0; font-size: clamp(1.9rem, 3.2vw, 2.8rem); }
.rating-display {
  display: flex; flex-direction: column; padding-right: 38px;
  border-right: 1px solid var(--linea);
  transition: transform .35s var(--ease-out);
}
a.rating-display:hover { transform: translateY(-3px); }
a.rating-display:hover small { color: var(--azul-principal); }
.rating-display small { transition: color .25s var(--ease-out); }
.rating-display strong { font-size: 3.9rem; font-weight: 800; letter-spacing: -.07em; line-height: .9; }
.rating-display span { margin: 11px 0 4px; color: var(--ambar); font-size: .88rem; letter-spacing: .1em; }
.rating-display small { color: var(--gris-texto); font-size: .69rem; }

.reviews-track { display: grid; grid-template-columns: 1.08fr .96fr .96fr; gap: 16px; }
.reviews blockquote { margin: 0; }
.review-feature {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 380px; padding: 36px; overflow: hidden; color: white;
  background: linear-gradient(150deg, var(--azul-principal), var(--azul-profundo));
  border-radius: 28px; box-shadow: 0 24px 54px rgba(1, 104, 154, .2);
}
.review-feature::after {
  position: absolute; right: -80px; bottom: -90px; width: 240px; height: 240px;
  content: ""; border: 36px solid rgba(255, 255, 255, .06); border-radius: 50%;
}
.quote-mark { position: absolute; top: 0; right: 24px; color: rgba(255, 255, 255, .13); font-family: Georgia, serif; font-size: 10rem; line-height: 1; }
.review-feature p { position: relative; z-index: 1; color: white; font-size: 1.08rem; font-weight: 500; line-height: 1.6; }
.review-feature footer { position: relative; z-index: 1; display: flex; align-items: center; gap: 13px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .15); }
.review-feature footer strong, .review-feature footer small { display: block; }
.review-feature footer strong { font-size: .84rem; font-weight: 800; }
.review-feature footer small { color: rgba(255, 255, 255, .62); font-size: .68rem; }
.review-feature .review-stars { margin-left: auto; color: #FFD060; font-size: .74rem; letter-spacing: .06em; }

/* Avatar de inicial */
.review-avatar {
  display: grid; flex: 0 0 auto; width: 44px; height: 44px; place-items: center;
  color: white; border-radius: 50%;
  font-size: 1.05rem; font-weight: 800; line-height: 1;
  box-shadow: 0 6px 16px rgba(18, 48, 64, .18);
}
.review-avatar-a { background: linear-gradient(145deg, #FFFFFF, #DCEFF6); color: var(--azul-principal); }
.review-avatar-b { background: linear-gradient(145deg, #01689A, #064E72); }
.review-avatar-c { background: linear-gradient(145deg, #39ACCF, #1B87AD); }
.review-avatar-d { background: linear-gradient(145deg, #2FA98C, #1B7D66); }
.review-avatar-e { background: linear-gradient(145deg, #E0A038, #C4801C); }

.review-column { display: grid; gap: 16px; }
.review-column blockquote {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 26px; background: white;
  border: 1px solid var(--linea); border-radius: 20px;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .3s var(--ease-out);
}
.review-column blockquote:hover { transform: translateY(-5px); border-color: #C4E4EE; box-shadow: 0 20px 40px rgba(18, 48, 64, .09); }
.review-column p { margin-bottom: 20px; color: var(--texto-oscuro); font-size: .87rem; font-weight: 500; line-height: 1.65; }
.review-column footer { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--linea-suave); }
.review-column footer strong, .review-column footer small { display: block; }
.review-column footer strong { font-size: .8rem; font-weight: 800; line-height: 1.3; }
.review-column footer small { margin-top: 2px; color: var(--gris-texto); font-size: .67rem; }
.review-column .review-stars { margin-left: auto; color: var(--ambar); font-size: .7rem; letter-spacing: .05em; white-space: nowrap; }

/* Botón "Ver reseñas en Google" */
.reviews-cta { display: grid; justify-items: center; gap: 14px; margin-top: 42px; }
.google-button {
  position: relative; display: inline-flex; align-items: center; gap: 13px;
  padding: 15px 28px; overflow: hidden;
  color: var(--texto-oscuro); background: white;
  border: 1px solid var(--linea); border-radius: 999px;
  box-shadow: 0 10px 30px rgba(18, 48, 64, .09);
  font-size: .92rem; font-weight: 700;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .3s var(--ease-out);
}
.google-button::before {
  position: absolute; inset: 0; content: "";
  background: linear-gradient(120deg, transparent 32%, rgba(57, 172, 207, .14) 50%, transparent 68%);
  transform: translateX(-120%); transition: transform .9s var(--ease-out);
}
.google-button:hover {
  transform: translateY(-3px); border-color: var(--azul-claro);
  box-shadow: 0 18px 40px rgba(18, 48, 64, .14);
}
.google-button:hover::before { transform: translateX(120%); }
.google-button > * { position: relative; z-index: 1; }
.google-button-logo { display: grid; flex: 0 0 auto; width: 21px; place-items: center; }
.google-button-logo svg { width: 100%; height: auto; }
.google-button-arrow { color: var(--azul-principal); font-weight: 500; transition: transform .3s var(--ease-out); }
.google-button:hover .google-button-arrow { transform: translateX(5px); }
.reviews-cta-note { margin: 0; color: var(--gris-texto); font-size: .76rem; text-align: center; }

/* ═══════════ FORMULARIO ═══════════ */
.appointment { padding-top: 88px; background: white; }
.appointment-shell {
  display: grid; grid-template-columns: .82fr 1.18fr; overflow: hidden;
  background: var(--azul-profundo); border-radius: 36px; box-shadow: var(--sombra);
}
.appointment-intro {
  position: relative; padding: 74px 56px; overflow: hidden; color: white;
  background: linear-gradient(158deg, #064E72, #01689A);
}
.appointment-intro::after {
  position: absolute; right: -130px; bottom: -130px; width: 360px; height: 360px;
  content: ""; background: rgba(255, 255, 255, .04); border-radius: 50%;
}
.appointment-intro h2 { position: relative; z-index: 1; font-size: clamp(2rem, 3.4vw, 3rem); }
.appointment-intro p { position: relative; z-index: 1; color: rgba(255, 255, 255, .75); }
.appointment-steps { position: relative; z-index: 1; display: grid; gap: 14px; margin: 38px 0; }
.appointment-steps div { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .13); }
.appointment-steps strong { display: grid; flex: 0 0 auto; width: 36px; height: 36px; place-items: center; color: var(--azul-principal); background: white; border-radius: 10px; font-size: .68rem; font-weight: 800; }
.appointment-steps span { font-size: .8rem; }
.privacy-note {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; padding: 13px;
  color: rgba(255, 255, 255, .78); background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 11px; font-size: .69rem;
}
.privacy-note span { display: grid; flex: 0 0 auto; width: 19px; height: 19px; place-items: center; color: var(--azul-principal); background: white; border-radius: 50%; font-size: .58rem; font-weight: 900; }

.appointment-form { padding: 50px 56px 54px; background: white; }
.form-heading { margin-bottom: 30px; }
.form-heading h3 { margin: 14px 0 6px; font-size: 1.8rem; }
.form-heading p { margin-bottom: 0; font-size: .77rem; }
fieldset { margin: 0 0 26px; padding: 0; border: 0; }
.appointment-form legend {
  width: 100%; margin-bottom: 14px; padding-bottom: 9px; color: var(--texto-oscuro);
  border-bottom: 1px solid var(--linea); font-size: .72rem; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label { display: grid; gap: 7px; color: var(--texto-oscuro); font-size: .72rem; font-weight: 700; }
.form-wide { grid-column: 1 / -1; }

input, select, textarea {
  width: 100%; color: var(--texto-oscuro); background: #F8FBFC;
  border: 1px solid #DCE9ED; border-radius: 11px; font-size: .82rem; outline: none;
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s var(--ease-out);
}
input, select { height: 46px; padding: 0 13px; }
textarea { min-height: 82px; padding: 12px 13px; resize: vertical; }
input:focus, select:focus, textarea:focus { background: white; border-color: var(--azul-claro); box-shadow: 0 0 0 4px rgba(57, 172, 207, .12); }
.invalid { border-color: #D85D5D !important; box-shadow: 0 0 0 4px rgba(216, 93, 93, .1) !important; }
.form-error { min-height: 20px; margin: -4px 0 10px; color: #B84040; font-size: .74rem; font-weight: 700; }
.form-submit { width: 100%; border: 0; }

/* ═══════════ UBICACIÓN ═══════════ */
.location { background: var(--fondo-suave); }
.location-grid {
  display: grid; grid-template-columns: 1.08fr .92fr; min-height: 660px; overflow: hidden;
  background: white; border: 1px solid var(--linea); border-radius: 32px;
  box-shadow: 0 24px 64px rgba(18, 48, 64, .09);
}
.map-shell { position: relative; min-height: 660px; overflow: hidden; background: #DCEEF2; }
.map-shell iframe { width: 100%; height: 100%; min-height: 660px; border: 0; filter: saturate(.75) contrast(.96); }
.map-address {
  position: absolute; right: 20px; bottom: 20px; left: 20px;
  display: flex; align-items: center; gap: 13px; padding: 17px;
  background: rgba(255, 255, 255, .96); border: 1px solid rgba(255, 255, 255, .85);
  border-radius: var(--radio-chico); box-shadow: 0 14px 38px rgba(18, 48, 64, .16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.map-address strong, .map-address small { display: block; }
.map-address strong { font-size: .8rem; font-weight: 800; }
.map-address small { margin-top: 4px; color: var(--gris-texto); font-size: .66rem; line-height: 1.45; }
.pin-icon { display: grid; flex: 0 0 auto; width: 40px; height: 40px; place-items: center; color: white; background: var(--azul-principal); border-radius: 11px; }
.pin-icon svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2; }

.location-info { display: flex; flex-direction: column; justify-content: space-between; padding: 48px; }
.location-top h3 { margin: 22px 0 12px; font-size: 1.65rem; }
.location-top address { color: var(--texto-oscuro); font-size: .88rem; font-style: normal; font-weight: 700; line-height: 1.55; }
.location-top p { margin-top: 12px; font-size: .8rem; }
.status-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 13px;
  color: #167A49; background: #ECF9F2; border-radius: 999px; font-size: .67rem; font-weight: 800;
}
.status-pill i { width: 7px; height: 7px; background: #22AD68; border-radius: 50%; box-shadow: 0 0 0 4px rgba(34, 173, 104, .13); }
.location-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 28px 0; }
.location-actions .button { flex: 1 1 auto; padding-inline: 14px; font-size: .76rem; }

.hours-block { padding: 24px; background: var(--fondo-suave); border: 1px solid var(--linea); border-radius: 18px; }
.hours-block > div:first-child { display: flex; align-items: center; gap: 10px; }
.hours-block h3 { margin: 0; font-size: .98rem; }
.hours-icon { display: grid; width: 30px; height: 30px; place-items: center; color: white; background: var(--azul-principal); border-radius: 9px; font-size: .9rem; }
.hours-block dl { margin: 18px 0; }
.hours-block dl div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #DFEBEF; font-size: .72rem; }
.hours-block dt { font-weight: 700; }
.hours-block dd { margin: 0; color: var(--gris-texto); }
.hours-block p { margin: 0; font-size: .68rem; line-height: 1.55; }
.hours-block a { color: var(--azul-principal); font-weight: 700; }
.hours-note { margin-bottom: 16px !important; padding: 11px 13px; background: #FFF6E3; border: 1px solid #F2DFB4; border-radius: 11px; }

/* Datos prácticos: pago, correo, especies atendidas */
.info-rows { display: grid; gap: 1px; margin-bottom: 16px; background: #DFEBEF; border: 1px solid #DFEBEF; border-radius: 12px; overflow: hidden; }
.info-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 13px; background: white; }
.info-row-label { flex: 0 0 auto; color: var(--gris-texto); font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.info-row-value { color: var(--texto-oscuro); font-size: .72rem; font-weight: 700; text-align: right; word-break: break-word; }
a.info-row-value { color: var(--azul-principal); }
a.info-row-value:hover { text-decoration: underline; }

/* ═══════════ PREGUNTAS FRECUENTES ═══════════ */
.faq { background: white; }
.faq-layout { display: grid; grid-template-columns: .78fr 1.22fr; align-items: start; gap: 70px; }
.faq-intro { position: sticky; top: calc(var(--header-height) + 40px); }
.faq-intro h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.faq-intro p { margin-bottom: 28px; }

.faq-list { display: grid; gap: 12px; }
.faq-item {
  overflow: hidden; background: var(--fondo-suave);
  border: 1px solid var(--linea); border-radius: 18px;
  transition: border-color .3s var(--ease-out), box-shadow .35s var(--ease-out), background .3s var(--ease-out);
}
.faq-item[open] { background: white; border-color: #BFE1EC; box-shadow: 0 16px 40px rgba(18, 48, 64, .08); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 26px; cursor: pointer; font-size: .96rem; font-weight: 700;
  list-style: none; transition: color .25s var(--ease-out);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--azul-principal); }
.faq-item summary i {
  position: relative; flex: 0 0 auto; width: 30px; height: 30px;
  background: white; border: 1px solid var(--linea); border-radius: 50%;
  transition: transform .35s var(--ease-spring), background .3s var(--ease-out), border-color .3s var(--ease-out);
}
.faq-item summary i::before, .faq-item summary i::after {
  position: absolute; top: 50%; left: 50%; content: "";
  background: var(--azul-principal); border-radius: 2px;
  transform: translate(-50%, -50%); transition: opacity .3s var(--ease-out), background .3s var(--ease-out);
}
.faq-item summary i::before { width: 12px; height: 2px; }
.faq-item summary i::after { width: 2px; height: 12px; }
.faq-item[open] summary { color: var(--azul-principal); }
.faq-item[open] summary i { background: var(--azul-principal); border-color: var(--azul-principal); transform: rotate(180deg); }
.faq-item[open] summary i::before { background: white; }
.faq-item[open] summary i::after { opacity: 0; }
.faq-answer { padding: 0 26px 24px; animation: faq-reveal .4s var(--ease-out); }
.faq-answer p { margin: 0; font-size: .89rem; line-height: 1.7; }

/* ═══════════ CTA FINAL ═══════════ */
.final-cta {
  position: relative; overflow: hidden; color: white;
  background: linear-gradient(125deg, var(--azul-principal), var(--azul-profundo));
}
.final-cta-shape { position: absolute; top: -180px; right: -80px; width: 450px; height: 450px; border: 72px solid rgba(255, 255, 255, .05); border-radius: 50%; }
.final-cta-inner {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 70px; min-height: 350px; padding-block: 64px;
}
.final-cta h2 { max-width: 18ch; margin: 18px 0 14px; }
.final-cta p { max-width: 60ch; margin: 0; color: rgba(255, 255, 255, .75); }
.final-cta-actions { display: grid; min-width: 240px; gap: 10px; }

/* ═══════════ REDES SOCIALES ═══════════ */
.social-section { padding: 100px 0; background: var(--fondo-suave); }
.social-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.social-card {
  position: relative; display: flex; align-items: center; gap: 20px;
  padding: 30px 32px; overflow: hidden; background: white;
  border: 1px solid var(--linea); border-radius: 24px;
  box-shadow: 0 12px 34px rgba(18, 48, 64, .06);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s var(--ease-out);
}
.social-card::before {
  position: absolute; top: -70px; right: -50px; width: 170px; height: 170px; content: "";
  border-radius: 50%; opacity: .09; transition: transform .6s var(--ease-out);
}
.social-card:hover { transform: translateY(-8px); box-shadow: var(--sombra-lg); }
.social-card:hover::before { transform: scale(1.35); }
.social-card:hover .social-card-icon { transform: rotate(-8deg) scale(1.08); }
.social-card-icon {
  display: grid; flex: 0 0 auto; width: 62px; height: 62px; place-items: center;
  color: white; border-radius: 20px;
  transition: transform .45s var(--ease-spring);
}
.social-card-icon svg { width: 30px; fill: currentColor; }
.social-card-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.social-card-copy small { color: var(--gris-texto); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.social-card-copy strong { overflow: hidden; font-size: 1.02rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.social-card-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .76rem; font-weight: 700; }
.social-card-cta b { font-weight: 500; transition: transform .3s var(--ease-out); }
.social-card:hover .social-card-cta b { transform: translate(3px, -3px); }

.social-card-facebook::before { background: #1877F2; }
.social-card-facebook .social-card-icon { background: linear-gradient(145deg, #1877F2, #0C5BC4); box-shadow: 0 12px 26px rgba(24, 119, 242, .3); }
.social-card-facebook:hover { border-color: #1877F2; }
.social-card-facebook .social-card-cta { color: #1877F2; }

.social-card-instagram::before { background: #C13584; }
.social-card-instagram .social-card-icon { background: linear-gradient(145deg, #F9CE34, #EE2A7B 48%, #6228D7); box-shadow: 0 12px 26px rgba(193, 53, 132, .3); }
.social-card-instagram:hover { border-color: #C13584; }
.social-card-instagram .social-card-cta { color: #C13584; }

.social-card-whatsapp::before { background: var(--verde-whatsapp); }
.social-card-whatsapp .social-card-icon { background: linear-gradient(145deg, var(--verde-whatsapp), var(--verde-whatsapp-oscuro)); box-shadow: 0 12px 26px rgba(37, 211, 102, .3); }
.social-card-whatsapp:hover { border-color: var(--verde-whatsapp); }
.social-card-whatsapp .social-card-cta { color: var(--verde-whatsapp-oscuro); }

/* ═══════════ FOOTER ═══════════ */
.site-footer { padding: 74px 0 24px; color: rgba(255, 255, 255, .78); background: var(--azul-noche); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr .9fr; gap: 55px; padding-bottom: 52px; }
.brand-footer .brand-symbol { box-shadow: none; }
.brand-footer .brand-copy strong { color: white; }
.brand-footer .brand-copy small { color: rgba(255, 255, 255, .55); }
.footer-slogan { margin: 22px 0 10px; color: var(--azul-claro) !important; font-size: .92rem; font-weight: 700; font-style: italic; }
.footer-brand p { max-width: 34ch; color: rgba(255, 255, 255, .5); font-size: .79rem; }
.footer-brand > p:last-of-type { margin-bottom: 22px; }

.social-links { display: flex; gap: 9px; }
.social-links a {
  display: grid; width: 40px; height: 40px; place-items: center; color: white;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px;
  transition: transform .35s var(--ease-spring), background .3s var(--ease-out), border-color .3s var(--ease-out);
}
.social-links a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); transform: translateY(-4px); }
.social-links svg { width: 17px; height: 17px; fill: currentColor; }
.social-links a:last-child svg { fill: none; stroke: currentColor; stroke-width: 2; }

.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-column h3 { margin-bottom: 8px; color: white; font-size: .88rem; letter-spacing: 0; }
.footer-column a, .footer-column p { margin: 0; color: rgba(255, 255, 255, .55); font-size: .74rem; line-height: 1.6; transition: color .25s var(--ease-out); }
.footer-column p strong { color: rgba(255, 255, 255, .85); font-weight: 700; }
.footer-column a:hover { color: white; }
.footer-column .button { margin-top: 8px; color: white; font-size: .74rem; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 30px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .4); font-size: .65rem;
}

/* ═══════════ BOTÓN FLOTANTE WHATSAPP ═══════════ */
.floating-whatsapp {
  position: fixed; z-index: 95; right: 26px; bottom: 26px;
  display: grid; width: 62px; height: 62px; place-items: center;
  color: white; background: linear-gradient(145deg, var(--verde-whatsapp), var(--verde-whatsapp-oscuro));
  border-radius: 50%; box-shadow: 0 12px 30px rgba(18, 140, 126, .4);
  transition: transform .4s var(--ease-spring), box-shadow .4s var(--ease-out);
  animation: whatsapp-beat 2.6s ease-in-out infinite;
}
.floating-whatsapp::before, .floating-whatsapp::after {
  position: absolute; inset: 0; content: "";
  background: var(--verde-whatsapp); border-radius: 50%; opacity: 0;
  animation: whatsapp-ripple 2.6s ease-out infinite; pointer-events: none;
}
.floating-whatsapp::after { animation-delay: 1.3s; }
.floating-whatsapp svg { position: relative; z-index: 1; width: 32px; fill: currentColor; }
.floating-whatsapp:hover { transform: scale(1.1); box-shadow: 0 18px 40px rgba(18, 140, 126, .55); animation-play-state: paused; }
.whatsapp-tooltip {
  position: absolute; right: calc(100% + 14px); padding: 9px 14px;
  color: var(--texto-oscuro); background: white; border-radius: 10px;
  box-shadow: 0 10px 26px rgba(18, 48, 64, .18);
  font-size: .76rem; font-weight: 700; white-space: nowrap;
  opacity: 0; transform: translateX(10px); pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.whatsapp-tooltip::after {
  position: absolute; top: 50%; left: 100%; content: "";
  border: 6px solid transparent; border-left-color: white; transform: translateY(-50%);
}
.floating-whatsapp:hover .whatsapp-tooltip, .floating-whatsapp:focus-visible .whatsapp-tooltip { opacity: 1; transform: translateX(0); }

/* ═══════════ ANIMACIONES ═══════════ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.reveal-delay { transition-delay: .14s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes rotate-ring { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes float-slow { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(14px, -20px); } }
@keyframes soft-blink { 0%, 100% { box-shadow: 0 0 0 5px rgba(37, 185, 107, .14); } 50% { box-shadow: 0 0 0 9px rgba(37, 185, 107, .05); } }
@keyframes gentle-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@keyframes faq-reveal { from { opacity: 0; transform: translateY(-8px); } }
@keyframes blob-morph {
  0%, 100% { border-radius: 46% 54% 58% 42% / 46% 43% 57% 54%; transform: rotate(-6deg); }
  50% { border-radius: 55% 45% 42% 58% / 52% 55% 45% 48%; transform: rotate(-2deg); }
}
@keyframes ring-out {
  0% { transform: scale(1); opacity: .8; }
  70%, 100% { transform: scale(1.6); opacity: 0; }
}
@keyframes phone-shake {
  0%, 88%, 100% { transform: rotate(0); }
  90%, 94% { transform: rotate(-14deg); }
  92%, 96% { transform: rotate(14deg); }
}
@keyframes whatsapp-beat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.11); }
  28% { transform: scale(1); }
  42% { transform: scale(1.07); }
  56% { transform: scale(1); }
}
@keyframes whatsapp-ripple {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.85); opacity: 0; }
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1240px) {
  .header-inner { width: min(100% - 26px, 1180px); gap: 14px; }
  .brand-copy { display: none; }
  .brand-logo { width: 126px; }
  .nav-link { padding-inline: 7px; font-size: .78rem; }
  .call-button { padding: 8px 15px 8px 8px; gap: 9px; }
  .call-button-icon { width: 34px; height: 34px; }
  .call-button-copy strong { font-size: .82rem; }
  .hero { min-height: auto; }
  .hero-visual { min-height: 600px; }
  .hero-image-shell > picture > img { width: min(102%, 580px); }
}

@media (max-width: 1080px) {
  .call-button-copy small { display: none; }
  .nav-link { padding-inline: 5px; font-size: .73rem; }
  .facility-collage { grid-template-columns: 1fr 1fr; }
  .facility-card { grid-column: 1 / -1; aspect-ratio: auto; padding: 34px; }
  .social-cards { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .faq-intro { position: static; }
}

@media (max-width: 980px) {
  :root { --header-height: 72px; }
  .section { padding: 90px 0; }
  .header-inner { justify-content: space-between; }
  .brand-copy { display: flex; }
  .brand.logo-ready .brand-copy { display: none; }

  .menu-toggle {
    display: grid; width: 44px; height: 44px; padding: 11px; place-content: center; gap: 5px;
    background: white; border: 1px solid var(--linea); border-radius: 12px; cursor: pointer;
  }
  .menu-toggle span { width: 20px; height: 2px; background: var(--azul-principal); border-radius: 3px; transition: transform .3s var(--ease-out), opacity .25s var(--ease-out); }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .main-nav {
    position: fixed; z-index: 101; top: calc(var(--header-height) + 8px); right: 16px; left: 16px;
    display: grid; max-height: calc(100dvh - var(--header-height) - 24px); padding: 16px;
    overflow-y: auto; background: rgba(255, 255, 255, .98);
    border: 1px solid var(--linea); border-radius: 20px;
    box-shadow: 0 28px 64px rgba(18, 48, 64, .17);
    opacity: 0; pointer-events: none; transform: translateY(-12px) scale(.97);
    transition: opacity .3s var(--ease-out), transform .35s var(--ease-out);
  }
  .main-nav.open { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
  .nav-link { padding: 13px 14px; font-size: .95rem; }
  .nav-link::after { right: auto; bottom: 10px; left: 14px; width: 22px; }

  .header-actions { order: 2; margin-left: auto; }
  .menu-toggle { order: 3; }
  .call-button-copy { display: none; }
  .call-button { gap: 0; padding: 6px; }

  .hero { padding-top: 118px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding: 22px 0 16px; text-align: center; }
  .hero-copy .eyebrow, .hero-actions, .hero-note { justify-content: center; }
  .hero-copy h1, .hero-lead { margin-inline: auto; }
  .hero-visual { min-height: 560px; }
  .hero-image-shell { inset: 0; }
  .hero-image-shell > picture > img { width: min(100%, 560px); }
  .floating-chip-care { left: 2%; }
  .floating-chip-rating { right: 2%; }

  .trust-strip { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3)::before { display: none; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--linea); }

  .split-heading { grid-template-columns: 1fr; gap: 24px; }
  .services-layout { grid-template-columns: 1fr; }
  .services-layout-reverse { margin-top: 13px; }
  /* En una sola columna la especialidad debe ir arriba de su bloque, no al final. */
  .services-layout-reverse .service-feature { order: -1; margin-bottom: 7px; }
  .service-feature { min-height: 450px; }
  .complementary-services { grid-template-columns: 1fr 1fr; }
  .complementary-intro { grid-column: 1 / -1; border-bottom: 1px solid var(--linea); }
  .compact-service:nth-child(odd) { border-left: 0; }
  .compact-service:nth-child(n+4) { border-top: 1px solid var(--linea); }

  .brands-groups { grid-template-columns: 1fr; gap: 26px; }
  .specialty-duo { grid-template-columns: 1fr; gap: 20px; }
  .dental-copy { padding: 44px 40px 40px; }
  .dental-copy h2 { font-size: 1.85rem; }

  .doctor-list { grid-template-columns: 1fr; gap: 20px; }
  .doctor-card { padding: 34px; }

  .reviews-track { grid-template-columns: 1fr 1fr; }
  .review-feature { grid-column: 1 / -1; min-height: 300px; }
  .review-summary { grid-template-columns: auto 1fr; }
  .review-summary .button { grid-column: 1 / -1; justify-self: start; }

  .appointment-shell { grid-template-columns: 1fr; }
  .appointment-intro { padding: 56px; }
  .appointment-form { padding: 48px 56px; }

  .location-grid { grid-template-columns: 1fr; }
  .map-shell, .map-shell iframe { min-height: 440px; }
  .final-cta-inner { grid-template-columns: 1fr; gap: 36px; }
  .final-cta-actions { display: flex; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-column:last-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 30px, 620px); }
  .section { padding: 74px 0; }
  h1 { font-size: clamp(2.25rem, 10.5vw, 3.3rem); }
  h2 { font-size: clamp(1.85rem, 8.4vw, 2.6rem); }

  .hero { padding: 104px 0 30px; }
  .hero-tagline { font-size: 1.05rem; }
  .hero-lead { font-size: .96rem; }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 430px; }
  .hero-image-shell::before { width: 94%; }
  .hero-image-shell > picture > img { width: 100%; }
  .hero-ring { width: 88%; }
  .hero-fallback { height: 340px; }
  .floating-chip { padding: 10px 12px; }
  .floating-chip-rating { top: 5%; right: 0; }
  .floating-chip-care { bottom: 4%; left: 0; }
  .floating-chip-care .chip-icon { display: none; }

  .trust-strip { border-radius: 18px; }
  .trust-item { padding: 18px 15px; }
  .trust-item strong { font-size: 1.2rem; }
  .trust-item small { font-size: .64rem; }

  .section-heading { margin-bottom: 38px; }
  .section-heading p { font-size: .93rem; }

  .service-feature { min-height: 420px; padding: 30px; border-radius: 26px; }
  .service-number { top: 24px; right: 24px; font-size: 4rem; }
  .service-feature h3 { font-size: 1.68rem; }
  .service-row { grid-template-columns: auto 1fr; padding: 22px; }
  .service-row:hover { transform: none; }
  .service-row .service-icon { width: 46px; height: 46px; margin-right: 15px; }
  .service-row .service-icon svg { width: 25px; }
  .service-row .circle-link { display: none; }
  .service-row p { font-size: .78rem; }
  .complementary-services { grid-template-columns: 1fr; }
  .compact-service { border-top: 1px solid var(--linea); border-left: 0; }
  .complementary-intro { padding: 26px; }

  .brands-strip { padding: 36px 0; }
  .brand-chip { padding: 6px 14px; font-size: .75rem; }

  .dental-shell { border-radius: 28px; }
  .dental-art { padding: 34px 26px 26px; }
  .dental-circle { width: 158px; height: 158px; }
  .dental-circle svg { width: 84px; }
  .dental-art::before { width: 250px; height: 250px; }
  .dental-copy { padding: 38px 26px 34px; }
  .dental-copy h2 { font-size: 1.55rem; }
  .dental-copy .button { align-self: stretch; width: 100%; }

  .doctor-card { padding: 28px 24px 30px; border-radius: 24px; }
  .doctor-card h3 { font-size: 1.28rem; }
  .doctor-monogram { width: 62px; height: 62px; border-radius: 18px; font-size: 1.24rem; }
  .doctor-specialty-badge { padding: 8px 13px; font-size: .69rem; }

  .facility-collage { grid-template-columns: 1fr; }
  .facility-image { aspect-ratio: 4 / 3; border-radius: 20px; }
  .facility-card { padding: 30px; border-radius: 20px; }

  .review-summary { grid-template-columns: 1fr; gap: 22px; }
  .rating-display { padding: 0 0 20px; border-right: 0; border-bottom: 1px solid var(--linea); }
  .review-summary .button { grid-column: auto; width: 100%; }
  .reviews-track { grid-template-columns: 1fr; }
  .review-feature { grid-column: auto; min-height: 320px; }

  .appointment-shell { width: min(100% - 20px, 620px); border-radius: 28px; }
  .appointment-intro { padding: 40px 26px; }
  .appointment-form { padding: 36px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-wide { grid-column: auto; }

  .location-grid { border-radius: 24px; }
  .map-shell, .map-shell iframe { min-height: 360px; }
  .map-address { right: 10px; bottom: 10px; left: 10px; }
  .location-info { padding: 28px 22px; }
  .location-actions { display: grid; }
  .hours-block dl div { display: grid; gap: 2px; }

  .faq-item summary { padding: 18px 20px; font-size: .89rem; }
  .faq-answer { padding: 0 20px 20px; }

  .social-section { padding: 74px 0; }
  .social-card { padding: 24px 22px; gap: 16px; }
  .social-card-icon { width: 54px; height: 54px; }

  .final-cta-inner { padding-block: 54px; }
  .final-cta-actions { display: grid; }
  .final-cta-actions .button { width: 100%; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 26px; }
  .footer-brand, .footer-column:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; }

  .floating-whatsapp { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .floating-whatsapp svg { width: 29px; }
  .whatsapp-tooltip { display: none; }
}

/* ═══════════ ACCESIBILIDAD ═══════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .floating-whatsapp, .scroll-progress, .map-shell, .skip-link { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { color: #000; }
}
