/* =========================================================
   HERO / HEADER
========================================================= */

.header {
  position: relative;
  height: 100vh;
  overflow: hidden;

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

  text-align: center;
  color: white;
}

/* CONTENIDO ENCIMA DEL SLIDER */
.header .container {
  position: relative;
  z-index: 5;
}

/* =========================================================
   SLIDER DE FONDO
========================================================= */

.slider-fondo {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.slider-fondo span {
  position: absolute;
  inset: 0;

  background-size: cover;
  background-position: center;

  opacity: 0;

  animation: sliderHero 50s infinite;
}

/* IMAGENES */
.slider-fondo span:nth-child(1) {
  animation-delay: 0s;
}

.slider-fondo span:nth-child(2) {
  animation-delay: 10s;
}

.slider-fondo span:nth-child(3) {
  animation-delay: 20s;
}

.slider-fondo span:nth-child(4) {
  animation-delay: 30s;
}

.slider-fondo span:nth-child(5) {
  animation-delay: 40s;
}

.slider-fondo span:nth-child(6) {
  animation-delay: 50s;
}

/* ANIMACION */
@keyframes sliderHero {

  0% {
    opacity: 0;
    transform: scale(1);
  }

  5% {
    opacity: 1;
  }

  15% {
    opacity: 1;
  }

  20% {
    opacity: 0;
    transform: scale(1.05);
  }

  100% {
    opacity: 0;
  }
}

/* OSCURECEDOR */
.header::after {
  content: "";

  position: absolute;
  inset: 0;

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

  z-index: 2;
}

/* =========================================================
   TITULOS
========================================================= */

.titulo {
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  font-weight: 700;

  margin-bottom: 20px;

  text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.subtitulo {
  font-size: clamp(1.2rem, 3vw, 2rem);

  color: var(--dorado-institucional);

  margin-bottom: 15px;

  text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.descripcion {
  font-size: 1.2rem;

  font-weight: 300;

  text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* =========================================================
   BARRA INSCRIPCIONES
========================================================= */

.inscripcion-estado {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.25rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 44, 77, 0.12);
  background: rgba(11, 44, 77, 0.04);
  color: var(--azul-institucional);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(11, 44, 77, 0.06);
}

.inscripcion-estado-indicador {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0.4rem rgba(11, 44, 77, 0.12);
  flex-shrink: 0;
}

.inscripcion-estado--abierta {
  background: rgba(10, 143, 42, 0.08);
  border-color: rgba(10, 143, 42, 0.16);
  color: var(--verde-institucional-oscuro);
}

.inscripcion-estado--cerrada {
  background: rgba(11, 44, 77, 0.06);
  border-color: rgba(11, 44, 77, 0.12);
  color: var(--azul-institucional);
}

.inscripcion-estado--neutral {
  background: rgba(123, 135, 148, 0.08);
  border-color: rgba(123, 135, 148, 0.18);
  color: #5a6472;
}

@media (max-width: 767px) {
  .inscripcion-estado {
    width: 100%;
    max-width: 100%;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
    letter-spacing: 0.08em;
  }
}

/* =========================================================
   MENSAJE PRINCIPAL
========================================================= */

.mensaje {
  border: none;

  padding: 35px;

  border-radius: 20px;

  background: white;

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

  margin-top: -70px;

  position: relative;
  z-index: 20;
}

.mensaje p {
  margin: 0;

  font-size: 1.1rem;
  line-height: 1.8;

  color: #444;
}

/* =========================================================
   SECCIONES
========================================================= */

.seccion {
  margin-top: 60px;
}

.seccion-titulo {
  font-size: 2rem;

  font-weight: 700;

  margin-bottom: 25px;

  color: var(--azul-institucional);

  position: relative;
}

.seccion-titulo::after {
  content: "";

  width: 80px;
  height: 4px;

  background: var(--dorado-institucional);

  display: block;

  margin-top: 10px;

  border-radius: 20px;
}

/* =========================================================
   LISTAS
========================================================= */

.lista-requisitos,
.seccion ul,
.seccion ol {
  background: white;

  padding: 30px 35px;

  border-radius: 18px;

  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.lista-requisitos li,
.seccion ul li,
.seccion ol li {
  margin-bottom: 14px;

  line-height: 1.7;

  color: #444;
}

/* =========================================================
   BOTON DESCARGA
========================================================= */

.descarga {
  margin-top: 70px;
  margin-bottom: 80px;
}

.descarga a {
  display: inline-block;

  padding: 18px 35px;

  background: linear-gradient(
    135deg,
    var(--verde-institucional),
    #086b1f
  );

  color: white;

  font-size: 1.1rem;
  font-weight: 600;

  text-decoration: none;

  border-radius: 15px;

  box-shadow: 0 10px 25px rgba(0,0,0,0.15);

  transition: 0.3s;
}

.descarga a:hover {
  transform: translateY(-4px);

  background: linear-gradient(
    135deg,
    var(--dorado-institucional),
    #b48810
  );

  color: black;
}

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

@media (max-width: 768px) {

  .header {
    min-height: 86svh;
    height: auto;
    padding: 5rem 1rem 2rem;
  }

  .titulo {
    font-size: 2rem;
  }

  .subtitulo {
    font-size: 1.2rem;
  }

  .descripcion {
    font-size: 1rem;
  }

  .mensaje {
    margin-top: -40px;
    padding: 25px;
    border-radius: 12px;
  }

  .lista-requisitos,
  .seccion ul,
  .seccion ol {
    padding: 25px;
  }

  .descarga a {
    width: 100%;
    text-align: center;
  }
}

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

  .lista-requisitos,
  .seccion ul,
  .seccion ol {
    padding: 1.25rem;
  }
}
