@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&display=swap');

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", Arial, sans-serif;
}

/* ===== BASE RESPONSIVE — Capa global de defensas para que el contenido
   se ajuste automáticamente a cualquier viewport (móvil, tablet,
   escritorio, pantallas grandes) sin desbordar horizontalmente ni romper
   el layout. Estas reglas no tocan diseño existente, sólo establecen
   límites de seguridad. ===== */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  /* scrollbar-gutter ya está más abajo */
}
html, body {
  max-width: 100%;
  overflow-x: clip;          /* moderna; cae a hidden en navegadores viejos */
}
@supports not (overflow-x: clip) {
  html, body { overflow-x: hidden; }
}
img, video, picture, canvas, svg, iframe, object, embed {
  max-width: 100%;
  height: auto;
  display: block;
}
/* Imágenes con dimensiones específicas no deben crecer pero sí encoger */
img[width], img[height] { height: auto; }
/* Tablas responsivas */
table { max-width: 100%; }
/* Evita que textos largos (URLs, palabras gigantes) rompan el layout */
h1, h2, h3, h4, h5, h6, p, li, a, span, div {
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
/* Excepciones: navbar y botones donde nowrap es intencional */
.menu > li > a,
.nav-arrow,
[class*="-badge"],
button,
.btn {
  overflow-wrap: normal;
}
/* Hace que cualquier contenedor con clase .container respete el ancho */
.container, .container-fluid { max-width: 100%; }
/* Touch targets ≥44px en pantallas táctiles. Excluye iconos circulares
   del top-bar y bar inferior que tienen tamaño fijo definido. */
@media (hover: none) and (pointer: coarse) {
  button:not(.top-bar-btn-wa):not(.top-bar-btn-inf):not(.top-bar-icon):not(.top-bar-hamburger):not(.sticky-cta > *):not(.mds-mobile-cta > *),
  a.btn,
  [role="button"]:not(.top-bar-icon):not(.top-bar-hamburger),
  input[type="submit"],
  input[type="button"] {
    min-height: 44px;
  }
}
/* Reducción de movimiento para usuarios sensibles */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* Tipografía fluida en headings — escalan según viewport sin
   romper layout en pantallas grandes ni en celulares pequeños */
h1 { font-size: clamp(1.5rem, 4vw + 0.5rem, 2.5rem); line-height: 1.2; }
h2 { font-size: clamp(1.25rem, 3vw + 0.5rem, 2rem);  line-height: 1.25; }
h3 { font-size: clamp(1.1rem, 2.4vw + 0.5rem, 1.6rem); line-height: 1.3; }
h4 { font-size: clamp(1rem, 1.6vw + 0.5rem, 1.3rem); line-height: 1.35; }
/* ===== Fin base responsive ===== */

body {
  font-size: 14px;
  color: #4d4d4d;
  background-color: transparent;
}

/* Reset global de imágenes — siempre se adaptan a su contenedor */
img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

a, a:link {
  color: #2E86DE;
  text-decoration: none;
}

a:hover {
  color: #1558A0;
  text-decoration: underline;
}

/* ===== TABS NAV (la pestaña original izquierda queda oculta; sólo
   se muestra la espejo del lado derecho — ver .tabs-nav--right). ===== */
.tabs-nav {
  position: fixed !important;
  left: 0 !important;
  right: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tabs-nav:not(.tabs-nav--right) {
  display: none !important;
}
.tab-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 12px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #2E86DE;
  text-decoration: none !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  background: #fff;
  /* Lateral izquierdo: parte plana pegada al borde izquierdo del
     viewport, esquinas redondeadas hacia la derecha (interior). */
  border-radius: 0 8px 8px 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  box-shadow: 3px 3px 12px rgba(0,0,0,0.15);
  transition: background 0.2s, color 0.2s, padding 0.2s;
  min-height: 120px;
  justify-content: center;
}
.tab-link i {
  font-size: 14px;
  writing-mode: horizontal-tb;
}
.tab-link:hover {
  background: #2E86DE;
  color: #fff;
  padding-left: 20px;
  text-decoration: none !important;
}
@media (max-width: 600px) {
  .tab-link { font-size: 10px; min-height: 90px; padding: 10px 10px 10px 12px; }
  .tab-link i { display: none; }
}

/* ===== TABS NAV ESPEJO (lateral derecho, arriba de las redes
   sociales). La columna .float-social-col vive en top:calc(50%+150px)
   con ~5 iconos ~60px c/u, por lo que la pestaña espejo se coloca
   justo encima alineándose con el inicio de esa columna. */
.tabs-nav--right {
  left: auto !important;
  right: 0 !important;
  top: calc(50% + 100px) !important;
  transform: translateY(-100%) !important;
}
.tabs-nav--right .tab-link {
  border-radius: 8px 0 0 8px !important;
  box-shadow: -3px 3px 12px rgba(0,0,0,0.15) !important;
  padding: 12px 14px 12px 16px !important;
}
.tabs-nav--right .tab-link:hover {
  padding-right: 20px !important;
  padding-left: 16px !important;
}

/* ===== COLUMNA FLOTANTE DE REDES SOCIALES (pestañas derecha) ===== */
.float-social-col {
  position: fixed;
  right: 0;
  top: calc(50% + 150px);
  bottom: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 998;
}
.float-soc {
  display: flex;
  align-items: center;
  color: #fff !important;
  text-decoration: none !important;
  padding: 11px 14px;
  border-radius: 10px 0 0 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  min-width: 155px;
  box-shadow: -3px 3px 12px rgba(0,0,0,0.28);
  transform: translateX(calc(100% - 46px));
  transition: transform 0.32s cubic-bezier(0.16,1,0.3,1);
}
.float-soc i {
  font-size: 20px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.float-soc span {
  margin-left: 12px;
  font-size: 12px;
  letter-spacing: 0.3px;
}
.float-soc:hover { transform: translateX(0); }
.float-soc--wa { background: #25D366; }
.float-soc--fb { background: #1877F2; }
.float-soc--ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.float-soc--tt { background: #010101; }
.float-soc--li { background: #0A66C2; }
@media (max-width: 600px) {
  .float-soc { min-width: 120px; padding: 9px 12px; font-size: 11px; }
  .float-soc i { font-size: 16px; width: 18px; }
  .float-soc span { font-size: 10px; }
}

/* ===== BADGES STRIP (video — ya no se usa) ===== */
.badges-strip {
  display: none;
}

/* ===== NAV BADGES ===== */
.nav-badges {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-right: 12px;
  flex-shrink: 0;
}
.nav-badges a {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  line-height: 0;
}
.badge-img {
  display: block;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.badge-aniversario { height: 44px; }
.badge-iso         { height: 36px; }
.badge-logo        { height: 48px; }

@media (max-width: 600px) {
  .badges-strip { gap: 20px; bottom: 14px; }
  .badge-aniversario { height: 55px; }
  .badge-iso         { height: 36px; }
  .badge-logo        { height: 44px; }
}

/* ===== VIDEO HERO TITLE ===== */
.video-hero-title {
  position: absolute;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.vht-logo {
  height: 320px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 2px 12px rgba(0,0,0,0.6));
}
.vht-tag {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 22px;
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(6px);
  margin-bottom: 60px;
}

.vht-subtitle {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}

/* ===== VIDEO STATS BAR ===== */
.video-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  gap: 0;
}
.vs-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-right: 1px solid rgba(255,255,255,0.15);
  gap: 4px;
}
.vs-item:last-child {
  border-right: none;
}
.vs-num {
  color: #5ab4ff;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1;
}
.vs-label {
  color: #fff;
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
}

/* ===== TOP BAR ===== */
.topbar {
  background: linear-gradient(90deg, #0b2a6b 0%, #0d3d6e 60%, #1558A0 100%);
  padding: 0 40px;
  height: 42px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
}
.topbar-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.topbar-text {
  font-size: 13px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
}
.topbar-text i { color: rgba(255,255,255,0.7); font-size: 12px; }
.topbar-social {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-social a {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1;
}
.topbar-social a:hover { color: #fff; text-decoration: none; }
.topbar-contact-label {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 6px;
  padding-right: 8px;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.topbar-community {
  font-size: 13px;
  color: #fff;
  letter-spacing: 0.3px;
  padding-right: 8px;
  border-right: 1px solid rgba(255,255,255,0.2);
}
@media (max-width: 768px) {
  .topbar-community { display: none; }
  .topbar-contact-label { display: none; }
}
@media (max-width: 600px) {
  .topbar { padding: 0 16px; }
  .topbar-text { display: none; }
}

/* ===== HERO WRAPPER ===== */
.hero-wrapper {
  position: relative;
  background: #000;
}

/* ===== NAVBAR — isla flotante ===== */
.menu-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  background-color: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.5);
  padding: 6px 70px 6px 50px;
  color: #0d2d5e;
  z-index: 1000;
  width: fit-content;
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 40px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.10);
}

/* ===== NAVBAR — estilos compartidos ===== */
.nav-inicio-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none !important;
  margin-right: -8px;
  padding: 4px 0px 4px 4px;
  gap: 2px;
  flex-shrink: 0;
}
.nav-inicio-logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
}
.nav-inicio-logo span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #1558A0;
  text-transform: uppercase;
  line-height: 1;
  font-family: 'Montserrat', sans-serif;
}
.nav-inicio-logo:hover span { color: #2E86DE; }

.nav-arrow {
  font-size: 10px;
  margin-left: 3px;
  transition: transform 0.2s ease;
  vertical-align: middle;
}
.dropdown:hover .nav-arrow,
.dropdown.open .nav-arrow { transform: rotate(180deg); }

/* ===== SECTION EYEBROW ===== */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #1558A0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 0;
  border-radius: 0;
  margin-bottom: 14px;
  font-family: 'Montserrat', sans-serif;
}
.section-eyebrow--dark { color: #1558A0; }
.section-eyebrow--light { color: #5ab4ff; }
.menu-container.nav-hidden {
  transform: translateX(-50%) translateY(-180%);
  opacity: 0;
  pointer-events: none;
}

#sub-navbar-logos {
  transition: opacity 0.35s ease, transform 0.35s ease;
}
/* En escritorio (>992px) los logotipos permanecen centrados debajo del
   navbar (estilo original definido inline). En tablet/móvil los movemos
   a cada lado del pill centrado. */
@media (max-width: 900px) {
  #sub-navbar-logos {
    top: 18px !important;
    left: 24px !important;
    right: 24px !important;
    transform: none !important;
    justify-content: space-between !important;
    gap: 0 !important;
  }
  #sub-navbar-logos img { height: 50px !important; }
}
@media (max-width: 480px) {
  #sub-navbar-logos { left: 10px !important; right: 10px !important; }
  #sub-navbar-logos img { height: 36px !important; }
}
@media (max-width: 360px) {
  #sub-navbar-logos img { height: 30px !important; }
}
#sub-navbar-logos.nav-hidden {
  opacity: 0 !important;
  transform: translateX(-50%) translateY(-200%) !important;
  pointer-events: none !important;
}
/* En móvil los logos están a los lados (sin translateX), por lo que al
   ocultarse solo deben subir verticalmente */
@media (max-width: 900px) {
  #sub-navbar-logos.nav-hidden {
    transform: translateY(-200%) !important;
  }
}

/* Convertir ESCUDO-01.png a color blanco globalmente con CSS filter.
   Se aplica a cualquier <img> que termine en o contenga "ESCUDO-01.png",
   preservando el drop-shadow para que se vea bien sobre fondos claros. */
img[src$="ESCUDO-01.png"],
img[src*="/ESCUDO-01.png"] {
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0,0,0,0.28)) !important;
}

/* ===== TOP BAR — redes sociales + Solicitar Informes en fila.
   Por defecto oculto. Solo se muestra en ≤900px (móvil/tablet). ===== */
.top-bar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1051;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
@media (max-width: 900px) {
  .top-bar { display: block; }
}
.top-bar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 6px 20px;
}
.top-bar-brand { justify-self: center; transform: translateX(10px); }
.top-bar-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  text-decoration: none !important;
  color: #0A1628 !important;
  font-family: 'Montserrat', sans-serif;
  flex-shrink: 0;
  line-height: 1;
  padding-right: 12px;
}
.top-bar-brand img {
  height: 28px;
  width: auto;
  display: block;
  flex-shrink: 0;
  transform: scaleX(1.4);
  transform-origin: center center;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.08));
}
.top-bar-brand span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #1558A0;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  margin-top: 2px;
}
.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.top-bar-hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #0A1628;
  color: #fff !important;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.top-bar-hamburger:hover { background: #1558A0; transform: scale(1.05); }

/* X de cierre flotando fuera del cajón en la esquina superior derecha.
   Por defecto oculto en escritorio; sólo visible en ≤900px cuando el
   cajón está abierto. */
.menu-close-x {
  display: none;
  position: fixed;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: none;
  border-radius: 50%;
  color: #0A1628;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  z-index: 1102;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.menu-close-x:hover {
  background: #d32f2f;
  color: #fff;
  transform: scale(1.05);
}
@media (max-width: 900px) {
  /* Posicionada en la esquina superior derecha del cajón izquierdo
     (que vive en left:12px con max-width:280px y top:56px). La X
     queda flotando justo fuera, traslapando el borde top-right. */
  body.menu-open .menu-close-x {
    display: inline-flex;
    top: 42px;
    left: min(calc(12px + (100vw - 24px) - 17px), 275px);
  }
}
.top-bar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 12px;
  flex-shrink: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.top-bar-icon:hover { transform: translateY(-1px); filter: brightness(1.15); }
.top-bar-icon--fb { background: #1877F2; }
.top-bar-icon--ig { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.top-bar-icon--tt { background: #000; }
.top-bar-icon--li { background: #0A66C2; }
.top-bar-btn-wa,
.top-bar-btn-inf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  color: #fff !important;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.2s, filter 0.2s;
  flex-shrink: 0;
}
.top-bar-btn-wa  { background: #25D366; }
.top-bar-btn-inf { background: #ff9800; }
.top-bar-btn-wa span,
.top-bar-btn-inf span { display: none; }
.top-bar-btn-wa:hover,
.top-bar-btn-inf:hover { transform: translateY(-1px); filter: brightness(1.15); color: #fff !important; }
@media (max-width: 600px) {
  .top-bar-inner { padding: 5px 10px; gap: 7px; }
  .top-bar-icon,
  .top-bar-btn-wa,
  .top-bar-btn-inf { width: 24px; height: 24px; font-size: 11px; }
}
/* El top-bar SOLO se muestra en móvil/tablet (≤900px). En medidas
   superiores queda oculto, el navbar conserva su posición original y
   la hamburguesa del top-bar no aplica. */
@media (min-width: 901px) {
  .top-bar { display: none !important; }
}
/* En móvil/tablet (≤900px): EPMX + INICIO + hamburguesa viven DENTRO
   del top-bar. La pill original (.menu-container) se oculta visualmente
   pero su descendiente .menu (cajón) debe seguir abriendo cuando se
   pulsa la hamburguesa del top-bar. */
@media (max-width: 900px) {
  .menu-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 0 !important;
    height: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    /* IMPORTANTE: sin transform — un transform en el padre convierte a
       .menu-container en el containing block de sus descendientes con
       position:fixed (el cajón .menu), haciendo que `left:12px` del
       cajón se mida desde la pill central, no desde el viewport. */
    transform: none !important;
    overflow: visible !important;
    pointer-events: none;
  }
  .menu-container > .nav-inicio-logo,
  .menu-container > .menu-toggle {
    display: none !important;
  }
  /* El cajón aparece debajo del top-bar (no debajo del pill) */
  .menu { top: 56px !important; pointer-events: auto; }

  /* Logotipos sub-navbar a los lados de la imagen CAMPUS PUEBLA del
     hero, alineados verticalmente con ella (que vive en ~38% del
     video-hero, ~180-200px desde el tope del viewport en móvil). */
  #sub-navbar-logos {
    top: 200px !important;
    left: 12px !important;
    right: 12px !important;
    transform: none !important;
    justify-content: space-between !important;
    gap: 0 !important;
  }
  #sub-navbar-logos img { height: 56px !important; }
}
@media (max-width: 600px) {
  #sub-navbar-logos { top: 180px !important; }
  #sub-navbar-logos img { height: 48px !important; }
}
@media (max-width: 400px) {
  #sub-navbar-logos { top: 160px !important; left: 8px !important; right: 8px !important; }
  #sub-navbar-logos img { height: 42px !important; }
}
/* En todas las páginas EXCEPTO la principal (.is-home-page), ocultar
   los logotipos sub-navbar en vista móvil/tablet (≤900px) — el hero
   propio de cada página ya tiene su identidad visual. */
@media (max-width: 900px) {
  body:not(.is-home-page) #sub-navbar-logos { display: none !important; }
}


/* En vista celular (≤900px), reducir el padding-top de los encabezados
   .sec-hdr-unif para que el texto suba más arriba. Se excluye la
   página principal (body.is-home-page) porque sus secciones internas
   no necesitan ajuste. El inline `style="padding-top:185px"` se
   sobrescribe con !important. */
@media (max-width: 900px) {
  body:not(.is-home-page) .sec-hdr-unif {
    padding-top: 70px !important;
  }
}
@media (max-width: 600px) {
  body:not(.is-home-page) .sec-hdr-unif {
    padding-top: 56px !important;
  }
}
@media (max-width: 400px) {
  .menu-container { top: 44px !important; }
  .menu { top: 88px !important; }
}

/* En TODOS los archivos de programa: mover el botón "Solicitar información"
   y el teléfono hacia la izquierda para que no se corten contra el borde
   derecho del viewport. Aplica a cualquier sufijo (-hero-cta) usado por
   los distintos prefijos: icri, mds, ciex, itqx, ceye, ded, pap, svbd. */
[class$="-hero-cta"] {
  margin-right: 120px !important;
  padding-right: 32px !important;
}
@media (max-width: 900px) {
  [class$="-hero-cta"] {
    margin-right: 24px !important;
    padding-right: 0 !important;
  }
}

/* ===== LOGOS STRIP (debajo del navbar) ===== */
.logos-strip {
  display: none !important;
  position: fixed;
  top: 82px;
  left: 0;
  right: 0;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0;
  z-index: 999;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.logos-strip.nav-hidden {
  opacity: 0;
  transform: translateY(-180%);
  pointer-events: none;
}
.logos-strip a {
  pointer-events: all;
  display: flex;
  align-items: center;
}
.ls-logo {
  height: 90px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.18));
}
.ls-center {
  height: 104px;
  filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}
.ls-white {
  filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

/* Logo / badge izquierda */
.logo-container {
  display: none;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-container img {
  width: auto;
  height: clamp(40px, 6vw, 72px);
  max-width: 200px;
  object-fit: contain;
}

/* Badge aniversario */
.nav-aniversario-link {
  display: none;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  background: #fff;
  border-radius: 6px;
  padding: 4px 8px;
}

.nav-aniversario {
  height: clamp(60px, 8vw, 96px);
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-aniversario-link:hover .nav-aniversario {
  transform: scale(1.05);
  opacity: 0.88;
}

/* Hamburguesa móvil */
.menu-toggle {
  display: none;
  font-size: 30px;
  color: #0d2d5e;
  cursor: pointer;
  background: none;
  border: none;
  margin-left: auto;
}

/* Menú horizontal */
.menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 2px;
}

.menu > li {
  position: static;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.menu > li > a {
  color: #0d2d5e;
  text-decoration: none;
  padding: 6px 12px;
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
  border-radius: 50px;
  transition: background 0.2s, color 0.2s;
}

.menu > li > a:hover {
  background-color: rgba(13,45,94,0.07);
  color: #1558A0;
  text-decoration: none;
}

/* Botón CTA Inscribirme */
.menu > li.menu-cta > a {
  background: linear-gradient(135deg, #0b2a6b 0%, #1558A0 50%, #2E86DE 100%);
  color: #ffffff;
  border-radius: 50px;
  padding: 8px 22px;
  transition: opacity 0.2s, box-shadow 0.2s;
}
.menu > li.menu-cta > a:hover {
  background: linear-gradient(135deg, #0b2a6b 0%, #1558A0 50%, #2E86DE 100%);
  opacity: 0.88;
  box-shadow: 0 4px 14px rgba(11,42,107,0.35);
  color: #ffffff;
}

/* Dropdowns */
.dropdown .dropmenu,
.dropdown .megamenu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255,255,255,0.98);
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  z-index: 1100;
  padding: 20px;
  border-top: 3px solid #2E86DE;
  border-radius: 12px;
}

/* Puente invisible que cubre el gap de 8px entre el trigger y el menú */
.dropdown .dropmenu::before,
.dropdown .megamenu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.dropdown.is-open .dropmenu,
.dropdown.is-open .megamenu {
  display: flex;
}

.dropmenu {
  width: 250px;
  flex-direction: column;
}

.dropmenu-contactos {
  width: 260px;
}
.dc-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
}
.dc-group:last-child { border-bottom: none; }
.dc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #1558A0;
  margin-bottom: 4px;
}
.dc-group a {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  padding: 1px 0;
}
.dc-group a:hover { color: #1558A0; }
.dc-text {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}
.dc-socials {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.dc-socials a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #555;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.dc-socials a:hover {
  background: #1558A0;
  color: #fff;
  border-color: #1558A0;
}

.megamenu {
  width: min(860px, 90vw);
  flex-wrap: wrap;
  left: 50%;
  transform: translateX(-50%);
}

.dropmenu .columna,
.megamenu .columna {
  flex: 1;
  padding: 10px 14px;
  min-width: 160px;
}

.megamenu h3,
.dropmenu h3 {
  font-size: 13px;
  font-weight: 700;
  border-bottom: 2px solid #e5e5e5;
  margin-bottom: 10px;
  color: #333;
  text-transform: uppercase;
  padding-bottom: 5px;
}

.dropmenu ul,
.megamenu ul {
  list-style: none;
  padding: 0;
}

.dropmenu ul li,
.megamenu ul li {
  padding: 2px 0;
}

.dropmenu ul li a,
.megamenu ul li a {
  text-decoration: none;
  color: #555;
  display: block;
  padding: 5px 8px;
  font-size: 12px;
  border-radius: 3px;
}

.dropmenu ul li a:hover,
.megamenu ul li a:hover {
  background-color: #99BEE1;
  color: #1558A0;
  text-decoration: none;
}

/* ===== MEGA DROPDOWN — estilo tarjetas con icono ===== */
.dropmenu--mega {
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 14px !important;
  width: 620px;
  flex-direction: unset;
  left: 50%;
  transform: translateX(-50%);
}
.dropmenu--mega-2col {
  grid-template-columns: repeat(2, 1fr);
  width: 420px;
}
.dropdown.is-open .dropmenu--mega { display: grid !important; }

.dm-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none !important;
  color: inherit;
  transition: background 0.18s;
}
.dm-item:hover { background: #f0f6ff; }

.dm-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.dm-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.dm-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0A1628;
  line-height: 1.3;
}
.dm-sub {
  display: block;
  font-size: 11px;
  color: #8A9BBB;
  line-height: 1.3;
}

/* Redes sociales — derecha */
.nav-social {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-shrink: 0;
}

.nav-social a {
  color: white;
  font-size: 28px;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-social a:hover {
  color: #2E86DE;
  text-decoration: none;
}

.nav-social-x {
  display: flex;
  align-items: center;
}

/* ===== FLOATING BUTTONS ===== */
.floating-btn {
  position: fixed;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 999;
  transition: transform 0.2s, box-shadow 0.2s, color 0.2s, background-color 0.2s;
}

.floating-btn:hover {
  transform: scale(1.05);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.floating-btn.events-btn {
  bottom: 130px;
  background-color: #2E86DE;
  color: #fff;
  animation: blink 2s infinite;
}

.floating-btn.whatsapp-btn {
  bottom: 70px;
  background-color: #25D366;
  color: #fff;
  width: 52px;
  height: 52px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  transition: width 0.3s ease, height 0.3s ease, border-radius 0.3s ease, padding 0.3s ease, transform 0.2s, box-shadow 0.2s;
}

.floating-btn.whatsapp-btn i {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 8px;
}

.floating-btn.whatsapp-btn span {
  opacity: 0;
  width: 0;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.25s ease, width 0.3s ease;
}

.floating-btn.whatsapp-btn:hover {
  width: auto;
  height: auto;
  padding: 12px 16px;
  border-radius: 50px;
}

.floating-btn.whatsapp-btn:hover span {
  opacity: 1;
  width: auto;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

/* ===== HERO VIDEO ===== */
/* Igual que epmty.com: ancho completo, altura natural (16:9) */
.video-hero {
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  background: #000;
  line-height: 0;
  max-height: 90vh;
  margin-top: 0;
}

.video-hero video {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== CARRUSEL DE PROGRAMAS ===== */
/* Imágenes nativas: 990×275px — nunca se escalan más allá de eso */
.hero-carousel {
  width: 100%;
  background: #f0f0f0;
  display: flex;
  justify-content: center;
}

/* El carrusel mismo se limita al ancho nativo de las imágenes */
.hero-carousel > .carousel {
  width: 100%;
  max-width: 990px;   /* resolución nativa horizontal */
}

.hero-carousel .carousel-inner {
  width: 100%;
}

.hero-carousel .carousel-item img {
  width: 100%;        /* ocupa el contenedor (máx 990px) */
  height: auto;       /* altura proporcional — 275px al llegar a 990px */
  display: block;
  object-fit: contain;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 44px;
  opacity: 0.7;
}

.hero-carousel .carousel-indicators [data-bs-slide-to] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #2E86DE;
  border: 2px solid #fff;
  opacity: 0.6;
}

.hero-carousel .carousel-indicators .active {
  opacity: 1;
  background-color: #2E86DE;
}

/* ===== ABOUT SECTION ===== */
/* Imagen original: 225×509px (retrato) — se muestra a tamaño natural */
.about-section {
  padding: 30px 0;
  background-color: #f9f9f9;
}

.about-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: #2E86DE;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.about-section p {
  font-size: 15px;
  color: #4d4d4d;
  line-height: 1.7;
  margin-bottom: 14px;
}

.about-section h3 {
  font-size: 16px;
  color: #1558A0;
  font-weight: 600;
  margin-top: 10px;
}

/* About image: slide 990×275 — ocupa el contenedor sin superar su altura nativa */
.about-img-wrap {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

/* ── Frase rector ── */
.rector-wrap {
  display: inline-block;
  width: 100%;
}
.rector-frase {
  margin: 0;
  padding: 10px 0 0;
  font-size: 40px;
  font-weight: 700;
  font-style: italic;
  color: transparent;
  text-align: center;
  letter-spacing: 0.3px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease, color 0.4s ease;
  pointer-events: none;
}
.rector-wrap:hover .rector-frase {
  color: #2E86DE;
  max-height: 100px;
  opacity: 1;
}

.about-img {
  width: 100%;
  height: auto;
  max-height: 275px;
  object-fit: cover;
  object-position: center top;
  display: block;
  will-change: transform;
  transition: transform 0.08s linear;
}

/* ===== PROMO BUTTONS ROW ===== */
.promo-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 30px 20px;
  flex-wrap: wrap;
  background-color: #fff;
}

.promo-row a {
  flex: 0 0 auto;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  width: 380px;
  position: relative;
}

.promo-row a img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.promo-row a:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}

.promo-row a:hover img {
  transform: scale(1.06);
}

/* ── Overlay con texto ── */
.promo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 16px 28px;
  /* Color semitransparente definido por --oc en el HTML */
  background: linear-gradient(
    to top,
    var(--oc, rgba(46,134,222,0.80))   0%,
    var(--oc, rgba(46,134,222,0.60))  40%,
    rgba(0,0,0,0)                     75%
  );
  /* Difuminado muy sutil para que la imagen se vea a través */
  backdrop-filter: blur(1.5px) saturate(1.1);
  -webkit-backdrop-filter: blur(1.5px) saturate(1.1);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 8px;
}

.promo-row a:hover .promo-overlay {
  opacity: 1;
}

.promo-overlay-text {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  text-align: center;
  line-height: 1.5;
  margin: 0 0 12px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

.promo-overlay-icon {
  color: #fff;
  font-size: 20px;
  opacity: 0.9;
  /* Botón "bajar" que rebota */
  animation: iconBounce 1.4s ease-in-out infinite;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0);   }
  50%       { transform: translateY(5px); }
}

/* ===== SECTION TITLES ===== */
.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 40px 0 10px;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #0b2a6b 0%, #1558A0 40%, #2E86DE 75%, #4DABF7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #0b2a6b, #2E86DE, #4DABF7);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ===== ACADEMIC GALLERY ===== */
.academic-gallery {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 30px 20px 40px;
  flex-wrap: wrap;
}

.academic-gallery .card {
  flex: 1 1 280px;
  max-width: 460px;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}

.academic-gallery .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(46,134,222,0.25);
}

/* Wrapper para contener el overflow del zoom */
.academic-gallery .card .img-wrap {
  overflow: hidden;
  position: relative;
}

/* Slides 990×275 — no superar altura nativa */
.academic-gallery .card img {
  width: 100%;
  height: auto;
  max-height: 185px;
  object-fit: cover;
  object-position: center top;
  display: block;
  will-change: transform;
  transition: transform 0.08s linear;
}

/* ── TILT 3D: tarjeta con perspectiva ── */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* Wrapper contiene imagen + glare */
.tilt-card .img-wrap,
.tilt-card.about-img-wrap {
  position: relative;
  overflow: hidden;
}

/* Capa de destello que sigue el cursor */
.tilt-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
  mix-blend-mode: overlay;
  z-index: 2;
}
.tilt-card:hover .tilt-glare {
  opacity: 1;
}

/* Imagen interna se mueve en paralaje opuesto al tilt */
.tilt-card .img-wrap img,
.tilt-card.about-img-wrap img {
  transition: transform 0.18s ease-out;
  will-change: transform;
}

/* ===== PRÓXIMOS INICIOS ===== */
.proximos-section {
  background-color: rgba(238,244,250,0.55);
  padding: 30px 0;
}

.proximos-section h2 {
  font-size: 22px;
  color: #2E86DE;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  border-bottom: 2px solid #2E86DE;
  padding-bottom: 8px;
  text-align: center;
}

.inicio-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed #C0D5E8;
  max-width: 540px;
  margin: 0 auto;
}

.inicio-item img {
  width: 52px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.inicio-item a {
  color: #4d4d4d;
  font-size: 13px;
  line-height: 1.5;
}

.inicio-item a:hover {
  color: #2E86DE;
}

/* ===== CALENDARIO PRÓXIMOS INICIOS ===== */
.pi-calendar-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: flex-start;
  margin-top: 20px;
}

.pi-calendar {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(21,88,160,0.12);
  padding: 32px;
  width: 480px;
  flex-shrink: 0;
}

.pi-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.pi-cal-header span {
  font-size: 20px;
  font-weight: 700;
  color: #1558A0;
  text-transform: capitalize;
  letter-spacing: 0.5px;
}

.pi-nav-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #2E86DE;
  cursor: pointer;
  line-height: 1;
  padding: 0 6px;
  transition: color 0.2s;
}
.pi-nav-btn:hover { color: #1558A0; }

.pi-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 6px;
}
.pi-cal-weekdays span {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  padding: 4px 0;
}

.pi-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.pi-day {
  text-align: center;
  font-size: 17px;
  color: #444;
  padding: 9px 0;
  border-radius: 6px;
  cursor: default;
  line-height: 1.4;
}
.pi-day--empty { background: transparent; }
.pi-day--today {
  font-weight: 700;
  color: #1558A0;
}
.pi-day--event {
  background: #1558A0;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.pi-day--event:hover {
  background: #2E86DE;
  transform: scale(1.12);
}
.pi-day--selected {
  background: #2E86DE !important;
  box-shadow: 0 2px 8px rgba(46,134,222,0.4);
  transform: scale(1.12);
}

/* Panel lateral de eventos */
.pi-eventos-panel {
  flex: 1;
  min-width: 260px;
  max-width: 460px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(21,88,160,0.10);
  padding: 28px 30px;
  text-align: left;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pi-eventos-hint {
  color: #aaa;
  font-size: 13px;
  text-align: center;
  margin: 0;
}
.pi-eventos-fecha {
  font-size: 14px;
  font-weight: 700;
  color: #1558A0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pi-evento-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: #333;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px dashed #dde6f0;
  text-decoration: none;
  transition: color 0.2s;
}
.pi-evento-item:last-child { border-bottom: none; }
.pi-evento-item i { color: #2E86DE; flex-shrink: 0; margin-top: 2px; }
.pi-evento-item:hover { color: #2E86DE; }

/* ===== CONTACT FORM ===== */
.form-section {
  background: linear-gradient(135deg, #0b2a6b 0%, #1558A0 55%, #2E86DE 100%);
  padding: 30px 0;
  position: relative;
  overflow: hidden;
}
.form-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}
.form-section > .container { position: relative; z-index: 1; }

.mascot-form {
  width: 100%;
  max-width: 280px;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  position: relative;
  z-index: 2;
}
.mascot-hidden {
  opacity: 0;
  filter: blur(18px);
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.9s ease, filter 0.9s ease, transform 0.9s cubic-bezier(0.34,1.3,0.64,1);
}
.mascot-hidden.mascot-visible,
#contacto .row:has(.form-card:hover) .mascot-hidden {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}
.mascot-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.form-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.form-card .form-title {
  font-size: 24px;
  font-weight: 700;
  color: #2E86DE;
  text-align: center;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-card label {
  font-size: 12px;
  font-weight: 600;
  color: #4d4d4d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-card .form-control,
.form-card .form-select {
  border: 1.5px solid #C8D8EA;
  border-radius: 8px;
  font-size: 13px;
  padding: 10px 14px;
}

.form-card .form-control:focus,
.form-card .form-select:focus {
  border-color: #2E86DE;
  box-shadow: 0 0 0 3px rgba(74, 123, 167, 0.2);
}

.btn-submit {
  background-color: #2E86DE;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  width: 100%;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-submit:hover {
  background-color: #1558A0;
}

.form-side-img {
  width: 100%;
  max-width: 340px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ===== CAMPUS SECTION ===== */
.campus-section {
  padding: 60px 0 30px;
  background-color: rgba(255,255,255,0.55);
}

.campus-title {
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  color: #2E86DE;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 30px;
}

.campus-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  padding: 0 20px;
}

.campus-item {
  flex: 0 1 240px;
  max-width: 280px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.14);
  transition: transform 0.2s, box-shadow 0.2s;
}

.campus-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.2);
}

.campus-item img {
  width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: cover;
  object-position: center;
}

.campus-svg-wrap {
  background-color: #fff;
  display: block;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

.campus-svg-wrap img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 0;
}

.campus-label,
.campus-label:link,
.campus-label:visited,
.campus-label:active {
  display: block;
  text-align: center;
  background-color: #2E86DE;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  padding: 11px;
  text-decoration: none;
  letter-spacing: 1px;
}

.campus-label:hover,
.campus-label:focus {
  background-color: #2E86DE;
  color: #ffffff;
  text-decoration: none;
}

/* ===== BANNER IMAGES ===== */
.banners-section {
  padding: 30px 20px;
  background: #f5f5f5;
}

.banners-section a {
  display: block;
}

.banners-section a {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Banners 700×120px — mostrar a su altura natural */
.banners-section a img {
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s, opacity 0.2s;
}

.banners-section a:hover img {
  opacity: 0.92;
  transform: scale(1.02);
}

/* ===== HORARIO ===== */
.horario-section {
  padding: 40px 0;
  background: rgba(255,255,255,0.55);
}

.horario-cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.h-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(21,88,160,0.10);
  padding: 22px 20px;
  flex: 1 1 140px;
  max-width: 180px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.h-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(21,88,160,0.16);
}
.h-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #EBF3FB;
  color: #1558A0;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.h-card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #2E86DE;
  margin-bottom: 8px;
}
.h-card-info {
  font-size: 13px;
  color: #444;
  line-height: 1.5;
}
.h-card-info strong { color: #1558A0; }

.horario-card {
  background: #EEF4FA;
  border-left: 5px solid #2E86DE;
  border-radius: 8px;
  padding: 20px 24px;
  height: 100%;
}

.horario-card h3 {
  color: #2E86DE;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
  border-bottom: 1px solid #C5D8EC;
  padding-bottom: 8px;
}

.horario-card p {
  font-size: 13px;
  color: #4d4d4d;
  line-height: 1.6;
  margin-bottom: 10px;
}

.horario-card strong {
  color: #2E86DE;
}

/* ===== TESTIMONIOS / EXPERIENCIAS ===== */
.testimonios-section {
  padding: 50px 0 40px;
  background: linear-gradient(180deg, rgba(238,244,250,0.55) 0%, rgba(255,255,255,0.55) 100%);
  overflow: hidden;
}

.testimonios-subtitle {
  text-align: center;
  color: #888;
  font-size: 14px;
  margin-top: -8px;
  margin-bottom: 36px;
  letter-spacing: 0.5px;
}

/* ===== EXP GRID (Experiencias EP de México) ===== */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 280px;
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.exp-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #0a1428;
}
.exp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.28);
}
.exp-card-img,
video.exp-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 0.5s ease, filter 0.3s ease;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: saturate(1.08) contrast(1.04);
  backface-visibility: hidden;
  transform: translateZ(0);
  pointer-events: none;
}
.exp-card:hover .exp-card-img {
  transform: scale(1.06);
  filter: saturate(1.15) contrast(1.08);
}
/* Cards verticales (estilo Reels): usar cover, ya coincide la proporción */
.exp-card--vertical .exp-card-img {
  object-fit: cover;
  object-position: center;
}
/* Imágenes portrait en cards landscape: cubrir todo el card (cover) con
   encuadre dirigido a la parte importante de cada imagen */
.exp-card[data-src*="yt-testimonio-2"] .exp-card-img {
  object-fit: cover;
  object-position: center 30%;
}
.exp-card[data-src*="tt-que-hace-especial"] .exp-card-img {
  object-fit: cover;
  object-position: center 35%;
}
.exp-card[data-src*="yt-experiencias"] .exp-card-img {
  object-fit: cover;
  object-position: center 40%;
}
/* Verticales (Reels) — ocupan 3 cols × 2 filas a los costados */
.exp-card--vertical {
  grid-column: span 3;
  grid-row: span 2;
}
/* Resto de cards: 3 cols × 1 fila (auto-placement las acomoda en medio) */
.exp-grid > .exp-card:not(.exp-card--vertical) { grid-column: span 3; }
.exp-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 75%, rgba(0,0,0,0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 24px;
  color: #fff;
  pointer-events: none;
}
.exp-card-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  margin-bottom: 6px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.exp-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.25;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.exp-card--lg .exp-card-title { font-size: 24px; }
.exp-play {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1558A0;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  transition: background 0.2s ease, transform 0.25s ease, color 0.2s ease;
}
.exp-play i { transform: translateX(2px); }
.exp-card:hover .exp-play {
  background: #1558A0;
  color: #fff;
  transform: scale(1.1);
}

@media (max-width: 900px) {
  .exp-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }
  .exp-card--vertical,
  .exp-card--top-a,
  .exp-card--top-b,
  .exp-grid > .exp-card:nth-child(n+4) { grid-column: span 1; }
  .exp-card--vertical { grid-row: span 2; }
  .exp-card-title,
  .exp-card--vertical .exp-card-title { font-size: 17px; }
}
@media (max-width: 540px) {
  .exp-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }
  .exp-card--vertical { grid-row: span 2; }
}

/* Wrapper — oculta el desbordamiento del track en movimiento */
.testimonios-track-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto;
  /* Fade lateral para dar efecto de profundidad */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image:         linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

/* Pausa la animación al pasar el cursor sobre el wrapper */
.testimonios-track-wrapper:hover .testimonios-track {
  animation-play-state: paused;
}

/* Flechas — ocultas (el scroll es automático) */
.trak-arrow { display: none; }

/* Track de scroll infinito */
.testimonios-track {
  display: flex;
  gap: 24px;
  padding: 30px 12px 36px;
  /* La animación mueve el track a la izquierda */
  animation: scrollTrack 36s linear infinite;
  will-change: transform;
  /* Ancho natural: se expande con el contenido */
  width: max-content;
}

@keyframes scrollTrack {
  0%   { transform: translateX(0); }
  100% { transform: translateX(var(--scroll-dist, -50%)); }
}

/* ── Animación de flote en cada burbuja ── */
@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

/* ── Burbuja individual ── */
.video-bubble {
  flex: 0 0 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
  /* Animación de flotado, duración base 3 s */
  animation: bubbleFloat 3s ease-in-out infinite;
}

/* Delays escalonados para las 14 burbujas originales */
.video-bubble:nth-child(1)  { animation-delay:  0.00s; }
.video-bubble:nth-child(2)  { animation-delay:  0.22s; }
.video-bubble:nth-child(3)  { animation-delay:  0.44s; }
.video-bubble:nth-child(4)  { animation-delay:  0.66s; }
.video-bubble:nth-child(5)  { animation-delay:  0.88s; }
.video-bubble:nth-child(6)  { animation-delay:  1.10s; }
.video-bubble:nth-child(7)  { animation-delay:  1.32s; }
.video-bubble:nth-child(8)  { animation-delay:  1.54s; }
.video-bubble:nth-child(9)  { animation-delay:  1.76s; }
.video-bubble:nth-child(10) { animation-delay:  1.98s; }
.video-bubble:nth-child(11) { animation-delay:  2.20s; }
.video-bubble:nth-child(12) { animation-delay:  2.42s; }
.video-bubble:nth-child(13) { animation-delay:  2.64s; }
.video-bubble:nth-child(14) { animation-delay:  2.86s; }
/* Clones (15-28) repiten el ciclo */
.video-bubble:nth-child(15) { animation-delay:  0.00s; }
.video-bubble:nth-child(16) { animation-delay:  0.22s; }
.video-bubble:nth-child(17) { animation-delay:  0.44s; }
.video-bubble:nth-child(18) { animation-delay:  0.66s; }
.video-bubble:nth-child(19) { animation-delay:  0.88s; }
.video-bubble:nth-child(20) { animation-delay:  1.10s; }
.video-bubble:nth-child(21) { animation-delay:  1.32s; }
.video-bubble:nth-child(22) { animation-delay:  1.54s; }
.video-bubble:nth-child(23) { animation-delay:  1.76s; }
.video-bubble:nth-child(24) { animation-delay:  1.98s; }
.video-bubble:nth-child(25) { animation-delay:  2.20s; }
.video-bubble:nth-child(26) { animation-delay:  2.42s; }
.video-bubble:nth-child(27) { animation-delay:  2.64s; }
.video-bubble:nth-child(28) { animation-delay:  2.86s; }

/* Anillo animado "burbuja" */
.bubble-ring {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 172px;
  height: 172px;
  border-radius: 50%;
  border: 3px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #2E86DE, #2E86DE, #2E86DE) border-box;
  animation: bubbleSpin 4s linear infinite;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.video-bubble:hover .bubble-ring {
  opacity: 1;
}

@keyframes bubbleSpin {
  from { transform: translateX(-50%) rotate(0deg); }
  to   { transform: translateX(-50%) rotate(360deg); }
}

/* Pulso de fondo */
.video-bubble::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(74, 123, 167, 0.15);
  animation: bubblePulse 2.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes bubblePulse {
  0%, 100% { transform: translate(-50%, -55%) scale(1);   opacity: 0.6; }
  50%       { transform: translate(-50%, -55%) scale(1.12); opacity: 0.2; }
}

/* Tarjeta de imagen — formato vertical (9:16) con esquinas circulares */
.bubble-card {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  transition: transform 0.3s, box-shadow 0.3s;
  background: #222;
}

.video-bubble:hover .bubble-card {
  transform: scale(1.06);
  box-shadow: 0 10px 30px rgba(74, 123, 167, 0.35);
}

.bubble-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.video-bubble:hover .bubble-card img {
  transform: scale(1.08);
}

/* Overlay con icono de play */
.bubble-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 50%;
}

.video-bubble:hover .bubble-overlay {
  opacity: 1;
}

.play-icon {
  color: white;
  font-size: 34px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

/* Badge de plataforma */
.platform-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.platform-badge.yt { background: #FF0000; }
.platform-badge.tt { background: #000; }

/* Título de la burbuja */
.bubble-title {
  font-size: 11px;
  font-weight: 600;
  color: #4d4d4d;
  text-align: center;
  line-height: 1.4;
  max-width: 160px;
  margin: 0;
}

/* ── Modal de video ── */
.video-modal-dialog {
  max-width: min(420px, 92vw);
  margin: auto;
}

.video-modal-content {
  background: #111;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.video-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.video-modal-close:hover { background: #2E86DE; }

.video-modal-title {
  padding: 12px 46px 10px 16px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  background: #1a1a1a;
  border-bottom: 1px solid #333;
  line-height: 1.4;
}

.video-modal-frame {
  position: relative;
  width: 100%;
  background: #000;
}

.video-modal-frame video {
  width: 100%;
  max-height: 75vh;
  display: block;
  background: #000;
  outline: none;
}

/* Responsive */
@media (max-width: 768px) {
  .video-bubble { flex: 0 0 130px; animation: bubbleFloat 3s ease-in-out infinite; }
  .bubble-card  { width: 130px; height: 130px; }
  .bubble-ring  { width: 142px; height: 142px; }
  .video-bubble::before { width: 130px; height: 130px; }
  .bubble-title { font-size: 10px; max-width: 130px; }
}

@media (max-width: 480px) {
  .video-bubble { flex: 0 0 110px; animation: bubbleFloat 3s ease-in-out infinite; }
  .bubble-card  { width: 110px; height: 110px; }
  .bubble-ring  { width: 122px; height: 122px; }
  .video-bubble::before { width: 110px; height: 110px; }
}

/* ===== CONTACTOS ===== */
.contactos-section {
  background: #0b1f45;
  padding: 60px 0;
}
.contactos-title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: 6px;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 48px;
}
.contactos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.contactos-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.contactos-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(90, 180, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #5ab4ff;
  margin-bottom: 4px;
}
.contactos-card h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #5ab4ff;
  margin: 0;
}
.contactos-card a,
.contactos-card p {
  color: rgba(255,255,255,0.82);
  font-size: 15px;
  text-decoration: none;
  line-height: 1.8;
  margin: 0;
}
.contactos-card a:hover {
  color: #fff;
}
.contactos-socials {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}
.contactos-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  transition: background 0.2s, color 0.2s;
}
.contactos-socials a:hover {
  background: #5ab4ff;
  color: #fff;
  border-color: #5ab4ff;
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: #2c2c2c;
  color: #ccc;
  padding: 40px 20px 20px;
}

.site-footer .footer-logo img {
  width: auto;
  height: 60px;
  max-width: 200px;
  object-fit: contain;
  margin-bottom: 12px;
}

.site-footer h4 {
  color: #2E86DE;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.site-footer p {
  font-size: 13px;
  line-height: 1.7;
  color: #aaa;
  margin-bottom: 8px;
}

.site-footer a {
  color: #2E86DE;
}

.site-footer a:hover {
  color: #2E86DE;
}

.footer-sep {
  border-top: 1px solid #444;
  margin-top: 30px;
  padding-top: 16px;
  font-size: 12px;
  color: #888;
  text-align: center;
  line-height: 1.8;
}
.footer-sep .dominante-logo {
  height: 14px;
  width: auto;
  vertical-align: middle;
  margin-left: 4px;
  display: inline-block;
}

.footer-escudo img {
  width: auto;
  max-width: 130px;
  height: auto;
  object-fit: contain;
}

/* ===== Sticky / Mobile CTA — base global (para todas las páginas) ===== */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1050;
  background: #fff;
  border-top: 1px solid #e0eaf5;
  box-shadow: 0 -4px 22px rgba(0,0,0,0.15);
  padding: 10px 14px 14px;
  gap: 10px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.sticky-cta.visible { transform: none; }
/* Breakpoint unificado con .mds-mobile-cta (que también usa 900px) para
   que el bar inferior aparezca en el mismo rango en todo el proyecto. */
@media (max-width: 900px) { .sticky-cta { display: flex; } }

/* ===== Sticky / Mobile CTA — Grid 3×2 con iconos a color.
   Breakpoint 900px para unificar con .mds-mobile-cta y que el bar se
   vea igual en TODO el proyecto (homepage, oferta-academica, programas,
   catedraticos, bienvenida, etc.). ===== */
@media (max-width: 900px) {
  /* La columna lateral derecha (float-social-col) ya solo contiene
     WhatsApp en móvil porque el resto de iconos se mueven al bar
     inferior. Como WhatsApp también está en el bar, ocultamos toda la
     columna para evitar duplicado. */
  .float-social-col { display: none !important; }

  /* Ocultar barra de estadísticas (Inicio · Modalidad · Horario ·
     Duración · Valor) en vista móvil — los datos se muestran en el
     sidebar inferior del programa. El selector cubre todas las
     variantes prefijo (icri-stats-bar, mds-stats-bar, ciex-stats-bar,
     itqx-stats-bar, etc.). */
  [class*="-stats-bar"],
  [class*="-hero-stats"] { display: none !important; }

  /* Eliminar espacio vacío al inicio y al final del hero de cada
     programa. El CSS de escritorio usa padding-top grande (210px) para
     dejar lugar al navbar+logotipos posicionados encima; en móvil ese
     espacio es exagerado porque el navbar pill es más compacto.
     Aplicamos a todos los prefijos: .icri-hero, .mds-hero, .ciex-hero,
     .itqx-hero, .ceye-hero, .ded-hero, .pap-hero, .svbd-hero. */
  .icri-hero,
  .mds-hero,
  .ciex-hero,
  .itqx-hero,
  .ceye-hero,
  .ded-hero,
  .pap-hero,
  .svbd-hero {
    min-height: auto !important;
    height: auto !important;
    padding-top: 90px !important;
    padding-bottom: 28px !important;
  }
  .icri-hero-inner,
  .mds-hero-inner,
  .ciex-hero-inner,
  .itqx-hero-inner,
  .ceye-hero-inner,
  .ded-hero-inner,
  .pap-hero-inner,
  .svbd-hero-inner {
    min-height: auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .sticky-cta,
  .mds-mobile-cta {
    display: grid !important;
    grid-template-columns: repeat(3, 72px) !important;
    justify-content: center !important;
    gap: 14px !important;
    padding: 5px 8px !important;
    align-items: stretch !important;
  }
  .sticky-cta > a,
  .sticky-cta > button,
  .mds-mobile-cta > a,
  .mds-mobile-cta > button {
    height: 30px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12) !important;
    padding: 0 !important;
    overflow: hidden;
    position: relative;
    /* font-size:0 oculta el texto suelto (text nodes) como "WhatsApp"
       y "Solicitar Informes" que están directamente dentro del <a>/
       <button> sin <span>. El icono recupera su tamaño en la regla
       de abajo. */
    font-size: 0 !important;
    line-height: 0 !important;
    gap: 0 !important;
    text-indent: -9999px !important;
    white-space: nowrap !important;
  }
  .sticky-cta > a span,
  .sticky-cta > button span,
  .mds-mobile-cta > a span,
  .mds-mobile-cta > button span { display: none !important; }
  /* Reset estilos de .float-soc cuando están dentro del bar móvil:
     min-width, transform y padding base estaban diseñados para la
     columna lateral derecha y rompen el layout grid 3×2. */
  .sticky-cta .float-soc,
  .mds-mobile-cta .float-soc {
    min-width: 0 !important;
    width: auto !important;
    transform: none !important;
    padding: 0 !important;
    border-radius: 8px !important;
    height: 30px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12) !important;
  }
  .sticky-cta .float-soc i,
  .mds-mobile-cta .float-soc i {
    width: auto !important;
    margin: 0 !important;
  }
  .sticky-cta > a i,
  .sticky-cta > button i,
  .mds-mobile-cta > a i,
  .mds-mobile-cta > button i {
    font-size: 14px !important;
    color: #fff !important;
    margin: 0 !important;
    text-indent: 0 !important;
    line-height: 1 !important;
  }
  /* Botón principal (WhatsApp) */
  .sticky-cta .sticky-cta-btn--wa,
  .mds-mobile-cta .mcta-wa,
  .sticky-cta .float-soc--wa,
  .mds-mobile-cta .float-soc--wa { background: #25D366 !important; }
  /* Solicitar Informes (envelope azul) */
  .sticky-cta .sticky-cta-btn--inf,
  .mds-mobile-cta .mcta-primary { background: #1558A0 !important; }
  /* Redes sociales con colores de marca */
  .sticky-cta .float-soc--fb,
  .mds-mobile-cta .float-soc--fb { background: #1877F2 !important; }
  .sticky-cta .float-soc--ig,
  .mds-mobile-cta .float-soc--ig {
    background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
  }
  .sticky-cta .float-soc--tt,
  .mds-mobile-cta .float-soc--tt { background: #000 !important; }
  .sticky-cta .float-soc--li,
  .mds-mobile-cta .float-soc--li { background: #0A66C2 !important; }
}

/* ===== Hero badges de archivos de programa — estilo unificado ===== */
[class*="-hero-badge"]:not([class*="-hero-badges"]) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.32), rgba(255,255,255,0.16)) !important;
  border: 2px solid rgba(255,255,255,0.6) !important;
  color: #fff !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 800 !important;
  font-size: 16px !important;
  letter-spacing: 0.4px !important;
  padding: 16px 28px !important;
  border-radius: 40px !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.22),
    0 2px 6px rgba(0,0,0,0.14),
    inset 0 2px 0 rgba(255,255,255,0.4),
    inset 0 -2px 0 rgba(0,0,0,0.1);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  transition: transform 0.3s cubic-bezier(.2,.9,.3,1), box-shadow 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
}
[class*="-hero-badge"]:not([class*="-hero-badges"])::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left 0.6s;
}
[class*="-hero-badge"]:not([class*="-hero-badges"]):hover {
  transform: translateY(-4px) scale(1.05);
  background: linear-gradient(135deg, rgba(255,255,255,0.42), rgba(255,255,255,0.24)) !important;
  box-shadow:
    0 14px 32px rgba(0,0,0,0.28),
    0 4px 10px rgba(0,0,0,0.18),
    inset 0 2px 0 rgba(255,255,255,0.55),
    inset 0 -2px 0 rgba(0,0,0,0.1);
}
[class*="-hero-badge"]:not([class*="-hero-badges"]):hover::before {
  left: 100%;
}
[class*="-hero-badge"]:not([class*="-hero-badges"]) i {
  color: #fff !important;
  font-size: 19px !important;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}
[class*="-hero-badges"] {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
}
@media (max-width: 600px) {
  [class*="-hero-badge"]:not([class*="-hero-badges"]) {
    font-size: 13px !important;
    padding: 12px 20px !important;
    gap: 9px !important;
  }
  [class*="-hero-badge"]:not([class*="-hero-badges"]) i { font-size: 16px !important; }
  [class*="-hero-badges"] { gap: 10px !important; }
}

/* ===== Centrar contenido del footer en todas las páginas ===== */
.site-footer .row { justify-content: center; }
.site-footer [class*="col-"] {
  text-align: center !important;
}
.site-footer ul {
  padding: 0 !important;
  list-style: none !important;
}
.site-footer .footer-escudo {
  justify-content: center !important;
  margin-left: 0 !important;
}
.site-footer [class*="col-"] > div[style*="display:flex"],
.site-footer [class*="col-"] > div[style*="display: flex"] {
  justify-content: center !important;
}

.img-gobierno {
  width: auto;
  max-width: 180px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

/* ===== SUSCRIPCION ===== */
.suscripcion-card {
  background: #EEF4FA;
  border-left: 5px solid #2E86DE;
  border-radius: 8px;
  padding: 20px 24px;
  height: 100%;
}

.suscripcion-card h3 {
  color: #2E86DE;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
  border-bottom: 1px solid #d5e8a0;
  padding-bottom: 8px;
}

.suscripcion-card label {
  font-size: 12px;
  font-weight: 600;
  color: #4d4d4d;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.suscripcion-card .form-control,
.suscripcion-card .form-select {
  font-size: 13px;
  border-radius: 6px;
  margin-bottom: 10px;
  border: 1.5px solid #c8dba0;
}

.suscripcion-card .btn-suscribir {
  background-color: #2E86DE;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
}

.suscripcion-card .btn-suscribir:hover {
  background-color: #1558A0;
}

/* ===== RESPONSIVE ===== */

/* ── Tablet grande / laptop pequeña ── */
@media (max-width: 1200px) {
  .megamenu {
    width: min(900px, 96vw);
  }
}

/* ═════════ BACKDROP DEL CAJÓN MÓVIL ═════════
   Capa fija que oscurece la página cuando el drawer lateral está
   abierto. Inicialmente invisible (opacity:0, pointer-events:none); al
   añadirse `body.menu-open` se vuelve clicable y dim. Click en él cierra
   el menú via JS. */
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11,30,60,0.48);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  z-index: 1099;
  transition: opacity 0.28s ease;
}
body.menu-open .menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}
/* Reservar siempre el gutter del scrollbar para que el contenido fijo
   (navbar) no se desplace al ocultarse el scroll al abrir el cajón. */
html { scrollbar-gutter: stable; }

/* Ambos dropdowns (EP DE MÉXICO y ASPIRANTES) deben aparecer centrados
   bajo su trigger en escritorio. */
.menu > li.dropdown > .dropmenu--mega,
.menu > li.dropdown > .dropmenu--mega-2col {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
}

/* En móvil: el cajón es estrecho, los textos largos del Aspirantes
   ("Convenios, Becas y Promociones", etc.) deben envolverse correcta-
   mente sin cortar y sin desbordar a la derecha. */
@media (max-width: 900px) {
  .menu .dropmenu .dm-item,
  .menu .dropmenu--mega .dm-item,
  .menu .dropmenu--mega-2col .dm-item {
    padding: 12px 10px 12px 12px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .menu .dropmenu .dm-title,
  .menu .dropmenu .dm-sub,
  .menu .dm-title,
  .menu .dm-sub {
    overflow-wrap: anywhere !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
    text-overflow: clip !important;
    overflow: visible !important;
  }
  .menu .dropmenu .dm-body,
  .menu .dm-body {
    min-width: 0 !important;
    flex: 1 1 0% !important;
    max-width: 100% !important;
    width: auto !important;
    overflow: visible !important;
  }
  /* Reducir aún más el padding del contenedor del dropmenu en móvil
     para dar más espacio al texto en cajones estrechos. */
  .menu .dropdown.open .dropmenu,
  .menu .dropdown.is-open .dropmenu {
    padding: 4px 8px !important;
  }
}

/* Bloquear scroll del body cuando el cajón está abierto en móvil */
@media (max-width: 900px) {
  body.menu-open { overflow: hidden; }
}

/* ── Tablet ── */
@media (max-width: 900px) {
  /* Navbar mobile — pill compacto CENTRADO (coherente con los logotipos
     debajo). NOTA: no usar `transform: translateX(-50%)` porque crea
     stacking context y rompe el cajón fijo descendiente. Centramos con
     `left:0; right:0; margin:0 auto` + `width: fit-content`. */
  .menu-container {
    padding: 10px 14px;
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    margin: 0 auto;
    transform: none;
    width: fit-content;
    border-radius: 50px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.18), 0 1px 4px rgba(0,0,0,0.1);
  }

  /* ═══════ CAJÓN MÓVIL — panel desplegable debajo del pill centrado.
     Se oculta arriba (translateY negativo) y desliza hacia abajo al
     abrirse. Coherente con la posición centrada del pill: el cajón
     aparece justo debajo y se cierra hacia arriba. */
  .menu {
    display: flex !important;
    flex-direction: column;
    width: calc(100vw - 24px);
    max-width: 280px;
    background-color: #ffffff;
    position: fixed;
    top: 56px;
    left: 12px;
    right: auto;
    bottom: auto;
    margin: 0;
    height: auto;
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    box-shadow: 0 18px 40px rgba(11,42,107,0.22);
    border-radius: 14px;
    flex: none;
    padding: 4px 0;
    justify-content: flex-start;
    align-items: stretch;
    z-index: 1101;
    transform-origin: top left;
    transform: translateY(-8px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s cubic-bezier(0.16,1,0.3,1),
                opacity 0.18s ease;
    -webkit-overflow-scrolling: touch;
  }

  .menu.open,
  .menu.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;  /* hamburguesa a la derecha */
    order: 2;
    flex-shrink: 0;
    /* IMPORTANTE: el <ul.menu> dentro del mismo <nav> tiene
       z-index:1101 (cajón fijo), por lo que dentro del stacking
       context del nav cubre al botón. Damos a la hamburguesa un
       z-index mayor y position:relative para que siempre sea
       clicable, incluso con el cajón abierto. */
    position: relative;
    z-index: 1103;
  }

  /* Cuando el cajón está abierto: el navbar sube por encima del
     backdrop y la hamburguesa se convierte en X (cerrar) */
  body.menu-open .menu-container {
    z-index: 1102;
  }
  body.menu-open .menu-toggle .fa-bars::before {
    content: "\f00d";  /* fa-xmark — cerrar */
  }
  body.menu-open .menu-toggle {
    color: #1558A0;
    z-index: 1103;
  }
  /* Logo INICIO también debe estar visible sobre el cajón cuando el
     menú está abierto (el cajón con z-index:1101 cubría la pill). */
  .nav-inicio-logo {
    position: relative;
    z-index: 1103;
  }

  /* Badges a la izquierda en móvil (hamburguesa queda a la derecha) */
  .nav-badges {
    margin-left: 0;
    margin-right: 0;
    order: 1;
  }

  .menu > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 16px 22px;
    font-size: 14px;
    font-weight: 700;
    color: #0d2d5e;
    border-bottom: 1px solid #e8edf5;
    white-space: normal;
    letter-spacing: 0.3px;
    text-decoration: none;
  }
  .menu > li:last-child > a { border-bottom: none; }

  .menu > li > a:hover {
    background-color: #f0f6ff;
    color: #1558A0;
  }

  /* Ocultar el <i class="bi bi-chevron-down nav-arrow"> nativo —
     dependía de Bootstrap Icons que no está renderizando. */
  .menu > li.dropdown > a .nav-arrow {
    display: none !important;
  }

  /* Chevron-down dibujado con bordes CSS — pegado al texto (no se
     empuja al borde derecho) */
  .menu > li.dropdown > a::after {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-left: 8px;
    border-right: 2px solid #8A9BBB;
    border-bottom: 2px solid #8A9BBB;
    transform: rotate(45deg) translate(-2px, -2px);
    flex-shrink: 0;
    transition: transform 0.3s ease, border-color 0.2s ease;
  }
  /* Empujar el resto del espacio al final para que la flecha quede
     justo después del texto */
  .menu > li.dropdown > a {
    justify-content: flex-start;
  }
  .menu > li.dropdown.open > a::after,
  .menu > li.dropdown.is-open > a::after {
    transform: rotate(225deg) translate(-2px, -2px);
    border-color: #1558A0;
  }

  /* Deshabilitar hover en desktop para dropdowns */
  .dropdown:hover .dropmenu,
  .dropdown:hover .megamenu,
  .dropdown:hover .dropmenu--mega {
    display: none !important;
  }

  /* En móvil cada <li> debe apilar verticalmente su trigger y dropmenu
     (en escritorio es flex-row para alinear el chevron). Sin esto, la
     .dropmenu se renderiza como hermano flex a la derecha del trigger
     y el panel blanco "se sale" del cajón. */
  .menu > li {
    display: block;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  /* Cerrado por defecto en móvil — siempre visible en el DOM con altura
     0 para poder animar la expansión. Fondo gris muy claro para
     diferenciarse del cajón blanco.
     IMPORTANTE: resetear top/right/bottom porque el CSS desktop pone
     `top: calc(100% + 8px)` que con position:relative empuja el dropmenu
     hacia abajo ~500px (debajo del siguiente item). */
  .dropmenu,
  .megamenu {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    top: auto !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    position: relative !important;
    box-shadow: none !important;
    border-top: none !important;
    border-bottom: 1px solid #e8edf5 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background-color: #f7f9fc !important;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.32s cubic-bezier(0.16,1,0.3,1),
                opacity 0.22s ease,
                padding 0.32s cubic-bezier(0.16,1,0.3,1);
  }

  /* Abierto: expande hasta caber el contenido */
  .dropdown.open .dropmenu,
  .dropdown.open .megamenu,
  .dropdown.is-open .dropmenu,
  .dropdown.is-open .megamenu {
    max-height: 70vh;
    opacity: 1;
    padding: 8px 16px !important;
    overflow-y: auto;
  }

  /* Submenús como lista vertical simple — un item por fila, icono a la
     izquierda y título/subtítulo a la derecha. Reemplaza el grid del
     escritorio (`.dropdown.is-open .dropmenu--mega { display: grid }`)
     que se filtraba a móvil porque el JS añade tanto `is-open` como
     `open`. Especificidad 0,3,0 para ganar la cascada. */
  .dropdown.open .dropmenu--mega,
  .dropdown.open .dropmenu--mega-2col,
  .dropdown.is-open .dropmenu--mega,
  .dropdown.is-open .dropmenu--mega-2col {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 4px 0 !important;
  }
  .dropmenu--mega .dm-item,
  .dropmenu--mega-2col .dm-item {
    width: 100%;
    padding: 12px 14px 12px 18px;
    flex-direction: row;
    text-align: left;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid #ecf0f7;
  }
  .dropmenu--mega .dm-item:last-child,
  .dropmenu--mega-2col .dm-item:last-child {
    border-bottom: none;
  }
  .dropmenu--mega .dm-icon,
  .dropmenu--mega-2col .dm-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
    border-radius: 8px;
    flex-shrink: 0;
  }
  .dropmenu--mega .dm-body,
  .dropmenu--mega-2col .dm-body {
    align-items: flex-start;
    flex: 1;
    min-width: 0;
  }
  .dropmenu--mega .dm-title,
  .dropmenu--mega-2col .dm-title {
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    line-height: 1.3;
    color: #0d2d5e;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .dropmenu--mega .dm-sub,
  .dropmenu--mega-2col .dm-sub {
    font-size: 11px;
    text-align: left;
    line-height: 1.25;
    color: #8A9BBB;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-top: 2px;
  }

  /* Indicador chevron que rota al abrir */
  .dropdown > a .nav-arrow {
    transition: transform 0.3s ease;
  }
  .dropdown.open > a .nav-arrow,
  .dropdown.is-open > a .nav-arrow {
    transform: rotate(180deg);
  }

  .megamenu .columna,
  .dropmenu .columna {
    min-width: 100%;
  }

  .megamenu h3,
  .dropmenu h3 {
    margin-top: 10px;
    font-size: 15px;
    text-align: center;
  }

  .megamenu ul li a,
  .dropmenu ul li a {
    font-size: 14px;
    padding: 8px 10px;
    white-space: normal;
    word-wrap: break-word;
  }

  /* Reducir tamaño de badges en móvil */
  .badge-logo        { height: 36px; }
  .badge-aniversario { height: 34px; }
  .badge-iso         { height: 28px; }

  .nav-aniversario {
    height: 60px;
  }

  .nav-social {
    display: none;
  }

  /* About */
  .about-section {
    padding: 40px 0;
  }

  /* Campus */
  .campus-item {
    flex: 0 1 210px;
    max-width: 250px;
  }

  /* Floating buttons */
  .floating-btn span {
    display: none;
  }

  .floating-btn {
    padding: 12px;
    border-radius: 50%;
    bottom: auto;
  }

  .floating-btn.events-btn {
    bottom: 80px;
    right: 14px;
  }

  .floating-btn.whatsapp-btn {
    bottom: 20px;
    right: 14px;
  }
}

/* ── Mobile grande ── */
@media (max-width: 768px) {
  .about-section h2 {
    font-size: 22px;
  }

  .section-title {
    font-size: 24px;
    padding: 28px 0 8px;
  }

  .campus-title {
    font-size: 24px;
  }

  .promo-row {
    gap: 12px;
    padding: 20px 12px;
  }

  .promo-row a {
    flex: 1 1 180px;
  }

  .form-card {
    padding: 28px 18px;
  }

  .proximos-section {
    padding: 28px 0;
  }
}

/* ── Mobile pequeño — badges muy compactos ── */
@media (max-width: 480px) {
  .badge-logo        { height: 28px; }
  .badge-aniversario { height: 26px; }
  .badge-iso         { height: 22px; }
  .nav-badges        { gap: 6px; }
}

/* ── Mobile ── */
@media (max-width: 576px) {
  .about-section {
    padding: 30px 0;
  }

  .about-section h2 {
    font-size: 19px;
  }

  .about-section p {
    font-size: 13px;
  }

  .section-title {
    font-size: 20px;
    letter-spacing: 1px;
  }

  .promo-row {
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
  }

  .promo-row a {
    width: 100%;
    max-width: 380px;
  }

  .academic-gallery {
    padding: 20px 12px 30px;
    gap: 16px;
    flex-direction: column;
  }

  .academic-gallery .card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .campus-grid {
    gap: 10px;
    padding: 0 12px;
  }

  .campus-item {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 5px);
  }

  .form-card {
    padding: 20px 14px;
  }

  .form-card .form-title {
    font-size: 18px;
  }

  .site-footer {
    padding: 30px 14px 16px;
  }

  .banners-section {
    padding: 20px 12px;
  }
}

/* ── Teléfono pequeño ── */
@media (max-width: 400px) {
  .campus-item {
    flex: 1 1 calc(50% - 8px);
    max-width: calc(50% - 4px);
  }

  .section-title {
    font-size: 17px;
  }

  /* Navbar pill compactado y centrado.
     IMPORTANTE: NO usar `transform: translateX(-50%)` aquí porque
     `transform` convierte a `.menu-container` en el bloque contenedor
     de sus descendientes con `position: fixed` (el cajón `.menu`),
     haciendo que el cajón se ancle al ancho del pill (~80px) en vez
     de al viewport. Centramos con margin: 0 auto + width: fit-content. */
  .menu-container {
    padding: 6px 10px;
    top: 12px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    transform: none;
    gap: 4px;
  }
  .nav-inicio-logo {
    margin-right: 0;
    padding: 2px;
    flex-direction: row;
    gap: 4px;
  }
  .nav-inicio-logo img {
    height: 24px;
  }
  .nav-inicio-logo span {
    display: none;
  }
  .menu-toggle {
    font-size: 22px;
    padding: 0 4px;
  }
  /* Cajón en ≤400px: solo ajustamos top y altura, mantiene la posición
     izquierda del breakpoint ≤900px (left:12px). */
  .menu {
    top: 56px !important;
    left: 8px !important;
    right: auto !important;
    margin: 0 !important;
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
  }
  /* Logos strip alineado al nuevo offset */
  .logos-strip {
    top: 60px;
  }
}

/* ===== PROGRAMAS DE CALIDAD CARDS ===== */
.prog-cards-section {
  background: #ffffff;
  padding: 20px 0 60px;
}
.prog-cards-grid {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
.prog-card {
  flex: 1 1 280px;
  max-width: 380px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s;
}
.prog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  text-decoration: none;
  color: inherit;
}
.prog-card-header {
  flex: 1;
  padding: 38px 30px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  color: #fff;
}
.prog-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.prog-card-header h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin: 0;
  color: #fff;
  line-height: 1.2;
}
.prog-card-header p {
  font-size: 13px;
  color: rgba(255,255,255,0.88);
  margin: 0;
  line-height: 1.6;
}
.prog-card-footer {
  background: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.prog-card-footer span {
  font-size: 12px;
  font-weight: 700;
  color: #1558A0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.prog-card-footer i { font-size: 20px; }

.prog-card--especialidades .prog-card-header { background: linear-gradient(135deg, #7b1248 0%, #c2185b 100%); }
.prog-card--especialidades .prog-card-footer i { color: #c2185b; }

.prog-card--maestrias .prog-card-header { background: linear-gradient(135deg, #1558A0 0%, #2E86DE 100%); }
.prog-card--maestrias .prog-card-footer i { color: #2E86DE; }

.prog-card--doctorados .prog-card-header { background: linear-gradient(135deg, #311b92 0%, #673ab7 100%); }
.prog-card--doctorados .prog-card-footer i { color: #673ab7; }

.prog-card--educacion-continua .prog-card-header { background: linear-gradient(135deg, #1a6b4a 0%, #2e9e6e 100%); }
.prog-card--educacion-continua .prog-card-footer i { color: #2e9e6e; }

@media (max-width: 768px) {
  .prog-cards-grid { gap: 18px; }
  .prog-card { max-width: 100%; }
}

/* ===== MODAL INSTALACIONES ===== */
.inst-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1400;
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.inst-overlay.active {
  display: flex;
}
.inst-modal {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.inst-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.inst-close:hover { opacity: 1; }
.inst-header {
  background: #1558A0;
  padding: 32px 28px 22px;
  color: #fff;
}
.inst-tag {
  display: inline-block;
  background: #2E86DE;
  color: #1558A0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.inst-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
}
.inst-header p {
  font-size: 13px;
  color: #99BEE1;
  margin: 0;
}
.inst-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.inst-gallery img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}
@media (max-width: 600px) {
  .inst-gallery {
    grid-template-columns: 1fr;
  }
  .inst-gallery img {
    height: 220px;
  }
}

/* ===== PANEL INSTALACIONES PUEBLA ===== */
.inst-img-clickable {
  cursor: pointer;
  transition: opacity 0.2s;
}
.inst-img-clickable:hover { opacity: 0.85; }

.camp-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1400;
  backdrop-filter: blur(2px);
}
.camp-overlay.active { display: block; }

.camp-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 95vw);
  height: 100vh;
  background: #fff;
  z-index: 1500;
  box-shadow: -6px 0 30px rgba(0,0,0,0.2);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
}
.camp-panel.active { transform: translateX(0); }

.camp-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.camp-close:hover { opacity: 1; }
.camp-panel-inner { flex: 1; }

.camp-header {
  background: #1558A0;
  padding: 44px 28px 24px;
  color: #fff;
}
.camp-tag {
  display: inline-block;
  background: #2E86DE;
  color: #1558A0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.camp-header h2 {
  font-size: clamp(16px, 3vw, 20px);
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
}
.camp-sede {
  font-size: 13px;
  color: #99BEE1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.camp-body { padding: 24px 28px 36px; }
.camp-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #2E86DE;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.camp-desc {
  font-size: 13px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 12px;
}
.camp-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.camp-list li {
  font-size: 13px;
  color: #333;
  font-weight: 600;
  padding: 6px 0 6px 18px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}
.camp-list li::before {
  content: '›';
  position: absolute;
  left: 4px;
  color: #2E86DE;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
}
.camp-cta-link {
  display: inline-block;
  color: #2E86DE;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
  margin-bottom: 4px;
}
.camp-cta-link:hover { text-decoration: underline; color: #1558A0; }
.camp-subhead {
  font-size: 12px;
  font-weight: 700;
  color: #1558A0;
  margin: 12px 0 4px;
}

/* ===================================================================
   SCROLL REVEAL — global (aplica a todos los HTML que carguen este CSS)
   =================================================================== */
.rv {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.rv.rv-visible { opacity: 1 !important; transform: none !important; }

.rv-left  { transform: translateX(-36px) !important; }
.rv-right { transform: translateX(36px)  !important; }
.rv-left.rv-visible,
.rv-right.rv-visible { transform: none !important; }

.rv-scale { transform: scale(0.92) !important; }
.rv-scale.rv-visible { transform: none !important; }

.rv-d1 { transition-delay: 0.08s; }
.rv-d2 { transition-delay: 0.16s; }
.rv-d3 { transition-delay: 0.24s; }
.rv-d4 { transition-delay: 0.32s; }
.rv-d5 { transition-delay: 0.40s; }
.rv-d6 { transition-delay: 0.48s; }

/* ===================================================================
   MASCOTAS SECTION
   =================================================================== */
.mascotas-grid {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.mascota-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.mascota-item img {
  width: auto;
  max-height: 340px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.18));
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.mascota-item:hover img { transform: translateY(-8px) scale(1.03); }
.mascota-name {
  font-size: 13px;
  font-weight: 700;
  color: #1558A0;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
}

/* ===================================================================
   CORAZÓN IDEOLÓGICO SECTION
   =================================================================== */
.ci-section {
  background: #f8f9fb;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.ci-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 80% 20%, rgba(21,88,160,.05) 0%, transparent 70%),
    radial-gradient(ellipse 500px 400px at 20% 80%, rgba(46,134,222,.04) 0%, transparent 70%);
  pointer-events: none;
}
.ci-intro {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
  font-size: 16px;
  line-height: 1.85;
  color: #555;
  position: relative;
}
.ci-intro strong { color: #1558A0; }
.ci-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}
@media (max-width: 900px) { .ci-cards { grid-template-columns: 1fr; } }
.ci-card {
  background: #fff;
  border: 1px solid #e2eaf5;
  border-top: 4px solid #1558A0;
  border-radius: 14px;
  padding: 28px 22px;
  transition: box-shadow 0.25s, transform 0.25s;
  box-shadow: 0 2px 12px rgba(21,88,160,0.07);
}
.ci-card:hover {
  box-shadow: 0 8px 28px rgba(21,88,160,0.14);
  transform: translateY(-4px);
}
.ci-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
  background: #EBF3FB !important;
  color: #1558A0 !important;
}
.ci-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1558A0;
  margin: 0 0 10px;
  line-height: 1.3;
}
.ci-card p {
  font-size: 13px;
  color: #555;
  line-height: 1.75;
  margin: 0;
}

/* ════════════════════════════════════════════════════════════════
   ENCABEZADOS UNIFICADOS — rectángulo azul con título blanco
   y partículas animadas. Reutilizable en cualquier página.
   Usar: <div class="sec-hdr-unif">
           <div class="ep-eyebrow"><div class="ep-eyebrow-dot"></div>EYEBROW</div>
           <div class="sec-title">TÍTULO <em>destacado</em></div>
           <p class="sec-sub">Subtítulo descriptivo.</p>
         </div>
   ════════════════════════════════════════════════════════════════ */
@keyframes secHdrIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sec-hdr-unif {
  background: linear-gradient(135deg, #0b2a6b 0%, #1558A0 55%, #2E86DE 100%);
  padding: 48px 28px 44px;
  position: relative;
  overflow: hidden;
  text-align: center;
  animation: secHdrIn 0.8s ease both;
  margin-bottom: 40px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}
.sec-hdr-unif::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.sec-hdr-unif > * { position: relative; z-index: 1; }

/* Canvas con animación de partículas inyectado por JS */
.sec-hdr-unif .hdr-particles,
.epc-v2 .ep-sec-hdr .hdr-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.sec-hdr-unif .ep-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.sec-hdr-unif .ep-eyebrow-dot {
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
}
.sec-hdr-unif .sec-title {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -.5px;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
}
.sec-hdr-unif .sec-title em { color: #ffffff; font-style: normal; }
.sec-hdr-unif .sec-sub {
  font-size: 17px;
  color: #ffffff;
  margin-bottom: 0;
  opacity: 0.92;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.5;
  /* Ancho máximo controlado para que los subtextos largos
     (ej. "CONOCE MÁS SOBRE EP DE MÉXICO") rompan a 2 líneas
     en lugar de extenderse en una sola línea muy ancha. */
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   ENCABEZADO UNIFICADO DE PÁGINA (.page-hero)
   Gradiente azul + partículas internas + tipografía consistente
   ============================================================ */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, #0a2050 0%, #0e2c66 35%, #14409a 75%, #1956b0 100%);
  min-height: clamp(240px, 32vw, 320px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 24px 70px;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 60%, rgba(91,160,235,0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}
.page-hero-ptc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
}
.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #87b6e8;
  margin: 0 0 18px;
  font-family: 'Montserrat', sans-serif;
}
.page-hero-eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  background: #5ea3e0;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.page-hero h1 {
  color: #ffffff;
  font-size: clamp(20px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 14px;
  line-height: 1.2;
  font-family: 'Montserrat', sans-serif;
}
.page-hero h1 em,
.page-hero h1 .accent {
  color: #8cc0eb;
  font-style: normal;
  font-weight: 800;
}
.page-hero p {
  color: #c9dcef;
  font-size: 14px;
  margin: 0 auto;
  max-width: 760px;
  line-height: 1.65;
  font-family: 'Montserrat', sans-serif;
}
@media (max-width: 768px) {
  .page-hero {
    padding: 120px 20px 50px;
    min-height: 210px;
  }
  .page-hero h1 {
    font-size: clamp(18px, 5vw, 28px);
    letter-spacing: 1px;
  }
  .page-hero-eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
  }
  .page-hero p {
    font-size: 13px;
  }
}

/* ============================================================
   MODAL CENTRADO EN MÓVIL para popups de cards
   (donde-hospedarme, restaurantes-tipicos, estudia-en-puebla)
   ============================================================ */
.popup-close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  background: rgba(0,0,0,0.6);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s ease;
}
.popup-close-btn:hover { background: rgba(0,0,0,0.85); }

@media (max-width: 900px) {
  body.card-modal-open { overflow: hidden; }
  body.card-modal-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(2px);
    z-index: 1200;
  }
  .hotel-popup,
  .rest-popup,
  .ep-inline-panel {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    bottom: auto !important;
    width: min(520px, 92vw) !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    transform: translate(-50%, -50%) scale(0.95) !important;
    border-radius: 16px !important;
    border-left: 4px solid #1558A0 !important;
    border-top: none !important;
    box-shadow: 0 16px 48px rgba(0,0,0,0.4) !important;
    opacity: 0;
    pointer-events: none;
    z-index: 1300 !important;
    transition: transform 0.3s ease, opacity 0.3s ease !important;
  }
  .hotel-popup.active,
  .rest-popup.active,
  .ep-inline-panel.active {
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .popup-close-btn,
  .ep-inline-close { display: flex; }
}
