/* ============================================================
   ConectaSalud — Dashboard / Sitio completo
   Paleta: navy #2d3e56 | blue #a8c8ec | yellow #f4c873 | cream #f8f5ee
   Tipografía: Montserrat (única fuente)
   ============================================================ */

/* ---- Montserrat local ---- */
@font-face { font-family: 'Montserrat'; font-weight: 100; font-style: normal; font-display: swap; src: url('../fonts/Montserrat-Thin.otf') format('opentype'); }
@font-face { font-family: 'Montserrat'; font-weight: 200; font-style: normal; font-display: swap; src: url('../fonts/Montserrat-ExtraLight.otf') format('opentype'); }
@font-face { font-family: 'Montserrat'; font-weight: 300; font-style: normal; font-display: swap; src: url('../fonts/Montserrat-Light.otf') format('opentype'); }
@font-face { font-family: 'Montserrat'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/Montserrat-Regular.otf') format('opentype'); }
@font-face { font-family: 'Montserrat'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/Montserrat-Medium.otf') format('opentype'); }
@font-face { font-family: 'Montserrat'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/Montserrat-SemiBold.otf') format('opentype'); }
@font-face { font-family: 'Montserrat'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/Montserrat-Bold.otf') format('opentype'); }
@font-face { font-family: 'Montserrat'; font-weight: 800; font-style: normal; font-display: swap; src: url('../fonts/Montserrat-ExtraBold.otf') format('opentype'); }
@font-face { font-family: 'Montserrat'; font-weight: 900; font-style: normal; font-display: swap; src: url('../fonts/Montserrat-Black.otf') format('opentype'); }

@font-face { font-family: 'Montserrat Alternates'; font-weight: 100; font-style: normal; font-display: swap; src: url('../fonts/MontserratAlternates-Thin.otf') format('opentype'); }
@font-face { font-family: 'Montserrat Alternates'; font-weight: 200; font-style: normal; font-display: swap; src: url('../fonts/MontserratAlternates-ExtraLight.otf') format('opentype'); }
@font-face { font-family: 'Montserrat Alternates'; font-weight: 300; font-style: normal; font-display: swap; src: url('../fonts/MontserratAlternates-Light.otf') format('opentype'); }
@font-face { font-family: 'Montserrat Alternates'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/MontserratAlternates-Regular.otf') format('opentype'); }
@font-face { font-family: 'Montserrat Alternates'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/MontserratAlternates-Medium.otf') format('opentype'); }
@font-face { font-family: 'Montserrat Alternates'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/MontserratAlternates-SemiBold.otf') format('opentype'); }
@font-face { font-family: 'Montserrat Alternates'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/MontserratAlternates-Bold.otf') format('opentype'); }
@font-face { font-family: 'Montserrat Alternates'; font-weight: 800; font-style: normal; font-display: swap; src: url('../fonts/MontserratAlternates-ExtraBold.otf') format('opentype'); }
@font-face { font-family: 'Montserrat Alternates'; font-weight: 900; font-style: normal; font-display: swap; src: url('../fonts/MontserratAlternates-Black.otf') format('opentype'); }
:root {
  --navy: #2d3e56;
  --navy-700: #20314a;
  --azul: #2d5cb3;        /* Azul pleno — títulos de máxima importancia */
  --azul-600: #4a7cce;    /* Azul medio */
  --celeste: #6fa7d9;     /* Celeste — títulos secundarios */
  --blue: #a8c8ec;
  --blue-600: #7ea9d9;
  --blue-300: #cbddf3;
  --yellow: #f4c873;
  --yellow-600: #e3b25b;
  --cream: #f8f5ee;
  --bg: #f3f6fa;
  --text: #2d3e56;
  --muted: #5c6e85;
  --muted-2: #8a98aa;
  --card: #ffffff;
  --line: #e4ebf2;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 6px 24px rgba(45, 62, 86, 0.08);
  --shadow-lg: 0 16px 48px rgba(45, 62, 86, 0.14);
  --max-w: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  letter-spacing: -0.02em;
}
/* Jerarquía de color por importancia:
   H1 (máxima)    → azul fuerte     #2d5cb3
   H2 (media)     → azul medio       #4a7cce
   H3 (accent)    → celeste          #6fa7d9 */
h1 { color: var(--azul); font-weight: 800; }
h2 { color: var(--azul-600); font-weight: 800; }
h3 { color: var(--celeste); font-weight: 700; }
h4 { color: var(--azul-600); font-weight: 700; }
h5 { color: var(--celeste); font-weight: 700; }
.hero h1 { color: var(--azul); }
.empresa-hero h1 { color: var(--azul); }
.subhero h1 { color: var(--azul); }
/* Footer y fondos oscuros: mantener blanco */
.footer h4, .family-banner-text h3 { color: #fff; }
/* CTA oscuro en el section final: H2 en blanco */
.section h2.cta-dark, section h2[style*="color:#fff"] { color: #fff !important; }
.font-alt { font-family: 'Montserrat Alternates', 'Montserrat', sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* Marca de agua ambiente: logo grande muy suave como fondo en secciones hero / CTA */
.bg-watermark {
  position: absolute;
  inset: 0;
  background: url('../brand/logo.svg') no-repeat center / 60%;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   INTRO — 3s primera visita / 1s resto · logo XL (300% más grande)
   ============================================================ */
.intro {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, #fffaf0 0%, var(--cream) 70%);
  z-index: 9999;
  display: grid;
  place-items: center;      /* centrado absoluto */
  align-content: center;
  overflow: hidden;
}
.intro-center { justify-self: center; align-self: center; transform: translateY(-15%); }
.intro.is-first { animation: introExit 0.7s ease 2.8s forwards; }
.intro.is-fast  { animation: introExit 0.35s ease 0.85s forwards; }

.intro::before,
.intro::after {
  content: "";
  position: absolute;
  width: 60vmin; height: 60vmin;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0;
  animation: introGlow 2.5s ease-out 0.1s forwards;
}
.intro.is-fast::before,
.intro.is-fast::after { animation-duration: 0.9s; }
.intro::before { background: rgba(168, 200, 236, 0.45); top: -20%; left: -10%; animation-delay: 0s; }
.intro::after  { background: rgba(244, 200, 115, 0.35); bottom: -20%; right: -10%; animation-delay: 0.2s; }

.intro-center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;                /* tag pegado al logo */
  z-index: 1;
}

/* Logo XL — margen negativo abajo para "pegar" el tag al texto "Salud" */
.intro-logo-svg {
  width: min(92vmin, 1140px);
  height: auto;
  display: block;
  overflow: visible;
  margin-bottom: -20%;
}
@media (max-width: 900px) {
  .intro-logo-svg { width: min(95vmin, 720px); margin-bottom: -18%; }
}

/* ============ ANIMACIÓN SOBRIA Y MODERNA ============
   Capas entran con fade + micro escala desde 0.97, sin rotación ni overshoot.
   Timing suave cubic-bezier(.22,.61,.36,1) = ease natural.
*/

/* --- Variante larga (3s) en primera visita --- */
/* Hombrecito azul — entra horizontal desde la izquierda, sin rotación */
.intro.is-first .intro-logo-svg .layer-blue {
  transform-origin: center;
  transform-box: fill-box;
  opacity: 0;
  transform: translateX(-70px);
  animation: slideInLeft 1s cubic-bezier(.22,1,.36,1) .25s forwards;
}
/* Hombrecito amarillo — entra horizontal desde la derecha, sin rotación */
.intro.is-first .intro-logo-svg .layer-yellow {
  transform-origin: center;
  transform-box: fill-box;
  opacity: 0;
  transform: translateX(70px);
  animation: slideInRight 1s cubic-bezier(.22,1,.36,1) .45s forwards;
}
/* "Conecta" (navy) — entra horizontal desde la izquierda, igual que el hombrecito azul */
.intro.is-first .intro-logo-svg .layer-navy {
  transform-origin: center;
  transform-box: fill-box;
  animation: slideInLeft 1s cubic-bezier(.22,1,.36,1) .25s both;
}
/* "Salud" (blue texto) — entra horizontal desde la derecha, igual que el hombrecito amarillo */
.intro.is-first .intro-logo-svg .layer-salud {
  transform-origin: center;
  transform-box: fill-box;
  animation: slideInRight 1s cubic-bezier(.22,1,.36,1) .45s both;
}
.intro.is-first .intro-logo-svg.logo-full,
.intro.is-first .intro-logo-svg .logo-full {
  transform-box: fill-box;
  transform-origin: center;
  animation: subtleBreath 2.4s cubic-bezier(.45,.0,.55,1) 2.4s;
}
.intro.is-first .intro-logo-svg .layer-blue.idle,
.intro.is-first .intro-logo-svg .layer-yellow.idle { animation: none; }

@keyframes slideInLeft {
  0%   { opacity: 0; transform: translateX(-70px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  0%   { opacity: 0; transform: translateX(70px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes navyRise {
  0%   { opacity: 0; transform: translateY(18px) scale(.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes navyPop {
  0%, 100% { transform: translateY(0) scale(1); }
  30%      { transform: translateY(-3px) scale(1.03); }
  60%      { transform: translateY(0) scale(1); }
}

/* --- Variante corta (2s) pa páginas subsecuentes --- */
.intro.is-fast .intro-logo-svg .layer-blue {
  transform-origin: center;
  transform-box: fill-box;
  opacity: 0;
  transform: translateX(-60px);
  animation: slideInLeft .9s cubic-bezier(.22,1,.36,1) .1s forwards;
}
.intro.is-fast .intro-logo-svg .layer-yellow {
  transform-origin: center;
  transform-box: fill-box;
  opacity: 0;
  transform: translateX(60px);
  animation: slideInRight .9s cubic-bezier(.22,1,.36,1) .1s forwards;
}
.intro.is-fast .intro-logo-svg .layer-navy {
  transform-origin: center;
  transform-box: fill-box;
  animation: slideInLeft .55s cubic-bezier(.22,1,.36,1) 0s both;
}
.intro.is-fast .intro-logo-svg .layer-salud {
  transform-origin: center;
  transform-box: fill-box;
  animation: slideInRight .55s cubic-bezier(.22,1,.36,1) .1s both;
}

@keyframes layerIn {
  0%   { opacity: 0; transform: translateY(16px) scale(.96); filter: blur(4px); }
  60%  { filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes layerUp {
  0%   { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes subtleBreath {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.015); }
}

@keyframes introGlow {
  0%   { opacity: 0; transform: scale(.7); }
  60%  { opacity: .7; transform: scale(1.05); }
  100% { opacity: .55; transform: scale(1); }
}
@keyframes introExit {
  0%   { opacity: 1; transform: scale(1); filter: blur(0); }
  100% { opacity: 0; transform: scale(1.04); filter: blur(6px); visibility: hidden; pointer-events: none; }
}

.intro-tag {
  opacity: 0;
  color: var(--navy);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-top: 0;
}
.intro.is-first .intro-tag { animation: tagIn .7s cubic-bezier(.22,.61,.36,1) 1.6s forwards; }
.intro.is-fast  .intro-tag { animation: tagIn .35s ease .35s forwards; }
@keyframes tagIn {
  0%   { opacity: 0; transform: translateY(6px); letter-spacing: .15em; }
  100% { opacity: .75; transform: translateY(0); letter-spacing: .24em; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: linear-gradient(135deg, rgba(20,34,58,.92) 0%, rgba(15,25,45,.94) 100%);
  border-bottom: 1px solid rgba(255,255,255,.15);
  overflow: hidden;
  isolation: isolate;
}
/* Compensar altura del nav fijo para que el contenido no quede tapado */
#nav-host { min-height: 84px; }
@media (max-width: 820px) { #nav-host { min-height: 76px; } }
.nav::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../../imagenes/21-nav-header.png') center 30%/cover no-repeat;
  opacity: .3;
  z-index: -1;
  pointer-events: none;
}
.nav .nav-links a { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.nav .nav-links a:hover, .nav .nav-links a.active { color: var(--yellow); }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-brand {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid rgba(255,255,255,.7);
  box-shadow: 0 8px 22px rgba(0,0,0,.15);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2,1.4,.3,1), width .3s ease, height .3s ease;
  animation: navLogoBreath 4s ease-in-out infinite;
}
.nav-logo {
  width: 52px; height: auto;
  transition: transform .3s ease, width .3s ease;
  animation: navLogoBeat 1.4s ease-in-out infinite;
  transform-origin: center;
}
.nav-brand:hover { transform: scale(1.08); }
.nav-brand:hover .nav-logo { animation-play-state: paused; transform: scale(1.08); }
@keyframes navLogoBreath {
  0%, 100% { box-shadow: 0 8px 22px rgba(0,0,0,.15); }
  50%      { box-shadow: 0 12px 30px rgba(111,167,217,.4); }
}
@keyframes navLogoBeat {
  0%, 100% { transform: scale(1); }
  14%      { transform: scale(1.12); }
  28%      { transform: scale(1); }
  42%      { transform: scale(1.12); }
  70%      { transform: scale(1); }
}
@media (max-width: 1100px) { .nav-brand { width: 60px; height: 60px; } .nav-logo { width: 48px; } }
@media (max-width: 820px)  { .nav-brand { width: 56px; height: 56px; } .nav-logo { width: 44px; } }
@media (max-width: 520px)  { .nav-brand { width: 48px; height: 48px; } .nav-logo { width: 38px; } }
.nav-links { display: flex; gap: 22px; flex: 1 1 auto; justify-content: center; flex-wrap: wrap; }
.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--blue);
  transition: width .25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  background: var(--yellow);
  color: var(--navy);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(244,200,115,.55); background: var(--yellow-600); }
.nav-toggle {
  display: none;
  background: none; border: 0;
  flex-direction: column; gap: 4px;
  cursor: pointer; padding: 6px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 130px 24px 110px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.78) 55%, rgba(255,255,255,.95) 100%),
    url('../../imagenes/04-familia-hospital.png') left center/cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,.5) 100%);
  z-index: 0;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -30% -30%;
  width: 55vw; height: 55vw;
  background: radial-gradient(circle, rgba(244,200,115,.22), transparent 60%);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;     /* mismo tamaño */
  gap: 56px;
  align-items: stretch;
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-inner .cot-form-card { max-width: 520px; margin: 0 auto; }
}
.hero-eyebrow {
  display: inline-block;
  background: none;
  color: var(--yellow-600) !important;
  -webkit-text-fill-color: var(--yellow-600) !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .95rem;
  padding: 0;
  margin: 0 0 14px;
  box-shadow: none;
  animation: eyebrowPulse 2.4s ease-in-out infinite;
}
@keyframes eyebrowPulse {
  0%, 100% { opacity: 1;   letter-spacing: .2em; }
  50%      { opacity: .75; letter-spacing: .24em; }
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.12;
  margin: 0 0 18px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -.02em;
}
.hero h1 .hl {
  background: linear-gradient(180deg, transparent 62%, rgba(244,200,115,.55) 62%);
  padding: 0 4px;
}

/* Titular con pesos y colores mezclados (misma fuente que el nav: Nunito) */
.hero-title-mix { display: block; }
.hero-title-mix span { display: inline-block; padding: 0 .08em; }
.hero-title-mix .w-a { font-weight: 800; color: var(--navy); letter-spacing: -.015em; }
.hero-title-mix .w-b { font-weight: 400; color: var(--muted); }
.hero-title-mix .w-c {
  font-weight: 800;
  color: var(--blue-600);
  letter-spacing: -.01em;
}
.hero-title-mix .w-d {
  font-weight: 800;
  color: var(--navy);
  background: linear-gradient(180deg, transparent 62%, rgba(244,200,115,.6) 62%);
  padding: 0 6px;
  border-radius: 4px;
}
.hero-title-mix .w-e { font-weight: 600; color: var(--navy); font-style: italic; }
.hero-title-mix .w-f {
  font-weight: 800;
  color: var(--navy);
  position: relative;
}
.hero-title-mix .w-f::after {
  content: "";
  position: absolute;
  left: 4%; right: 4%; bottom: -4px;
  height: 6px;
  background: var(--yellow);
  border-radius: 99px;
  opacity: .85;
}
.hero-title-mix .w-dot { color: var(--yellow-600); font-weight: 800; padding: 0; }
.hero-sub {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 560px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(45,62,86,.28); }
.btn-ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: var(--yellow-600); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(244,200,115,.55); }

/* Latido continuo en CTAs destacados */
.btn-heartbeat { animation: heartbeat 1.6s ease-in-out infinite; }
@keyframes heartbeat {
  0%,100% { transform: scale(1); box-shadow: 0 6px 18px rgba(244,200,115,.4); }
  14%     { transform: scale(1.07); box-shadow: 0 12px 28px rgba(244,200,115,.65); }
  28%     { transform: scale(1); }
  42%     { transform: scale(1.07); }
  70%     { transform: scale(1); }
}
.btn-heartbeat-blue { animation: heartbeatBlue 1.6s ease-in-out infinite; }
@keyframes heartbeatBlue {
  0%,100% { transform: scale(1); box-shadow: 0 6px 18px rgba(45,92,179,.35); }
  14%     { transform: scale(1.06); box-shadow: 0 14px 32px rgba(45,92,179,.55); }
  28%     { transform: scale(1); }
  42%     { transform: scale(1.06); }
  70%     { transform: scale(1); }
}

/* Botón azul */
.btn-azul {
  background: var(--azul);
  color: #fff;
  font-weight: 800;
  letter-spacing: .01em;
  gap: 10px;
}
.btn-azul:hover { background: var(--azul-600); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(45,92,179,.45); }
.btn-azul .btn-ico { width: 20px; height: 20px; filter: brightness(0) invert(1); }

.hero-comparador-pitch {
  margin: 22px 0 8px;
  max-width: 560px;
  line-height: 1.45;
  display: block;
}
.hero-comparador-pitch .pitch-main {
  display: block;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -.01em;
  line-height: 1.35;
}
.hero-comparador-pitch .pitch-sub {
  display: block;
  color: var(--navy);
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 6px;
}
.hero-comparador {
  margin-top: 10px;
  padding: 14px 26px;
  font-size: 1rem;
  align-self: flex-start;
}
@media (max-width: 600px) { .hero-comparador { align-self: stretch; justify-content: center; } }

/* Badges tipo empresa en comparador */
.badge-tipo {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-right: 6px;
}
.badge-prepagas       { background: rgba(45,92,179,.12);   color: var(--azul); }
.badge-obras-sociales { background: rgba(244,200,115,.22); color: var(--yellow-600); }

.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.8rem; color: var(--navy); font-weight: 800; }
.hero-stats span { color: var(--muted); font-size: .9rem; }

/* ========= ANIMACIONES GLOBALES EXTRA ========= */
.hero::before, .hero::after { animation: heroOrbit 12s ease-in-out infinite alternate; }
@keyframes heroOrbit {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(-20px,30px) scale(1.08); }
  100% { transform: translate(18px,-24px) scale(.95); }
}

/* Eyebrow con barrido de luz */
.section-eyebrow, .hero-eyebrow {
  background: linear-gradient(90deg, var(--blue-600), var(--yellow-600), var(--blue-600));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: eyebrowShine 4s linear infinite;
}
@keyframes eyebrowShine { to { background-position: -200% 0; } }

/* Botones con shine hover */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s ease;
}
.btn:hover::before { transform: translateX(120%); }
.btn-primary:hover, .btn-yellow:hover, .btn-ghost:hover { animation: btnPulse 1.4s ease-in-out infinite; }
@keyframes btnPulse {
  0%,100% { box-shadow: 0 6px 18px rgba(45,62,86,.18); }
  50%     { box-shadow: 0 10px 28px rgba(45,62,86,.32); }
}

/* Stats con entrada en cascada */
.hero-stats > div {
  opacity: 0; transform: translateY(18px);
  animation: statsIn .7s cubic-bezier(.3,.9,.3,1) forwards;
}
.hero-stats > div:nth-child(1) { animation-delay: .2s; }
.hero-stats > div:nth-child(2) { animation-delay: .35s; }
.hero-stats > div:nth-child(3) { animation-delay: .5s; }
@keyframes statsIn { to { opacity: 1; transform: translateY(0); } }

/* Cards con hover 3D */
.about-card, .service, .plan-card, .logo-card, .blog-card {
  transition: transform .35s cubic-bezier(.2,.9,.3,1), box-shadow .35s ease, border-color .2s;
  will-change: transform;
}
.about-card:hover, .service:hover, .plan-card:hover, .logo-card:hover, .blog-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 18px 40px rgba(45,62,86,.16);
}

/* Icon de about: float idle + bounce hover */
.about-ico { animation: iconFloat 4s ease-in-out infinite; }
.about-ico img { transition: transform .35s cubic-bezier(.2,2,.3,1); }
.about-card:hover .about-ico img { transform: scale(1.15) rotate(-4deg); }
@keyframes iconFloat { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-4px);} }

/* Logo-cards stagger + glow al hover */
.logo-card {
  opacity: 0; transform: translateY(14px);
  animation: cardIn .55s ease forwards;
}
.logo-card:nth-child(1){animation-delay:.05s}.logo-card:nth-child(2){animation-delay:.1s}
.logo-card:nth-child(3){animation-delay:.15s}.logo-card:nth-child(4){animation-delay:.2s}
.logo-card:nth-child(5){animation-delay:.25s}.logo-card:nth-child(6){animation-delay:.3s}
.logo-card:nth-child(7){animation-delay:.35s}.logo-card:nth-child(8){animation-delay:.4s}
.logo-card:nth-child(9){animation-delay:.45s}.logo-card:nth-child(10){animation-delay:.5s}
.logo-card:nth-child(11){animation-delay:.55s}.logo-card:nth-child(12){animation-delay:.6s}
@keyframes cardIn { to { opacity:1; transform:translateY(0);} }
.logo-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(168,200,236,.35), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.logo-card:hover::after { opacity: 1; }

/* Puntos flotantes en secciones — parallax suave */
.section { position: relative; overflow: hidden; }
.section::before {
  content: ""; position: absolute; top: -40px; left: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(168,200,236,.25), transparent 70%);
  animation: bubbleFloat 14s ease-in-out infinite;
  pointer-events: none; z-index: 0;
}
.section.section-alt::before { background: radial-gradient(circle, rgba(244,200,115,.22), transparent 70%); right:-40px; left:auto; }
@keyframes bubbleFloat {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(40px,30px) scale(1.2); }
}
.section > .container { position: relative; z-index: 1; }

/* Titulares animados con subrayado progresivo en H2 */
.section h2 { position: relative; display: inline-block; padding-bottom: 6px; }
.section h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 4px; border-radius: 99px;
  background: linear-gradient(90deg, var(--blue-600), var(--yellow));
  transition: width .8s cubic-bezier(.3,.9,.3,1);
}
.section h2.visible::after { width: 72px; }

/* WhatsApp FAB float idle */
.wa-fab { animation: waFloat 4s ease-in-out infinite; }
@keyframes waFloat { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-6px);} }

/* Footer social icons: rotate + pop */
.footer-social a { transition: transform .3s cubic-bezier(.2,2,.3,1), box-shadow .25s; }
.footer-social a:hover { transform: translateY(-4px) rotate(-6deg); }

.hero-art { position: relative; display: grid; place-items: center; min-height: 440px; }
.hero-logo {
  width: min(100%, 420px);
  filter: drop-shadow(0 20px 40px rgba(45,62,86,.18));
  animation: floatY 5s ease-in-out infinite;
  position: relative;
  z-index: 2;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-14px) rotate(1deg); }
}

/* Tarjetas flotantes con fotos reales alrededor del logo */
.hero-photo {
  position: absolute;
  width: 150px;
  height: 190px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(45,62,86,.22);
  border: 4px solid #fff;
  background: #fff;
  z-index: 3;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-1 { top: 6%; left: -4%; animation: floatY 7s ease-in-out infinite; transform: rotate(-4deg); }
.hero-photo-2 { bottom: 4%; right: -2%; animation: floatY 6s ease-in-out 1.5s infinite; transform: rotate(3deg); }
.hero-photo-3 { bottom: 28%; left: 8%; width: 130px; height: 130px; border-radius: 50%; animation: floatY 8s ease-in-out .6s infinite; }

@media (max-width: 900px) {
  .hero-photo { width: 110px; height: 140px; }
  .hero-photo-3 { width: 100px; height: 100px; }
}

/* Fotos dentro de about-cards (reemplazan los emojis) */
.about-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 18px;
  border: 3px solid var(--yellow);
  box-shadow: 0 10px 24px rgba(45,62,86,.14);
  background: var(--cream);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Banner-foto con familia en sección servicios/about */
.family-banner {
  position: relative;
  margin: 40px auto 0;
  max-width: var(--max-w);
  padding: 0 24px;
}
.family-banner-inner {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--navy);
  min-height: 260px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: stretch;
  box-shadow: var(--shadow-lg);
}
.family-banner-text {
  padding: 40px 44px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.family-banner-text h3 { margin: 0 0 10px; font-size: 1.8rem; color: #fff; font-weight: 800; }
.family-banner-text p { margin: 0 0 18px; color: #cfd8e4; }
.family-banner-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
  .family-banner-inner { grid-template-columns: 1fr; }
  .family-banner-photo { aspect-ratio: 16/9; }
  .family-banner-text { padding: 28px; }
}

/* Sub-hero para páginas internas */
.subhero {
  position: relative;
  padding: 56px 24px 40px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--bg) 100%);
  overflow: hidden;
}
.subhero::before { display: none; }

/* Lista con check-ring SVG (reemplaza ✅) */
.features-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  gap: 12px;
}
.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.5;
}
.features-list li img {
  width: 22px; height: 22px;
  flex: none;
  margin-top: 2px;
}
.subhero .container { position: relative; z-index: 1; }
.subhero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 10px; color: var(--navy); font-weight: 800; letter-spacing: -.01em; }
.subhero p { margin: 0; color: var(--muted); max-width: 720px; font-size: 1.05rem; }
.subhero .crumbs { font-size: .85rem; color: var(--muted-2); margin-bottom: 10px; }
.subhero .crumbs a:hover { color: var(--blue-600); }

/* ============================================================
   SECCIONES GENERALES
   ============================================================ */
.section { padding: 80px 24px; position: relative; }
.section-alt { background: #fff; }
.container { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1; }
.section-eyebrow {
  color: var(--blue-600);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .82rem;
  margin: 0 0 10px;
}
.section h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  margin: 0 0 16px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -.01em;
}
.section-sub { color: var(--muted); margin: 0 0 40px; max-width: 680px; font-size: 1.05rem; }

/* ============================================================
   ABOUT / CARDS
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.about-card {
  background: var(--card);
  padding: 30px 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.about-ico {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  margin-bottom: 16px;
  background: transparent;    /* sin recuadro teñido */
}
.about-ico img { width: 56px; height: 56px; display: block; }

/* ============================================================
   SECCIÓN PROCESO (foto izquierda + 5 pasos animados derecha)
   ============================================================ */
.proceso-section { padding: 80px 24px; }
.proceso-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 960px) {
  .proceso-grid { grid-template-columns: 1fr; gap: 40px; }
}
.proceso-visual .section-eyebrow { margin-bottom: 8px; }
.proceso-visual h2 { margin: 0 0 14px; font-size: 2rem; }
.proceso-visual .section-sub { margin: 0 0 24px; color: var(--muted); }
.proceso-image-clean {
  width: 100%;
  border-radius: 28px;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: 0 22px 50px rgba(45,62,86,.18);
  transition: transform .6s cubic-bezier(.2,1.4,.3,1);
}
.proceso-image-clean:hover { transform: scale(1.02) rotate(-.4deg); }

/* Entrada animada secuencial de cada paso */
.pasos .paso {
  opacity: 0;
  transform: translateX(26px);
  animation: pasoSlideIn .75s cubic-bezier(.22,1,.36,1) forwards;
}
.pasos .paso:nth-child(1) { animation-delay: .15s; }
.pasos .paso:nth-child(2) { animation-delay: .35s; }
.pasos .paso:nth-child(3) { animation-delay: .55s; }
.pasos .paso:nth-child(4) { animation-delay: .75s; }
.pasos .paso:nth-child(5) { animation-delay: .95s; }
@keyframes pasoSlideIn {
  0%   { opacity: 0; transform: translateX(26px); }
  100% { opacity: 1; transform: translateX(0); }
}
/* Número del paso con pulse permanente */
.paso-num { animation: numPulse 2.2s ease-in-out infinite; }
@keyframes numPulse {
  0%,100% { box-shadow: 0 4px 10px rgba(45,92,179,.35); transform: scale(1); }
  50%     { box-shadow: 0 6px 18px rgba(45,92,179,.55); transform: scale(1.08); }
}
.proceso-media {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(111,167,217,.12), rgba(244,200,115,.1));
  aspect-ratio: 4/3;
  box-shadow: 0 20px 48px rgba(45,62,86,.1);
  border: 1px solid var(--line);
}
.proceso-image {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.proceso-logo-fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at center, #fffaf0 0%, var(--cream) 100%);
}
.proceso-logo-fallback img {
  max-width: 70%;
  filter: drop-shadow(0 18px 40px rgba(45,62,86,.18));
  animation: floatY 5s ease-in-out infinite;
}

/* ---- Float badges sobre la foto (sellos de confianza) ---- */
.float-badge {
  position: absolute;
  background: #fff;
  color: var(--navy);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
  box-shadow: 0 12px 30px rgba(45,62,86,.22);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  animation: floatY 4s ease-in-out infinite;
  z-index: 2;
}
.float-badge img { width: 18px; height: 18px; }
.float-badge-1 { top: 20px; left: -10px; animation-delay: .2s; }
.float-badge-2 { bottom: 28px; right: -12px; animation-delay: 1s; color: var(--yellow-600); }

/* ============================================================
   PHOTO BANNER (familia + texto)
   ============================================================ */
.photo-banner-section { padding: 60px 24px; }
.photo-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 960px) { .photo-banner { grid-template-columns: 1fr; } }
.photo-banner-img {
  width: 100%;
  border-radius: 28px;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: 0 22px 50px rgba(45,62,86,.18);
  transition: transform .5s ease;
}
.photo-banner-img:hover { transform: scale(1.02) rotate(-.3deg); }
.photo-banner-text .section-eyebrow { margin-bottom: 8px; }
.photo-banner-text h2 { margin: 0 0 14px; font-size: 2rem; }
.photo-banner-text p { color: var(--muted); margin: 0 0 24px; line-height: 1.7; }

/* ============================================================
   ESPECIALIDADES (grid con fotos)
   ============================================================ */
.especialidades-section { padding: 80px 24px; }
.especialidades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
/* Fila de abajo: 2 cards más anchas centradas */
.especialidades-grid > .esp-card:nth-child(4),
.especialidades-grid > .esp-card:nth-child(5) {
  grid-column: span 1;
}
.especialidades-grid > .esp-card:nth-child(4) { grid-column: 1 / span 1; margin-left: 0; }
/* 3 arriba + 2 abajo (el 4to empieza en col 1, el 5to sigue; queda un espacio vacío en col 3) → usamos subgrid logic:
   forzamos 2 abajo ocupando 1.5 cada una */
.especialidades-grid {
  grid-template-rows: auto auto;
}
@media (min-width: 900px) {
  .especialidades-grid > .esp-card:nth-child(1) { grid-area: 1 / 1; }
  .especialidades-grid > .esp-card:nth-child(2) { grid-area: 1 / 2; }
  .especialidades-grid > .esp-card:nth-child(3) { grid-area: 1 / 3; }
  .especialidades-grid > .esp-card:nth-child(4) { grid-area: 2 / 1 / auto / span 1; margin-left: 16.66%; }
  .especialidades-grid > .esp-card:nth-child(5) { grid-area: 2 / 2 / auto / span 2; margin-right: 16.66%; }
  /* Simpler approach: 6 columns grid, top row uses 2 cols each, bottom uses 3 cols each */
  .especialidades-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .especialidades-grid > .esp-card:nth-child(1) { grid-column: 1 / span 2; grid-row: 1; margin: 0; }
  .especialidades-grid > .esp-card:nth-child(2) { grid-column: 3 / span 2; grid-row: 1; margin: 0; }
  .especialidades-grid > .esp-card:nth-child(3) { grid-column: 5 / span 2; grid-row: 1; margin: 0; }
  .especialidades-grid > .esp-card:nth-child(4) { grid-column: 2 / span 2; grid-row: 2; margin: 0; }
  .especialidades-grid > .esp-card:nth-child(5) { grid-column: 4 / span 2; grid-row: 2; margin: 0; }
}
@media (max-width: 899px) {
  .especialidades-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .especialidades-grid { grid-template-columns: 1fr; }
}
.esp-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2,1.4,.3,1), box-shadow .3s;
}
.esp-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(45,62,86,.18); }
.esp-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform .6s ease;
}
.esp-card:hover img { transform: scale(1.06); }
.esp-card-body { padding: 28px 30px; }
.esp-card-body h3 { margin: 0 0 10px; color: var(--azul-600); font-size: 1.25rem; font-weight: 800; }
.esp-card-body p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }

/* ============================================================
   CTA FINAL con foto
   ============================================================ */
.cta-section { padding: 60px 24px 100px; }
.cta-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff;
  padding: 56px 56px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: "";
  position: absolute; inset: 0;
  background: url('../../imagenes/08-familia-calle.png') center/cover no-repeat;
  opacity: .1;
  filter: blur(2px);
  z-index: 0;
}
.cta-text { position: relative; z-index: 1; }
.cta-text h2 { color: #fff; margin: 0 0 14px; font-size: 2rem; }
.cta-text p { color: #cfd8e4; max-width: 560px; margin: 0 0 24px; font-size: 1.05rem; }
.cta-photo {
  position: relative; z-index: 1;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
}
.cta-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .cta-inner { grid-template-columns: 1fr; padding: 40px 32px; } }

.pasos { display: grid; gap: 28px; }
.paso {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  position: relative;
  padding: 14px 0;
}
.paso:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 39px; top: 104px; bottom: -28px;
  width: 2px;
  background: linear-gradient(180deg, var(--celeste), transparent);
}
.paso-ico {
  flex: 0 0 78px;
  width: 78px; height: 78px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(111,167,217,.16), rgba(168,200,236,.05));
  border: 1px solid rgba(111,167,217,.35);
  display: grid; place-items: center;
  position: relative;
  z-index: 1;
  transition: transform .3s cubic-bezier(.2,1.4,.3,1);
}
.paso:hover .paso-ico { transform: scale(1.06); }
.paso-ico img { width: 44px; height: 44px; }
.paso-num {
  position: absolute;
  top: -6px; left: -8px;
  width: 28px; height: 28px;
  background: var(--azul);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: .78rem;
  box-shadow: 0 4px 10px rgba(45,92,179,.35);
  z-index: 2;
}
.paso-body { flex: 1; min-width: 0; }
.paso h3 {
  margin: 0 0 6px;
  color: var(--azul);
  font-weight: 800;
  font-size: 1.15rem;
}
.paso p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
}

/* Formulario cotizador */
.cot-form-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 32px 28px;
  box-shadow: 0 24px 56px rgba(45,62,86,.12);
  position: relative;
  z-index: 2;
}
.cot-form-head { text-align: center; margin-bottom: 22px; }
.cot-form-head h3 {
  margin: 0 0 6px;
  font-size: 1.55rem;
  color: var(--azul);
  font-weight: 800;
  letter-spacing: -.01em;
}
.cot-form-head p { margin: 0; color: var(--muted); font-size: .95rem; }
.cot-form { display: grid; gap: 14px; }
.cot-form label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-size: .88rem;
  font-weight: 600;
}
.cot-form input,
.cot-form select {
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fbfcfe;
  font-family: inherit;
  font-size: .95rem;
  color: var(--navy);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.cot-form input:focus,
.cot-form select:focus {
  outline: none;
  border-color: var(--celeste);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(111,167,217,.18);
}
.cot-submit {
  margin-top: 6px;
  padding: 16px 22px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.cot-legal {
  margin: 14px 0 0;
  text-align: center;
  color: var(--muted-2);
  font-size: .78rem;
  letter-spacing: .01em;
}
.about-card h3 { margin: 0 0 10px; color: var(--navy); font-size: 1.15rem; }
.about-card p { margin: 0; color: var(--muted); }

/* ============================================================
   LOGO GRID (empresas)
   ============================================================ */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
}
.logo-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 3 / 2;
  display: grid; place-items: center;
  padding: 24px 18px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative; overflow: hidden;
  cursor: pointer;
}
.logo-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(168,200,236,0), rgba(244,200,115,0));
  transition: background .25s ease;
}
.logo-card img {
  max-width: 80%; max-height: 62%;
  object-fit: contain;
  filter: grayscale(12%);
  transition: filter .25s ease, transform .25s ease;
  position: relative; z-index: 1;
}
.logo-card .logo-name {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
  font-weight: 600;
  opacity: 0; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}
.logo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue); }
.logo-card:hover::before { background: linear-gradient(135deg, rgba(168,200,236,.12), rgba(244,200,115,.12)); }
.logo-card:hover img { filter: grayscale(0); transform: scale(1.06); }
.logo-card:hover .logo-name { opacity: 1; transform: translateY(0); }

/* Search bar para grids */
.grid-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 8px 8px 16px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.grid-toolbar input {
  flex: 1;
  border: 0;
  font-size: 1rem;
  padding: 8px;
  background: transparent;
  color: var(--navy);
  font-family: inherit;
}
.grid-toolbar input:focus { outline: 0; }
.grid-toolbar .count {
  color: var(--muted-2);
  font-size: .85rem;
  font-weight: 600;
  margin-right: 6px;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.services-head h2 { margin: 0; }
.services-cta { white-space: nowrap; }
@media (max-width: 600px) {
  .services-head { justify-content: flex-start; }
  .services-cta { width: 100%; justify-content: center; }
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 40px;
}
.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.2,1.4,.3,1), box-shadow .35s;
}
.service img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.service-overlay {
  padding: 22px 24px 24px;
  background: #fff;
  color: var(--navy);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  border-top: 3px solid var(--yellow);
  position: relative;
}
.service-overlay h3 {
  margin: 0;
  color: var(--azul) !important;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.service-overlay p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}
.service:hover { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(45,62,86,.24); }
.service:hover img { transform: scale(1.05); }

/* Entrada animada secuencial en servicios */
.services-grid .service {
  opacity: 0;
  transform: translateY(24px);
  animation: svcIn .7s cubic-bezier(.22,1,.36,1) forwards;
}
.services-grid .service:nth-child(1) { animation-delay: .1s; }
.services-grid .service:nth-child(2) { animation-delay: .22s; }
.services-grid .service:nth-child(3) { animation-delay: .34s; }
.services-grid .service:nth-child(4) { animation-delay: .46s; }
@keyframes svcIn { to { opacity: 1; transform: translateY(0); } }

/* (flecha removida — servicios ahora tienen layout imagen+body azul) */

/* Titulares con iluminación sutil + entrada elegante + subrayado animado */
h1.animado, h2.animado, h3.animado, .animado {
  position: relative;
  display: inline-block;
  color: var(--navy) !important;
  -webkit-text-fill-color: var(--navy) !important;
  background: none !important;
  animation: titleRise 1s cubic-bezier(.22,1,.36,1) both, titleGlow 4s ease-in-out .8s infinite;
  text-shadow: 0 2px 24px rgba(45,92,179,.0);
}
@keyframes titleRise {
  0%   { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  60%  { filter: blur(0); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes titleGlow {
  0%, 100% { text-shadow: 0 2px 18px rgba(45,92,179,.0); }
  50%      { text-shadow: 0 2px 28px rgba(45,92,179,.28); }
}
.animado::after {
  content: "";
  display: block;
  height: 4px; width: 80px;
  margin-top: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--azul), var(--yellow));
  animation: underlineGrow 2s ease-in-out infinite alternate;
  -webkit-text-fill-color: initial;
}
@keyframes gradientShimmer {
  from { background-position: 220% 0; }
  to   { background-position: 0% 0; }
}
@keyframes underlineGrow {
  0%   { width: 60px; opacity: .7; }
  100% { width: 160px; opacity: 1; }
}

/* ============================================================
   COMPARADOR
   ============================================================ */
.compare-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  margin-top: 20px;
}
@media (max-width: 900px) { .compare-layout { grid-template-columns: 1fr; } }
.compare-panel {
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  position: sticky; top: 90px;
  align-self: start;
}
.compare-panel h3 { margin: 0 0 14px; font-size: 1rem; color: var(--navy); }
.compare-panel label { display: grid; gap: 6px; margin-bottom: 14px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.compare-panel input, .compare-panel select {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--bg);
  color: var(--navy);
  font-family: inherit;
  font-size: .95rem;
}
.compare-panel input:focus, .compare-panel select:focus { outline: 0; border-color: var(--blue); background: #fff; }
.compare-results { display: grid; gap: 16px; }
.compare-item {
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 18px;
  align-items: center;
  transition: box-shadow .2s ease, transform .2s ease;
}
.compare-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.compare-item img { width: 80px; height: 56px; object-fit: contain; }
.compare-item h4 { margin: 0; color: var(--navy); font-size: 1.05rem; }
.compare-item .plan { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.compare-item .price { color: var(--navy); font-weight: 800; font-size: 1.1rem; }
.compare-item .price small { display: block; color: var(--muted); font-weight: 500; font-size: .75rem; margin-top: 2px; }
.compare-item .score {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  background: conic-gradient(var(--blue) var(--p, 80%), #e4ebf2 0);
  color: var(--navy);
  position: relative;
}
.compare-item .score span {
  background: #fff;
  border-radius: 50%;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  font-size: .85rem;
}

/* ============================================================
   CARTILLA
   ============================================================ */
.cartilla-search {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}
@media (max-width: 900px) { .cartilla-search { grid-template-columns: 1fr; } }
.cartilla-search label { display: grid; gap: 6px; font-size: .88rem; font-weight: 700; color: var(--muted); }
.cartilla-search input, .cartilla-search select {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--bg);
  color: var(--navy);
  font-family: inherit;
  font-size: .98rem;
}
.cartilla-search input:focus, .cartilla-search select:focus { outline: 0; border-color: var(--blue); background: #fff; }
.cartilla-result {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-top: 16px; display: grid;
  grid-template-columns: 90px 1fr auto; gap: 22px; align-items: center;
}
.cartilla-result .ico {
  position: relative;
  width: 78px; height: 78px; border-radius: 22px;
  background: linear-gradient(135deg, rgba(111,167,217,.16), rgba(168,200,236,.05));
  border: 1px solid rgba(111,167,217,.35);
  display: grid; place-items: center;
  color: var(--azul);
  font-size: 1.8rem;
}
.cartilla-result .num {
  position: absolute;
  top: -6px; left: -8px;
  width: 28px; height: 28px;
  background: var(--azul);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: .78rem;
  box-shadow: 0 4px 10px rgba(45,92,179,.35);
  z-index: 2;
}
.cartilla-result h4 { margin: 0; color: var(--navy); }
.cartilla-result p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }

/* ============================================================
   BLOG / ACTUALIDAD
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.2,1.4,.3,1), box-shadow .35s;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(45,62,86,.2); }
.blog-thumb {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: transform .6s ease;
}
.blog-card:hover .blog-thumb { transform: scale(1.04); }
.blog-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(45,92,179,0) 40%, rgba(15,25,45,.3) 100%);
}
.blog-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.blog-tag {
  align-self: flex-start;
  background: var(--cream);
  color: var(--navy);
  padding: 4px 10px;
  font-size: .75rem;
  font-weight: 700;
  border-radius: 999px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.blog-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.1rem; }
.blog-card p { margin: 0 0 14px; color: var(--muted); font-size: .92rem; flex: 1; }
.blog-card .blog-meta { color: var(--muted-2); font-size: .8rem; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; font-size: 1.05rem; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list .contact-ico { width: 22px; height: 22px; flex: none; display: inline-block; }
.contact-list a { color: var(--navy); font-weight: 600; }
.contact-list a:hover { color: var(--azul-600); }
.contact-form {
  background: var(--card);
  padding: 32px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: grid; gap: 14px;
}
.contact-form label { display: grid; gap: 6px; font-size: .9rem; color: var(--muted); font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: inherit; font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg); color: var(--text);
  transition: border-color .2s ease, background .2s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 0; border-color: var(--blue); background: #fff;
}
.contact-form button { justify-self: start; margin-top: 6px; }
.form-note { margin: 0; font-size: .85rem; color: var(--muted); }

/* ============================================================
   EMPRESA DETAIL (prepagas/obras-sociales/:slug)
   ============================================================ */
.empresa-hero {
  position: relative;
  padding: 50px 24px 30px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--bg) 100%);
  overflow: hidden;
}
.empresa-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 28px;
  align-items: center;
  position: relative; z-index: 1;
}
@media (max-width: 720px) {
  .empresa-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .empresa-hero-inner .btn { justify-self: center; }
}
.empresa-logo-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  aspect-ratio: 3/2;
}
.empresa-logo-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.empresa-hero h1 { margin: 0 0 8px; color: var(--navy); font-size: 2.2rem; font-weight: 800; }
.empresa-hero .crumbs { color: var(--muted-2); font-size: .85rem; margin-bottom: 6px; }
.empresa-hero .score-ring {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: conic-gradient(var(--blue) var(--p, 80%), #e4ebf2 0);
  display: grid; place-items: center;
}
.empresa-hero .score-ring span {
  background: #fff;
  border-radius: 50%;
  width: 78px; height: 78px;
  display: grid; place-items: center;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.4rem;
}
/* === HERO extras: subtítulo + descripción corta === */
.empresa-hero-sub { color: var(--muted); margin: 0 0 6px; font-size: .95rem; }
.empresa-hero-sub strong { color: var(--navy); }
.empresa-hero-desc { color: var(--muted); margin: 10px 0 0; font-size: .95rem; max-width: 700px; line-height: 1.5; }

/* === LAYOUT EMPRESA: sidenav sticky + contenido === */
.empresa-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
  position: relative;
}
@media (max-width: 980px) {
  .empresa-layout { grid-template-columns: 1fr; }
}

/* La sección contenedora del layout empresa NO debe tener overflow hidden
   porque rompe el position: sticky del sidenav */
.section.empresa-wrap { overflow: visible; }
.section.empresa-wrap::before { display: none; }

.empresa-sidenav {
  position: sticky;
  top: 100px;
  align-self: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  box-shadow: var(--shadow);
  z-index: 5;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
}
@media (max-width: 980px) {
  .empresa-sidenav { position: relative; top: 0; max-height: none; }
}
.sidenav-title {
  font-weight: 800;
  color: var(--navy);
  font-size: 1rem;
  margin: 0 6px 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.empresa-sidenav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.empresa-sidenav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: .92rem;
  transition: background .2s ease, color .2s ease, transform .2s ease;
  position: relative;
}
.empresa-sidenav a::before {
  content: "";
  width: 4px; height: 18px;
  background: transparent;
  border-radius: 99px;
  flex: none;
  transition: background .2s ease, height .2s ease;
}
.empresa-sidenav a:hover {
  background: var(--cream);
  color: var(--navy);
}
.empresa-sidenav a.active {
  background: linear-gradient(90deg, rgba(111,167,217,.18), rgba(168,200,236,.08));
  color: var(--azul);
  font-weight: 700;
}
.empresa-sidenav a.active::before { background: var(--azul); height: 22px; }
.sidenav-ico {
  width: 18px; height: 18px;
  flex: none;
  background: currentColor;
  -webkit-mask: no-repeat center / contain;
          mask: no-repeat center / contain;
}
.sidenav-ico[data-ic="clipboard"] { -webkit-mask-image: url('../icons/sn-clipboard.svg'); mask-image: url('../icons/sn-clipboard.svg'); }
.sidenav-ico[data-ic="tag"]       { -webkit-mask-image: url('../icons/sn-tag.svg'); mask-image: url('../icons/sn-tag.svg'); }
.sidenav-ico[data-ic="check"]     { -webkit-mask-image: url('../icons/sn-check.svg'); mask-image: url('../icons/sn-check.svg'); }
.sidenav-ico[data-ic="hospital"]  { -webkit-mask-image: url('../icons/sn-hospital.svg'); mask-image: url('../icons/sn-hospital.svg'); }
.sidenav-ico[data-ic="users"]     { -webkit-mask-image: url('../icons/sn-users.svg'); mask-image: url('../icons/sn-users.svg'); }
.sidenav-ico[data-ic="phone"]     { -webkit-mask-image: url('../icons/sn-phone.svg'); mask-image: url('../icons/sn-phone.svg'); }
.sidenav-ico[data-ic="location"]  { -webkit-mask-image: url('../icons/sn-location.svg'); mask-image: url('../icons/sn-location.svg'); }
.sidenav-ico[data-ic="question"]  { -webkit-mask-image: url('../icons/sn-question.svg'); mask-image: url('../icons/sn-question.svg'); }
.sidenav-ico[data-ic="star"]      { -webkit-mask-image: url('../icons/sn-star.svg'); mask-image: url('../icons/sn-star.svg'); }
.sidenav-cta {
  display: inline-flex;
  width: 100%;
  margin-top: 16px;
  justify-content: center;
  padding: 12px 18px;
  font-size: .92rem;
}

.empresa-content { min-width: 0; }
.emp-sec {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 22px;
  scroll-margin-top: 100px;
}
.emp-sec h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
  color: var(--azul);
  font-weight: 800;
  letter-spacing: -.01em;
}
.emp-sec-body p { color: var(--muted); line-height: 1.7; margin: 0 0 10px; }
.emp-sec-body ul { color: var(--muted); }

/* Sanatorios: lista elegante con bullets */
.san-region { margin-bottom: 18px; }
.san-region h3 {
  font-size: .95rem;
  color: var(--azul-600);
  font-weight: 700;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.san-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}
.san-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  background: var(--cream);
  border-radius: 10px;
  color: var(--navy);
  font-size: .88rem;
  font-weight: 600;
  border: 1px solid var(--line);
}
.san-bullet {
  width: 8px; height: 8px;
  background: var(--celeste);
  border-radius: 50%;
  flex: none;
  margin-top: 6px;
}

/* Tabla de precios */
.price-tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.price-table-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: #fbfcfe;
}
.price-table-card h3 { margin: 0 0 12px; font-size: 1rem; color: var(--azul); }
.price-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.price-table td { padding: 10px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.price-table td:last-child { text-align: right; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table strong { color: var(--navy); font-weight: 800; }
.price-note { margin-top: 14px; color: var(--muted-2); font-size: .82rem; }

/* Sucursales grid */
.suc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.suc-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #fbfcfe;
}
.suc-card strong { color: var(--navy); display: block; margin-bottom: 4px; font-size: .95rem; }
.suc-card p { margin: 0; font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.suc-card .contact-ico { width: 14px; height: 14px; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.faq-item:last-child { border: 0; }
.faq-item summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 700;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-item summary::marker, .faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 0;
  color: var(--celeste); font-weight: 800; font-size: 1.2rem;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "−"; transform: rotate(180deg); }
.faq-item p { color: var(--muted); margin: 10px 0 0; line-height: 1.7; }

/* Opiniones — una por renglón */
.op-list { display: flex; flex-direction: column; gap: 14px; }
.op-card {
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.op-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.op-card strong { color: var(--navy); }
.op-stars { color: var(--yellow-600); letter-spacing: 2px; }
.op-card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }

/* Form dejar opinión */
.op-form, .consulta-form {
  margin-top: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: grid;
  gap: 12px;
}
.op-form h3 { margin: 0 0 6px; color: var(--navy); font-size: 1.05rem; }
.op-form label, .consulta-form label { display: grid; gap: 6px; color: var(--navy); font-size: .88rem; font-weight: 600; }
.op-form input, .op-form select, .op-form textarea,
.consulta-form input, .consulta-form select, .consulta-form textarea {
  padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line);
  background: #fbfcfe; font-family: inherit; font-size: .95rem; color: var(--navy);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.op-form input:focus, .op-form select:focus, .op-form textarea:focus,
.consulta-form input:focus, .consulta-form select:focus, .consulta-form textarea:focus {
  outline: none; border-color: var(--celeste); background: #fff;
  box-shadow: 0 0 0 3px rgba(111,167,217,.18);
}
.consulta-form .cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .consulta-form .cf-row { grid-template-columns: 1fr; } }

/* ============================================================
   EQUIPO (quiénes somos)
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 28px 28px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(45,62,86,.08);
  transition: transform .35s cubic-bezier(.2,1.4,.3,1), box-shadow .35s;
  position: relative;
}
.team-card:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(45,62,86,.2); }
.team-card h3 {
  margin: 14px 0 4px;
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 800;
}
.team-role {
  margin: 0 0 12px;
  color: var(--azul-600);
  font-weight: 700;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.team-bio {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}
.team-avatar {
  width: 108px; height: 108px;
  border-radius: 50%;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--a, var(--azul)) 0%, var(--b, var(--celeste)) 100%);
  display: grid; place-items: center;
  position: relative;
  box-shadow: 0 12px 28px rgba(45,62,86,.18);
  transition: transform .4s cubic-bezier(.2,1.4,.3,1);
}
.team-card:hover .team-avatar { transform: scale(1.05) rotate(-3deg); }
.team-avatar::before {
  content: attr(data-initials);
  color: #fff;
  font-weight: 900;
  font-size: 2.2rem;
  letter-spacing: .02em;
  text-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.team-avatar::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  opacity: 0;
  transition: opacity .3s, transform .3s;
  transform: scale(1.1);
}
.team-card:hover .team-avatar::after { opacity: 1; transform: scale(1); }

.team-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 4px;
}
.team-links a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: transform .25s cubic-bezier(.2,1.4,.3,1), background .2s;
}
.team-links a img { width: 18px; height: 18px; }
.team-links a:hover { background: var(--yellow); transform: translateY(-3px); }

/* Lista de teléfonos por categoría */
.tel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.tel-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.tel-list .contact-ico { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.tel-list .tel-label {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  margin-bottom: 3px;
}
.tel-list a {
  color: var(--azul);
  font-weight: 700;
  font-size: 1rem;
}
.tel-list a:hover { color: var(--navy); }

/* Lista de prestaciones en bullets */
.emp-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.emp-bullets li {
  position: relative;
  padding: 10px 14px 10px 36px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--navy);
  font-size: .92rem;
  line-height: 1.55;
}
.emp-bullets li::before {
  content: "✓";
  position: absolute;
  left: 10px; top: 9px;
  width: 20px; height: 20px;
  background: var(--azul);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .72rem;
  font-weight: 800;
}

/* fallback visibility */
.emp-sec .emp-block p { font-size: .95rem; }
.muted-block { color: var(--muted); font-size: .88rem; background: var(--cream); padding: 14px 16px; border-radius: 12px; margin-top: 14px; }

.planes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.plan-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--yellow); }
.plan-card .plan-name { font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.plan-card .plan-desc { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.plan-card .plan-price { font-weight: 800; color: var(--navy); font-size: 1.3rem; margin-bottom: 10px; }
.plan-card .plan-price small { color: var(--muted); font-weight: 500; font-size: .8rem; }
.plan-card ul { margin: 0 0 14px; padding-left: 1.1em; color: var(--muted); font-size: .88rem; }

.info-row { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border: 0; }
.info-row strong { color: var(--navy); }
.info-row span { color: var(--muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background:
    linear-gradient(135deg, rgba(20,34,58,.92) 0%, rgba(15,25,45,.94) 100%),
    url('../../imagenes/21-nav-header.png') center/cover no-repeat;
  color: #cfd8e4;
  padding: 60px 24px 20px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 50vmin; height: 50vmin;
  background: url('../brand/logo.svg') no-repeat center / contain;
  opacity: 0.04;
  pointer-events: none;
}
.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-logo-wrap {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid rgba(255,255,255,.3);
  display: grid; place-items: center;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,.35);
  animation: footerLogoBreath 5s ease-in-out infinite;
  transition: width .3s ease, height .3s ease;
}
.footer-logo {
  width: 118px; height: auto;
  animation: floatY 4s ease-in-out infinite;
  transition: width .3s ease;
}
@keyframes footerLogoBreath {
  0%, 100% { box-shadow: 0 10px 22px rgba(0,0,0,.35); transform: scale(1); }
  50%      { box-shadow: 0 16px 34px rgba(111,167,217,.45); transform: scale(1.02); }
}
@media (max-width: 1100px) { .footer-logo-wrap { width: 124px; height: 124px; } .footer-logo { width: 102px; } }
@media (max-width: 820px)  { .footer-logo-wrap { width: 108px; height: 108px; } .footer-logo { width: 88px; } }
@media (max-width: 520px)  { .footer-logo-wrap { width: 92px; height: 92px; }   .footer-logo { width: 74px; } }
.footer h4 { color: #fff; margin: 0 0 14px; font-size: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .92rem; }
.footer a:hover { color: var(--blue); }
.footer-brand p { max-width: 320px; color: #a8b6c7; margin-top: 12px; }
.footer-bottom {
  max-width: var(--max-w);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  font-size: .85rem;
  color: #8a98aa;
}
.footer-social {
  display: flex; gap: 10px; margin-top: 18px;
}
.footer-social a {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.footer-social a img { width: 22px; height: 22px; display: block; }
.footer-social a:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.25); }

/* ============================================================
   WHATSAPP FAB — por defecto solo el ícono; despliega texto al hover
   ============================================================ */
.wa-fab {
  position: fixed;
  bottom: 22px; right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 0;                  /* texto colapsado */
  padding: 10px;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.38);
  z-index: 50;
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  transition: gap .3s cubic-bezier(.2,1.4,.3,1), padding .3s cubic-bezier(.2,1.4,.3,1), transform .25s, box-shadow .25s, background .2s;
  isolation: isolate;
  overflow: hidden;
}
.wa-fab-ico {
  width: 42px; height: 42px;
  background: #fff;
  border-radius: 50%;
  padding: 6px;
  display: block;
  flex: none;
}
.wa-fab-text {
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width .35s cubic-bezier(.2,1.4,.3,1), opacity .25s ease;
}
.wa-fab:hover {
  gap: 12px;
  padding: 10px 22px 10px 10px;
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.55);
  background: #1ebe5a;
}
.wa-fab:hover .wa-fab-text { max-width: 240px; opacity: 1; }
.wa-fab::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 999px;
  animation: waPulse 2.2s ease-out infinite;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  z-index: -1;
}
@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
  100% { box-shadow: 0 0 0 24px rgba(37, 211, 102, 0); }
}
@media (max-width: 600px) {
  .wa-fab { padding: 8px; }
  .wa-fab-ico { width: 36px; height: 36px; }
}

/* ============================================================
   RESPONSIVE + REVEAL
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-logo { max-width: 260px; }
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-cta { display: inline-flex; margin-top: 10px; }
  .hero { padding-top: 50px; }
  .section { padding: 60px 24px; }
  .hero-stats { gap: 20px; }
  .logo-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
  .footer-inner { grid-template-columns: 1fr; }
}

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s cubic-bezier(.22,1,.36,1), transform .75s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
/* Variantes para imágenes — entran con leve zoom */
main img.reveal,
.photo-banner-img.reveal,
.esp-card img.reveal,
.service img.reveal,
.cta-photo.reveal { transform: translateY(26px) scale(.96); }
main img.reveal.visible,
.photo-banner-img.reveal.visible,
.esp-card img.reveal.visible,
.service img.reveal.visible,
.cta-photo.reveal.visible { transform: translateY(0) scale(1); }
