*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --rose-50:  #fff0f3;
  --rose-100: #ffd6df;
  --rose-200: #ffadc0;
  --rose-400: #f472a0;
  --rose-500: #e05585;
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --font: 'Plus Jakarta Sans', sans-serif;
  --r: 14px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.09);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--slate-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── UTILITIES ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.5rem); }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.28rem 0.75rem; border-radius: 50px;
}
.tag-blue  { background: var(--blue-100);  color: var(--blue-600); }
.tag-rose  { background: var(--rose-100);  color: var(--rose-500); }
.tag-slate { background: var(--slate-100); color: var(--slate-600); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  padding: 12px clamp(1rem,4vw,2rem);
  background: transparent;
  pointer-events: none;
  display: flex; justify-content: center;
}

/* Pill centrado y compacto — ancho automático, no full width */
.nav-topbar {
  display: inline-flex; align-items: center; gap: 2px;
  height: 48px;
  background: #f3f6fa;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid #d1d9e4; border-radius: 100px;
  padding: 0 6px;
  box-shadow: 0 2px 20px rgba(15,23,42,.07), 0 1px 4px rgba(15,23,42,.04);
  transition: background .25s, box-shadow .25s, border-radius .25s;
  pointer-events: auto;
  max-width: 90vw;
}
nav.mega-open .nav-topbar {
  border-bottom-left-radius: 0; border-bottom-right-radius: 0;
  border-bottom-color: transparent; background: #f8fafc;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

/* Links nivel 1 */
.nav-menu { display: flex; list-style: none; margin: 0; padding: 0; height: 48px; }
.nav-menu > li { position: relative; height: 100%; display: flex; align-items: center; }
.nav-menu > li > a,
.nav-menu > li > button.nav-trigger {
  display: flex; align-items: center; gap: 4px;
  height: auto; padding: .42rem .8rem;
  font-family: var(--font); font-size: .8rem; font-weight: 600;
  color: #475569; text-decoration: none; background: none; border: none; cursor: pointer;
  border-radius: 50px; transition: background .15s, color .15s; white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li > button.nav-trigger:hover { background: rgba(59,130,246,.08); color: #2563eb; }
.nav-menu > li.is-open > button.nav-trigger { background: rgba(59,130,246,.1); color: #2563eb; }
/* ── Home icon in index nav ── */
.nav-home-icon,
.nav-menu > li > a.nav-home-icon {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px;
  color: #3b82f6; transition: color .15s, background .15s;
}
.nav-home-icon svg { width: 40px; height: 40px; }
.nav-home-icon:hover,
.nav-menu > li > a.nav-home-icon:hover { color: #2563eb; background: rgba(59,130,246,.1); }
.nav-chevron { width: 12px; height: 12px; stroke: currentColor; fill: none; flex-shrink: 0; transition: transform .22s; }
.nav-menu > li.is-open .nav-chevron { transform: rotate(180deg); }


/* CTA */
.nav-cta {
  background: #3b82f6; color: #fff !important;
  padding: .46rem 1.1rem; border-radius: 50px;
  font-size: .8rem; font-weight: 700; text-decoration: none;
  white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(59,130,246,.3);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.nav-cta:hover { background: #2563eb; transform: translateY(-1px); box-shadow: 0 4px 18px rgba(59,130,246,.4); }

/* ── Contacto dropdown ── */
.contact-dropdown { min-width: 220px !important; }
.contact-dd-link {
  display: flex; align-items: center; gap: .55rem;
  font-size: .82rem; font-weight: 600; color: #334155;
  text-decoration: none; padding: .3rem .2rem;
  transition: color .15s;
}
.contact-dd-link svg { width: 15px; height: 15px; flex-shrink: 0; stroke: #64748b; }
.contact-dd-link:hover { color: #2563eb; }
.contact-dd-link:hover svg { stroke: #2563eb; }
.contact-dd-sep { height: 1px; background: #e2e8f0; margin: .7rem 0; }
.contact-dd-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #94a3b8; margin-bottom: .45rem;
}
.contact-dd-social { display: flex; gap: 4px; }

/* ── Shared social icon button (dropdown + mobile) ── */
.soc-icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 9px;
  color: #475569; flex-shrink: 0;
  transition: color .15s, background .15s;
  text-decoration: none;
}
.soc-icon svg { width: 18px; height: 18px; fill: currentColor; }
.soc-icon:hover { background: rgba(0,0,0,.05); }
.nsb-fb:hover { color: #1877f2; }
.nsb-ig:hover { color: #e1306c; }
.nsb-tk:hover { color: #111; }
.nsb-li:hover { color: #0a66c2; }

/* ── Mobile drawer social row ── */
.mob-social-row {
  padding: .8rem 1.1rem;
  border-top: 1px solid #f1f5f9;
}
.mob-social-label {
  display: block; font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: #94a3b8; margin-bottom: .5rem;
}
.mob-social-icons {
  display: flex; gap: 4px;
}
.mob-social-icons .soc-icon { background: #f8fafc; }
.mob-social-icons .soc-icon:hover { background: #f1f5f9; }

/* Responsive */
/* Marca móvil — visible solo en móvil */
.nav-mob-brand {
  display: none;
  font-family: var(--font); font-size: .85rem; font-weight: 800;
  color: #0f172a; letter-spacing: -.01em; text-decoration: none;
  white-space: nowrap;
}
.nav-mob-brand:hover { color: #2563eb; }

/* Home link en drawer móvil */
.mob-home-link {
  display: flex; align-items: center; gap: .6rem;
  padding: .9rem 1.2rem;
  font-size: .9rem; font-weight: 700; color: #7dd3fc;
  text-decoration: none; border-bottom: 1px solid #e2e8f0;
  background: rgba(125,211,252,.06);
  transition: background .15s, color .15s;
}
.mob-home-link:hover { background: rgba(125,211,252,.12); color: #38bdf8; }
.mob-home-link svg { width: 20px; height: 20px; flex-shrink: 0; }

@media (max-width: 680px) {
  nav { padding: 10px 1rem; }
  .nav-menu, .nav-cta, .nav-social { display: none !important; }
  .hamburger { display: flex; }
  .nav-topbar {
    width: 100%; justify-content: space-between;
    padding: 0 8px 0 16px; gap: 0;
    border-radius: 100px;
  }
  .nav-mob-brand { display: block; }
  .nav-home { display: none !important; }
}

/* ── MEGA PANEL — conectado a la pill ── */
.mega-panel {
  display: none;
  position: fixed;
  top: calc(12px + 48px);
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, calc(100vw - 2rem));
  z-index: 290;
  background: #f8fafc;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid #d1d9e4;
  border-top: none;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 0 20px 48px rgba(15,23,42,.12);
  animation: megaIn .18s ease both;
}
@keyframes megaIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.nav-menu > li.is-open .mega-panel { display: block; }

.mega-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 clamp(1rem,4vw,2rem);
  display: grid;
}

.mega-inner.no-cats {
  grid-template-columns: 1fr;
  padding-top: 20px; padding-bottom: 20px;
}

/* Barra de categorías */
.mega-cats {
  border-right: 1px solid #f1f5f9;
  padding: 16px 12px 16px 0;
  display: flex; flex-direction: column; gap: 2px;
  overflow-y: auto;
  max-height: 440px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.mega-cat-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 12px; border-radius: 10px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: .83rem; font-weight: 600;
  color: #64748b; text-align: left;
  transition: background .15s, color .15s;
}
.mega-cat-btn:hover  { background: #f8fafc; color: #1e293b; }
.mega-cat-btn.active { background: #eff6ff; color: #3b82f6; }
.mega-cat-icon { font-size: 1.1rem; flex-shrink: 0; }
.mega-cat-count {
  margin-left: auto; font-size: .7rem; font-weight: 700;
  background: #f1f5f9; color: #94a3b8;
  padding: 1px 7px; border-radius: 50px;
}
.mega-cat-btn.active .mega-cat-count { background: #dbeafe; color: #3b82f6; }

/* Panel de ítems */
.mega-items-wrap {
  padding: 16px 0 16px 16px;
  overflow-y: auto;
  min-width: 0;
  max-height: 440px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.mega-items-wrap::-webkit-scrollbar { width: 4px; }
.mega-items-wrap::-webkit-scrollbar-track { background: transparent; }
.mega-items-wrap::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.mega-section { display: none; }
.mega-section.active { display: block; }

/* Grid de programas */
.mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2px;
}
.mega-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 10px;
  text-decoration: none;
  transition: background .15s;
}
.mega-item:hover { background: #f1f5f9; }

/* Dot de color — codifica el TIPO de programa */
.mega-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.mega-dot.esp  { background: #3b82f6; }   /* Especialidad — azul   */
.mega-dot.dip  { background: #f472b6; }   /* Diplomado    — rosa   */
.mega-dot.mst  { background: #8b5cf6; }   /* Maestría     — violeta*/

.mega-item-name { font-size: .80rem; font-weight: 600; color: #1e293b; line-height: 1.3; overflow-wrap: break-word; }
.mega-item-tag  { font-size: .71rem; color: #94a3b8; margin-top: 1px; }

/* Leyenda de dots */
.mega-legend {
  display: flex; gap: 14px; align-items: center;
  padding: 0 2px 10px; margin-bottom: 4px;
  border-bottom: 1px solid #f1f5f9;
}
.mega-legend-item { display: flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 600; color: #94a3b8; }
.mega-legend-dot  { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

.mega-cat-icon svg { width: 15px; height: 15px; display: block; }

/* Columna promo */
.mega-promo-col {
  border-left: 1px solid #f0f4f8;
  padding: 16px 16px;
  display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(160deg, #f8faff 0%, #fdf4fb 100%);
  min-width: 0;
  overflow: visible;
}
.mega-promo-label {
  font-size: .68rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: #3b82f6;
}
.mega-promo-card {
  background: #fff; border: 1px solid #e8edf3;
  border-radius: 12px; padding: 13px;
  text-decoration: none; display: block;
  transition: box-shadow .18s, border-color .18s;
}
.mega-promo-card:hover { box-shadow: 0 4px 16px rgba(15,23,42,.08); border-color: #bfdbfe; }
.mega-promo-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: #eff6ff; color: #3b82f6;
  font-size: .65rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 50px; margin-bottom: 7px;
}
.mega-promo-name { font-size: .78rem; font-weight: 700; color: #1e293b; line-height: 1.35; margin-bottom: 4px; overflow-wrap: break-word; }
.mega-promo-desc { font-size: .70rem; color: #64748b; line-height: 1.5; margin-bottom: 6px; overflow-wrap: break-word; }
.mega-promo-cta  { font-size: .75rem; font-weight: 700; color: #3b82f6; display: flex; align-items: center; gap: 3px; }

/* Próximas fechas en mega-menu */
.mega-fechas { display: flex; flex-direction: column; gap: 6px; }
.mega-fecha-item {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  background: #fff; border: 1px solid #e8edf3;
  border-radius: 10px; padding: 8px 10px;
  transition: background .15s, border-color .15s;
}
.mega-fecha-item:hover { background: #f1f5f9; border-color: #cbd5e1; }
.mega-fecha-box {
  min-width: 40px; text-align: center;
  background: #3b82f6; border-radius: 8px;
  padding: 4px 6px; color: #fff;
  font-size: .65rem; font-weight: 800; line-height: 1.2;
}
.mega-fecha-box span { font-size: 1rem; font-weight: 900; display: block; }
.mega-fecha-item:nth-child(2) .mega-fecha-box { background: #8b5cf6; }
.mega-fecha-item:nth-child(3) .mega-fecha-box { background: #f59e0b; }
.mega-fecha-name { font-size: .78rem; font-weight: 700; color: #1e293b; }
.mega-fecha-tag  { font-size: .68rem; color: #64748b; }

/* has-cats con promo: 3 columnas */
.mega-inner.has-cats {
  grid-template-columns: 200px 1fr 220px;
  min-height: 260px; max-height: 520px;
}

/* Simple list (sin categorías) */
.mega-simple-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px;
}
.mega-group-label {
  grid-column: 1 / -1;
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: #94a3b8; padding: 10px 8px 4px; margin-top: 4px;
  border-top: 1px solid #f1f5f9;
}
.mega-group-label:first-child { border-top: none; margin-top: 0; padding-top: 2px; }

/* Overlay */
.nav-overlay {
  display: none; position: fixed; inset: 0; top: 72px; z-index: 280;
  background: rgba(15,23,42,.18);
}
.nav-overlay.on { display: block; }

/* ── HAMBURGER ── */
.hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 40px; height: 40px; background: #f1f5f9;
  border: 1px solid #e2e8f0; border-radius: 50%;
  cursor: pointer; padding: 0; flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.hamburger:hover { background: #e2e8f0; border-color: #cbd5e1; }
.hamburger span {
  display: block; width: 16px; height: 2px;
  background: #475569; border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Elimina el delay de 300ms en móvil para todos los elementos interactivos del nav */
.hamburger,
.nav-trigger,
.mob-accord-trigger,
.mob-home-link,
.mob-prog-item,
.mob-cat-tab,
.mob-cta-wrap a,
.nav-cta,
.nav-mob-brand {
  touch-action: manipulation;
}

/* ── MOBILE DRAWER ── */
.mob-drawer {
  position: fixed;
  top: 78px; left: 0; right: 0; bottom: 0; z-index: 295;
  background: #fff;
  overflow-y: auto;
  padding: 0 0 2rem;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .2s cubic-bezier(.4,0,.2,1), visibility .2s;
  pointer-events: none;
}
.mob-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

/* Acordeón mobile */
.mob-accord { border-bottom: 1px solid #f1f5f9; }
.mob-accord-trigger {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 16px clamp(1rem,4vw,1.5rem);
  background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: .95rem; font-weight: 700;
  color: #1e293b;
}
.mob-accord-trigger svg { flex-shrink: 0; stroke: #94a3b8; fill: none; transition: transform .22s; }
.mob-accord.open .mob-accord-trigger svg { transform: rotate(180deg); }
.mob-accord-body {
  display: none;
  padding: 0 clamp(1rem,4vw,1.5rem) 16px;
  overflow: visible;
}
.mob-accord.open .mob-accord-body { display: block; }

/* Tabs de categoría en mobile */
.mob-cat-tabs {
  display: flex; gap: 6px; flex-wrap: nowrap;
  overflow-x: auto; padding-bottom: 10px; margin-bottom: 10px;
  scrollbar-width: none;
}
.mob-cat-tabs::-webkit-scrollbar { display: none; }
.mob-cat-tab {
  display: inline-flex; align-items: center; flex-shrink: 0;
  padding: 5px 14px; border-radius: 50px;
  border: 1.5px solid #e2e8f0; background: #fff;
  font-family: var(--font); font-size: .75rem; font-weight: 700;
  color: #64748b; cursor: pointer; transition: all .15s;
  white-space: nowrap;
}
.mob-cat-tab.active { border-color: #3b82f6; background: #eff6ff; color: #3b82f6; }

/* Lista de programas mobile */
.mob-prog-section { display: none; }
.mob-prog-section.active { display: block; }
.mob-prog-list { display: flex; flex-direction: column; gap: 2px; }
.mob-prog-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 10px;
  text-decoration: none; color: #374151;
  transition: background .15s;
}
.mob-prog-item:hover, .mob-prog-item:active { background: #f1f5f9; }
.mob-prog-item-icon {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .88rem; flex-shrink: 0;
}
.mob-prog-name { font-size: .82rem; font-weight: 600; color: #1e293b; line-height: 1.3; }
.mob-prog-tag  { font-size: .7rem; color: #94a3b8; }

/* Enlace directo mobile */
.mob-direct {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(1rem,4vw,1.5rem);
  text-decoration: none; font-size: .95rem; font-weight: 700;
  color: #1e293b; border-bottom: 1px solid #f1f5f9;
  transition: background .15s;
}
.mob-direct:hover { background: #f8fafc; }
.mob-cta-wrap { padding: clamp(1rem,4vw,1.5rem); }
.mob-cta-btn {
  display: block; width: 100%; text-align: center;
  background: #3b82f6; color: #fff;
  padding: .9rem; border-radius: 14px;
  font-size: .95rem; font-weight: 700; text-decoration: none;
  box-shadow: 0 4px 16px rgba(59,130,246,.3);
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .nav-menu, .nav-cta { display: none !important; }
  .hamburger { display: flex; }
}

/* ── HERO ── */
.hero {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; flex-direction: column;
}
.hero-video-bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.hero-video-bg video {
  position: absolute; top: 50%; left: 50%;
  width: 177.78vh; min-width: 100%;
  height: 56.25vw; min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover; border: none;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 120% 80% at 10% 0%, rgba(255,255,255,.22) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 85% 5%, rgba(147,197,253,.28) 0%, transparent 45%),
    linear-gradient(180deg,
      rgba(0,0,0,0)   0%,
      rgba(0,0,0,.08) 25%,
      rgba(0,0,0,.35) 65%,
      rgba(0,0,0,.55) 100%);
}

/* ── LOGOS CENTRADOS — portada de revista ── */
.hero-logos {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  gap: 0;
  padding: calc(78px + 1.8rem) clamp(1rem,5vw,3rem) 0;
}
.hero-logo-item {
  display: block;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 36px rgba(0,0,0,.40), 0 2px 8px rgba(0,0,0,.25);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.hero-logo-item:hover { transform: translateY(-3px); box-shadow: 0 14px 44px rgba(0,0,0,.5); }
.hero-logo-item img { display: block; object-fit: cover; }
.hli-ep     { width: 72px;  height: 72px;  border-radius: 12px; }
.hli-aniv   { width: 72px;  height: 72px;  border-radius: 50%; }
.hli-campus { width: clamp(120px, 16vw, 240px); height: clamp(46px, 6.5vw, 98px); background: none; box-shadow: none; border-radius: 0; display: flex; align-items: center; justify-content: center; }
.hli-campus img { width: 100%; height: 100%; object-fit: contain; }
/* fondo negro de ep/aniv desaparece con multiply sobre el blanco */
.hli-ep   img { mix-blend-mode: multiply; width: 100%; height: 100%; }
.hli-aniv img { mix-blend-mode: multiply; width: 100%; height: 100%; }

/* Separador vertical entre logos */
.hero-logo-sep {
  width: 1px; height: 36px; flex-shrink: 0; margin: 0 4px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.4), transparent);
}

/* ── Hero topbar — pill "inscripciones" alineado a la derecha ── */
.hero-topbar {
  position: absolute; z-index: 4;
  top: calc(78px + .8rem);
  right: clamp(1rem,5vw,3rem);
}
.hero-pill-live {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: .72rem; font-weight: 700;
  padding: 5px 14px; border-radius: 50px;
}
.hero-pill-live .live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e; flex-shrink: 0;
  animation: livePulse 2s infinite;
}
@keyframes livePulse { 0%,100%{opacity:1} 50%{opacity:.25} }

/* Botón play */
.hero-play-btn {
  position: absolute; z-index: 3;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 70px; height: 70px; border-radius: 50%;
  background: rgba(255,255,255,.18); backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .2s, opacity .3s;
  box-shadow: 0 0 48px rgba(255,255,255,.12);
}
.hero-play-btn:hover { background: rgba(255,255,255,.28); transform: translate(-50%,-50%) scale(1.1); }
.hero-play-btn.hidden { opacity: 0; pointer-events: none; }
.hero-play-icon {
  width: 0; height: 0; border-style: solid;
  border-width: 11px 0 11px 20px;
  border-color: transparent transparent transparent #fff;
  margin-left: 5px;
}

/* ── Copy central ── */
.hero-content {
  position: relative; z-index: 3;
  text-align: center;
  padding: 24px clamp(1rem,5vw,3rem) 0;
  display: flex; flex-direction: column; align-items: center;
  margin-top: auto;
  margin-bottom: 2rem;
}
.hero-eyebrow {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 16px; flex-wrap: wrap;
}
.tag-glass {
  background: rgba(255,255,255,.14); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25); color: #fff;
  font-size: .68rem; font-weight: 800; padding: 3px 10px; border-radius: 50px;
  letter-spacing: .07em; text-transform: uppercase;
}
.tag-blue-glass {
  background: rgba(59,130,246,.28); backdrop-filter: blur(8px);
  border: 1px solid rgba(59,130,246,.45); color: #bfdbfe;
  font-size: .68rem; font-weight: 800; padding: 3px 10px; border-radius: 50px;
  letter-spacing: .07em; text-transform: uppercase;
}
.hero-h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 900; line-height: 1.1; color: #fff;
  letter-spacing: -.03em; margin-bottom: 2px;
  text-shadow: 0 2px 24px rgba(0,0,0,.5);
}
.hero-h1-accent {
  display: block;
  font-size: clamp(3rem, 6.5vw, 5rem);
  font-weight: 900; line-height: 1.05; letter-spacing: -.04em; margin-bottom: 16px;
  background: linear-gradient(120deg, #93c5fd 0%, #c4b5fd 50%, #f9a8d4 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 2px 20px rgba(0,0,0,.65)) drop-shadow(0 1px 6px rgba(0,0,0,.5));
}
.hero-tagline {
  font-size: 1.05rem; font-weight: 600; line-height: 1.4;
  max-width: 540px; margin-bottom: 10px;
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
}

/* ── Statement section ── */
.statement-sec { padding: 5.5rem 0 3.5rem; background: #fff; overflow: hidden; }
.statement-line {
  display: block;
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.03em;
  color: #0f172a;
  text-align: center;
}
.statement-line.rv {
  transform: translateY(40px) scale(.96);
  transition: opacity .75s cubic-bezier(.22,1,.36,1), transform .75s cubic-bezier(.22,1,.36,1);
}
.statement-line.rv.in { transform: translateY(0) scale(1); }
.statement-line.rv:nth-child(2) { transition-delay: .18s; }
.statement-line.rv:nth-child(3) { transition-delay: .34s; }
.statement-accent {
  background: linear-gradient(90deg, #e05585 0%, #f472a0 30%, #c2185b 60%, #e05585 100%);
  background-size: 280% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: accentFlow 4s ease-in-out infinite;
}
@keyframes accentFlow {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}

/* ── Phrase Banner ── */
.phrase-banner {
  position: relative;
  background: #04091a;
  padding: 4.5rem 0;
  overflow: hidden;
}
.phrase-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 120% at 15% 50%, rgba(30,64,175,.2) 0%, transparent 65%),
    radial-gradient(ellipse 55% 100% at 85% 50%, rgba(30,64,175,.14) 0%, transparent 65%),
    radial-gradient(ellipse 45% 80%  at 50% 0%,  rgba(71,85,105,.18) 0%, transparent 65%);
  animation: pbAurora 9s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes pbAurora {
  0%   { opacity: .6; transform: scale(1); }
  100% { opacity: 1;  transform: scale(1.04); }
}
.pb-sparkle {
  position: absolute;
  pointer-events: none;
  line-height: 1;
  animation: pbTwinkle 3.5s ease-in-out infinite;
}
.pb-sparkle.sp-blue   { color: rgba(148,163,184,.5); }
.pb-sparkle.sp-rose   { color: rgba(148,163,184,.4); }
.pb-sparkle.sp-gold   { color: rgba(203,213,225,.45); }
.pb-sparkle.sp-cyan   { color: rgba(148,163,184,.45); }
.pb-sparkle.sp-violet { color: rgba(148,163,184,.4); }
@keyframes pbTwinkle {
  0%,100% { opacity: .15; transform: scale(1)   rotate(0deg); }
  50%     { opacity: .7;  transform: scale(1.3) rotate(15deg); }
}
.pb-content {
  position: relative;
  z-index: 1;
  text-align: center;
  line-height: 1.35;
}
.pb-row {
  display: block;
  white-space: nowrap;
  font-size: clamp(.85rem, 2.2vw, 1.4rem);
  font-weight: 600;
  color: #fff;
  margin: 0;
}
.pb-row + .pb-row { margin-top: .45rem; }
/* "OFERTA" — peso y brillo controlado */
.pb-bubble {
  display: inline-flex; align-items: center;
  background: linear-gradient(110deg, #93c5fd 0%, #bfdbfe 55%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.4em;
  font-weight: 900;
  letter-spacing: -.02em;
  vertical-align: middle;
  line-height: 1.1;
  animation: pbOfertaGlow 3.5s ease-in-out infinite alternate;
}
@keyframes pbOfertaGlow {
  0%   { filter: drop-shadow(0 0 6px rgba(147,197,253,.3)); }
  100% { filter: drop-shadow(0 0 18px rgba(191,219,254,.6)); }
}
/* "real más grande en" */
.pb-mid { font-size: 1.6em; font-weight: 400; color: rgba(255,255,255,.7); vertical-align: middle; }
/* "educación médica" — italic blanco cálido */
.pb-script {
  font-size: 2.4em;
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,.88);
  letter-spacing: -.01em;
  vertical-align: middle;
}
/* "CONTINUA" — blanco con subrayado fino elegante */
.pb-bold {
  font-size: 2.6em;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.02em;
  vertical-align: middle;
  text-decoration: underline;
  text-decoration-color: rgba(147,197,253,.5);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
/* "del" */
.pb-small { font-size: 1.4em; font-weight: 400; color: rgba(255,255,255,.65); vertical-align: middle; }
/* "PAÍS." — shimmer pill */
.pb-pill {
  display: inline-flex; align-items: center;
  border: 2.5px solid rgba(255,255,255,.45);
  border-radius: 50px;
  padding: .08em .65em;
  font-size: 2.3em;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.01em;
  vertical-align: middle;
  line-height: 1.1;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.1) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: pbShimmer 3s linear infinite;
}
@keyframes pbShimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
@media (max-width: 640px) {
  .pb-row    { white-space: normal; }
  .pb-bubble { font-size: 1.6em; }
  .pb-script { font-size: 1.8em; }
  .pb-bold   { font-size: 2em; }
  .pb-pill   { font-size: 1.8em; }
}
.hero-p {
  font-size: .95rem; color: rgba(255,255,255,.75); font-weight: 300;
  line-height: 1.65; max-width: 540px; margin-bottom: 18px;
  text-shadow: 0 1px 10px rgba(0,0,0,.3);
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 22px; }
.btn-primary {
  display: flex; align-items: center; gap: 8px;
  background: #fff; color: #1e293b;
  padding: 0.72rem 1.5rem; border-radius: 50px;
  font-size: .88rem; font-weight: 800; text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  transition: transform .18s, box-shadow .18s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.4); }
.btn-primary-arrow {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(15,23,42,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; flex-shrink: 0;
}
.btn-ghost {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.3); color: #fff;
  padding: 0.72rem 1.3rem; border-radius: 50px;
  font-size: .88rem; font-weight: 600; text-decoration: none;
  transition: background .18s, border-color .18s;
}
.btn-ghost:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.5); }
.btn-cta-light {
  display: inline-flex; align-items: center; gap: 8px;
  background: #2563eb; color: #fff;
  padding: .72rem 2rem; border-radius: 50px;
  font-size: .88rem; font-weight: 800; text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,99,235,.35);
  transition: transform .18s, box-shadow .18s;
}
.btn-cta-light:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,99,235,.45); }
.hero-stats {
  display: flex; gap: 0; justify-content: center;
  padding: 16px 0; border-top: 1px solid rgba(255,255,255,.12);
  width: 100%; max-width: 500px;
}
.stat { flex: 1; padding: 0 16px; border-right: 1px solid rgba(255,255,255,.1); }
.stat:last-child { border: none; }
.stat-n { font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 900; color: #fff; line-height: 1; text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.stat-n span { color: #93c5fd; }
.stat-l { font-size: .65rem; color: rgba(255,255,255,.45); font-weight: 700; margin-top: 2px; letter-spacing: .05em; text-transform: uppercase; }

/* Trust bar */
@keyframes trustFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.7); opacity: .5; }
}
.hero-trust {
  position: relative; z-index: 3;
  background: #fff;
  box-shadow: 0 6px 28px rgba(0,0,0,.09);
  padding: 18px clamp(1.5rem,5vw,4rem);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.hero-trust::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #3b82f6 0%, #f472b6 35%, #8b5cf6 65%, #22c55e 100%);
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 18px;
  border-radius: 50px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  font-size: .82rem; color: #1e293b; font-weight: 700; white-space: nowrap;
  animation: trustFadeUp .5s ease both;
}
.trust-item:nth-child(1) { animation-delay: .05s; }
.trust-item:nth-child(2) { animation-delay: .18s; }
.trust-item:nth-child(3) { animation-delay: .31s; }
.trust-item:nth-child(4) { animation-delay: .44s; }
.trust-item:last-child   { border-color: #e2e8f0; padding: 7px 18px; margin: 0; }
.trust-dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  animation: dotPulse 2.4s ease-in-out infinite;
}
.trust-item:nth-child(2) .trust-dot { animation-delay: .6s; }
.trust-item:nth-child(3) .trust-dot { animation-delay: 1.2s; }
.trust-item:nth-child(4) .trust-dot { animation-delay: 1.8s; }

/* Responsive */
@media (max-width: 700px) {
  .hero-logos { gap: 0; padding-top: calc(78px + 1.2rem); }
  .hli-ep     { width: 56px; height: 56px; }
  .hli-aniv   { width: 56px; height: 56px; }
  .hli-campus { width: 92px; height: 32px; }
  .hero-logo-sep { margin: 0 6px; height: 28px; }
  .hero-content { text-align: center; }
  .hero-trust { gap: 8px; padding: 14px clamp(1rem,4vw,1.5rem); }
  .trust-item { font-size: .74rem; padding: 6px 13px; }
  .trust-item:last-child { padding: 6px 13px; }
}

/* ── Nav social derecha ── */
.nav-social { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.nav-social .soc-icon { width: 34px; height: 34px; border-radius: 8px; }
.nav-social .soc-icon svg { width: 16px; height: 16px; }

/* ── WhatsApp flotante ── */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 56px; height: 56px; background: #25d366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.55); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
@media (max-width: 860px) { .wa-float { display: none; } }

/* ── SECTION HEADER ── */
.sec-head { text-align: center; margin-bottom: 3rem; }
.sec-head .tag { margin-bottom: 0.8rem; }
.sec-h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800;
  color: var(--slate-900); letter-spacing: -0.02em; line-height: 1.2;
  margin-bottom: 0.8rem;
}
.sec-h2 .h-accent {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 45%, #0ea5e9 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.08em;
  font-weight: 900;
}
.mascotas-sec .sec-h2 .h-accent,
.testimonios-sec .sec-h2 .h-accent {
  background: linear-gradient(135deg, #93c5fd 0%, #38bdf8 50%, #22d3ee 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.08em;
  font-weight: 900;
}
.sec-sub {
  font-size: 1rem; color: var(--slate-500); font-weight: 300;
  max-width: 520px; margin: 0 auto; line-height: 1.7;
}

/* ── FEATURES — PANAL DE ABEJA ── */
.features {
  padding: clamp(4rem,8vw,6rem) 0;
  background: linear-gradient(160deg, #0b1120 0%, #1a2540 55%, #0b1120 100%);
  position: relative; overflow: hidden;
}
.features::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 55% at 15% 55%, rgba(59,130,246,.09) 0%, transparent 60%),
    radial-gradient(ellipse 55% 55% at 85% 45%, rgba(14,165,233,.09) 0%, transparent 60%);
  pointer-events: none;
}
.features .sec-h2   { color: #f1f5f9; }
.features .sec-sub  { color: rgba(255,255,255,.5); }
.features .tag-blue { background: rgba(59,130,246,.18); color: #93c5fd; border: 1px solid rgba(59,130,246,.3); }
.features .sec-h2 .h-accent {
  background: linear-gradient(135deg, #93c5fd 0%, #38bdf8 50%, #22d3ee 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; font-size: 1.08em; font-weight: 900;
}

/* Panal */
.honey-grid {
  display: flex; flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  margin: 3rem auto 0;
}
.honey-row { display: flex; gap: 8px; }
.honey-row--offset {
  margin-left: 101px;  /* (194 + 8) / 2 */
  margin-top:  -55px;  /* 220 * -0.25   */
}

/* Hex base */
.hex-item {
  width: 194px; height: 220px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex; align-items: center; justify-content: center;
  transition: transform .32s cubic-bezier(.34,1.3,.64,1), filter .32s ease, opacity .55s ease;
  cursor: default;
}
.hex-item:hover {
  transform: scale(1.09) translateY(-6px);
  filter: drop-shadow(0 10px 28px rgba(59,130,246,.55));
}

/* Color por posición */
.honey-row    .hex-item:nth-child(1) { background: linear-gradient(155deg,#0f2a5c,#1d4ed8); }
.honey-row    .hex-item:nth-child(2) { background: linear-gradient(155deg,#0c3264,#2563eb); }
.honey-row    .hex-item:nth-child(3) { background: linear-gradient(155deg,#083a6e,#0ea5e9); }
.honey-row--offset .hex-item:nth-child(1) { background: linear-gradient(155deg,#0f2a5c,#2563eb); }
.honey-row--offset .hex-item:nth-child(2) { background: linear-gradient(155deg,#0d2c60,#4f46e5); }
.honey-row--offset .hex-item:nth-child(3) { background: linear-gradient(155deg,#083a6e,#0891b2); }

/* Contenido */
.hex-inner {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 0 26px; gap: 9px; pointer-events: none;
}
.hex-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(147,197,253,.15);
  display: flex; align-items: center; justify-content: center;
  color: #93c5fd; flex-shrink: 0;
}
.hex-icon svg { width: 22px; height: 22px; }
.hex-title {
  font-size: .86rem; font-weight: 800;
  color: #f1f5f9; line-height: 1.25;
}
.hex-sub {
  font-size: .68rem; color: rgba(255,255,255,.55); line-height: 1.5;
}

/* Entrada escalonada */
.honey-row    .hex-item:nth-child(1) { transition-delay: .05s; }
.honey-row    .hex-item:nth-child(2) { transition-delay: .15s; }
.honey-row    .hex-item:nth-child(3) { transition-delay: .25s; }
.honey-row--offset .hex-item:nth-child(1) { transition-delay: .20s; }
.honey-row--offset .hex-item:nth-child(2) { transition-delay: .30s; }
.honey-row--offset .hex-item:nth-child(3) { transition-delay: .40s; }

/* Responsive tablet */
@media (max-width: 780px) {
  .honey-row { gap: 6px; }
  .honey-row--offset { margin-left: 85px; margin-top: -46px; }
  .hex-item { width: 164px; height: 186px; }
  .hex-icon { width: 38px; height: 38px; }
  .hex-icon svg { width: 18px; height: 18px; }
  .hex-title { font-size: .76rem; }
  .hex-sub   { font-size: .62rem; }
  .hex-inner { padding: 0 20px; gap: 7px; }
}

/* Responsive móvil: tarjetas horizontales */
@media (max-width: 540px) {
  .honey-grid { width: 100%; }
  .honey-row { flex-direction: column; width: 100%; gap: 8px; }
  .honey-row--offset { margin-left: 0; margin-top: 8px; }
  .hex-item {
    width: 100%; height: auto;
    clip-path: none; border-radius: 16px;
    padding: 1.1rem 1.2rem;
    background: linear-gradient(135deg,#0f2a5c,#1d4ed8) !important;
  }
  .hex-inner { flex-direction: row; text-align: left; padding: 0; gap: 14px; }
  .hex-sub   { font-size: .73rem; }
}

/* ── PROGRAMS ── */
.programs {
  padding: clamp(4rem,8vw,6rem) 0;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.programs .prog-h2 { color: #0f172a; }
.programs .prog-h2-accent {
  background: linear-gradient(125deg, #5b21b6 0%, #7c3aed 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.programs .prog-desc { color: #64748b; }
.programs .prog-stat-box { background: #fff; border-color: #e2e8f0; }
.programs .prog-stat-total { border-color: #cbd5e1; }
.programs .prog-stat-esp   { border-color: #ddd6fe; }
.programs .prog-stat-dip   { border-color: #fecdd3; }
.programs .prog-stat-mst   { border-color: #bfdbfe; }
.programs .psb-num { color: #0f172a; }
.programs .psb-lbl { color: #94a3b8; }
.programs .prog-search-icon { color: #94a3b8; }
.programs .prog-search {
  background: #fff; border-color: #e2e8f0; color: #1e293b;
}
.programs .prog-search:focus {
  border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(167,139,250,.1); background: #fff;
}
.programs .prog-search::placeholder { color: #94a3b8; }
.programs .pf-btn { border-color: #e2e8f0; background: #fff; color: #475569; }
.programs .pf-btn:hover { border-color: #cbd5e1; background: #f1f5f9; color: #1e293b; }
.programs .pf-btn.on { background: #1e293b; border-color: #1e293b; color: #fff; }
.programs .pf-btn.on .pf-dot { background: rgba(255,255,255,.8) !important; }

/* Header centrado */
.prog-header {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 1.4rem; margin-bottom: 2.2rem;
}
.prog-header-left .tag { margin-bottom: .6rem; }
.prog-h2 {
  font-size: clamp(2rem,4vw,3rem); font-weight: 800;
  color: #fff; line-height: 1.1;
  letter-spacing: -.03em; margin-bottom: .55rem;
}
.prog-h2-accent {
  display: block;
  padding-bottom: 0.12em;
  background: linear-gradient(125deg, #a78bfa 0%, #c4b5fd 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.prog-desc { font-size: .84rem; color: rgba(255,255,255,.5); line-height: 1.65; }

/* Cajas de stats */
.prog-stats-wrap {
  display: flex; gap: 8px; justify-content: center;
}
.prog-stat-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,.1); background: rgba(255,255,255,.06);
}
.prog-stat-total { border-color: rgba(255,255,255,.15); }
.prog-stat-esp   { border-color: rgba(167,139,250,.35); }
.prog-stat-dip   { border-color: rgba(253,164,175,.35); }
.prog-stat-mst   { border-color: rgba(147,197,253,.35); }
.psb-num { font-size: 1.4rem; font-weight: 900; color: #fff; line-height: 1; }
.psb-lbl { font-size: .52rem; font-weight: 700; color: rgba(255,255,255,.35); letter-spacing: .07em; text-transform: uppercase; margin-top: 2px; }

/* Buscador */
.prog-search-wrap { position: relative; margin-bottom: 1rem; }
.prog-search-icon {
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%); color: rgba(255,255,255,.3); pointer-events: none;
}
.prog-search {
  width: 100%; padding: .72rem 1.2rem .72rem 2.8rem;
  border-radius: 50px; border: 1.5px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.06); font-family: var(--font);
  font-size: .88rem; color: #e2e8f0; outline: none;
  transition: border-color .18s, box-shadow .18s; box-sizing: border-box;
}
.prog-search:focus {
  border-color: rgba(167,139,250,.55); box-shadow: 0 0 0 3px rgba(167,139,250,.1);
  background: rgba(255,255,255,.09);
}
.prog-search::placeholder { color: rgba(255,255,255,.3); }

/* Filtros */
.prog-filter { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.6rem; }
.pf-btn {
  display: flex; align-items: center; gap: 7px;
  padding: .45rem 1.1rem; border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.6); font-family: var(--font);
  font-size: .82rem; font-weight: 600; cursor: pointer; transition: all .18s;
}
.pf-btn:hover { border-color: rgba(255,255,255,.25); color: #fff; background: rgba(255,255,255,.08); }
.pf-btn.on { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); color: #fff; }
.pf-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.pf-btn.on .pf-dot { background: rgba(255,255,255,.7) !important; }

/* Grid 2 columnas */
.prog-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}

/* Tarjetas */
.prog-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px 20px; border-radius: 18px;
  border: 1.5px solid transparent; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  cursor: pointer;
}
.prog-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.09); }

/* Maestría — azul índigo: ancho completo */
.prog-card.pc-mst {
  grid-column: 1 / -1;
  background: #eef2ff; border-color: #c7d2fe;
}
.prog-card.pc-mst:hover { border-color: #a5b4fc; }

/* Especialidad — violeta */
.prog-card.pc-esp { background: #f5f3ff; border-color: #ddd6fe; }
.prog-card.pc-esp:hover { border-color: #c4b5fd; }

/* Diplomado — rosa */
.prog-card.pc-dip { background: #fff1f2; border-color: #fecdd3; }
.prog-card.pc-dip:hover { border-color: #fda4af; }

/* Interior tarjeta */
.pc-top {
  display: flex; align-items: center; justify-content: space-between;
}
.pc-badge {
  display: inline-flex; align-items: center; padding: .22rem .7rem;
  border-radius: 50px; font-size: .64rem; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase;
}
.pcb-mst { background: #c7d2fe; color: #3730a3; }
.pcb-esp { background: #ddd6fe; color: #5b21b6; }
.pcb-dip { background: #fce7f3; color: #db2777; }
.pc-arrow-wrap {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.7); border: 1px solid rgba(0,0,0,.07);
  display: flex; align-items: center; justify-content: center;
  color: var(--slate-400); flex-shrink: 0;
  transition: background .18s, color .18s, border-color .18s;
}
.prog-card:hover .pc-arrow-wrap { background: #fff; color: var(--slate-700); border-color: rgba(0,0,0,.12); }
.pc-name {
  font-size: .94rem; font-weight: 700; color: var(--slate-800); line-height: 1.3;
}
.prog-card.pc-mst .pc-name { font-size: 1.05rem; }
.pc-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pc-pill {
  font-size: .68rem; font-weight: 500; color: var(--slate-500);
  background: rgba(255,255,255,.65); border: 1px solid rgba(0,0,0,.07);
  padding: .18rem .65rem; border-radius: 50px;
}

@media (max-width: 640px) {
  .prog-grid { grid-template-columns: 1fr; }
  .prog-card.pc-mst { grid-column: auto; }
  .prog-stats-wrap { gap: 5px; }
  .prog-stat-box { width: 48px; height: 48px; border-radius: 10px; }
  .psb-num { font-size: 1.1rem; }
}
@media (max-width: 400px) {
  .prog-stats-wrap { display: none; }
}

/* ── INSTALACIONES ── */
.instalaciones-sec { background: #0d1424; overflow: hidden; }

.inst-editorial {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}
.inst-media {
  position: relative;
  overflow: hidden;
  height: clamp(420px, 58vh, 620px);
}
.inst-media .inst-track {
  display: flex;
  width: 100%; height: 100%;
  transition: transform .65s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.inst-media .inst-slide { min-width: 100%; height: 100%; flex-shrink: 0; overflow: hidden; }
.inst-media .inst-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .7s ease;
}
.inst-media .inst-slide.active img { transform: scale(1.04); }
.inst-media-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right,rgba(0,0,0,0) 0%,rgba(8,12,20,0) 55%,rgba(8,12,20,.25) 78%,rgba(13,20,36,.55) 100%);
  pointer-events: none;
}
.inst-panel {
  background: #0d1424; display: flex; flex-direction: column;
  justify-content: center; gap: 1.6rem;
  padding: clamp(2rem,4vw,3.5rem); position: relative;
}
.inst-panel::before {
  content: ''; position: absolute; left: 0; top: 15%; bottom: 15%; width: 1px;
  background: linear-gradient(to bottom,transparent,rgba(59,130,246,.3) 30%,rgba(59,130,246,.3) 70%,transparent);
}
.inst-tag { background: rgba(59,130,246,.1); color: #60a5fa; border: 1px solid rgba(59,130,246,.18); width: fit-content; }
.inst-panel-h2 {
  font-size: clamp(1.5rem,2.2vw,2.1rem); font-weight: 800;
  color: #f1f5f9; line-height: 1.25; margin: -.4rem 0 0;
}
.inst-panel-h2 .h-accent {
  background: none; -webkit-background-clip: unset; background-clip: unset;
  -webkit-text-fill-color: #3b82f6; color: #3b82f6;
  font-size: inherit; font-weight: inherit;
}
.inst-panel-sub { font-size: .85rem; color: #475569; line-height: 1.65; }
.inst-cur-block {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 0;
  border-top: 1px solid rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.05);
}
.inst-cur-num {
  font-size: 3.8rem; font-weight: 900; line-height: 1;
  color: #3b82f6; letter-spacing: -.05em; min-width: 3.2rem; transition: opacity .3s;
}
.inst-cur-label { font-size: 1rem; font-weight: 700; color: #e2e8f0; line-height: 1.3; transition: opacity .3s; }
.inst-cur-of { font-size: .68rem; color: #334155; margin-top: .2rem; }
.inst-thumbs { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.inst-thumb {
  height: 62px; border-radius: 8px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; opacity: .4;
  transition: opacity .25s, border-color .25s, transform .25s; position: relative;
}
.inst-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inst-thumb-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  font-size: .52rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: #fff; background: linear-gradient(transparent,rgba(0,0,0,.7));
  padding: .25rem .35rem .3rem; opacity: 0; transition: opacity .2s;
}
.inst-thumb:hover { opacity: .75; transform: scale(1.03); }
.inst-thumb:hover .inst-thumb-label { opacity: 1; }
.inst-thumb.active { border-color: #3b82f6; opacity: 1; transform: scale(1.03); }
.inst-thumb.active .inst-thumb-label { opacity: 1; }
.inst-controls { display: flex; align-items: center; gap: .85rem; }
.inst-ctrl-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.5); display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.inst-ctrl-btn:hover { border-color: #3b82f6; color: #60a5fa; background: rgba(59,130,246,.1); transform: scale(1.08); }
.inst-dots-row { display: flex; gap: 6px; flex: 1; justify-content: center; }
.inst-dot { height: 3px; border-radius: 2px; cursor: pointer; background: rgba(255,255,255,.12); transition: width .35s ease, background .25s; width: 18px; }
.inst-dot.active { width: 32px; background: #3b82f6; }
@media (max-width: 900px) {
  .inst-editorial { grid-template-columns: 1fr; }
  .inst-media { height: clamp(260px,55vw,420px); }
  .inst-media-overlay { background: linear-gradient(to bottom,rgba(0,0,0,.05) 0%,rgba(13,20,36,.8) 100%); }
  .inst-panel { gap: 1.2rem; padding: 1.75rem 1.5rem; }
  .inst-panel::before { display: none; }
  .inst-cur-num { font-size: 2.8rem; }
  .inst-thumb { height: 52px; }
}
@media (max-width: 480px) {
  .inst-media { height: 58vw; }
  .inst-thumb { height: 44px; }
  .inst-thumbs { gap: 5px; }
  .inst-panel { padding: 1.5rem 1.25rem; }
  .inst-panel-h2 { font-size: 1.4rem; }
}

/* ── CONTACT ── */
.contact-sec {
  padding: clamp(3rem,8vw,6rem) 0;
  background: linear-gradient(135deg, var(--blue-50) 0%, #fff 50%, var(--rose-50) 100%);
}
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem,5vw,4rem);
  align-items: start;
}
.contact-left .sec-h2 { text-align: left; }
.contact-left p { font-size: 0.95rem; color: var(--slate-500); line-height: 1.75; font-weight: 300; margin-top: 0.8rem; margin-bottom: 1.5rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; }
.cd-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.cd-icon.blue { background: var(--blue-100); }
.cd-icon.rose { background: var(--rose-100); }
.cd-text strong { display: block; font-size: 0.82rem; font-weight: 700; color: var(--slate-800); }
.cd-text span { font-size: 0.82rem; color: var(--slate-500); }
.form-card {
  background: #fff; border: 1px solid var(--slate-200);
  border-radius: var(--r-lg); padding: clamp(1.2rem,4vw,2rem);
  box-shadow: var(--shadow-md);
}
.form-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--slate-900); margin-bottom: 0.3rem; }
.form-card .fc-sub { font-size: 0.85rem; color: var(--slate-500); margin-bottom: 1.5rem; }
.fg { margin-bottom: 1rem; }
.fg label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--slate-700); margin-bottom: 0.3rem; }
.fg input, .fg select, .fg textarea {
  width: 100%; padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--slate-200); border-radius: 10px;
  font-family: var(--font); font-size: 0.88rem; color: var(--slate-800);
  outline: none; transition: border-color .18s;
  background: var(--slate-50);
}
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--blue-400); background: #fff; }
.fg textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form-submit {
  width: 100%; padding: 0.85rem;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: #fff; border: none; border-radius: 50px;
  font-family: var(--font); font-size: 0.92rem; font-weight: 700;
  cursor: pointer; margin-top: 0.5rem;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 4px 18px rgba(59,130,246,.25);
}
.form-submit:hover { opacity: 0.92; transform: translateY(-1px); }

/* ── CONTACT RESPONSIVE ── */
@media (max-width: 768px) {
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-left .sec-h2 { font-size: clamp(1.4rem, 5vw, 1.8rem); }
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 1.2rem; }
  .contact-detail { gap: 0.6rem; }
  .cd-icon { width: 36px; height: 36px; font-size: .9rem; }
}

/* ── CAMPUS SECTION ── */
.campus-sec {
  background:
    linear-gradient(135deg, #0a0f1e 0%, #0d1f3c 35%, #0f172a 65%, #0a1628 100%);
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
/* capa de color ambiental */
.campus-sec::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 15% 50%, rgba(167,139,250,.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 40%, rgba(244,114,182,.10) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 50% 0%,  rgba(37,99,235,.22)  0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 70% 90%, rgba(52,211,153,.08)  0%, transparent 55%);
  pointer-events: none;
}
/* línea decorativa superior */
.campus-sec::after {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,179,237,.4) 30%, rgba(167,139,250,.5) 50%, rgba(244,114,182,.4) 70%, transparent);
  pointer-events: none;
}
.campus-sec .sec-head { text-align: center; position: relative; }
.campus-sec .tag-blue {
  background: rgba(59,130,246,.18);
  color: #93c5fd;
  border: 1px solid rgba(59,130,246,.3);
  border-radius: 50px;
  padding: 4px 16px;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.campus-sec .sec-h2 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
}
.campus-sec .sec-sub {
  color: #94a3b8;
  max-width: 520px;
  margin: .8rem auto 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* ── MEXICO MAP ── */
.mex-map-wrap {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #06101e;
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 0 80px rgba(37,99,235,.12), 0 24px 60px rgba(0,0,0,.5);
  position: relative;
}
.mex-svg { display: block; width: 100%; height: auto; }

/* All states base */
.mex-state {
  fill: #162438;
  stroke: #243d58;
  stroke-width: .7;
  cursor: default;
  transition: fill .18s ease;
}
.mex-state:hover { fill: #1e3452; }

/* Campus states — slightly brighter base + color on hover */
.mex-campus {
  cursor: pointer;
  transition: fill .2s ease, stroke .2s ease, stroke-width .2s ease;
}
.state-nl  { fill: #162d4e; stroke: #2563eb; stroke-width: 1; }
.state-jal { fill: #2e1e08; stroke: #f59e0b; stroke-width: 1; }
.state-pue { fill: #1e1640; stroke: #a78bfa; stroke-width: 1; }
.state-yuc { fill: #2e0e20; stroke: #f472b6; stroke-width: 1; }

.state-nl:hover  { fill: #1e4080; stroke: #60a5fa; stroke-width: 1.5; }
.state-jal:hover { fill: #523010; stroke: #fbbf24; stroke-width: 1.5; }
.state-pue:hover { fill: #352270; stroke: #c4b5fd; stroke-width: 1.5; }
.state-yuc:hover { fill: #5a1538; stroke: #f9a8d4; stroke-width: 1.5; }

/* SVG callout pins — always visible, highlighted on state hover */
.campus-ptr { transition: opacity .2s ease; opacity: .72; }
.campus-ptr.cp-active { opacity: 1; }
.ptr-link { cursor: pointer; }
.ptr-link:hover { opacity: .8; }

/* Campus Virtual card */
.campus-virtual-wrap {
  max-width: 920px;
  margin: 1.4rem auto 0;
}
.campus-virtual-card {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  background: linear-gradient(135deg, rgba(14,165,233,.12) 0%, rgba(99,102,241,.1) 100%);
  border: 1px solid rgba(99,102,241,.35);
  border-radius: 14px;
  padding: 1rem 1.6rem;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.campus-virtual-card:hover {
  background: linear-gradient(135deg, rgba(14,165,233,.2) 0%, rgba(99,102,241,.18) 100%);
  border-color: rgba(99,102,241,.6);
  box-shadow: 0 0 28px rgba(99,102,241,.18);
}
.cv-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(14,165,233,.25), rgba(99,102,241,.25));
  border: 1px solid rgba(99,102,241,.4);
  border-radius: 12px;
  color: #a5b4fc;
}
.cv-icon svg { width: 22px; height: 22px; }
.cv-body { flex: 1; min-width: 0; }
.cv-label { font-size: .95rem; font-weight: 700; color: #c7d2fe; }
.cv-sub   { font-size: .76rem; color: rgba(165,180,252,.55); margin-top: .15rem; }
.cv-btn {
  flex-shrink: 0;
  font-size: .76rem; font-weight: 700; letter-spacing: .06em;
  color: #a5b4fc;
  text-decoration: none;
  background: rgba(99,102,241,.18);
  border: 1px solid rgba(99,102,241,.4);
  border-radius: 8px;
  padding: .45rem 1rem;
  transition: color .16s, background .16s, border-color .16s;
  white-space: nowrap;
}
.cv-btn:hover { color: #fff; background: rgba(99,102,241,.35); border-color: rgba(99,102,241,.7); }

@media (max-width: 640px) {
  .campus-sec { padding: 3rem 0 2.5rem; }
  .campus-virtual-card { flex-wrap: wrap; gap: .9rem; }
  .cv-btn { width: 100%; text-align: center; }
}

/* ── PRÓXIMOS INICIOS ── */
.prox-sec {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: clamp(4rem,7vw,6rem) 0;
}
.prox-sec .sec-h2 { color: #0f172a; }
.prox-sec .sec-sub { color: #64748b; }
.prox-sec .tag-rose { background: rgba(59,130,246,.08); color: #2563eb; border: 1px solid rgba(59,130,246,.18); }
.prox-sec .h-accent {
  background: none; -webkit-background-clip: unset; background-clip: unset;
  -webkit-text-fill-color: #2563eb; color: #2563eb; font-size: inherit; font-weight: inherit;
}
#prox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-top: 2.5rem;
}
.pb-card {
  background: #fff; border: 1.5px solid #e8edf3; border-radius: 16px;
  padding: 1.2rem 1.2rem 1rem;
  display: flex; flex-direction: column;
  text-decoration: none; min-height: 178px;
  transition: border-color .2s, box-shadow .2s, transform .18s;
}
.pb-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.07); transform: translateY(-3px); }
.pb-card-esp:hover { border-color: #ddd6fe; }
.pb-card-dip:hover { border-color: #fecdd3; }
.pb-card-mst:hover { border-color: #bfdbfe; }
.pb-card-evt:hover { border-color: #fde68a; }
.pb-card-top {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: .55rem;
}
.pb-card-tipo {
  font-size: .57rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  padding: .22rem .6rem; border-radius: 50px; border: 1px solid;
}
.pb-card-esp .pb-card-tipo { color: #7c3aed; background: #f5f3ff; border-color: #ddd6fe; }
.pb-card-dip .pb-card-tipo { color: #db2777; background: #fdf2f8; border-color: #fbcfe8; }
.pb-card-mst .pb-card-tipo { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }
.pb-card-evt .pb-card-tipo { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.pb-card-days { font-size: .62rem; font-weight: 700; color: #94a3b8; }
.pb-card-date {
  display: flex; align-items: baseline; gap: .3rem;
  font-size: 2.5rem; font-weight: 900; color: #0f172a;
  line-height: 1; letter-spacing: -.04em; margin-bottom: .35rem;
}
.pb-card-date span { font-size: .85rem; font-weight: 800; color: #475569; text-transform: uppercase; letter-spacing: .08em; }
.pb-card-name {
  font-size: .84rem; font-weight: 700; color: #1e293b; line-height: 1.4; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pb-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: .85rem; gap: .5rem;
}
.pb-card-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.pb-card-tag {
  font-size: .62rem; font-weight: 600; color: #64748b;
  background: #f1f5f9; border: 1px solid #e2e8f0;
  padding: .18rem .55rem; border-radius: 50px;
}
.pb-card-arrow {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: #f1f5f9; border: 1px solid #e2e8f0;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; transition: background .2s, border-color .2s, color .2s;
}
.pb-card-esp:hover .pb-card-arrow { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.pb-card-dip:hover .pb-card-arrow { background: #db2777; border-color: #db2777; color: #fff; }
.pb-card-mst:hover .pb-card-arrow { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.pb-card-evt:hover .pb-card-arrow { background: #d97706; border-color: #d97706; color: #fff; }
@media (max-width: 860px) {
  #prox-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  #prox-grid { grid-template-columns: 1fr; }
  .pb-card { min-height: unset; }
}

/* ── TIKTOK REELS ── */
.reels-sec {
  background: linear-gradient(145deg, var(--rose-50) 0%, #fff 45%, #fdf4f7 100%);
  padding: 4.5rem 0 4rem;
  overflow: hidden;
  position: relative;
}
.reels-sec::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 65% 45% at 50% 100%, rgba(224,85,133,.1) 0%, transparent 65%);
  pointer-events: none;
}
.reels-coverflow {
  position: relative;
  height: 360px;
  display: flex; align-items: center; justify-content: center;
  perspective: 1200px;
  margin-top: .5rem;
}
/* Carta base */
.reel-cf-card {
  position: absolute;
  width: 195px; height: 308px;
  border-radius: 18px;
  background: var(--slate-800) center/cover no-repeat;
  border: 1px solid rgba(255,255,255,.08);
  cursor: pointer;
  transition: all .55s cubic-bezier(.4,0,.2,1);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
/* Overlay suave encima del thumbnail */
.reel-cf-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.28) 100%);
  border-radius: inherit;
  pointer-events: none;
}
.reel-cf-card[data-pos="center"] {
  transform: translateX(0) scale(1) rotateY(0deg);
  z-index: 5; opacity: 1;
  border-color: var(--rose-400);
  box-shadow: 0 0 0 2px rgba(224,85,133,.25),
              0 24px 56px rgba(224,85,133,.2),
              0 6px 24px rgba(0,0,0,.6);
}
.reel-cf-card[data-pos="right"] {
  transform: translateX(230px) scale(.82) rotateY(-20deg);
  z-index: 3; opacity: .55;
}
.reel-cf-card[data-pos="left"] {
  transform: translateX(-230px) scale(.82) rotateY(20deg);
  z-index: 3; opacity: .55;
}
.reel-cf-card[data-pos="far-right"] {
  transform: translateX(400px) scale(.64) rotateY(-32deg);
  z-index: 1; opacity: .25;
}
.reel-cf-card[data-pos="far-left"] {
  transform: translateX(-400px) scale(.64) rotateY(32deg);
  z-index: 1; opacity: .25;
}
.reel-cf-card[data-pos="hidden"] {
  transform: translateX(0) scale(.35);
  z-index: 0; opacity: 0; pointer-events: none;
}
.reel-cf-inner {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  position: relative; z-index: 2;
}
.reel-cf-play {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(6px);
  border: 2px solid rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s, background .25s, border-color .25s;
}
.reel-cf-card[data-pos="center"] .reel-cf-play {
  width: 62px; height: 62px;
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.8);
}
.reel-cf-card[data-pos="center"]:hover .reel-cf-play {
  transform: scale(1.1);
  background: rgba(224,85,133,.45);
  border-color: rgba(255,255,255,.9);
}

/* Dots */
.reels-dots {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  margin-top: 2.4rem;
}
.reel-dot {
  height: 6px; width: 6px; border-radius: 3px;
  background: var(--rose-200);
  border: none; cursor: pointer; padding: 0;
  transition: background .35s, width .35s;
}
.reel-dot.active { background: var(--rose-500); width: 24px; }

/* Modal — tamaño moderado, NO pantalla completa */
.reel-modal {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(15,23,42,.75); backdrop-filter: blur(10px);
  align-items: center; justify-content: center;
  padding: 16px;
}
.reel-modal.open { display: flex; }
.reel-modal-wrap {
  position: relative;
  width: 340px;
  animation: reelPop .25s ease;
}
@keyframes reelPop {
  from { transform: scale(.92); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.reel-modal-close {
  position: absolute; top: -14px; right: -14px;
  background: var(--rose-500); border: none;
  border-radius: 50%; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 1;
  box-shadow: 0 4px 14px rgba(224,85,133,.5);
  transition: transform .2s, background .2s;
}
.reel-modal-close:hover { background: var(--rose-400); transform: scale(1.1); }
.reel-modal-inner {
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
@media (max-width: 640px) {
  .reels-coverflow { height: 310px; }
  .reel-cf-card { width: 168px; height: 268px; }
  .reel-cf-card[data-pos="right"]     { transform: translateX(148px) scale(.78) rotateY(-16deg); }
  .reel-cf-card[data-pos="left"]      { transform: translateX(-148px) scale(.78) rotateY(16deg); }
  .reel-cf-card[data-pos="far-right"] { transform: translateX(262px) scale(.6) rotateY(-26deg); opacity: .2; }
  .reel-cf-card[data-pos="far-left"]  { transform: translateX(-262px) scale(.6) rotateY(26deg); opacity: .2; }
  .reel-modal-wrap { width: 300px; }
}

/* ── FOOTER ── */
footer {
  background: #1A1B38;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 2.5rem clamp(1.5rem,5vw,4rem) 1.5rem;
}
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 260px 1fr auto;
  gap: 3rem; align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

/* Brand */
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-logo-img {
  height: 100px;
  max-width: 400px;
  width: auto; object-fit: contain;
  filter: saturate(0) brightness(100) opacity(0.85);
}
.footer-tagline { font-size: .8rem; color: rgba(255,255,255,.35); line-height: 1.7; font-weight: 300; }
.footer-sep-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.25);
  border-radius: 50px; padding: 3px 10px;
  font-size: .68rem; font-weight: 700; color: #60a5fa; width: fit-content;
}
.fsp-dot { width: 5px; height: 5px; border-radius: 50%; background: #3b82f6; flex-shrink: 0; }

/* ── SOCIAL ICONS — animación continua flotante + hover color ── */
.footer-social { display: flex; gap: 10px; margin-top: 4px; }

/* Animación de flotación continua escalonada */
@keyframes float1 { 0%,100%{transform:translateY(0)}  50%{transform:translateY(-5px)} }
@keyframes float2 { 0%,100%{transform:translateY(-3px)} 50%{transform:translateY(3px)} }
@keyframes float3 { 0%,100%{transform:translateY(0)}  50%{transform:translateY(-4px)} }
@keyframes float4 { 0%,100%{transform:translateY(-2px)} 50%{transform:translateY(4px)} }

/* Glow pulse continuo */
@keyframes glowPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(147,197,253,0); }
  50%      { box-shadow: 0 0 14px 4px rgba(147,197,253,.35); }
}

.soc-btn {
  position: relative; width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; overflow: hidden;
  background: rgba(147,197,253,.07);
  border: 1.5px solid rgba(147,197,253,.7);
  transition: border-color .22s, transform .22s;
}
.soc-btn svg {
  width: 18px; height: 18px; fill: #93c5fd;
  transition: fill .22s, transform .22s;
  position: relative; z-index: 1; flex-shrink: 0;
}
/* Fondo de color en hover */
.soc-btn::before {
  content: ''; position: absolute; inset: 0; opacity: 0;
  transition: opacity .22s; border-radius: 9px;
}
.soc-btn:hover { border-color: transparent; transform: translateY(-4px) scale(1.1) !important; animation: none !important; }
.soc-btn:hover svg { fill: #fff; transform: scale(1.1); }
.soc-btn:hover::before { opacity: 1; }

/* Colores hover */
.sb-fb::before { background: #1877f2; box-shadow: 0 0 20px rgba(24,119,242,.5); }
.sb-ig::before { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.sb-tk::before { background: #111; }
.sb-li::before { background: #0a66c2; }

/* Animación flotante continua — cada uno con fase distinta */
.soc-btn:nth-child(1) { animation: float1 2.8s ease-in-out infinite, glowPulse 2.8s ease-in-out infinite; }
.soc-btn:nth-child(2) { animation: float2 3.1s ease-in-out infinite .4s, glowPulse 3.1s ease-in-out infinite .4s; }
.soc-btn:nth-child(3) { animation: float3 2.5s ease-in-out infinite .8s, glowPulse 2.5s ease-in-out infinite .8s; }
.soc-btn:nth-child(4) { animation: float4 3.4s ease-in-out infinite .2s, glowPulse 3.4s ease-in-out infinite .2s; }

/* Links cols */
.footer-cols { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.footer-col { min-width: 90px; }
.footer-col-h {
  font-size: .65rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: .8rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .38rem; }
.footer-col a { font-size: .8rem; color: rgba(255,255,255,.3); text-decoration: none; transition: color .15s; }
.footer-col a:hover { color: #60a5fa; }

/* CTA */
.footer-cta-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.footer-cta-btn {
  background: #fff; color: #1A1B38;
  padding: .68rem 1.4rem; border-radius: 50px;
  font-size: .8rem; font-weight: 800; text-decoration: none;
  transition: background .15s, transform .15s; white-space: nowrap;
}
.footer-cta-btn:hover { background: #f1f5f9; transform: translateY(-1px); }
.footer-wa-btn {
  display: flex; align-items: center; gap: 6px;
  border: 1.5px solid rgba(34,197,94,.4); color: #86efac;
  background: rgba(34,197,94,.06);
  padding: .6rem 1.2rem; border-radius: 50px;
  font-size: .78rem; font-weight: 700; text-decoration: none;
  transition: background .15s; white-space: nowrap;
}
.footer-wa-btn:hover { background: rgba(34,197,94,.14); }

/* Bottom */
.footer-bottom {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.2rem; flex-wrap: wrap; gap: .5rem;
}
.footer-bottom span { font-size: .72rem; color: rgba(255,255,255,.2); }
.footer-bottom-links { display: flex; gap: 1.2rem; }
.footer-bottom-links a { font-size: .72rem; color: rgba(255,255,255,.2); text-decoration: none; transition: color .15s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,.5); }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-cta-col { align-items: flex-start; flex-direction: row; flex-wrap: wrap; grid-column: 1/-1; }
}
@media (max-width: 540px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── REVEAL ON SCROLL ── */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.rv.in { opacity: 1; transform: translateY(0); }

/* ── STICKY MOBILE CTA BAR ── */
.mob-cta-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 400;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 24px rgba(15,23,42,.1);
  gap: 10px;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.mob-cta-bar.visible { transform: translateY(0); }
@media (max-width: 860px) {
  .mob-cta-bar { display: flex; }
}
.mob-cta-bar-wa {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  flex: 1; padding: .75rem;
  background: #22c55e; color: #fff;
  border-radius: 14px; text-decoration: none;
  font-size: .88rem; font-weight: 700;
  box-shadow: 0 4px 14px rgba(34,197,94,.3);
  transition: background .15s, transform .15s;
}
.mob-cta-bar-wa:active { background: #16a34a; transform: scale(.97); }
.mob-cta-bar-ins {
  display: flex; align-items: center; justify-content: center;
  flex: 1; padding: .75rem;
  background: #3b82f6; color: #fff;
  border-radius: 14px; text-decoration: none;
  font-size: .88rem; font-weight: 700;
  box-shadow: 0 4px 14px rgba(59,130,246,.3);
  transition: background .15s, transform .15s;
}
.mob-cta-bar-ins:active { background: #2563eb; transform: scale(.97); }


/* ── TESTIMONIOS — Teatro Cinematográfico ── */
.testimonios-sec {
  padding: clamp(5rem,9vw,8rem) 0;
  background: #fafaf9;
  border-top: 1px solid #e5e7eb;
  position: relative; overflow: hidden;
}
.testimonios-sec::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle,rgba(0,0,0,.04) 1px,transparent 1px);
  background-size: 28px 28px; pointer-events: none;
}
.testi-teatro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem;
  align-items: center; max-width: 1100px; margin: 0 auto;
  padding: 0 2rem; position: relative; z-index: 1;
}
.testi-left { display: flex; flex-direction: column; gap: 2rem; }
.testi-h2 { font-size: clamp(2.1rem,3.5vw,2.9rem); color: #0f172a; line-height: 1.2; margin: .4rem 0 0; }
.testi-h2 .h-accent {
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 50%, #0891b2 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-size: inherit; font-weight: inherit;
}
.testi-quote {
  font-size: 1.05rem; font-style: italic; color: #64748b; line-height: 1.85;
  border-left: 2px solid #f9a8d4; padding-left: 1.5rem; margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
}
.testi-rating { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.testi-stars-row { display: flex; gap: 3px; }
.testi-stars-row span { color: #fbbf24; font-size: 1.05rem; filter: drop-shadow(0 0 5px rgba(251,191,36,.4)); }
.testi-verified {
  font-size: .67rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  color: #15803d; background: rgba(21,128,61,.07); border: 1px solid rgba(21,128,61,.2);
  padding: .3rem .85rem; border-radius: 50px;
}
.testi-counter-label { font-size: .67rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: #94a3b8; margin-bottom: -.75rem; }
.testi-nav { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.testi-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid #e2e8f0; background: #fff;
  color: #94a3b8; font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  cursor: pointer; transition: border-color .25s, color .25s, background .25s, box-shadow .25s, transform .2s;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.testi-btn:hover { border-color: rgba(244,114,182,.5); color: #db2777; background: rgba(244,114,182,.06); transform: translateY(-2px); }
.testi-btn.active { border-color: #f472b6; background: #f472b6; color: #fff; box-shadow: 0 4px 20px rgba(244,114,182,.35),0 0 0 4px rgba(244,114,182,.12); transform: translateY(-2px); }
.testi-btn-tk { width: auto; padding: 0 1.2rem; border-radius: 50px; text-decoration: none; gap: .5rem; font-size: .7rem; }
.testi-right { display: flex; justify-content: center; align-items: center; position: relative; }
.testi-glow-ring {
  position: absolute; width: 340px; height: 580px; border-radius: 50px;
  background: radial-gradient(ellipse at 50% 50%,rgba(244,114,182,.2) 0%,rgba(129,140,248,.12) 50%,transparent 70%);
  filter: blur(50px); pointer-events: none;
}
.testi-phone {
  width: 300px; height: 560px; background: #0c0c12; border-radius: 44px;
  border: 10px solid #0c0c12; outline: 1px solid rgba(0,0,0,.07);
  position: relative; overflow: hidden;
  box-shadow:
    0 2px 4px rgba(12,12,18,.06),
    0 8px 20px rgba(12,12,18,.10),
    0 28px 56px rgba(12,12,18,.16),
    0 56px 88px rgba(12,12,18,.10);
  transition: box-shadow .4s ease;
}
.testi-phone:hover {
  box-shadow:
    0 2px 4px rgba(12,12,18,.06),
    0 8px 20px rgba(12,12,18,.12),
    0 32px 64px rgba(12,12,18,.20),
    0 60px 96px rgba(12,12,18,.13),
    0 0 60px rgba(244,114,182,.12);
}
.testi-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 22px; background: #0c0c12; border-radius: 20px; z-index: 10; pointer-events: none; box-shadow: 0 0 0 1px rgba(255,255,255,.05); }
.testi-phone iframe { width: 100%; height: 100%; border: none; display: block; transition: opacity .28s ease, transform .28s ease; }
.testi-homebar { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 100px; height: 4px; background: rgba(255,255,255,.2); border-radius: 4px; z-index: 10; pointer-events: none; }
@media (max-width: 860px) {
  .testimonios-sec { padding: 4rem 0 3rem; }
  .testi-teatro { grid-template-columns: 1fr; gap: 2.5rem; padding: 0 1.5rem; }
  .testi-right { padding-bottom: 1rem; }
  .testi-left { position: relative; z-index: 2; }
  .testi-glow-ring { display: none; }
  .testi-phone { width: 260px; height: 488px; }
  .testi-h2 { font-size: 1.9rem; }
}
@media (max-width: 640px) {
  .testimonios-sec { padding: 3rem 0 2.5rem; }
  .testi-teatro { gap: 2rem; padding: 0 1.25rem; }
  .testi-left { gap: 1.4rem; }
  .testi-h2 { font-size: 1.65rem; }
  .testi-quote { font-size: .93rem; padding-left: 1.1rem; line-height: 1.75; }
  .testi-counter-label { margin-bottom: -.5rem; }
  .testi-nav { gap: .6rem; }
  .testi-btn { width: 42px; height: 42px; font-size: .68rem; }
  .testi-phone { width: 230px; height: 432px; border-radius: 38px; border-width: 9px; }
  .testi-notch { width: 80px; height: 20px; top: 9px; }
  .testi-homebar { width: 80px; }
}
@media (max-width: 390px) {
  .testi-teatro { padding: 0 1rem; }
  .testi-phone { width: 200px; height: 376px; border-radius: 32px; border-width: 8px; box-shadow: 0 4px 12px rgba(12,12,18,.08),0 16px 36px rgba(12,12,18,.14),0 36px 60px rgba(12,12,18,.10); }
  .testi-h2 { font-size: 1.45rem; }
  .testi-btn { width: 38px; height: 38px; font-size: .65rem; }
}

/* ── BANDERA PRÓXIMOS EVENTOS ── */
.events-flag {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: linear-gradient(160deg, #059669 0%, #10b981 100%);
  color: #fff;
  text-decoration: none;
  padding: .9rem .55rem;
  border-radius: 12px 0 0 12px;
  box-shadow: -3px 0 20px rgba(16,185,129,.35);
  z-index: 900;
  transition: transform .2s, box-shadow .2s;
  animation: flag-peek 4s ease-in-out infinite;
}
/* Peek in/out + glow cycle */
@keyframes flag-peek {
  0%        { transform: translateY(-50%) translateX(0);    box-shadow: -3px 0 20px rgba(16,185,129,.35); }
  8%        { transform: translateY(-50%) translateX(-10px); box-shadow: -8px 0 32px rgba(16,185,129,.6); }
  18%       { transform: translateY(-50%) translateX(0);    box-shadow: -3px 0 20px rgba(16,185,129,.35); }
  100%      { transform: translateY(-50%) translateX(0);    box-shadow: -3px 0 20px rgba(16,185,129,.35); }
}
.events-flag:hover {
  animation: none;
  transform: translateY(-50%) translateX(-10px) !important;
  box-shadow: -8px 0 32px rgba(16,185,129,.6);
}
/* Sheen sweep */
.events-flag::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%);
  background-size: 200% 100%;
  background-position: 200% 0;
  animation: flag-sheen 4s ease-in-out infinite;
}
@keyframes flag-sheen {
  0%,15% { background-position: 200% 0; }
  30%    { background-position: -200% 0; }
  100%   { background-position: -200% 0; }
}
.events-flag-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  animation: flag-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
  position: relative; z-index: 1;
}
@keyframes flag-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); }
  50%     { box-shadow: 0 0 0 6px rgba(255,255,255,0); }
}
.events-flag-text {
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  text-align: center;
  line-height: 1.35;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  position: relative; z-index: 1;
}
.events-flag-arrow {
  width: 14px; height: 14px;
  transform: rotate(-90deg);
  flex-shrink: 0;
  position: relative; z-index: 1;
  animation: flag-bounce 4s ease-in-out infinite;
}
@keyframes flag-bounce {
  0%,12%,20%,100% { transform: rotate(-90deg) translateX(0); }
  16%             { transform: rotate(-90deg) translateX(3px); }
}
@media (max-width: 600px) {
  .events-flag { top: auto; bottom: 80px; transform: none;
    animation: flag-peek-mob 4s ease-in-out infinite; }
  @keyframes flag-peek-mob {
    0%   { transform: translateX(0); }
    8%   { transform: translateX(-10px); }
    18%  { transform: translateX(0); }
    100% { transform: translateX(0); }
  }
  .events-flag:hover { animation: none; transform: translateX(-10px) !important; }
}

/* ── Modal Solicita Informes ── */
.info-modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(15,23,42,.28);
  backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.info-modal-overlay.open { opacity: 1; pointer-events: auto; }
.info-modal-box {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%) translateX(calc(-100% - 2rem));
  width: 370px;
  max-width: calc(100vw - 3rem);
  max-height: 85vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 6px 6px 48px rgba(0,0,0,.18);
  transition: transform .36s cubic-bezier(.34,1.15,.64,1);
}
.info-modal-overlay.open .info-modal-box {
  transform: translateY(-50%) translateX(0);
}
@media (max-width: 600px) {
  .info-modal-box {
    left: 0; right: 0; top: auto; bottom: 0;
    width: 100%; max-width: 100%; max-height: 92vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform .32s cubic-bezier(.34,1.1,.64,1);
  }
  .info-modal-overlay.open .info-modal-box { transform: translateY(0); }
}
.info-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 32px; height: 32px; border-radius: 50%;
  background: #f1f5f9; border: none; cursor: pointer;
  font-size: 1.2rem; line-height: 1; color: #64748b;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.info-modal-close:hover { background: #e2e8f0; color: #0f172a; }
.info-modal-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: #eff6ff; color: #3b82f6;
  font-size: .7rem; font-weight: 800;
  padding: .28rem .75rem; border-radius: 50px; margin-bottom: .7rem;
  letter-spacing: .05em; text-transform: uppercase;
}
.info-modal-title { font-size: 1.25rem; font-weight: 800; color: #0f172a; margin-bottom: .25rem; }
.info-modal-sub { font-size: .82rem; color: #64748b; margin-bottom: 1.4rem; }

/* ── Bandera Solicita Informes ── */
.info-flag {
  position: fixed;
  right: 0;
  top: 65%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: linear-gradient(160deg, #1d4ed8 0%, #3b82f6 100%);
  color: #fff;
  text-decoration: none;
  padding: .9rem .55rem;
  border-radius: 12px 0 0 12px;
  box-shadow: -3px 0 20px rgba(59,130,246,.35);
  z-index: 900;
  transition: transform .2s, box-shadow .2s;
  animation: infoflag-peek 5s 2s ease-in-out infinite;
}
@keyframes infoflag-peek {
  0%        { transform: translateY(-50%) translateX(0);     box-shadow: -3px 0 20px rgba(59,130,246,.35); }
  8%        { transform: translateY(-50%) translateX(-10px); box-shadow: -8px 0 32px rgba(59,130,246,.60); }
  18%       { transform: translateY(-50%) translateX(0);     box-shadow: -3px 0 20px rgba(59,130,246,.35); }
  100%      { transform: translateY(-50%) translateX(0);     box-shadow: -3px 0 20px rgba(59,130,246,.35); }
}
.info-flag:hover {
  animation: none;
  transform: translateY(-50%) translateX(-10px) !important;
  box-shadow: -8px 0 32px rgba(59,130,246,.6);
}
.info-flag::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%);
  background-size: 200% 100%;
  background-position: 200% 0;
  animation: infoflag-sheen 5s 2s ease-in-out infinite;
}
@keyframes infoflag-sheen {
  0%,15% { background-position: 200% 0; }
  30%    { background-position: -200% 0; }
  100%   { background-position: -200% 0; }
}
.info-flag-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  animation: flag-pulse 1.8s .9s ease-in-out infinite;
  flex-shrink: 0; position: relative; z-index: 1;
}
.info-flag-text {
  font-size: .62rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em;
  text-align: center; line-height: 1.35;
  writing-mode: vertical-rl; text-orientation: mixed;
  transform: rotate(180deg);
  position: relative; z-index: 1;
}
.info-flag-arrow {
  width: 14px; height: 14px;
  transform: rotate(-90deg);
  flex-shrink: 0; position: relative; z-index: 1;
  animation: infoflag-bounce 5s 2s ease-in-out infinite;
}
@keyframes infoflag-bounce {
  0%,12%,20%,100% { transform: rotate(-90deg) translateX(0); }
  16%             { transform: rotate(-90deg) translateX(3px); }
}
@media (max-width: 600px) {
  .info-flag { top: auto; bottom: 240px; transform: none;
    animation: infoflag-peek-mob 5s 2s ease-in-out infinite; }
  @keyframes infoflag-peek-mob {
    0%   { transform: translateX(0); }
    8%   { transform: translateX(-10px); }
    18%  { transform: translateX(0); }
    100% { transform: translateX(0); }
  }
  .info-flag:hover { animation: none; transform: translateX(-10px) !important; }
}

/* ── BARRA SOCIAL FLOTANTE IZQUIERDA ── */
.social-float {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0 10px 8px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0 14px 14px 0;
  border: 1px solid rgba(255,255,255,.08);
  border-left: none;
  box-shadow: 4px 0 24px rgba(0,0,0,.3);
}
.social-float .soc-btn {
  animation: none !important;
  transform: none !important;
  transition: transform .2s, box-shadow .2s;
}
.social-float .soc-btn:hover {
  transform: translateX(5px) scale(1.1) !important;
}
@media (max-width: 600px) {
  .social-float { display: none; }
}

/* ── MASCOTAS ── */
/* ── MASCOTAS — rediseño oscuro con cortina ── */
.mascotas-sec {
  padding: 6rem 0 5.5rem;
  background: linear-gradient(160deg, #0d0b1c 0%, #1a1040 55%, #0e0c1e 100%);
  position: relative;
  overflow: hidden;
}
.mascotas-sec::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 12% 55%, rgba(244,114,182,.13) 0%, transparent 55%),
    radial-gradient(ellipse 55% 65% at 88% 55%, rgba(59,130,246,.13) 0%, transparent 55%);
  pointer-events: none;
}
/* Estrellas decorativas */
.mascotas-sec::after {
  content: '✦  ◆  ✦';
  position: absolute; top: 2rem; left: 50%;
  transform: translateX(-50%);
  font-size: .6rem; letter-spacing: 1.6rem;
  color: rgba(255,255,255,.12); pointer-events: none;
}

/* Títulos sobre fondo oscuro */
.mascotas-sec .tag-blue  { background: rgba(59,130,246,.18); color: #93c5fd; border: 1px solid rgba(59,130,246,.3); }
.mascotas-sec .sec-h2   { color: #f1f5f9; }
.mascotas-sec .sec-sub  { color: rgba(255,255,255,.5); }

.mascotas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 840px;
  margin: 0 auto;
}

/* ── Tarjeta — estado inicial (fuera de pantalla) ── */
.mascota-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.8rem 2rem 2rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 8px 48px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.07);
  opacity: 0;
  will-change: transform, opacity;
}
.mascota-card:first-child { transform: translateX(-140px); }
.mascota-card:last-child  { transform: translateX( 140px); }

/* Estado asentado: hover y transición activos */
.mascota-card.mascota-settled {
  opacity: 1;
  transform: translateX(0);
  transition: transform .4s ease, box-shadow .4s ease;
}
.mascota-card.mascota-settled:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 64px rgba(0,0,0,.45);
}

/* ── Animaciones de entrada lateral ── */
@keyframes mascota-enter-left {
  from { opacity: 0; transform: translateX(-140px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes mascota-enter-right {
  from { opacity: 0; transform: translateX(140px); }
  to   { opacity: 1; transform: translateX(0); }
}
.mascota-card:first-child.mascota-visible {
  animation: mascota-enter-left .9s cubic-bezier(.34,1.4,.64,1) forwards;
}
.mascota-card:last-child.mascota-visible {
  animation: mascota-enter-right .9s cubic-bezier(.34,1.4,.64,1) forwards;
  animation-delay: .18s;
}

/* ── Float idle ── */
@keyframes mascota-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
.mascota-settled .mascota-img-wrap {
  animation: mascota-float 3.5s ease-in-out infinite;
}
.mascota-card:last-child.mascota-settled .mascota-img-wrap {
  animation-delay: -1.75s;
}
.mascota-settled:hover .mascota-img-wrap {
  animation-play-state: paused;
}

/* ── Glow detrás de la imagen ── */
.mascota-glow {
  display: block;
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  top: 30px; left: 50%;
  transform: translateX(-50%);
  filter: blur(55px);
  opacity: .3;
  z-index: 0;
  transition: opacity .4s;
}
.mascota-card:hover .mascota-glow { opacity: .5; }
.mascota-card:first-child .mascota-glow { background: #f472b6; }
.mascota-card:last-child  .mascota-glow { background: #60a5fa; }

/* ── Imagen ── */
.mascota-img-wrap {
  position: relative;
  width: 240px; height: 290px;
  display: flex; align-items: flex-end; justify-content: center;
  margin-bottom: 1.5rem;
  z-index: 1;
}
.mascota-img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 32px rgba(0,0,0,.5));
  transition: transform .4s ease;
}
.mascota-settled:hover .mascota-img { transform: scale(1.08) translateY(-8px); }

/* ── Badge ── */
.mascota-badge {
  display: inline-flex;
  font-size: .61rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 50px;
  margin-bottom: .9rem;
  position: relative; z-index: 1;
}
.mascota-card:first-child .mascota-badge {
  background: rgba(244,114,182,.18); color: #f9a8d4;
  border: 1px solid rgba(244,114,182,.35);
}
.mascota-card:last-child .mascota-badge {
  background: rgba(96,165,250,.18);  color: #93c5fd;
  border: 1px solid rgba(96,165,250,.35);
}

/* ── Nombre y descripción ── */
.mascota-nombre {
  font-size: 1.5rem; font-weight: 800;
  color: #f1f5f9; margin: 0 0 .75rem;
  letter-spacing: -.02em;
  position: relative; z-index: 1;
}
.mascota-desc {
  font-size: .83rem; color: rgba(255,255,255,.55);
  line-height: 1.75; margin: 0; text-align: center;
  position: relative; z-index: 1;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .mascotas-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .mascota-img-wrap { width: 185px; height: 225px; }
  .mascota-nombre { font-size: 1.25rem; }
  .mascota-card { padding: 2rem 1.5rem 1.75rem; }
}

/* ── Popup Congreso Nacional ── */
.cp-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(15,23,42,.72); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.cp-overlay.visible { opacity: 1; pointer-events: auto; }
.cp-box {
  background: #fff; border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,.38);
  width: min(800px, 100%); max-height: 92vh;
  display: flex; flex-direction: column; overflow: hidden;
}
.cp-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.1rem .85rem 1.5rem;
  border-bottom: 1px solid var(--slate-200);
  flex-shrink: 0;
}
.cp-header-title {
  font-size: .8rem; font-weight: 700; color: var(--slate-700);
  text-transform: uppercase; letter-spacing: .07em;
}
.cp-close {
  width: 32px; height: 32px; border: none; background: var(--slate-100);
  border-radius: 50%; cursor: pointer; font-size: 1.15rem; color: var(--slate-500);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s; flex-shrink: 0;
}
.cp-close:hover { background: var(--slate-200); color: var(--slate-900); }
.cp-body { flex: 1; overflow: hidden; min-height: 0; }
.cp-iframe {
  width: 100%; height: clamp(380px, 68vh, 650px);
  border: none; display: block;
}
.cp-footer {
  display: flex; gap: .75rem; padding: .85rem 1.25rem;
  border-top: 1px solid var(--slate-200); justify-content: flex-end; flex-shrink: 0;
}
.cp-btn-full {
  padding: .55rem 1.2rem; border-radius: 8px; font-size: .82rem; font-weight: 600;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem;
  background: var(--slate-100); color: var(--slate-700);
  border: 1.5px solid var(--slate-200); transition: background .15s, border-color .15s;
}
.cp-btn-full:hover { background: var(--slate-200); border-color: var(--slate-300); }
.cp-btn-info {
  padding: .55rem 1.2rem; border-radius: 8px; font-size: .82rem; font-weight: 600;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem;
  background: #ef4444; color: #fff; border: none; transition: background .15s;
}
.cp-btn-info:hover { background: #dc2626; }
@media (max-width: 520px) {
  .cp-footer { flex-direction: column; }
  .cp-btn-full, .cp-btn-info { justify-content: center; }
  .cp-iframe { height: clamp(300px, 55vh, 480px); }
}

/* ── CONVENIOS INSTITUCIONALES ── */
.conv-sec {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}
.d-br { display: block; }

/* grid de 4 tiles */
.conv-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.conv-tile {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 1.5rem 1.35rem;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.conv-tile:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--rose-200);
  transform: translateY(-3px);
}
.conv-tile-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--rose-50); color: var(--rose-500);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--rose-100);
  margin-bottom: 1rem;
}
.conv-tile-title {
  font-size: .92rem; font-weight: 700; color: var(--slate-800);
  margin-bottom: .45rem; line-height: 1.3;
}
.conv-tile-desc {
  font-size: .8rem; color: var(--slate-500); line-height: 1.65;
}

/* CTA inferior */
.conv-cta-wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap;
}
.conv-cta-label {
  font-size: .85rem; color: var(--slate-500); font-weight: 500;
  width: 100%; text-align: center; margin-bottom: -.25rem;
}
.conv-cta {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--rose-500); color: #fff;
  font-size: .88rem; font-weight: 700;
  padding: .78rem 1.5rem; border-radius: 50px;
  text-decoration: none; transition: background .15s, transform .15s;
  letter-spacing: .01em;
  box-shadow: 0 4px 14px rgba(224,85,133,.35);
}
.conv-cta:hover { background: var(--rose-600); transform: translateY(-2px); }
.conv-cta-sep {
  font-size: .82rem; color: var(--slate-400);
}
.conv-tel {
  font-size: .88rem; font-weight: 700; color: var(--slate-700);
  text-decoration: none; border-bottom: 2px solid var(--slate-200);
  padding-bottom: 1px; transition: border-color .15s, color .15s;
}
.conv-tel:hover { color: var(--rose-500); border-color: var(--rose-300); }

@media (max-width: 860px) {
  .conv-tiles { grid-template-columns: repeat(2, 1fr); }
  .d-br { display: none; }
}
@media (max-width: 500px) {
  .conv-tiles { grid-template-columns: 1fr; }
}

/* ── Barra móvil global (páginas de programa) ── */
.gmob-bar { display: none; }

@media (max-width: 768px) {
  body.has-gmob .gmob-bar {
    display: flex;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
    background: #fff; border-top: 1.5px solid #e8edf3;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    gap: 8px;
    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  }
  .gmob-btn {
    flex: 1; display: flex; align-items: center; justify-content: center;
    gap: 6px; padding: .72rem .5rem; border-radius: 12px;
    font-weight: 700; font-size: .82rem; text-decoration: none;
    cursor: pointer; border: none; font-family: inherit; line-height: 1;
  }
  .gmob-wa   { background: #25d366; color: #fff; }
  .gmob-info { background: #f43f5e; color: #fff; }
  /* events-flag: reposicionar encima del gmob-bar, sin animación */
  body.has-gmob .events-flag {
    top: auto !important;
    bottom: 72px !important;
    transform: none !important;
    animation: none !important;
  }
  /* Ocultar elementos que se solapaban */
  body.has-gmob .mob-cta-bar  { display: none !important; }
  body.has-gmob .info-flag    { display: none !important; }
  body.has-gmob .wa-float     { display: none !important; }
  /* Espacio inferior para que el contenido no quede oculto bajo la barra fija */
  body.has-gmob { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

/* ── Hero stats — fix overflow en móvil ── */
@media (max-width: 500px) {
  .stat { padding: 0 6px; }
  .stat-n { font-size: clamp(1.15rem, 4.8vw, 1.5rem); }
  .stat-l { font-size: .53rem; letter-spacing: .03em; }
}

/* ── FAQ Section ── */
.faq-sec { padding: 4.5rem 0; background: var(--slate-50); }
.faq-grid { display: flex; flex-direction: column; gap: .5rem; max-width: 760px; margin: 0 auto 2.5rem; }
.faq-item { background: #fff; border: 1px solid var(--slate-200); border-radius: 14px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(59,130,246,.08); }
.faq-q { list-style: none; padding: 1.15rem 1.4rem; font-weight: 700; font-size: .95rem; color: var(--slate-800); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: '+'; font-size: 1.5rem; font-weight: 300; color: var(--blue-500); flex-shrink: 0; line-height: 1; }
.faq-item[open] .faq-q::after { content: '−'; }
.faq-a { padding: 0 1.4rem 1.2rem; font-size: .91rem; color: var(--slate-600); line-height: 1.65; border-top: 1px solid var(--slate-100); margin-top: 0; padding-top: .8rem; }
.faq-cta { text-align: center; }
.faq-cta p { color: var(--slate-500); margin-bottom: 1rem; font-size: .95rem; }

/* ── Form trust row ── */
.form-trust-row { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .9rem; justify-content: center; }
.ftr-item { font-size: .78rem; font-weight: 600; color: #16a34a; letter-spacing: .01em; }

@media (max-width: 600px) {
  .faq-q { font-size: .88rem; padding: 1rem 1.1rem; }
  .faq-a { font-size: .87rem; padding: 0 1.1rem 1rem; padding-top: .7rem; }
}

/* ── Hero next-intake urgency pill ── */
.hero-next-intake { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.82); margin-top: .75rem; letter-spacing: .01em; }
.hero-next-intake strong { color: #fff; }
.hni-dot { width: 7px; height: 7px; background: #4ade80; border-radius: 50%; flex-shrink: 0; animation: pulse 2s infinite; }
