@font-face {
  font-family: 'open_sansregular';
  src: url('../fnt/opensans-regular-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'oswaldlight';
  src: url('../fnt/oswald-light-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* --------- NORMALIZE --------- */

html {line-height: 1.15; -webkit-text-size-adjust: 100%;}
main {display: block;}
h1 {font-size: 2em; margin: 0.67em 0;}
hr {box-sizing: content-box; height: 0; overflow: visible;}
a {background-color: transparent;}
b,strong {font-weight: bolder;}
img {border-style: none;}

/* --------- FIN NORMALIZE --------- */

body {
  margin: 0;
  padding: 0;
}

header {
  display: grid;
  width: 100vw;
  height: 25vh;
  position: relative;
  overflow: hidden;
}

#video-header {
  z-index: 5;
  margin: 0 auto;
  overflow: hidden;
}


.logo {
  width: 200px;
  position: absolute;

  margin-top: 30px;

  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(5px 5px 10px #000000);
  z-index: 100;
}

main {
  display:grid;
  position: relative;
  grid-template-columns: 1fr 1fr;
  justify-content: center;
  padding: 10px;
  background-image: url("../img/fondo-main.webp");
  background-repeat: no-repeat;
  background-position: center center;
}

.gradiente {
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100vw;
  height: 30vh;
  background-image: linear-gradient(rgba(34, 95, 172, 0), rgba(34, 95, 172, 1));
  z-index: 25;
}


/* --------- NAV --------- */

nav {
  grid-column: 1;
  display: grid;
  width: 100vw;
  place-items: center;
  background-color: #225FAC;
  border-top: none;
  border-bottom: 2px solid #2fff00;;
  font-family:'open_sansregular';
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

nav li {
  float: left;
}

nav li a {
  display: block;
  color: white;
  padding: 14px 16px;
  text-decoration: none;
}

nav li a:hover {
  background-color: #2fff00;
  color: #225FAC;
}

/* --------- IMAGENES ABAJO DEL MENU --------- */

#imagenes {
  display: flex;
  padding: 10px;
  justify-content: center;
  align-items: center;
}

#imagenes img {
  display: inline-block;
  margin: 0 10px;
  border-radius: 20px;
}



/* --------- ARTICLES --------- */

#article1 {
  grid-column: 1;
}

#article2 {
  grid-column: 2;
}

#article3 {
  grid-column: 1;
}

#article4 {
  grid-column: 2;
}

article {
  border-right: 1px solid #333; /* Línea vertical entre columnas */
  padding: 10px;
}

article:nth-child(2),
article:nth-child(4) {
  border-right: none;
}

footer {
  width: 100vw;
  overflow: hidden;
  text-align: center;
}

p {
  font-family:'open_sansregular';
  font-size: 0.85rem;
}

#indicadores {
  margin: 10px auto;
  text-align: center;
  max-width: 90%;
}

h2 {
  font-family:'oswaldlight';
  color: #225FAC;
  font-size: 1.5rem;
  line-height: 0;
}

.icon {
  width: 30px;
  vertical-align: middle;
}

.resaltar {
  font-weight: bold;
  color:#225FAC;
}

/* --------- SLIDER --------- */

.image-container {
  position: relative;
  width: 100vw;
  bottom: 0;;
  overflow: hidden;
}

.image-container img {
  position: absolute;
  width: 100vw;
  /* left: 0; right: 0; top: 0; */
  bottom: 0;
  margin: auto;
  opacity: 0;
  transition: opacity 1s ease-in-out; /* Duración y efecto de transición */
}


.image-container img:first-child {
  opacity: 1; /* Muestra la primera imagen al principio */
}



/* --------- FORMULARIO --------- */

.formulario {
  text-align: center;
}

.form-group {
  text-align: center;
  margin: 10px auto;
}

label {
  font-family:'open_sansregular';
  font-size: 0.85rem;
  display: block;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 5px;
  margin-top: 5px;
  margin-bottom: 10px;
}

input[type="submit"] {
  display: block;
  margin: 10px auto;
}

#mensaje_exito {
  text-align: center;
}

/* --------- FIN FORMULARIO --------- */



/* --------- RESPONSIVE --------- */


/* Establece el ancho máximo para pantallas anchas */
@media screen and (min-width: 1000px) {
  main {
    max-width: 1000px;
    margin: 0 auto; /* Centra el contenido en pantallas anchas */
  }

  .image-container {
    height: 160px;
  }

  .form-group {
    width: 30vw;
  }

}

/* Establece el ancho máximo para pantallas estrechas (celulares) */
@media screen and (max-width: 999px) {
  main {
    max-width: 100vw; /* Establece el ancho máximo a 100vw para móviles */
  }

  .image-container {
    height: 120px;
  }

  .form-group {
    width: 50vw;
  }

}

@media screen and (max-width: 499px) {

  .icon {
    display: none;
  }

  main {
    display: block;
  }


  #article1 {
    grid-column: 1;
  }
  
  #article2 {
    grid-column: 1;
  }
  
  #article3 {
    grid-column: 1;
  }
  
  #article4 {
    grid-column: 1;
  }
  
  article {
    border: none;
  }

  #imagenes img:last-of-type {
    display: none;
  }

  .image-container {
    height: 60px;
  }

  .form-group {
    width: 80vw;
  }

}