/* ================================================================== */
/* index-modern.css                                                    */
/* Estilos para la modernización de index.html.                        */
/* Por ahora contiene el HERO MODERNO que reemplaza al slideshow viejo */
/* de Muse. En el futuro se irán agregando más bloques modernizados.   */
/* ================================================================== */

/* ================================================================== */
/* OCULTAR el slideshow viejo de Muse                                  */
/* No se borra el HTML para mantener compatibilidad con scripts Muse.  */
/* ================================================================== */
#pslideshowu162 {
  display: none !important;
}

/* ================================================================== */
/* HERO MODERNO — split layout contenido (texto izq, imágenes der)     */
/* ================================================================== */
/* Contenido al mismo ancho del header (1280px) pero MÁS ALTO          */
/* para que se sienta imponente como hero principal.                    */
.modern-hero {
  display: flex !important;
  flex-direction: row;
  width: 100% !important;
  max-width: 1280px;
  margin: 36px auto 0 auto;
  height: 680px;
  overflow: hidden;
  font-family: '__Open Sans_5', 'Open Sans', sans-serif;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  position: relative;
  float: none !important;
  clear: both !important;
}

/* --- Lado izquierdo: texto + CTA con fondo azul gradiente --- */
.modern-hero-content {
  flex: 1 1 50%;
  background: linear-gradient(135deg, #006A8C 0%, #004E68 50%, #003B52 100%);
  padding: 90px 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

/* Decoración: una franja diagonal sutil arriba-derecha */
.modern-hero-content::before {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 80px;
  height: 100%;
  background: linear-gradient(115deg, transparent 60%, rgba(255,255,255,0.04) 60%, rgba(255,255,255,0.04) 70%, transparent 70%);
  pointer-events: none;
}

.modern-hero-title {
  font-family: '__Lato_5', 'Lato', sans-serif;
  font-size: 58px;
  font-weight: 900;
  line-height: 1.08;
  margin: 0 0 26px 0;
  color: #FFFFFF;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.25);
  letter-spacing: -0.8px;
  animation: heroFadeUp 0.9s ease-out 0.1s both;
}

.modern-hero-subtitle {
  font-family: '__Open Sans_5', 'Open Sans', sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: #E8F1F5;
  margin: 0 0 40px 0;
  max-width: 540px;
  font-weight: 400;
  animation: heroFadeUp 0.9s ease-out 0.25s both;
}

/* Botón CTA con los colores del sitio (esquinas rectangulares modernas) */
.modern-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #FF0000;
  color: #FFFFFF !important;
  text-decoration: none !important;
  padding: 16px 38px;
  border: 3px solid #FFFFFF;
  border-radius: 8px;
  font-family: '__Lato_5', 'Lato', sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1px;
  align-self: flex-start;
  box-shadow: 0 8px 22px rgba(255, 0, 0, 0.45);
  transition: all 0.3s ease;
  animation: heroFadeUp 0.9s ease-out 0.4s both;
  text-transform: uppercase;
}
.modern-hero-cta:hover {
  background-color: #CC0000;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(255, 0, 0, 0.55);
}
.modern-hero-cta::after {
  content: "→";
  font-size: 18px;
  transition: transform 0.3s ease;
}
.modern-hero-cta:hover::after {
  transform: translateX(5px);
}

/* Bloque del teléfono debajo del CTA */
.modern-hero-phone {
  margin-top: 28px;
  font-family: '__Open Sans_5', 'Open Sans', sans-serif;
  font-size: 15px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: heroFadeUp 0.9s ease-out 0.55s both;
}
.modern-hero-phone svg {
  width: 18px;
  height: 18px;
  fill: #FFFFFF;
}
.modern-hero-phone a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: opacity 0.2s ease;
}
.modern-hero-phone a:hover {
  opacity: 0.8;
}

/* --- Lado derecho: imagen con slideshow fade suave (sin overlay) --- */
.modern-hero-image {
  flex: 1 1 50%;
  position: relative;
  overflow: hidden;
  background-color: #003B52;
}
.modern-hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
/* Variante is-logo: fondo blanco + imagen contenida sin recortes */
.modern-hero-image.is-logo {
  background-color: #FFFFFF;
}
.modern-hero-image.is-logo .modern-hero-img {
  object-fit: contain;
  padding: 30px;
  box-sizing: border-box;
  mix-blend-mode: multiply;
}
.modern-hero-img.active {
  opacity: 1;
}

/* Indicadores (puntos) abajo del slideshow */
.modern-hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.modern-hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  padding: 0;
}
.modern-hero-dot.active {
  background-color: #FFFFFF;
  transform: scale(1.3);
}

/* ================================================================== */
/* Animación fade-in + slide-up para los elementos del hero            */
/* ================================================================== */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================================================== */
/* MODIFICADOR: hero compacto para páginas internas/secundarias        */
/* Usar: <section class="modern-hero modern-hero-sm">                  */
/* ================================================================== */
.modern-hero.modern-hero-sm {
  height: 420px;
  margin: 30px auto 50px auto;
}
.modern-hero.modern-hero-sm .modern-hero-content {
  padding: 60px 60px;
}
.modern-hero.modern-hero-sm .modern-hero-title {
  font-size: 44px;
  margin-bottom: 18px;
}
.modern-hero.modern-hero-sm .modern-hero-subtitle {
  font-size: 16px;
  margin-bottom: 28px;
}
@media (max-width: 1100px) {
  .modern-hero.modern-hero-sm {
    height: 380px;
    margin-bottom: 40px;
  }
  .modern-hero.modern-hero-sm .modern-hero-title {
    font-size: 34px;
  }
}
@media (max-width: 850px) {
  .modern-hero.modern-hero-sm {
    height: auto;
  }
  .modern-hero.modern-hero-sm .modern-hero-image {
    height: 260px;
  }
  .modern-hero.modern-hero-sm .modern-hero-content {
    padding: 48px 36px 40px 36px;
  }
}

/* ================================================================== */
/* RESPONSIVE del hero contenido                                       */
/* ================================================================== */
/* Pantallas medianas: reduce el margin lateral del hero */
@media (max-width: 1340px) {
  .modern-hero {
    margin-left: 30px;
    margin-right: 30px;
    width: calc(100% - 60px) !important;
  }
}

/* Tablets y laptops chicas: reduce padding/tamaños */
@media (max-width: 1100px) {
  .modern-hero {
    height: 560px;
    margin-top: 24px;
    margin-bottom: 0;
  }
  .modern-hero-content {
    padding: 55px 44px;
  }
  .modern-hero-title {
    font-size: 38px;
  }
}

/* Tablets verticales: el split se vuelve stack (texto arriba, foto abajo) */
@media (max-width: 850px) {
  .modern-hero {
    flex-direction: column;
    height: auto;
    margin-left: 18px;
    margin-right: 18px;
    width: calc(100% - 36px) !important;
    border-radius: 14px;
  }
  .modern-hero-content {
    flex: none;
    padding: 56px 36px 46px 36px;
  }
  .modern-hero-title {
    font-size: 34px;
  }
  .modern-hero-subtitle {
    font-size: 16px;
    max-width: 100%;
  }
  .modern-hero-image {
    flex: none;
    height: 360px;
  }
}

/* Móviles */
@media (max-width: 480px) {
  .modern-hero {
    margin-left: 12px;
    margin-right: 12px;
    width: calc(100% - 24px) !important;
    border-radius: 12px;
  }
  .modern-hero-content {
    padding: 44px 24px 38px 24px;
  }
  .modern-hero-title {
    font-size: 28px;
  }
  .modern-hero-subtitle {
    font-size: 15px;
    margin-bottom: 28px;
  }
  .modern-hero-cta {
    padding: 14px 28px;
    font-size: 13px;
  }
  .modern-hero-image {
    height: 280px;
  }
}

/* ================================================================== */
/* SISTEMA GLOBAL DE ANIMACIONES DE ENTRADA AL HACER SCROLL            */
/* Cualquier elemento con .animate-on-scroll empieza invisible y       */
/* aparece cuando entra al viewport (lo activa el JS del end of body). */
/* Variantes: .fade-up, .fade-down, .fade-left, .fade-right, .scale-in */
/* Opcional: data-delay="200" en el HTML para retardar la animación.   */
/* ================================================================== */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}
.animate-on-scroll.fade-up    { transform: translateY(40px); }
.animate-on-scroll.fade-down  { transform: translateY(-40px); }
.animate-on-scroll.fade-left  { transform: translateX(-40px); }
.animate-on-scroll.fade-right { transform: translateX(40px); }
.animate-on-scroll.scale-in   { transform: scale(0.92); }
.animate-on-scroll.visible {
  opacity: 1;
  transform: none;
}

/* ================================================================== */
/* OCULTAR las secciones viejas debajo del hero                        */
/* (mismo enfoque que admision.css: display:none, sin borrar HTML)     */
/* ================================================================== */
/* 4 íconos bolitas vacíos */
/* Labels: NOTICIAS / GALERÍA / MESA DE PARTES / PORTAL TRANSPARENCIA */
/* "PARA UN MEJOR FUTURO APRENDE EN EL MEJOR LUGAR" (con Lorem Ipsum) */

/* ================================================================== */
/* SECCIÓN "POR QUÉ ELEGIR SAN ANTONIO" — 4 feature cards              */
/* Reemplaza visualmente las 3 secciones que ocultamos arriba.         */
/* ================================================================== */
.modern-features {
  display: block;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 90px 24px;
  background-color: #F5F9FB;
  font-family: '__Open Sans_5', 'Open Sans', sans-serif;
  box-sizing: border-box;
}
.modern-features-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.modern-features-header {
  text-align: center;
  margin-bottom: 60px;
}
.modern-section-title {
  font-family: '__Lato_5', 'Lato', sans-serif;
  font-size: 38px;
  font-weight: 900;
  color: #00698C;
  margin: 0 0 16px 0;
  line-height: 1.15;
  letter-spacing: -0.5px;
  text-transform: none;
}
.modern-section-subtitle {
  font-family: '__Open Sans_5', 'Open Sans', sans-serif;
  font-size: 17px;
  color: #555555;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}
.modern-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.modern-feature-card {
  background-color: #FFFFFF;
  border-radius: 14px;
  padding: 38px 26px 32px 26px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid #EAEAEA;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  box-sizing: border-box;
}
.modern-feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 38px rgba(0, 106, 140, 0.18);
  border-color: #00698C;
}
.modern-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #006A8C 0%, #004E68 100%);
  margin: 0 auto 22px auto;
  box-shadow: 0 6px 16px rgba(0, 106, 140, 0.32);
  transition: transform 0.35s ease;
}
.modern-feature-card:hover .modern-feature-icon {
  transform: scale(1.08) rotate(-4deg);
}
.modern-feature-icon svg {
  width: 36px;
  height: 36px;
  fill: #FFFFFF;
}
.modern-feature-card h3 {
  font-family: '__Lato_5', 'Lato', sans-serif;
  font-size: 19px;
  font-weight: 900;
  color: #00698C;
  margin: 0 0 12px 0;
  line-height: 1.25;
}
.modern-feature-card p {
  font-family: '__Open Sans_5', 'Open Sans', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #666666;
  margin: 0;
}

/* Responsive del bloque de features */
@media (max-width: 1100px) {
  .modern-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
  .modern-section-title {
    font-size: 32px;
  }
}
@media (max-width: 580px) {
  .modern-features-grid {
    grid-template-columns: 1fr;
  }
  .modern-features {
    padding: 60px 18px;
  }
  .modern-section-title {
    font-size: 26px;
  }
  .modern-section-subtitle {
    font-size: 15px;
  }
}

/* ================================================================== */
/* OCULTAR la sección vieja de NUESTROS PROGRAMAS                      */
/* (título, separador y cards de Inicial/Primaria con Lorem Ipsum)     */
/* ================================================================== */

/* ================================================================== */
/* SECCIÓN MODERNA "NUESTROS PROGRAMAS" — 2 cards grandes con imagen   */
/* Reemplaza visualmente al bloque viejo (oculto arriba).              */
/* ================================================================== */
.modern-programs {
  display: block;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 100px 24px;
  background-color: #FFFFFF;
  font-family: '__Open Sans_5', 'Open Sans', sans-serif;
  box-sizing: border-box;
}
.modern-programs-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.modern-programs-header {
  text-align: center;
  margin-bottom: 60px;
}
.modern-programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

/* Card de cada programa: imagen arriba + body abajo */
.modern-program-card {
  background-color: #FFFFFF;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #EAEAEA;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}
.modern-program-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 22px 50px rgba(0, 106, 140, 0.22);
}

/* Imagen superior con zoom suave en hover */
.modern-program-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
}
.modern-program-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}
.modern-program-card:hover .modern-program-image img {
  transform: scale(1.08);
}
/* Degradado oscuro en la parte inferior de la imagen */
.modern-program-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Tag "Carrera Profesional" flotante sobre la imagen */
.modern-program-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: rgba(0, 106, 140, 0.95);
  color: #FFFFFF;
  font-family: '__Lato_5', 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 7px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 106, 140, 0.4);
}

/* Body del card */
.modern-program-body {
  padding: 32px 30px 30px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.modern-program-name {
  font-family: '__Lato_5', 'Lato', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: #00698C;
  margin: 0 0 14px 0;
  line-height: 1.2;
  letter-spacing: -0.3px;
}
.modern-program-desc {
  font-family: '__Open Sans_5', 'Open Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #555555;
  margin: 0 0 22px 0;
}

/* Lista de features con checkmark SVG en círculo azul */
.modern-program-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
}
.modern-program-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: '__Open Sans_5', 'Open Sans', sans-serif;
  font-size: 14px;
  color: #444444;
  padding: 9px 0;
  border-bottom: 1px solid #F0F0F0;
}
.modern-program-features li:last-child {
  border-bottom: none;
}
.modern-program-features li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #006A8C;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFFFFF'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
}

/* Botón CTA "Conocer más" — esquinas rectangulares modernas */
.modern-program-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #00698C;
  color: #FFFFFF !important;
  text-decoration: none !important;
  padding: 14px 30px;
  border-radius: 8px;
  font-family: '__Lato_5', 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: auto;
  align-self: flex-start;
  box-shadow: 0 6px 18px rgba(0, 106, 140, 0.35);
  transition: all 0.3s ease;
  border: none;
  white-space: nowrap;
}
.modern-program-cta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.modern-program-cta:hover {
  background-color: #00557A;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 106, 140, 0.5);
}
.modern-program-cta:hover svg {
  transform: translateX(4px);
  transition: transform 0.3s ease;
}
.modern-program-cta::after {
  content: "→";
  font-size: 16px;
  transition: transform 0.3s ease;
}
.modern-program-cta:hover::after {
  transform: translateX(5px);
}

/* Responsive: en tablets y móviles los 2 cards se apilan en columna */
@media (max-width: 900px) {
  .modern-programs-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .modern-program-image {
    height: 220px;
  }
}
@media (max-width: 580px) {
  .modern-programs {
    padding: 60px 18px;
  }
  .modern-program-name {
    font-size: 24px;
  }
  .modern-program-body {
    padding: 26px 22px 24px 22px;
  }
}

/* ================================================================== */
/* OCULTAR la sección vieja de CONVENIOS                               */
/* ================================================================== */

/* ================================================================== */
/* SECCIÓN MODERNA "NUESTROS CONVENIOS" — bucle infinito de logos      */
/* (logo marquee con loop sin cortes y pausa al hacer hover)           */
/* ================================================================== */
.modern-conv {
  display: block;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 90px 0 100px 0;
  background-color: #F5F9FB;
  font-family: '__Open Sans_5', 'Open Sans', sans-serif;
  box-sizing: border-box;
  overflow: hidden;
}
.modern-conv-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.modern-conv-header {
  text-align: center;
  margin-bottom: 50px;
  padding: 0 24px;
}

/* --- El "marquee" (track con logos en bucle infinito) --- */
.modern-conv-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  /* Máscara fade en los bordes para que los logos aparezcan suaves */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}
/* El track interno: contiene los logos duplicados */
/* Animación: se mueve de 0 a -50% (la mitad porque está duplicado).   */
/* Eso crea la ilusión de un loop sin fin perfectamente continuo.      */
.modern-conv-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: modernConvLoop 40s linear infinite;
}
.modern-conv-marquee:hover .modern-conv-track {
  animation-play-state: paused;
}

/* Cada logo individual — colores originales, sin filtro grayscale */
.modern-conv-logo {
  flex-shrink: 0;
  width: 175px;
  height: 100px;
  margin: 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}
.modern-conv-logo:hover {
  transform: scale(1.08);
}
.modern-conv-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* Animación del loop: traslada el track a la izquierda hasta -50%, */
/* punto en el cual la copia duplicada está exactamente donde       */
/* empezó la primera copia, creando la ilusión de loop infinito.    */
@keyframes modernConvLoop {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 900px) {
  .modern-conv {
    padding: 70px 0 80px 0;
  }
  .modern-conv-logo {
    width: 140px;
    height: 80px;
    margin: 0 22px;
  }
  .modern-conv-track {
    animation-duration: 32s;
  }
}
@media (max-width: 580px) {
  .modern-conv {
    padding: 55px 0 65px 0;
  }
  .modern-conv-logo {
    width: 110px;
    height: 64px;
    margin: 0 18px;
  }
  .modern-conv-track {
    animation-duration: 26s;
  }
}

/* ================================================================== */
/* FORMULARIO DE CONTACTO MODERNO                                      */
/* Reemplaza visualmente al formulario viejo de Muse (oculto con       */
/* display:none). El form nuevo POSTea al MISMO PHP (form-u2599.php)   */
/* y usa los MISMOS name="..." en los inputs, así los correos llegan   */
/* exactamente igual al instituto sin tocar el backend.                */
/* ================================================================== */

/* Ocultar el form viejo de Muse y su título */

/* --- Sección contenedora --- */
/* IMPORTANTE: !important en display/float/clear/width para sobrescribir */
/* cualquier regla global de Muse que pueda forzar inline o ancho 0.     */
.mform {
  display: block !important;
  clear: both !important;
  float: none !important;
  width: 100vw !important;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 100px 24px;
  background-color: #FAFBFC;
  font-family: '__Open Sans_5', 'Open Sans', sans-serif;
  box-sizing: border-box;
}
.mform-inner {
  max-width: 1100px;
  margin: 0 auto;
  background-color: #FFFFFF;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.10);
  display: grid;
  grid-template-columns: 4fr 6fr;
  min-height: 600px;
}

/* --- LADO IZQUIERDO: imagen con overlay y texto motivacional --- */
.mform-aside {
  position: relative;
  background-image: url("../images/principalhero1.png");
  background-size: cover;
  background-position: center;
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #FFFFFF;
  min-height: 500px;
}
.mform-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0, 78, 104, 0.92) 0%, rgba(0, 59, 82, 0.96) 100%);
  z-index: 1;
}
.mform-aside > * {
  position: relative;
  z-index: 2;
}
.mform-aside-title {
  font-family: '__Lato_5', 'Lato', sans-serif;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 18px 0;
  color: #FFFFFF;
  letter-spacing: -0.3px;
}
.mform-aside-title em {
  font-style: normal;
  color: #6FBFE0;
}
.mform-aside-desc {
  font-family: '__Open Sans_5', 'Open Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #C9DDE7;
  margin: 0 0 30px 0;
  font-weight: 400;
}
.mform-aside-info {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.mform-aside-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #FFFFFF;
}
.mform-aside-info-item:last-child {
  margin-bottom: 0;
}
.mform-aside-info-item svg {
  width: 18px;
  height: 18px;
  fill: #6FBFE0;
  flex-shrink: 0;
}
.mform-aside-info-item a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
}
.mform-aside-info-item a:hover {
  text-decoration: underline;
}

/* --- LADO DERECHO: formulario --- */
.mform-card {
  padding: 56px 56px 50px 56px;
  display: flex;
  flex-direction: column;
  background-color: #FFFFFF;
}
.mform-title {
  font-family: '__Lato_5', 'Lato', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: #1A1A1A;
  margin: 0 0 8px 0;
  line-height: 1.2;
}
.mform-subtitle {
  font-family: '__Open Sans_5', 'Open Sans', sans-serif;
  font-size: 14px;
  color: #888888;
  margin: 0 0 36px 0;
  line-height: 1.5;
}

/* --- Form fields --- */
.mform-field {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
}
.mform-field label {
  font-family: '__Open Sans_5', 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #555555;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}
.mform-field label .req {
  color: #E5484D;
  margin-left: 2px;
}
.mform-field input,
.mform-field textarea {
  font-family: '__Open Sans_5', 'Open Sans', sans-serif;
  font-size: 15px;
  color: #1A1A1A;
  background-color: #FFFFFF;
  border: 1px solid #D8DEE4;
  border-radius: 8px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  font-weight: 400;
}
.mform-field input::placeholder,
.mform-field textarea::placeholder {
  color: #B0B7BF;
  font-weight: 400;
}
.mform-field input:focus,
.mform-field textarea:focus {
  border-color: #00698C;
  box-shadow: 0 0 0 3px rgba(0, 106, 140, 0.10);
}
.mform-field textarea {
  min-height: 110px;
  resize: vertical;
  font-family: '__Open Sans_5', 'Open Sans', sans-serif;
}

/* --- Submit button --- */
.mform-submit {
  display: block;
  width: 100%;
  background-color: #00698C;
  color: #FFFFFF;
  border: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-family: '__Lato_5', 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 12px;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 6px 18px rgba(0, 106, 140, 0.25);
}
.mform-submit:hover {
  background-color: #00557A;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 106, 140, 0.40);
}
.mform-disclaimer {
  font-family: '__Open Sans_5', 'Open Sans', sans-serif;
  font-size: 12px;
  color: #999999;
  margin: 18px 0 0 0;
  line-height: 1.5;
  text-align: center;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .mform-inner {
    grid-template-columns: 1fr;
  }
  .mform-aside {
    min-height: 320px;
    padding: 50px 36px;
  }
  .mform-aside-title {
    font-size: 26px;
  }
  .mform-card {
    padding: 44px 36px;
  }
}
@media (max-width: 580px) {
  .mform {
    padding: 60px 16px;
  }
  .mform-aside {
    padding: 40px 26px;
    min-height: 260px;
  }
  .mform-aside-title {
    font-size: 22px;
  }
  .mform-card {
    padding: 36px 26px;
  }
}

/* ================================================================== */
/* FOOTER MODERNO                                                      */
/* Reemplaza al footer viejo de Muse #pu3003 (oculto con display:none) */
/* que tenía contenido placeholder (NY address, Lorem Ipsum, etc.).    */
/* ================================================================== */

/* Ocultar el footer viejo de Muse */

/* Sección contenedora del footer nuevo */
.mfooter {
  display: block !important;
  clear: both !important;
  float: none !important;
  width: 100vw !important;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background-color: #003B52;
  color: #FFFFFF;
  font-family: '__Open Sans_5', 'Open Sans', sans-serif;
  box-sizing: border-box;
}
.mfooter-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 28px 60px 28px;
}
.mfooter-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.6fr;
  gap: 50px;
}

/* --- Col 1: Brand (logo + descripción + redes sociales) --- */
.mfooter-brand img {
  width: 84px;
  height: auto;
  margin-bottom: 18px;
  display: block;
}
.mfooter-brand h3 {
  font-family: '__Lato_5', 'Lato', sans-serif;
  font-size: 17px;
  font-weight: 900;
  color: #FFFFFF;
  margin: 0 0 14px 0;
  line-height: 1.3;
  letter-spacing: -0.2px;
}
.mfooter-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: #B8CDD7;
  margin: 0 0 24px 0;
  max-width: 340px;
}

/* --- Social icons --- */
.mfooter-social {
  display: flex;
  gap: 10px;
}
.mfooter-social a {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.mfooter-social a:hover {
  background-color: #00698C;
  transform: translateY(-3px);
}
.mfooter-social svg {
  width: 18px;
  height: 18px;
  fill: #FFFFFF;
}

/* --- Cols 2/3: títulos y listas --- */
.mfooter-col h4 {
  font-family: '__Lato_5', 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 900;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 22px 0;
  position: relative;
  padding-bottom: 12px;
}
.mfooter-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: #6FBFE0;
  border-radius: 2px;
}
.mfooter-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mfooter-col li {
  margin-bottom: 10px;
}
.mfooter-col li a {
  color: #B8CDD7;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}
.mfooter-col li a:hover {
  color: #FFFFFF;
  padding-left: 5px;
}

/* --- Col 4: Contacto con íconos --- */
.mfooter-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mfooter-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.mfooter-contact svg {
  width: 16px;
  height: 16px;
  fill: #6FBFE0;
  flex-shrink: 0;
  margin-top: 4px;
}
.mfooter-contact span,
.mfooter-contact a {
  color: #B8CDD7;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
  text-decoration: none;
  transition: color 0.2s ease;
}
.mfooter-contact a:hover {
  color: #FFFFFF;
}

/* --- Bottom bar (copyright) --- */
.mfooter-bottom {
  background-color: #002A3B;
  padding: 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.mfooter-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.mfooter-bottom p {
  margin: 0;
  font-size: 13px;
  color: #8AA8B5;
}
/* Botón Libro de Reclamaciones */
.mfooter-libro {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #FFFFFF 0%, #E8F1F5 100%);
  color: #002A3B !important;
  border-radius: 8px;
  text-decoration: none !important;
  font-family: '__Lato_5', 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 2px solid #FF0000;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.mfooter-libro:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 0, 0, 0.25);
  background: #FF0000;
  color: #FFFFFF !important;
}
.mfooter-libro svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* --- Responsive --- */
@media (max-width: 950px) {
  .mfooter-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 30px;
  }
  .mfooter-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 580px) {
  .mfooter-inner {
    padding: 60px 24px 50px 24px;
  }
  .mfooter-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .mfooter-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ================================================================== */
/* CTA MODERNO — Combina los 2 banners viejos (INSCRÍBETE + WhatsApp) */
/* en una sola sección de llamado a la acción limpia y minimalista.    */
/* ================================================================== */

/* Ocultar los banners viejos */

.mcta {
  display: block !important;
  clear: both !important;
  float: none !important;
  width: 100vw !important;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: linear-gradient(135deg, #006A8C 0%, #004E68 50%, #003B52 100%);
  padding: 100px 24px;
  text-align: center;
  font-family: '__Open Sans_5', 'Open Sans', sans-serif;
  box-sizing: border-box;
  overflow: hidden;
}
/* Decoración sutil de fondo (radial gradient) */
.mcta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 30%, rgba(111, 191, 224, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(255, 255, 255, 0.04) 0%, transparent 35%);
  pointer-events: none;
}
.mcta-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.mcta-eyebrow {
  display: inline-block;
  font-family: '__Lato_5', 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 900;
  color: #6FBFE0;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 22px;
  padding: 7px 18px;
  border: 1px solid rgba(111, 191, 224, 0.4);
  border-radius: 30px;
  background-color: rgba(111, 191, 224, 0.06);
}
.mcta-title {
  font-family: '__Lato_5', 'Lato', sans-serif;
  font-size: 42px;
  font-weight: 900;
  color: #FFFFFF;
  margin: 0 0 18px 0;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.mcta-subtitle {
  font-family: '__Open Sans_5', 'Open Sans', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #C9DDE7;
  margin: 0 auto 40px auto;
  max-width: 620px;
}
.mcta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.mcta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-family: '__Lato_5', 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.mcta-btn::after {
  content: "→";
  font-size: 16px;
  transition: transform 0.3s ease;
}
.mcta-btn:hover::after {
  transform: translateX(5px);
}
.mcta-btn-primary {
  background-color: #FF0000;
  color: #FFFFFF !important;
  border-color: #FF0000;
  box-shadow: 0 8px 22px rgba(255, 0, 0, 0.40);
}
.mcta-btn-primary:hover {
  background-color: #CC0000;
  border-color: #CC0000;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(255, 0, 0, 0.55);
}
.mcta-btn-secondary {
  background-color: transparent;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.4);
}
.mcta-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.10);
  border-color: #FFFFFF;
  transform: translateY(-3px);
}

/* Responsive del CTA */
@media (max-width: 580px) {
  .mcta {
    padding: 70px 20px;
  }
  .mcta-title {
    font-size: 28px;
  }
  .mcta-subtitle {
    font-size: 15px;
  }
  .mcta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .mcta-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* ================================================================== */
/* ALIADOS INSTITUCIONALES — grid moderno con logos                    */
/* Reemplaza al "ENLACES DE INTERÉS" viejo (oculto con display:none).  */
/* ================================================================== */

/* Ocultar la sección vieja de ENLACES DE INTERÉS */

/* ================================================================== */
/* FIXES de espacios en blanco extras                                  */
/* Muse había asignado min-height:4433px al #page (porque la página    */
/* original era de ese alto). Como ahora el contenido es más corto,    */
/* sobraba espacio en blanco al final. Lo bajamos a auto.              */
/* También ocultamos el .verticalspacer (un truco de Muse para reservar*/
/* espacio según viewport) y quitamos min-height de body/html.         */
/* ================================================================== */
html,
body {
  min-height: 0 !important;
  height: auto !important;
}
#page {
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
}
.verticalspacer {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
}
#u3544-bw {
  margin-top: 0 !important;
}

.maliados {
  display: block !important;
  clear: both !important;
  float: none !important;
  width: 100vw !important;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 90px 24px;
  background-color: #FAFBFC;
  font-family: '__Open Sans_5', 'Open Sans', sans-serif;
  box-sizing: border-box;
}
.maliados-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.maliados-header {
  text-align: center;
  margin-bottom: 56px;
}
.maliados-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  align-items: center;
  justify-items: center;
}
.maliados-logo {
  width: 100%;
  max-width: 180px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background-color: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #EDF1F4;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
}
.maliados-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 106, 140, 0.14);
  border-color: #00698C;
}
.maliados-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}

/* Responsive */
@media (max-width: 1100px) {
  .maliados-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 800px) {
  .maliados-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 520px) {
  .maliados {
    padding: 60px 18px;
  }
  .maliados-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .maliados-logo {
    height: 80px;
    padding: 10px;
  }
}

/* ================================================================== */
/* SECCIÓN: ACCESOS RÁPIDOS — 4 cards en el home                      */
/* Reemplazan a los 4 botones circulares viejos de Muse:               */
/* Noticias / Galería / Mesa de Partes / Portal de Transparencia       */
/* ================================================================== */
.modern-quickaccess {
  display: block !important;
  clear: both !important;
  float: none !important;
  width: 100% !important;
  max-width: 1200px;
  margin: -85px auto 100px auto;
  padding: 0 30px;
  box-sizing: border-box;
  position: relative;
  z-index: 5;
}
.modern-quickaccess-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}
.modern-quickaccess-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 30px 26px 28px 26px;
  background-color: #FFFFFF;
  border: 1px solid #E8EEF2;
  border-radius: 16px;
  text-decoration: none !important;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
  box-shadow: 0 14px 40px rgba(0, 55, 75, 0.09);
  cursor: pointer;
  overflow: hidden;
}
.modern-quickaccess-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00698C 0%, #FF0000 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s ease;
}
.modern-quickaccess-card::after {
  content: "";
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 106, 140, 0.06) 0%, transparent 70%);
  pointer-events: none;
  transition: transform 0.5s ease;
}
.modern-quickaccess-card:hover {
  transform: translateY(-8px);
  border-color: #D4E2EA;
  box-shadow: 0 26px 54px rgba(0, 55, 75, 0.15);
  background-color: #FFFFFF;
}
.modern-quickaccess-card:hover::before {
  transform: scaleX(1);
}
.modern-quickaccess-card:hover::after {
  transform: scale(1.4);
}

.modern-quickaccess-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #00698C 0%, #004E68 100%);
  color: #FFFFFF;
  margin-bottom: 22px;
  box-shadow: 0 8px 18px rgba(0, 106, 140, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  z-index: 2;
}
.modern-quickaccess-card:hover .modern-quickaccess-icon {
  transform: translateY(-2px) rotate(-4deg);
  box-shadow: 0 12px 24px rgba(0, 106, 140, 0.35);
}
.modern-quickaccess-icon svg {
  width: 22px;
  height: 22px;
}
.modern-quickaccess-body {
  position: relative;
  z-index: 2;
  flex: 1;
}
.modern-quickaccess-title {
  font-family: '__Lato_5', 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: #1A2A36;
  margin: 0 0 6px 0;
  line-height: 1.3;
  letter-spacing: -0.2px;
}
.modern-quickaccess-sub {
  font-family: '__Open Sans_5', 'Open Sans', sans-serif;
  font-size: 13px;
  color: #6B7A85;
  margin: 0;
  line-height: 1.55;
}
.modern-quickaccess-arrow {
  display: none !important;
}
@media (max-width: 950px) {
  .modern-quickaccess {
    margin-top: 40px;
    padding: 0 20px;
  }
  .modern-quickaccess-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (max-width: 480px) {
  .modern-quickaccess {
    margin-top: 30px;
    margin-bottom: 40px;
    padding: 0 14px;
  }
  .modern-quickaccess-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================================== */
/* SECCIÓN: NUESTRA HISTORIA — panel oscuro + stats + texto             */
/* ================================================================== */
.modern-historia {
  display: block !important;
  clear: both !important;
  float: none !important;
  width: 100% !important;
  padding: 90px 30px 40px 30px;
  box-sizing: border-box;
}
.modern-historia-wrap {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: stretch;
}

/* --- Panel izquierdo oscuro con título y stats --- */
.modern-historia-panel {
  position: relative;
  background: linear-gradient(135deg, #003B52 0%, #004E68 50%, #00698C 100%);
  border-radius: 20px;
  padding: 60px 55px 55px 55px;
  color: #FFFFFF;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 59, 82, 0.25);
}
.modern-historia-panel::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.modern-historia-panel::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}
.modern-historia-deco {
  position: absolute;
  top: 35px;
  right: 45px;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  transform: rotate(14deg);
  pointer-events: none;
}
.modern-historia-deco::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid #FF4747;
  border-radius: 6px;
}
.modern-historia-kicker {
  font-family: '__Lato_5', 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}
.modern-historia-title {
  font-family: '__Lato_5', 'Lato', sans-serif;
  font-size: 40px;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.12;
  letter-spacing: -0.8px;
  margin: 0 0 48px 0;
  position: relative;
  z-index: 2;
  max-width: 460px;
}
.modern-historia-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: #FF0000;
  margin-top: 22px;
  border-radius: 2px;
}

/* --- Stats grid dentro del panel --- */
.modern-historia-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  position: relative;
  z-index: 2;
}
.modern-historia-stat {
  padding: 20px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}
.modern-historia-stat:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}
.modern-historia-stat-num {
  font-family: '__Lato_5', 'Lato', sans-serif;
  font-size: 38px;
  font-weight: 900;
  color: #FFFFFF;
  display: block;
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #FFFFFF 0%, #B8D9E5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.modern-historia-stat-label {
  font-family: '__Open Sans_5', 'Open Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  display: block;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Texto a la derecha --- */
.modern-historia-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 0;
}
.modern-historia-text p {
  font-family: '__Open Sans_5', 'Open Sans', sans-serif;
  font-size: 16.5px;
  line-height: 1.8;
  color: #4A5B68;
  margin: 0 0 22px 0;
}
.modern-historia-text strong {
  color: #00698C;
  font-weight: 700;
}
.modern-historia-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: '__Lato_5', 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 900;
  color: #00698C;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none !important;
  margin-top: 14px;
  padding: 14px 0;
  border-bottom: 2px solid #00698C;
  align-self: flex-start;
  transition: gap 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.modern-historia-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}
.modern-historia-cta:hover {
  gap: 18px;
  color: #FF0000;
  border-color: #FF0000;
}
.modern-historia-cta:hover svg {
  transform: translateX(4px);
}

@media (max-width: 1000px) {
  .modern-historia-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .modern-historia-panel {
    padding: 50px 40px 45px 40px;
  }
  .modern-historia-title {
    font-size: 32px;
  }
}
@media (max-width: 600px) {
  .modern-historia {
    padding: 60px 18px 30px 18px;
  }
  .modern-historia-panel {
    padding: 40px 26px 36px 26px;
    border-radius: 16px;
  }
  .modern-historia-title {
    font-size: 26px;
  }
  .modern-historia-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .modern-historia-stat {
    padding: 16px 18px;
  }
  .modern-historia-stat-num {
    font-size: 30px;
  }
}

/* ================================================================== */
/* SECCIÓN: MISIÓN & VISIÓN — premium cards con número watermark       */
/* ================================================================== */
.modern-mv {
  display: block !important;
  clear: both !important;
  float: none !important;
  width: 100% !important;
  padding: 50px 30px 100px 30px;
  box-sizing: border-box;
}
.modern-mv-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.modern-mv-card {
  position: relative;
  background-color: #FFFFFF;
  border: 1px solid #E8EEF2;
  border-radius: 18px;
  padding: 50px 46px 46px 46px;
  overflow: hidden;
  box-shadow: 0 14px 44px rgba(0, 55, 75, 0.07);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.modern-mv-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00698C 0%, #FF0000 100%);
  border-radius: 18px 18px 0 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s ease;
}
.modern-mv-card:hover {
  transform: translateY(-8px);
  border-color: #D4E2EA;
  box-shadow: 0 28px 60px rgba(0, 55, 75, 0.14);
}
.modern-mv-card:hover::before {
  transform: scaleX(1);
}
.modern-mv-number {
  position: absolute;
  top: 20px;
  right: 36px;
  font-family: '__Lato_5', 'Lato', sans-serif;
  font-size: 110px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, #F0F5F8 0%, #FFFFFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -4px;
  pointer-events: none;
  transition: background 0.5s ease;
}
.modern-mv-card:hover .modern-mv-number {
  background: linear-gradient(180deg, #E3EEF3 0%, #FFFFFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.modern-mv-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
}
.modern-mv-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00698C 0%, #004E68 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 106, 140, 0.3);
  flex-shrink: 0;
}
.modern-mv-icon svg {
  width: 26px;
  height: 26px;
}
.modern-mv-label {
  font-family: '__Lato_5', 'Lato', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: #1A2A36;
  letter-spacing: -0.3px;
  text-transform: none;
}
.modern-mv-text {
  font-family: '__Open Sans_5', 'Open Sans', sans-serif;
  font-size: 15.5px;
  line-height: 1.8;
  color: #4A5B68;
  margin: 0;
  position: relative;
  z-index: 2;
}
@media (max-width: 900px) {
  .modern-mv {
    padding: 30px 20px 70px 20px;
  }
  .modern-mv-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .modern-mv-card {
    padding: 40px 30px 34px 30px;
  }
  .modern-mv-number {
    font-size: 84px;
    right: 24px;
  }
}

/* ================================================================== */
/* POPUP: EXAMEN DE ADMISIÓN 2026-I                                    */
/* Modal centrado con imagen + formulario de suscripción              */
/* ================================================================== */
.admision-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.admision-popup.is-open {
  display: flex;
  animation: admPopupFade 0.3s ease-out;
}
@keyframes admPopupFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
body.admision-popup-lock {
  overflow: hidden;
}
.admision-popup-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 15, 30, 0.72);
  backdrop-filter: blur(6px);
  cursor: pointer;
  z-index: 1;
}
.admision-popup-card {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  animation: admPopupPop 0.45s cubic-bezier(0.2, 1, 0.3, 1);
}
.admision-popup-card > .admision-popup-image {
  border-radius: 20px 0 0 20px;
  overflow: hidden;
}
.admision-popup-card > .admision-popup-content {
  border-radius: 0 20px 20px 0;
  overflow: hidden;
}
@keyframes admPopupPop {
  from { transform: scale(0.92) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

/* --- Botón cerrar (flotante arriba-derecha, bien grande y visible) --- */
.admision-popup-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid #FF0000;
  color: #FF0000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  padding: 0;
}
.admision-popup-close:hover,
.admision-popup-close:focus {
  background: #FF0000;
  color: #FFFFFF;
  transform: scale(1.08);
  outline: none;
}
.admision-popup-close svg {
  width: 24px;
  height: 24px;
  pointer-events: none;
}

/* --- Lado izquierdo: imagen --- */
.admision-popup-image {
  flex: 1 1 45%;
  position: relative;
  background: linear-gradient(135deg, #003B52 0%, #004E68 50%, #00698C 100%);
  overflow: hidden;
  min-height: 400px;
}
.admision-popup-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 59, 82, 0.4) 0%, transparent 60%);
  pointer-events: none;
}
.admision-popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Lado derecho: contenido --- */
.admision-popup-content {
  flex: 1 1 55%;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}
.admision-popup-kicker {
  display: inline-block;
  font-family: '__Lato_5', 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 900;
  color: #FFFFFF;
  background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(255, 0, 0, 0.3);
  align-self: flex-start;
}
.admision-popup-title {
  font-family: '__Lato_5', 'Lato', sans-serif;
  font-size: 30px;
  font-weight: 900;
  color: #1A2A36;
  line-height: 1.15;
  letter-spacing: -0.6px;
  margin: 0 0 18px 0;
}
.admision-popup-dates {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #F4F8FB;
  border: 1px solid #D4E2EA;
  border-radius: 12px;
  color: #00698C;
  margin-bottom: 20px;
  align-self: flex-start;
}
.admision-popup-dates svg {
  width: 20px;
  height: 20px;
}
.admision-popup-dates strong {
  font-family: '__Lato_5', 'Lato', sans-serif;
  font-size: 15px;
  font-weight: 900;
}
.admision-popup-desc {
  font-family: '__Open Sans_5', 'Open Sans', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: #4A5B68;
  margin: 0 0 24px 0;
}

/* --- Formulario --- */
.admision-popup-form {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.admision-popup-input {
  flex: 1;
  padding: 14px 18px;
  border: 1.5px solid #D4E2EA;
  border-radius: 12px;
  font-family: '__Open Sans_5', 'Open Sans', sans-serif;
  font-size: 14px;
  color: #1A2A36;
  background: #FFFFFF;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  min-width: 0;
}
.admision-popup-input:focus {
  border-color: #00698C;
  box-shadow: 0 0 0 4px rgba(0, 106, 140, 0.1);
}
.admision-popup-input::placeholder {
  color: #9AABB5;
}
.admision-popup-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-family: '__Lato_5', 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}
.admision-popup-submit svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.admision-popup-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(255, 0, 0, 0.4);
}
.admision-popup-submit:hover svg {
  transform: translateX(3px);
  transition: transform 0.3s ease;
}

/* --- Mensaje de éxito --- */
.admision-popup-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  background: linear-gradient(135deg, #E8F5E9 0%, #D7EDDA 100%);
  border: 1px solid #A5D6A7;
  border-radius: 12px;
  color: #1B5E20;
  font-family: '__Lato_5', 'Lato', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}
.admision-popup-success.is-visible {
  display: flex;
  animation: admPopupSuccessIn 0.4s ease-out;
}
@keyframes admPopupSuccessIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.admision-popup-success svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #2E7D32;
}

.admision-popup-note {
  font-family: '__Open Sans_5', 'Open Sans', sans-serif;
  font-size: 11.5px;
  color: #8898A4;
  margin: 0;
  line-height: 1.5;
}

/* --- Responsive --- */
@media (max-width: 820px) {
  .admision-popup-card {
    flex-direction: column;
    max-height: 92vh;
  }
  .admision-popup-image {
    flex: none;
    min-height: 180px;
    max-height: 200px;
  }
  .admision-popup-content {
    padding: 32px 28px;
  }
  .admision-popup-title {
    font-size: 24px;
  }
}
@media (max-width: 520px) {
  .admision-popup-form {
    flex-direction: column;
  }
  .admision-popup-submit {
    justify-content: center;
  }
  .admision-popup-image {
    min-height: 140px;
    max-height: 160px;
  }
}
