@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;
  }

}
/* USAMOS TUS MISMAS TIPOGRAFÍAS */
@font-face { font-family: 'open_sansregular'; src: url('../fnt/opensans-regular-webfont.woff') format('woff'); }
@font-face { font-family: 'oswaldlight'; src: url('../fnt/oswald-light-webfont.woff') format('woff'); }

:root {
    --azul-sit: #225FAC;
    --naranja-sit: #FF6600; /* Reemplaza el verde anterior */
    --gris-fondo: #f4f7f9;
}

body { margin: 0; padding: 0; background-color: var(--gris-fondo); overflow-x: hidden; }

/* HEADER MEJORADO */
header { width: 100vw; height: 35vh; position: relative; overflow: hidden; background: #000; }
#video-header { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }

.logo { width: 220px; position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 100; filter: drop-shadow(0px 0px 20px rgba(0,0,0,0.8)); }

.gradiente {
    position: absolute; bottom: 0; left: 0; width: 100vw; height: 50%;
    background-image: linear-gradient(transparent, var(--azul-sit));
    z-index: 25;
}

/* NAVEGACIÓN CORPORATIVA */
nav { 
    background-color: var(--azul-sit); 
    border-bottom: 4px solid var(--naranja-sit); 
    font-family: 'open_sansregular'; 
    display: flex; justify-content: center;
}
nav ul { display: flex; list-style: none; padding: 0; margin: 0; }
nav li a { color: white; padding: 18px 25px; text-decoration: none; font-weight: bold; transition: 0.3s; }
nav li a:hover { background-color: var(--naranja-sit); }
.btn-login { background-color: rgba(255,255,255,0.1); border-left: 1px solid rgba(255,255,255,0.2); }

/* SECCIÓN DE IMPACTO (ESTA ES LA CLAVE) */
.banner-presentacion { max-width: 1000px; margin: 40px auto; padding: 0 15px; }
.container-impacto { 
    position: relative; border-radius: 15px; overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); transition: transform 0.3s;
}
.container-impacto:hover { transform: scale(1.02); }
.img-potente { width: 100%; display: block; }
.overlay-texto { 
    background: rgba(255, 102, 0, 0.95); color: white; padding: 15px; 
    text-align: center; font-family: 'oswaldlight';
}

/* CONTENIDO PRINCIPAL EN TARJETAS */
main {
    max-width: 1100px; margin: 20px auto; display: grid; 
    grid-template-columns: 1fr 1fr; gap: 25px; padding: 20px;
}
article { 
    background: white; padding: 30px; border-radius: 10px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); border-left: 5px solid var(--azul-sit);
}
article h2 { line-height: 1.2; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
article p { line-height: 1.6; color: #444; }

/* FORMULARIO */
.formulario { background: var(--azul-sit); color: white; padding: 50px 20px; margin-top: 40px; }
.formulario h2 { color: white; margin-bottom: 30px; }
input, textarea { border-radius: 5px; border: none; padding: 12px !important; margin-bottom: 15px; }
input[type="submit"] { 
    background: var(--naranja-sit); color: white; border: none; 
    padding: 15px 40px !important; font-weight: bold; cursor: pointer; transition: 0.3s;
}
input[type="submit"]:hover { background: #e65c00; transform: translateY(-2px); }

/* SLIDER Y FOOTER */
.image-container { height: 180px; background: #000; }
footer { padding: 30px; background: white; border-top: 1px solid #ddd; }
.resaltar { color: var(--azul-sit); font-weight: bold; }

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    main { grid-template-columns: 1fr; }
    header { height: 25vh; }
    /* AJUSTE DE IMAGEN IMPACTO */
.banner-presentacion {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 10px;
    box-sizing: border-box;
}

.img-potente {
    width: 100% !important;
    height: auto !important; /* Esto evita que se vea estirada */
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.container-impacto {
    width: 100%;
    overflow: hidden;
}
}