/* ───────────────────────────────────────────────
   Módulo Pronto · Navegación (dropdowns + menú móvil)
   Se inyecta con nav.js. Reutiliza .navbar/.nav-links/
   .nav-logo/.nav-cta de styles.css y añade lo nuevo.
   ─────────────────────────────────────────────── */

.nav-burger {
  display: none;
  background: none;
  border: none;
  color: var(--azul-dark, #1e3a52);
  cursor: pointer;
  padding: 4px;
  line-height: 0;
}

/* ── Dropdown (desktop) ── */
.nav-dd { position: relative; }
.nav-dd > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-chev { transition: transform .25s ease; opacity: .9; }
.nav-dd:hover .nav-chev { transform: rotate(180deg); }

/* puente invisible para que el hover no se corte al bajar al submenú */
.nav-dd::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 16px; }

.nav-sub {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  border: 1px solid var(--border, #c8d4dc);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(30, 58, 82, .18);
  padding: 10px;
  min-width: 234px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 1200;
}
.nav-dd:hover .nav-sub { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-sub li { margin: 0; }
.nav-sub a {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  white-space: nowrap;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--azul-dark, #1e3a52);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.nav-sub a:hover { background: var(--azul-bg, #e8f0f6); color: var(--azul, #3a7ca5); }

/* ── Menú móvil (overlay) ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 78px 26px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  /* 24-jul: invisible mientras está cerrado — si no, el panel deslizado fuera
     genera scroll horizontal fantasma en celulares angostos (ej. 320px) */
  visibility: hidden;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), visibility 0s .3s;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.mm-close {
  position: absolute; top: 20px; right: 22px;
  background: none; border: none; font-size: 30px; line-height: 1;
  color: var(--azul-dark, #1e3a52); cursor: pointer;
}
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.mobile-menu a {
  display: block; padding: 12px 8px;
  font-family: 'Fraunces', serif; font-size: 21px;
  color: var(--azul-dark, #1e3a52); text-decoration: none;
}
.mm-group {
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--azul, #3a7ca5);
  padding: 18px 8px 4px;
}
.mobile-menu a.mm-sub { font-family: 'Manrope', sans-serif; font-size: 16px; padding: 10px 8px 10px 20px; color: #4a5a6e; }
.mm-cta {
  margin-top: 26px; background: var(--azul-dark, #1e3a52); color: #fff !important;
  text-align: center; border-radius: 999px;
  font-family: 'Manrope', sans-serif !important; font-weight: 600 !important;
  font-size: 16px !important; padding: 16px !important;
}

/* ── Franja de confianza (debajo del hero) ── */
.trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 14px 36px;
  padding: 20px max(24px, calc((100% - 1180px) / 2));
  background: var(--azul-dark, #1e3a52);
}
.trust-item {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Manrope', sans-serif; font-weight: 500; font-size: 14px;
  color: rgba(255, 255, 255, .92);
}
.trust-item strong { font-weight: 700; color: #fff; }
.trust-item .ti-star { color: #f5a623; font-weight: 700; }
.trust-sep { width: 1px; height: 18px; background: rgba(255, 255, 255, .22); }
@media (max-width: 700px) { .trust-sep { display: none; } .trust-strip { gap: 10px 20px; padding: 18px 20px; } .trust-item { font-size: 13px; } }

/* ── Responsive nav ──
   Menú horizontal con desplegables hasta 860px (laptops y tablets anchas).
   El ☰ hamburguesa solo aparece en móvil / tablet angosta (≤860px). */
@media (min-width: 861px) {
  .navbar .nav-links { display: flex !important; }
  .nav-burger { display: none !important; }
  .mobile-menu { display: none !important; }
}
/* Apretamos un poco el menú en pantallas medianas para que quepa con holgura */
@media (max-width: 1180px) and (min-width: 861px) {
  .navbar .nav-links { gap: 20px !important; }
  .nav-cta { padding: 10px 18px !important; font-size: 14px !important; }
}
@media (max-width: 860px) {
  .navbar .nav-links { display: none !important; }
  .nav-burger { display: inline-flex !important; }
}

/* ───────────────────────────────────────────────
   CTA primario "Agendar consulta": blanco original
   (sin override de color) + animación de brillo/pulso
   que llama la atención, tipo notificación.
   ─────────────────────────────────────────────── */
@keyframes ctaShine {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7),  0 6px 18px rgba(13, 40, 64, .18); }
  70%  { box-shadow: 0 0 0 13px rgba(255, 255, 255, 0), 0 6px 20px rgba(13, 40, 64, .22); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0),    0 6px 18px rgba(13, 40, 64, .18); }
}
.nav-cta { animation: ctaShine 2.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .nav-cta { animation: none; } }

/* ───────────────────────────────────────────────
   Hero: mantener el layout de escritorio (h1 a la izq,
   horarios/reloj a la der, FOTO GRANDE con tarjetas encima)
   hasta 861px, alineado con el breakpoint del menú.
   Sin esto, entre 861-1024 el hero se apilaba y empujaba la foto.
   ─────────────────────────────────────────────── */
@media (min-width: 861px) and (max-width: 1024px) {
  .hero-top { grid-template-columns: 1fr auto !important; }
  .hero-meta { min-width: 280px !important; flex-direction: column !important; gap: 14px !important; }
  .benefits { grid-template-columns: repeat(3, 1fr) !important; gap: 16px !important; bottom: 60px !important; left: 20px !important; right: 20px !important; }
}

/* ───────────────────────────────────────────────
   Sin banner Pronto: SOLO el hero del HOME (con foto a
   sangre) arranca más arriba y ocupa toda la pantalla.
   IMPORTANTE: usar :not(.hero-compact) — si no, el 100vh
   se aplica a Nosotros/Contacto/servicios/sedes (que son
   .hero.hero-compact) y deja un hueco azul gigante.
   ─────────────────────────────────────────────── */
.hero:not(.hero-compact) { padding-top: 104px !important; min-height: 100vh !important; }
.hero:not(.hero-compact) h1 { font-size: clamp(1.9rem, 3.3vw, 3.1rem) !important; line-height: 1.06 !important; }
/* La foto se estira (flex) para llenar hasta abajo del hero → sin hueco azul */
.hero-photo { flex: 1 !important; }
.hero-photo-frame { min-height: 300px !important; max-height: none !important; flex: 1 !important; }
@media (max-width: 860px) {
  .hero:not(.hero-compact) { padding-top: 92px !important; min-height: auto !important; }
  .hero-photo-frame { max-height: 460px !important; }
}

/* Tarjetas del hero: texto más compacto para que no se apriete en Mac/pantallas medianas */
.benefit-card { padding: 18px 20px !important; }
.benefit-card-text strong { font-size: 15.5px !important; }
.benefit-card-text p { font-size: 12.5px !important; }
@media (max-width: 1280px) {
  .benefits { gap: 12px !important; left: 16px !important; right: 16px !important; bottom: 40px !important; }
  .benefit-card { padding: 15px 16px !important; }
  .benefit-card-text strong { font-size: 14px !important; margin-bottom: 3px !important; }
  .benefit-card-text p { font-size: 11.5px !important; line-height: 1.4 !important; }
}
