/* =========================================================
   HERO CARRUSEL DE PROGRAMAS
   ========================================================= */

.hero-carrusel-programas {
  /* Colores base del bloque */
  --azul-principal: #122754;
  --azul-secundario: #18376f;
  --verde: #39b56a;
  --blanco: #ffffff;
  --gris-panel: #f4f4f4;
  --texto-panel: #18376f;

  position: relative;
  min-height: 850px;
  background: #0e1a2f;
  overflow: hidden;
}

/* Contenedor principal del slider */
.hero-slider {
  position: relative;
  min-height: 720px;
}

/* Cada slide */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

/* Slide activo */
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Capa oscura encima de la imagen */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.38) 35%,
      rgba(0, 0, 0, 0.18) 70%,
      rgba(0, 0, 0, 0.28) 100%
    ),
    linear-gradient(
      180deg,
      rgba(10, 18, 35, 0.10) 0%,
      rgba(10, 18, 35, 0.14) 45%,
      rgba(10, 18, 35, 0.32) 100%
    );
}

/* Espaciado general del contenido del hero */
.hero-contenedor {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  margin: 0 auto;
  padding: 105px 24px 240px;
}

.hero-contenido {
  max-width: 1120px;
}

/* Texto pequeño superior */
.hero-etiqueta {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

/* Título grande del hero */
.hero-titulo {
  display: inline-block;
  max-width: 1200px;
  margin: 0;
  padding: 20px 28px 24px;
  background: rgba(18, 39, 84, 0.78);
  color: #fff;
  font-size: 72px;
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -1.8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.20);
}

.hero-titulo span {
  display: block;
}

/* Texto descriptivo */
.hero-subtitulo {
  max-width: 760px;
  margin: 28px 0 0;
  font-size: 20px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

/* Grupo de botones */
.hero-botones {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* Estilo base de botón */
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  padding: 16px 26px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.25s ease;
}

/* Botón principal */
.hero-btn-principal {
  background: #fff;
  color: #222;
  border-left: 4px solid var(--verde);
}

.hero-btn-principal:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

/* Botón secundario */
.hero-btn-secundario {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.78);
}

.hero-btn-secundario:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  transform: translateY(-2px);
}

/* =========================================================
   FLECHAS DEL CARRUSEL
   ========================================================= */

.hero-arrow {
  position: absolute;
  top: 48%;
  z-index: 5;
  width: 56px;
  height: 56px;
  border: 0;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.20);
}

.hero-arrow-prev {
  left: 18px;
}

.hero-arrow-next {
  right: 18px;
}

/* =========================================================
   DOTS / INDICADORES
   ========================================================= */

.hero-indicadores {
  position: absolute;
  left: 50%;
  bottom: 145px;
  z-index: 6;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-dot.active {
  background: #fff;
  transform: scale(1.15);
}

/* =========================================================
   PANEL DE BENEFICIOS DEL HERO
   ========================================================= */

.hero-beneficios-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 8;
  padding: 0 24px;
}

.hero-beneficios {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 18px;
  background: var(--gris-panel);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.14);
}

.hero-item {
  padding: 14px 12px;
  text-align: center;
}

.hero-icono {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  font-size: 34px;
  color: var(--azul-principal);
}

.hero-item h3 {
  margin: 0;
  color: var(--texto-panel);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

/* =========================================================
   SECCIÓN DE PROGRAMAS / CARRERAS
   ========================================================= */

.seccion-programas-front {
  padding: 70px 0;
  background: #f4f7fb;
}

.programas-front-wrap {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  display: grid !important;
  grid-template-columns: 360px minmax(0, 1fr) !important;
  gap: 32px !important;
  align-items: stretch;
}

/* Menú lateral */
.programas-front-menu {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, #173b72 0%, #102d57 100%);
  box-shadow: 0 18px 40px rgba(16, 45, 87, 0.14);
}

/* Cabecera del menú */
.programas-front-head {
  padding: 28px 24px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  color: #fff;
}

.programas-front-mini {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
}

.programas-front-head h2 {
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.08;
}

.programas-front-head p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

/* Botones del menú */
.programas-front-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 20px 22px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: #fff;
  text-align: left;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.programas-front-item span {
  min-width: 28px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.65);
}

.programas-front-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.programas-front-item.active {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.10), rgba(62, 181, 106, 0.18));
  box-shadow: inset 4px 0 0 #3eb56a;
}

/* Panel derecho */
.programas-front-panel {
  width: 100%;
  min-width: 0;
}

.programas-front-card {
  display: grid !important;
  grid-template-columns: minmax(320px, 42%) minmax(0, 1fr) !important;
  width: 100%;
  min-height: 620px;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(16, 45, 87, 0.10);
}

/* Imagen */
.programas-front-image {
  min-width: 0;
  height: 100%;
  background: #dfe7f3;
}

.programas-front-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

/* Información */
.programas-front-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 48px 42px;
}

.programas-front-tag {
  display: inline-block;
  margin-bottom: 14px;
  color: #38aa65;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.programas-front-info h3 {
  margin: 0 0 18px;
  color: #173b72;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
}

.programas-front-info p {
  margin: 0;
  color: #58657b;
  font-size: 18px;
  line-height: 1.85;
}

/* Lista de puntos */
.programas-front-puntos {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.programas-front-puntos li {
  padding: 14px 16px;
  border: 1px solid #e4ebf3;
  border-radius: 14px;
  background: #f7f9fc;
  color: #173b72;
  font-size: 16px;
  font-weight: 600;
}

/* Botón */
.programas-front-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 28px;
  padding: 15px 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3eb56a, #2f9d59);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.25s ease;
}

.programas-front-btn:hover {
  transform: translateY(-2px);
}

/* =========================================================
   SECCIÓN INFORMACIÓN ADMISIÓN
   ========================================================= */

.info-admision {
  width: 100%;
  margin: 60px 0;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: #f6f8fb;
  max-height: 500px;
}

.info-admision-container {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Imagen lateral */
.info-admision-img {
  position: relative;
  height: 100%;
  max-height: 500px;
  overflow: hidden;
}

.info-admision-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.info-admision-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 20, 60, 0.18), rgba(0, 0, 0, 0));
}

/* Parte de contenido */
.info-admision-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 60px;
  overflow: hidden;
  max-height: 500px;
  background: linear-gradient(135deg, #003C81 0%, #154688 55%, #0d2f5f 100%);
}

/* Decoraciones */
.info-admision-content::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.info-admision-content::after {
  content: "";
  position: absolute;
  left: -50px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(252, 208, 0, 0.08);
}

/* Caja interna */
.info-admision-box {
  position: relative;
  z-index: 2;
  max-width: 480px;
  color: #fff;
  animation: infoAdmisionFadeUp 0.9s ease;
}

/* Badge */
.info-admision-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #FCD000;
  color: #003C81;
  font-size: 13px;
  font-weight: 700;
}

/* Título */
.info-admision-box h2 {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.2;
}

.info-admision-box h2 span {
  display: block;
  color: #FCD000;
}

/* Texto */
.info-admision-box p {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.7;
}

/* Botones */
.info-admision-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.info-admision-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.info-admision-btn-primary {
  background: #22c55e;
  color: #fff;
}

.info-admision-btn-primary:hover {
  background: #16a34a;
  transform: translateY(-3px);
}

.info-admision-btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
}

.info-admision-btn-outline:hover {
  background: #fff;
  color: #003C81;
  transform: translateY(-3px);
}

/* Animación */
@keyframes infoAdmisionFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   LOGOS / CONVENIOS
   ========================================================= */

.logos-convenios {
  width: 100%;
  padding: 45px 0;
  overflow: hidden;
  background: #ffffff;
}

.logos-convenios-header {
  margin-bottom: 26px;
  padding: 0 20px;
  text-align: center;
}

.logos-convenios-etiqueta {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 60, 129, 0.08);
  color: #003C81;
  font-size: 13px;
  font-weight: 700;
}

.logos-convenios-header h2 {
  margin: 0;
  color: #154688;
  font-size: 28px;
  font-weight: 800;
}

.logos-convenios-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.logos-convenios-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  will-change: transform;
}

.logo-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 95px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-item img {
  display: block;
  max-width: 100%;
  max-height: 62px;
  object-fit: contain;
  filter: grayscale(10%);
  opacity: 0.95;
}

.logo-item:hover {
  transform: translateY(-4px);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {
  .hero-titulo {
    font-size: 60px;
  }

  .hero-beneficios {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 10px;
  }
}

@media (max-width: 1100px) {
  .programas-front-wrap {
    grid-template-columns: 1fr !important;
  }

  .programas-front-card {
    grid-template-columns: 1fr !important;
    min-height: auto;
  }

  .programas-front-image img {
    min-height: 320px;
  }
}

@media (max-width: 992px) {
  .hero-carrusel-programas {
    min-height: auto;
  }

  .hero-slider {
    min-height: 650px;
  }

  .hero-contenedor {
    padding: 85px 20px 90px;
  }

  .hero-titulo {
    padding: 18px 20px 22px;
    font-size: 48px;
  }

  .hero-subtitulo {
    font-size: 18px;
  }

  .hero-indicadores {
    bottom: 34px;
  }

  .hero-beneficios-wrap {
    position: relative;
    bottom: auto;
    margin-top: -18px;
    padding: 0 20px 24px;
  }

  .info-admision {
    max-height: none;
  }

  .info-admision-container {
    grid-template-columns: 1fr;
  }

  .info-admision-img {
    height: 260px;
    max-height: none;
  }

  .info-admision-content {
    max-height: none;
    padding: 40px 25px;
  }

  .info-admision-box h2 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .hero-slider {
    min-height: 620px;
  }

  .hero-contenedor {
    padding: 74px 16px 80px;
  }

  .hero-etiqueta {
    font-size: 16px;
  }

  .hero-titulo {
    padding: 16px 16px 18px;
    font-size: 36px;
    line-height: 1.08;
  }

  .hero-subtitulo {
    font-size: 16px;
    line-height: 1.65;
  }

  .hero-botones {
    flex-direction: column;
  }

  .hero-btn {
    width: 100%;
  }

  .hero-arrow {
    width: 46px;
    height: 46px;
    font-size: 34px;
  }

  .hero-beneficios {
    grid-template-columns: repeat(2, 1fr);
    padding: 22px 10px;
  }

  .hero-item h3 {
    font-size: 15px;
  }

  .hero-icono {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
    font-size: 28px;
  }

  .seccion-programas-front {
    padding: 60px 0;
  }

  .programas-front-wrap {
    width: min(100%, calc(100% - 24px));
    gap: 18px !important;
  }

  .programas-front-head h2 {
    font-size: 28px;
  }

  .programas-front-item {
    padding: 18px 16px;
    font-size: 16px;
  }

  .programas-front-info {
    padding: 28px 22px;
  }

  .programas-front-info h3 {
    font-size: 34px;
  }

  .programas-front-info p {
    font-size: 16px;
    line-height: 1.75;
  }

  .logos-convenios {
    padding: 35px 0;
  }

  .logos-convenios-header h2 {
    font-size: 22px;
  }

  .logos-convenios-track {
    gap: 18px;
  }

  .logo-item {
    width: 170px;
    height: 80px;
    padding: 12px 14px;
  }

  .logo-item img {
    max-height: 48px;
  }
}

@media (max-width: 576px) {
  .info-admision-box h2 {
    font-size: 24px;
  }

  .info-admision-box p {
    font-size: 14px;
  }

  .info-admision-buttons {
    flex-direction: column;
  }

  .info-admision-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-titulo {
    font-size: 29px;
  }

  .hero-beneficios {
    grid-template-columns: 1fr;
  }
}