/* =====================================================
   RESET
===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* =====================================================
   VARIABLES
===================================================== */
:root {
  --azul: #0b4f9c;
  --azul-hover: #08376d;
  --naranja: #f39c12;
  --gris-fondo: #f8fafc;
  --texto: #1f2937;
  --gris: #666666;
  --blanco: #ffffff;
}
/* =====================================================
   CONFIGURACIÓN GENERAL
===================================================== */
body {
  font-family: "Nunito Sans", sans-serif;
  background: var(--gris-fondo);
  color: var(--texto);
  line-height: 1.6;
}
.contenedor {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}
html {
  scroll-behavior: smooth;
}
/* =====================================================
   HEADER
===================================================== */
header {
  background: linear-gradient(135deg, #ffffff 0%, #eef5ff 100%);
  padding: 35px 70px;
  border-bottom: 4px solid var(--azul);
}
.header-contenido {
  max-width: 1400px;
  margin: auto;

  display: flex;
  align-items: center;
}

.logo img {
  width: 160px;
  transition: 0.3s;
}
.logo img:hover {
  transform: scale(1.05);
}
.titulo h1 {
  font-size: 2rem;
  font-weight: 500;
}
.titulo h2 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--azul);
}
.ubicacion {
  color: var(--gris);
  font-size: 1rem;
}
.titulo {
  margin-left: 35px;
}

.acceso-portal {
  margin-left: auto;
}

.btn-portal {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 14px 24px;

  background: var(--azul);

  color: #fff;

  text-decoration: none;

  border-radius: 8px;

  font-weight: 700;

  transition: 0.25s;
}

.btn-portal:hover {
  background: var(--naranja);
}

/* =====================================================
   HERO
===================================================== */
.hero {
  background:
    linear-gradient(rgba(11, 79, 156, 0.82), rgba(11, 79, 156, 0.82)),
    url("../img/frente-detalle.jpeg");
  background-size: cover;
  background-position: center 45%;
  background-repeat: no-repeat;
  min-height: 583px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-contenido {
  text-align: center;
  color: white;
}
.hero h2 {
  font-size: 2.6rem;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 35px;
}
.btn-principal {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 230px;
  height: 55px;
  background: var(--naranja);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  transition: 0.25s;
}
.btn-principal:hover {
  background: #d98208;
}
/* =====================================================
   COMPONENTE: ENCABEZADO DE SECCIÓN
===================================================== */
.encabezado-seccion {
  max-width: 1400px;
  margin: 0 auto 70px;
  text-align: center;
}
.encabezado-seccion span {
  display: inline-block;
  color: var(--naranja);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.encabezado-seccion h2 {
  color: var(--azul);
  font-size: 2.35rem;
  line-height: 1.25;
  margin-bottom: 20px;
}
.encabezado-seccion p {
  color: #5b6572;
  font-size: 1.08rem;
  line-height: 1.8;
}
/* =====================================================
   PRESENTACIÓN
===================================================== */
.presentacion {
  background: #ffffff;
  padding: 90px 20px;
}
.presentacion h2 {
  text-align: center;
  color: var(--azul);
  font-size: 2.4rem;
  margin-bottom: 60px;
}
.destacados {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.destacado {
  text-align: center;
}
.destacado i {
  font-size: 3.5rem;
  color: var(--azul);
  margin-bottom: 18px;
}
.destacado h3 {
  font-size: 1.4rem;
  color: var(--azul);
  margin-bottom: 15px;
}
.destacado p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--texto);
}
/* =====================================================
   ACCESOS
===================================================== */
.accesos {
  background: #eef5ff;
  padding: 170px 20px 220px;
}
.accesos h2 {
  text-align: center;
  color: var(--azul);
  font-size: 2.4rem;
  margin-bottom: 55px;
}

.accesos .contenedor {
  width: 96%;
  max-width: 1500px;
}

.cards {
  display: grid;

  grid-template-columns: repeat(6, minmax(0, 1fr));

  gap: 20px;
}
.card {
  background: white;
  border-radius: 18px;
  padding: 35px 22px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.14);
}
.card i {
  font-size: 4rem;
  color: var(--azul);
  margin-bottom: 12px;
  line-height: 1;
}
.card h3 {
  font-size: 1.45rem;
  color: var(--azul);
  margin-bottom: 18px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card p {
  flex: 1;
  font-size: 1rem;
  line-height: 1.8;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 28px;
}
.card a {
  width: 190px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--azul);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  transition: 0.25s;
}
.card a:hover {
  background: var(--naranja);
}
/* ======================================================
   FOOTER
====================================================== */
footer {
  background: #08376d;
  color: #fff;
  margin-top: 0;
}

.footer-contenedor {
  max-width: 1200px;
  margin: auto;
  padding: 45px 30px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}

/* Títulos */
.footer-col h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.footer-col h4 {
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffd54a;
  font-size: 1.15rem;
}

/* Párrafos */
.footer-col p {
  line-height: 1.8;
  color: #e6eaf2;
  font-size: 0.96rem;
  margin-bottom: 16px;
}

/* Lista de enlaces */
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: #e6eaf2;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-col a:hover {
  color: #ffd54a;
  transform: translateX(6px);
}

/* Logo */
.footer-logo {
  width: 75px;
  margin-bottom: 15px;
}

/* Íconos */
.footer-col i {
  width: 22px;
  color: #ffd54a;
  margin-right: 10px;
  text-align: center;
}

/* Copyright */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  padding: 18px;
  font-size: 0.9rem;
  color: #d8dde8;
}
/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .footer-contenedor {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .footer-contenedor {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-logo {
    margin: auto auto 20px;
  }
}
/* =====================================================
   HISTORIA
===================================================== */
.historia {
  background: #fff;
  padding: 40px 40px 70px;
}
.historia-contenido {
  max-width: 1400px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}
.historia-imagen img {
  width: 100%;
  display: block;
  border-radius: 16px;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18);
  object-fit: cover;
}
.historia-texto > p {
  margin-bottom: 18px;
  line-height: 1.9;
  color: #444;
  text-align: left;
}
/* =====================================================
   BOTÓN VOLVER ARRIBA
===================================================== */
html {
  scroll-behavior: smooth;
}
.btn-arriba {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--azul);
  color: #fff;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.6rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: 0.3s;
  z-index: 999;
}
.btn-arriba:hover {
  background: var(--naranja);
  transform: translateY(-4px);
}
.btn-arriba.mostrar {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* =====================================================
   OFERTA ACADÉMICA
===================================================== */
.oferta {
  padding: 90px 0;
  background: #f7f9fc;
}
.oferta h2 {
  text-align: center;
  font-size: 2.3rem;
  color: #08376d;
  margin-bottom: 15px;
}
/* ---------- Introducción ---------- */
.oferta-intro {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  margin-bottom: 80px;
}
.oferta-texto h3 {
  color: #08376d;
  font-size: 1.7rem;
  margin-bottom: 25px;
}
.oferta-texto p {
  margin-bottom: 20px;
  line-height: 1.9;
  color: #505a66;
}
.oferta-imagen img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}
/* ---------- Títulos ---------- */
.titulo-bloque {
  text-align: center;
  color: #08376d;
  font-size: 1.9rem;
  margin-bottom: 40px;
}
/* ---------- Perfil ---------- */
.perfil-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 90px;
}
.perfil-item {
  background: #fff;
  border-radius: 18px;
  padding: 35px 30px;
  text-align: center;
  transition: 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.perfil-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}
.perfil-item i {
  font-size: 2.8rem;
  color: #0b4f9c;
  margin-bottom: 22px;
}
.perfil-item h4 {
  color: #08376d;
  margin-bottom: 15px;
  font-size: 1.2rem;
}
.perfil-item p {
  color: #616a75;
  line-height: 1.8;
}
/* ---------- Campo laboral ---------- */
.campo-laboral {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 90px;
}
.campo-item {
  background: #08376d;
  color: #fff;
  padding: 22px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: 0.3s;
}
.campo-item:hover {
  background: #0b4f9c;
  transform: translateY(-5px);
}
.campo-item i {
  font-size: 1.8rem;
  color: #ffd54a;
}
.campo-item span {
  font-weight: 600;
}
/* ---------- Destacados ---------- */
.oferta-destacados {
  list-style: none;
  margin: 30px 0;
}
.oferta-destacados li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #4b5563;
  font-size: 1.05rem;
  font-weight: 600;
}
.oferta-destacados i {
  color: #0b4f9c;
  font-size: 1rem;
}
/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .oferta-intro {
    grid-template-columns: 1fr;
  }
  .perfil-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .campo-laboral {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .perfil-grid {
    grid-template-columns: 1fr;
  }
  .campo-laboral {
    grid-template-columns: 1fr;
  }
}
/* =====================================================
   PLAN DE ESTUDIOS
===================================================== */

#plan-estudios {
  padding-top: 20px;
}

.plan-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 30px;

  margin-top: 50px;
}

.anio {
  background: #fff;

  border-radius: 18px;

  overflow: hidden;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);

  transition: 0.3s;
}

.anio:hover {
  transform: translateY(-8px);

  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.anio-titulo {
  background: var(--azul);

  color: #fff;

  text-align: center;

  padding: 18px;

  font-size: 1.25rem;

  font-weight: 800;
}

.anio ul {
  list-style: none;

  padding: 25px 28px;
}

.anio li {
  padding: 10px 0;

  border-bottom: 1px solid #e8edf3;

  color: #4b5563;

  font-size: 0.98rem;
}

.anio li:last-child {
  border-bottom: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 992px) {
  .plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }
}
.submaterias {
  list-style: none;

  margin-top: 10px;
  margin-left: 18px;
}

.submaterias li {
  border: none;

  padding: 4px 0;

  font-size: 0.92rem;

  color: #6b7280;

  position: relative;
}

.submaterias li::before {
  content: "•";

  color: var(--naranja);

  margin-right: 8px;
}
/* =====================================================
   CIERRE DEL PLAN DE ESTUDIOS
===================================================== */

.plan-final {
  margin-top: 70px;

  background: #fff;

  border-radius: 20px;

  padding: 40px 45px;

  display: flex;

  align-items: center;

  gap: 35px;

  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.plan-final-icono {
  width: 90px;
  height: 90px;

  border-radius: 50%;

  background: var(--azul);

  display: flex;

  justify-content: center;
  align-items: center;

  flex-shrink: 0;
}

.plan-final-icono i {
  font-size: 2.5rem;

  color: #fff;
}

.plan-final-texto span {
  display: inline-block;

  color: var(--naranja);

  font-size: 0.9rem;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: 1.5px;

  margin-bottom: 8px;
}

.plan-final-texto h3 {
  color: var(--azul);

  font-size: 1.8rem;

  margin-bottom: 15px;
}

.plan-final-texto p {
  color: #5b6572;

  line-height: 1.9;
}

@media (max-width: 768px) {
  .plan-final {
    flex-direction: column;

    text-align: center;

    padding: 35px 30px;
  }
}
/* =====================================================
   GALERÍA INSTITUCIONAL
===================================================== */

.galeria {
  padding: 90px 0;

  background: #ffffff;
}

#galeria {
  scroll-margin-top: 40px;
}

.galeria-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 25px;
}

.foto {
  position: relative;

  overflow: hidden;

  border-radius: 18px;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);

  cursor: pointer;
}

.foto img {
  width: 100%;

  height: 280px;

  object-fit: cover;

  display: block;

  transition: transform 0.45s ease;
}

.foto::after {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0.15),
    transparent
  );
}

.foto figcaption {
  position: absolute;

  left: 25px;
  bottom: 20px;

  color: #fff;

  font-size: 1.1rem;

  font-weight: 700;

  z-index: 2;
}

.foto:hover img {
  transform: scale(1.08);
}

/* ===========================
   Responsive
=========================== */

@media (max-width: 992px) {
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .galeria-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   VISOR DE GALERÍA INSTITUCIONAL
===================================================== */

body.sin-scroll {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 35px 70px;

  background: rgba(0, 0, 0, 0.92);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.lightbox.activo {
  opacity: 1;
  visibility: visible;
}

.visor-galeria {
  width: 100%;
  max-width: 1250px;
  max-height: 92vh;

  display: flex;
  flex-direction: column;
  gap: 18px;
}

.visor-encabezado {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  color: #ffffff;
}

.visor-encabezado h3 {
  margin: 0;

  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 800;
}

#contadorLightbox {
  flex-shrink: 0;

  padding: 7px 14px;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;

  font-size: 0.95rem;
  font-weight: 700;
}

.visor-imagen-contenedor {
  position: relative;

  min-height: 70vh;

  display: flex;
  align-items: center;
  justify-content: center;
}

#imagenLightbox {
  display: block;

  max-width: 100%;
  max-height: 70vh;

  object-fit: contain;

  border-radius: 12px;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cerrar {
  position: absolute;
  top: 20px;
  right: 30px;
  z-index: 3;

  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: none;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;

  font-family: inherit;
  font-size: 2.5rem;
  line-height: 1;

  cursor: pointer;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.cerrar:hover {
  background: rgba(255, 255, 255, 0.24);
  color: var(--naranja);

  transform: scale(1.06);
}

.visor-flecha {
  position: absolute;
  top: 50%;
  z-index: 2;

  width: 54px;
  height: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: none;
  border-radius: 50%;

  background: rgba(0, 0, 0, 0.58);
  color: #ffffff;

  font-size: 1.7rem;

  cursor: pointer;

  transform: translateY(-50%);

  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.visor-anterior {
  left: 18px;
}

.visor-siguiente {
  right: 18px;
}

.visor-flecha:hover:not(:disabled) {
  background: var(--naranja);
}

.visor-flecha:disabled {
  opacity: 0.25;
  cursor: default;
}

@media (max-width: 700px) {
  .lightbox {
    padding: 80px 18px 25px;
  }

  .visor-encabezado {
    align-items: flex-start;
  }

  .visor-encabezado h3 {
    font-size: 1.1rem;
  }

  .visor-imagen-contenedor {
    min-height: 60vh;
  }

  #imagenLightbox {
    max-height: 60vh;
  }

  .visor-flecha {
    width: 44px;
    height: 44px;

    font-size: 1.35rem;
  }

  .visor-anterior {
    left: 8px;
  }

  .visor-siguiente {
    right: 8px;
  }

  .cerrar {
    top: 15px;
    right: 20px;

    width: 46px;
    height: 46px;

    font-size: 2.5rem;
  }
}
/* =====================================================
   NOVEDADES
===================================================== */

.novedades {
  padding: 90px 0;
  background: #f7f9fc;
}

.novedades-proximamente {
  max-width: 760px;
  margin: 0 auto;
  padding: 55px 40px;
  background: #ffffff;
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.novedades-proximamente i {
  font-size: 3.2rem;
  color: var(--azul);
  margin-bottom: 22px;
}

.novedades-proximamente h3 {
  color: var(--azul);
  font-size: 2rem;
  margin-bottom: 14px;
}

.novedades-proximamente p {
  color: #5b6572;
  font-size: 1.05rem;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .novedades {
    padding: 70px 0;
  }

  .novedades-proximamente {
    padding: 40px 24px;
  }

  .novedades-proximamente h3 {
    font-size: 1.65rem;
  }

  .novedades-proximamente p {
    font-size: 0.98rem;
  }
}
/* =====================================================
   CONTACTO
===================================================== */
.contacto {
  padding: 90px 0;

  background: #f7f9fc;
}
.contacto-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 25px;

  margin-top: 50px;
}
.contacto-card {
  background: #fff;

  border-radius: 18px;

  padding: 30px 25px;

  text-align: center;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);

  transition: 0.3s;
}
.contacto-card i {
  font-size: 2.7rem;

  color: var(--azul);

  margin-bottom: 18px;
}
.contacto-card h3 {
  color: var(--azul);

  font-size: 1.3rem;

  margin-bottom: 15px;
}
.contacto-card p {
  color: #5b6572;

  line-height: 1.8;

  font-size: 0.98rem;
}
.mapa {
  margin-top: 60px;
}
.mapa h3 {
  text-align: center;

  color: var(--azul);

  font-size: 1.8rem;

  margin-bottom: 25px;
}
.mapa iframe {
  width: 100%;

  height: 450px;

  border: none;

  border-radius: 18px;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
.contacto-card:hover {
  transform: translateY(-8px);

  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}
@media (max-width: 992px) {
  .contacto-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .contacto-grid {
    grid-template-columns: 1fr;
  }
}
.contacto-banner {
  margin: 50px 0 60px;

  background: var(--azul);

  overflow: hidden;

  padding: 18px 0;
}
.contacto-track {
  display: flex;

  width: max-content;

  animation: banner 35s linear infinite;
}
.dato-contacto {
  display: flex;

  align-items: center;

  color: #fff;

  font-weight: 700;

  white-space: nowrap;

  padding: 0 35px;

  position: relative;
}
.dato-contacto i {
  color: var(--naranja);

  font-size: 1.2rem;

  margin-right: 12px;
}
.dato-contacto::after {
  content: "•";

  color: rgba(255, 255, 255, 0.45);

  margin-left: 35px;

  font-size: 1.3rem;
}
@keyframes banner {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}
.contacto-banner:hover .contacto-track {
  animation-play-state: paused;
}
/* =====================================================
   RESPONSIVE GENERAL - CELULARES
===================================================== */

@media (max-width: 768px) {
  /* ---------- CONTENEDOR GENERAL ---------- */

  .contenedor {
    width: 92%;
  }

  /* ---------- HEADER ---------- */

  header {
    padding: 24px 20px;
  }

  .header-contenido {
    flex-direction: column;
    text-align: center;
  }

  .logo img {
    width: 120px;
    margin-bottom: 16px;
  }

  .titulo {
    margin-left: 0;
  }

  .titulo h1 {
    font-size: 1.15rem;
    line-height: 1.35;
  }

  .titulo h2 {
    font-size: 2rem;
    line-height: 1.15;
    margin-top: 5px;
  }

  .ubicacion {
    font-size: 0.95rem;
    margin-top: 8px;
  }

  .acceso-portal {
    margin: 22px 0 0;
  }

  .btn-portal {
    justify-content: center;
    min-width: 230px;
  }

  /* ---------- HERO ---------- */

  .hero {
    min-height: 440px;
    padding: 55px 20px;
  }

  .hero h2 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 30px;
  }

  .btn-principal {
    width: 100%;
    max-width: 280px;
  }

  /* ---------- ENCABEZADOS DE SECCIÓN ---------- */

  .encabezado-seccion {
    margin-bottom: 45px;
  }

  .encabezado-seccion span {
    font-size: 0.75rem;
    letter-spacing: 1.4px;
  }

  .encabezado-seccion h2 {
    font-size: 1.85rem;
  }

  .encabezado-seccion p {
    font-size: 1rem;
    line-height: 1.7;
  }

  /* ---------- ACCESOS PRINCIPALES ---------- */

  .accesos {
    padding: 80px 0;
  }

  .accesos h2 {
    font-size: 2rem;
    margin-bottom: 35px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .card {
    min-height: auto;
    padding: 30px 22px;
  }

  .card i {
    font-size: 3.3rem;
  }

  .card h3 {
    min-height: auto;
    font-size: 1.35rem;
    margin-bottom: 12px;
  }

  .card p {
    margin-bottom: 24px;
  }

  .card a {
    width: 100%;
    max-width: 250px;
  }

  /* ---------- HISTORIA ---------- */

  .historia {
    padding: 65px 0;
  }

  .historia-contenido {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .historia-imagen img {
    border-radius: 14px;
  }

  .historia-texto > p {
    font-size: 1rem;
    line-height: 1.8;
    text-align: left;
  }

  .destacados {
    grid-template-columns: 1fr;
    gap: 35px;
    margin-top: 55px;
  }

  .destacado i {
    font-size: 3rem;
  }

  /* ---------- OFERTA ACADÉMICA ---------- */

  .oferta {
    padding: 70px 0;
  }

  .oferta h2 {
    font-size: 1.9rem;
  }

  .oferta-intro {
    gap: 35px;
    margin-bottom: 60px;
  }

  .oferta-texto h3 {
    font-size: 1.55rem;
  }

  .oferta-texto p {
    font-size: 1rem;
    line-height: 1.8;
  }

  .oferta-destacados li {
    align-items: flex-start;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .oferta-destacados i {
    margin-top: 5px;
  }

  .titulo-bloque {
    font-size: 1.65rem;
    line-height: 1.3;
    margin-bottom: 30px;
  }

  .perfil-grid {
    gap: 20px;
    margin-bottom: 65px;
  }

  .perfil-item {
    padding: 30px 22px;
  }

  .campo-laboral {
    gap: 16px;
    margin-bottom: 65px;
  }

  .campo-item {
    padding: 20px;
  }

  /* ---------- PLAN DE ESTUDIOS ---------- */

  #plan-estudios {
    padding-top: 10px;
  }

  .plan-grid {
    gap: 20px;
    margin-top: 35px;
  }

  .anio ul {
    padding: 22px;
  }

  .anio li {
    font-size: 0.95rem;
  }

  .plan-final {
    margin-top: 45px;
    gap: 22px;
  }

  .plan-final-icono {
    width: 78px;
    height: 78px;
  }

  .plan-final-icono i {
    font-size: 2rem;
  }

  .plan-final-texto h3 {
    font-size: 1.45rem;
    line-height: 1.3;
  }

  .plan-final-texto p {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  /* ---------- GALERÍA ---------- */

  .galeria {
    padding: 70px 0;
  }

  .galeria-grid {
    gap: 18px;
  }

  .foto img {
    height: 250px;
  }

  .foto figcaption {
    left: 18px;
    bottom: 16px;
    font-size: 1rem;
  }

  /* ---------- CONTACTO ---------- */

  .contacto {
    padding: 70px 0;
  }

  .contacto-banner {
    margin: 35px 0 45px;
    padding: 15px 0;
  }

  .dato-contacto {
    padding: 0 24px;
    font-size: 0.92rem;
  }

  .dato-contacto::after {
    margin-left: 24px;
  }

  .mapa {
    margin-top: 45px;
  }

  .mapa h3 {
    font-size: 1.55rem;
  }

  .mapa iframe {
    height: 320px;
    border-radius: 14px;
  }

  /* ---------- FOOTER ---------- */

  .footer-contenedor {
    padding: 45px 24px;
    gap: 32px;
  }

  .footer-col h3 {
    font-size: 1.3rem;
  }

  .footer-col h4 {
    font-size: 1rem;
  }

  .footer-bottom {
    padding: 18px 20px;
    font-size: 0.8rem;
    line-height: 1.5;
  }

  /* ---------- BOTÓN SUBIR ---------- */

  .btn-arriba {
    right: 18px;
    bottom: 18px;
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  /* ---------- LIGHTBOX ---------- */

  .cerrar {
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
  }
}

/* =====================================================
   CELULARES PEQUEÑOS
===================================================== */

@media (max-width: 420px) {
  .titulo h1 {
    font-size: 1.05rem;
  }

  .titulo h2 {
    font-size: 1.75rem;
  }

  .hero h2 {
    font-size: 1.75rem;
  }

  .encabezado-seccion h2 {
    font-size: 1.65rem;
  }

  .oferta h2 {
    font-size: 1.7rem;
  }

  .plan-final {
    padding: 28px 20px;
  }

  .mapa iframe {
    height: 280px;
  }
}
/* =====================================================
   AJUSTE TABLET - ENCABEZADO SITIO PÚBLICO
===================================================== */

@media (min-width: 769px) and (max-width: 1100px) {
  header {
    padding: 26px 34px;
  }

  .header-contenido {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px 24px;
    align-items: center;
  }

  .logo img {
    width: 115px;
  }

  .titulo {
    margin-left: 0;
  }

  .titulo h1 {
    font-size: 1.45rem;
  }

  .titulo h2 {
    font-size: 2.25rem;
  }

  .ubicacion {
    font-size: 0.95rem;
  }

  .acceso-portal {
    grid-column: 1 / -1;
    margin-left: 0;
    width: 100%;
  }

  .btn-portal {
    width: 100%;
    justify-content: center;
  }
}
/* =====================================================
   AJUSTES TABLET - SECCIONES INTERNAS
===================================================== */

@media (min-width: 769px) and (max-width: 1100px) {
  .contenedor {
    width: min(92%, 980px);
  }

  .encabezado-seccion {
    margin-bottom: 48px;
  }

  .encabezado-seccion h2 {
    font-size: 2.05rem;
  }

  /* Accesos principales */
  .accesos {
    padding: 110px 24px 140px;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .card {
    min-height: 320px;
    padding: 28px 18px;
  }

  .card h3 {
    font-size: 1.22rem;
    min-height: 54px;
  }

  .card p {
    font-size: 0.94rem;
  }

  .card a {
    width: 100%;
    max-width: 190px;
  }

  /* Historia */
  .historia {
    padding: 55px 28px 70px;
  }

  .historia-contenido {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .historia-imagen {
    max-width: 760px;
    margin: 0 auto;
  }

  .historia-texto {
    max-width: 850px;
    margin: 0 auto;
  }

  /* Presentación */
  .presentacion {
    padding: 75px 28px;
  }

  .presentacion h2 {
    font-size: 2.05rem;
    margin-bottom: 45px;
  }

  .destacados {
    grid-template-columns: repeat(2, 1fr);
    gap: 38px 28px;
  }

  /* Oferta académica */
  .oferta {
    padding: 75px 28px;
  }

  .oferta-intro {
    grid-template-columns: 1fr;
    gap: 38px;
    margin-bottom: 60px;
  }

  .perfil-grid,
  .campo-laboral {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Plan de estudios */
  .plan-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .plan-final {
    padding: 34px;
  }

  /* Galería */
  .galeria {
    padding: 75px 28px;
  }

  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .foto img {
    height: 240px;
  }

  /* Contacto */
  .contacto {
    padding: 75px 28px;
  }

  .contacto-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mapa iframe {
    height: 380px;
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .card {
    min-height: 290px;
  }
}
/* =====================================================
   AJUSTE TABLET - FOOTER
===================================================== */

@media (min-width: 769px) and (max-width: 1100px) {
  .footer-contenedor {
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 24px;
    padding: 42px 28px;
  }

  .footer-col h3 {
    font-size: 1.2rem;
  }

  .footer-col h4 {
    font-size: 1rem;
  }

  .footer-col p,
  .footer-col li,
  .footer-col a {
    font-size: 0.9rem;
  }
}
/* =====================================================
   AJUSTE CELULAR - FOOTER COMPACTO
===================================================== */

@media (max-width: 768px) {
  .footer-contenedor {
    gap: 26px;
    padding: 34px 24px 28px;
  }

  /* Oculta la columna central de enlaces en celular */
  .footer-col:nth-child(2) {
    display: none;
  }

  .footer-col h3 {
    font-size: 1.08rem;
    margin-bottom: 10px;
  }

  .footer-col h4 {
    font-size: 0.92rem;
    margin-bottom: 8px;
  }

  .footer-col p,
  .footer-col li,
  .footer-col a {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .footer-col ul {
    gap: 6px;
  }
}
/* =====================================================
   NOVEDADES - NOTICIA MESAS DE EXÁMENES
===================================================== */

.novedad-card {
  max-width: 950px;
  margin: 40px auto 0;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(15, 45, 75, 0.12);
  border: 1px solid rgba(32, 84, 134, 0.12);
}

.novedad-importante {
  border-top: 6px solid #f1a208;
}

.novedad-encabezado {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #123e67, #1f6393);
  color: #ffffff;
}

.novedad-icono {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 32px;
}

.novedad-etiqueta {
  display: inline-block;
  margin-bottom: 6px;
  padding: 5px 12px;
  border-radius: 50px;
  background: #f1a208;
  color: #17324d;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.novedad-encabezado h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.7rem;
  line-height: 1.25;
}

.novedad-fechas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 32px 0;
  padding: 20px 24px;
  border-radius: 14px;
  background: #fff5dd;
  border-left: 5px solid #f1a208;
}

.novedad-fechas > i {
  flex-shrink: 0;
  font-size: 32px;
  color: #d88700;
}

.novedad-fechas div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.novedad-fechas span {
  color: #6d5a32;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.novedad-fechas strong {
  color: #17324d;
  font-size: 1.25rem;
}

.novedad-contenido {
  padding: 30px 32px 34px;
}

.novedad-contenido > p {
  margin: 0 0 20px;
  color: #3c4c5c;
  font-size: 1rem;
  line-height: 1.75;
}

.novedad-aviso {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 28px 0;
  padding: 22px;
  border-radius: 14px;
  background: #edf6fc;
  border: 1px solid #c9e3f4;
}

.novedad-aviso > i {
  flex-shrink: 0;
  margin-top: 2px;
  color: #1f6393;
  font-size: 25px;
}

.novedad-aviso h4 {
  margin: 0 0 8px;
  color: #173f64;
  font-size: 1.1rem;
}

.novedad-aviso p {
  margin: 0;
  color: #455b6f;
  line-height: 1.65;
}

.novedad-subtitulo {
  margin-bottom: 14px !important;
  color: #17324d !important;
  font-weight: 800;
}

.novedad-requisitos {
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.novedad-requisitos li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 17px;
  border-radius: 12px;
  background: #f7f9fb;
  border: 1px solid #e3e9ee;
  color: #354b5f;
  line-height: 1.5;
}

.novedad-requisitos li i {
  flex-shrink: 0;
  width: 22px;
  color: #1f6393;
  font-size: 18px;
  text-align: center;
}

.novedad-advertencia {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin: 0 0 26px;
  padding: 18px 20px;
  border-radius: 12px;
  background: #fff2f0;
  border: 1px solid #f2c8c2;
}

.novedad-advertencia > i {
  flex-shrink: 0;
  margin-top: 3px;
  color: #c84736;
  font-size: 22px;
}

.novedad-advertencia p {
  margin: 0;
  color: #67423d;
  line-height: 1.6;
}

.btn-novedad-correo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  min-height: 50px;
  margin: 28px auto 14px;
  padding: 13px 24px;
  border-radius: 10px;
  background: #1f6393;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(31, 99, 147, 0.22);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-novedad-correo:hover {
  background: #174c73;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 11px 24px rgba(31, 99, 147, 0.3);
}

.novedad-correo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 !important;
  color: #607283 !important;
  font-size: 0.9rem !important;
  text-align: center;
  overflow-wrap: anywhere;
}

/* =====================================================
   NOVEDADES - RESPONSIVE
===================================================== */

@media (max-width: 768px) {
  .novedad-card {
    margin-top: 28px;
    border-radius: 16px;
  }

  .novedad-encabezado {
    align-items: flex-start;
    gap: 14px;
    padding: 22px 20px;
  }

  .novedad-icono {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    font-size: 25px;
  }

  .novedad-encabezado h3 {
    font-size: 1.3rem;
  }

  .novedad-etiqueta {
    font-size: 0.68rem;
  }

  .novedad-fechas {
    align-items: flex-start;
    margin: 20px 18px 0;
    padding: 17px;
  }

  .novedad-fechas > i {
    font-size: 27px;
  }

  .novedad-fechas strong {
    font-size: 1.08rem;
  }

  .novedad-contenido {
    padding: 24px 18px 28px;
  }

  .novedad-aviso {
    padding: 18px 16px;
  }

  .novedad-requisitos li {
    align-items: flex-start;
  }

  .novedad-advertencia {
    padding: 17px 15px;
  }

  .btn-novedad-correo {
    width: 100%;
    padding: 13px 16px;
  }
}

@media (max-width: 480px) {
  .novedad-encabezado {
    flex-direction: column;
  }

  .novedad-icono {
    width: 50px;
    height: 50px;
  }

  .novedad-fechas {
    gap: 12px;
  }

  .novedad-fechas span {
    font-size: 0.76rem;
  }

  .novedad-fechas strong {
    font-size: 1rem;
  }

  .novedad-contenido > p {
    font-size: 0.95rem;
  }

  .novedad-correo {
    font-size: 0.82rem !important;
  }
}
/* =====================================================
   PLAN DE ESTUDIOS - TÍTULO DESTACADO
===================================================== */

.plan-final-destacado {
  position: relative;
  margin: 10px auto 55px;
  padding: 46px 52px;

  background:
    linear-gradient(135deg, rgba(11, 79, 156, 0.96), rgba(8, 55, 109, 0.96)),
    #08376d;

  color: #ffffff;
  border-radius: 26px;
  overflow: hidden;

  box-shadow: 0 22px 55px rgba(8, 55, 109, 0.28);
}

.plan-final-destacado::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at top right,
      rgba(255, 213, 74, 0.22),
      transparent 34%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(255, 255, 255, 0.12),
      transparent 32%
    );

  pointer-events: none;
}

.plan-final-destacado .plan-final-icono {
  position: relative;
  z-index: 1;

  width: 110px;
  height: 110px;

  background: #ffffff;
  color: var(--azul);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.plan-final-destacado .plan-final-icono i {
  color: var(--azul);
  font-size: 3rem;
}

.plan-final-destacado .plan-final-texto {
  position: relative;
  z-index: 1;
}

.plan-final-destacado .plan-final-texto span {
  color: #ffd54a;
  font-size: 0.92rem;
  letter-spacing: 2px;
}

.plan-final-destacado .plan-final-texto h3 {
  color: #ffffff;
  font-size: 2.25rem;
  line-height: 1.18;
  margin-bottom: 18px;
}

.plan-final-destacado .plan-final-texto p {
  max-width: 900px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
  line-height: 1.85;
}

.plan-final-destacado .plan-final-texto strong {
  color: #ffffff;
}

@media (max-width: 768px) {
  .plan-final-destacado {
    margin: 0 auto 40px;
    padding: 36px 26px;
  }

  .plan-final-destacado .plan-final-icono {
    width: 86px;
    height: 86px;
  }

  .plan-final-destacado .plan-final-icono i {
    font-size: 2.25rem;
  }

  .plan-final-destacado .plan-final-texto h3 {
    font-size: 1.65rem;
  }

  .plan-final-destacado .plan-final-texto p {
    font-size: 0.98rem;
  }
}

/* =====================================================
   CÓMO LLEGAR
===================================================== */

.encabezado-como-llegar {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.encabezado-como-llegar span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--naranja);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.encabezado-como-llegar h3 {
  margin: 0 0 12px;
  color: var(--azul);
  font-size: 2rem;
  font-weight: 800;
}

.encabezado-como-llegar p {
  margin: 0;
  color: #5b6572;
  font-size: 1.05rem;
  line-height: 1.7;
}

.mapa iframe {
  display: block;
  width: 100%;
  min-height: 430px;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(11, 79, 156, 0.14);
}

/* Información principal */

.como-llegar-info {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-top: 32px;
  padding: 30px;
  background: #eef5ff;
  border: 1px solid rgba(11, 79, 156, 0.14);
  border-left: 6px solid var(--azul);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(11, 79, 156, 0.08);
}

.como-llegar-icono {
  display: flex;
  flex: 0 0 68px;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  color: var(--blanco);
  background: var(--azul);
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(11, 79, 156, 0.24);
}

.como-llegar-icono i {
  color: var(--blanco);
  font-size: 2rem;
  line-height: 1;
}

.como-llegar-texto {
  flex: 1;
}

.como-llegar-texto h4 {
  margin: 0 0 15px;
  color: var(--azul-hover);
  font-size: 1.4rem;
  font-weight: 800;
}

.como-llegar-texto p {
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.75;
}

.como-llegar-texto p:last-child {
  margin-bottom: 0;
}

/* Datos rápidos */

.como-llegar-datos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.como-llegar-dato {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 130px;
  padding: 22px;
  background: var(--blanco);
  border: 1px solid rgba(11, 79, 156, 0.13);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(11, 79, 156, 0.07);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.como-llegar-dato:hover {
  transform: translateY(-5px);
  border-color: rgba(11, 79, 156, 0.32);
  box-shadow: 0 14px 30px rgba(11, 79, 156, 0.13);
}

.como-llegar-dato-icono {
  display: flex;
  flex: 0 0 54px;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  color: var(--azul);
  font-size: 1.45rem;
  background: #eef5ff;
  border-radius: 50%;
}

.como-llegar-dato div:last-child {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.como-llegar-dato strong {
  color: var(--azul-hover);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}

.como-llegar-dato span {
  color: var(--gris);
  font-size: 0.94rem;
  line-height: 1.5;
}

/* Aclaración final */

.como-llegar-aclaracion {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  padding: 18px 22px;
  color: var(--azul-hover);
  background: #fff5dd;
  border-left: 4px solid var(--naranja);
  border-radius: 12px;
}

.como-llegar-aclaracion i {
  margin-top: 4px;
  color: var(--naranja);
  font-size: 1.1rem;
}

.como-llegar-aclaracion p {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.65;
}

/* Responsive */

@media (max-width: 900px) {
  .como-llegar-datos {
    grid-template-columns: 1fr;
  }

  .como-llegar-dato {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .encabezado-como-llegar h3 {
    font-size: 1.7rem;
  }

  .mapa iframe {
    min-height: 340px;
    border-radius: 14px;
  }

  .como-llegar-info {
    flex-direction: column;
    gap: 18px;
    padding: 24px 20px;
  }

  .como-llegar-icono {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
    border-radius: 15px;
  }

  .como-llegar-icono i {
    font-size: 1.7rem;
  }

  .como-llegar-texto h4 {
    font-size: 1.25rem;
  }

  .como-llegar-dato {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .mapa iframe {
    min-height: 290px;
  }

  .como-llegar-info {
    margin-top: 24px;
    padding: 21px 18px;
  }

  .como-llegar-dato {
    align-items: flex-start;
  }

  .como-llegar-dato-icono {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .como-llegar-aclaracion {
    padding: 16px 18px;
  }
}

/* =====================================================
   PLAN DE ESTUDIOS — DESPLIEGUE EN ESCRITORIO
===================================================== */

@media (min-width: 993px) and (hover: hover) and (pointer: fine) {
  .plan-grid {
    align-items: start;
  }

  .anio > ul {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;

    transition:
      max-height 0.45s ease,
      opacity 0.25s ease,
      padding 0.35s ease;
  }

  .anio:hover > ul {
    max-height: 1500px;
    opacity: 1;
    padding: 25px 28px;
  }
}
/* =====================================================
   CALENDARIO ESCOLAR
===================================================== */

.calendario-escolar {
  padding: 90px 0;
  background: #ffffff;
}

.calendario-controles {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 0 22px;
}

.calendario-flecha {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 46px;
  height: 46px;

  border: 0;
  border-radius: 50%;

  background: var(--azul);
  color: #ffffff;

  font-size: 1rem;
  cursor: pointer;

  box-shadow: 0 7px 18px rgba(0, 61, 130, 0.18);

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.calendario-flecha:hover {
  background: var(--naranja);
  transform: translateY(-2px);
}

/* =========================
   MESES
========================= */

.calendario-meses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.calendario-mes {
  overflow: hidden;

  min-width: 0;
  min-height: 330px;

  background: #ffffff;

  border: 1px solid #dce5ee;
  border-radius: 18px;
  border-top: 4px solid var(--naranja);

  box-shadow: 0 12px 32px rgba(15, 45, 75, 0.1);
}

.calendario-mes-encabezado {
  padding: 20px 22px;

  background: linear-gradient(135deg, #074b7d, #08689d);

  color: #ffffff;
}

.calendario-mes-encabezado span {
  display: block;

  margin-bottom: 2px;

  color: #d9edff;

  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.calendario-mes-encabezado h3 {
  margin: 0;

  color: #ffffff;

  font-size: 1.5rem;
  font-weight: 800;
}

/* =========================
   EVENTOS
========================= */

.calendario-eventos {
  display: flex;
  flex-direction: column;
  gap: 14px;

  padding: 20px;
}

.calendario-evento {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 16px;

  padding: 16px;

  background: #fff8dc;

  border-left: 4px solid var(--naranja);
  border-radius: 12px;
}

.calendario-evento-fecha {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding-right: 14px;

  border-right: 1px solid rgba(0, 61, 130, 0.15);
}

.calendario-evento-fecha strong {
  color: var(--azul);

  font-size: 1rem;
  font-weight: 900;
}

.calendario-evento-fecha span {
  margin-top: 3px;

  color: #6d7782;

  font-size: 0.78rem;
  font-weight: 700;
}

.calendario-evento-contenido {
  min-width: 0;
}

.calendario-evento-etiqueta {
  display: inline-block;

  margin-bottom: 7px;
  padding: 5px 9px;

  border-radius: 999px;

  background: var(--naranja);
  color: #102d49;

  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calendario-evento-contenido h4 {
  margin: 0 0 6px;

  color: var(--azul);

  font-size: 1rem;
  font-weight: 800;
}

.calendario-evento-contenido p {
  margin: 0;

  color: #566474;

  font-size: 0.86rem;
  line-height: 1.45;
}

/* =========================
   MES SIN EVENTOS
========================= */

.calendario-sin-eventos {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 190px;
  margin: 0;

  color: #7a8795;

  border: 1px dashed #cbd7e2;
  border-radius: 12px;

  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

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

@media (max-width: 1000px) {
  .calendario-meses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .calendario-escolar {
    padding: 70px 0;
  }

  .calendario-controles {
    justify-content: center;
  }

  .calendario-meses {
    grid-template-columns: 1fr;
  }

  .calendario-mes {
    min-height: 0;
  }

  .calendario-evento {
    grid-template-columns: 1fr;
  }

  .calendario-evento-fecha {
    padding-right: 0;
    padding-bottom: 10px;

    border-right: 0;
    border-bottom: 1px solid rgba(0, 61, 130, 0.15);
  }
}
#anioCalendarioEscolar {
  display: inline;
  margin: 0;
  color: inherit;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
}
