* {
  padding: 0;
  margin: 0;
  font-family: "Mooli", sans-serif;
}

@media (max-width: 768px) {
  
  section:nth-of-type(1) article:nth-of-type(1) h1 {
    font-size: 30px;
    font-weight: bold;
  }
  section:nth-of-type(1) article:nth-of-type(2) {
    position: absolute;
    top: 25%;
    color: white;
    width: 90%;
  }

  section:nth-of-type(4) article {
    margin: 2%;
  }
  section:nth-of-type(2) article:nth-of-type(1),
  section:nth-of-type(2) article:nth-of-type(3),
  section:nth-of-type(2) article:nth-of-type(5),
  section:nth-of-type(2) article:nth-of-type(7) {
    background-color: #033870;
    color: white;
  }
  section:nth-of-type(2) article:nth-of-type(2),
  section:nth-of-type(2) article:nth-of-type(4),
  section:nth-of-type(2) article:nth-of-type(6),
  section:nth-of-type(2) article:nth-of-type(8) {
    background-color: #407c4e;
    color: white;
  }
  section:nth-of-type(2) article:nth-of-type(1):hover,
  section:nth-of-type(2) article:nth-of-type(3):hover,
  section:nth-of-type(2) article:nth-of-type(5):hover,
  section:nth-of-type(2) article:nth-of-type(7):hover {
    background-color: #407c4e;
    color: white;
  }
  section:nth-of-type(2) article:nth-of-type(2):hover,
  section:nth-of-type(2) article:nth-of-type(4):hover,
  section:nth-of-type(2) article:nth-of-type(6):hover,
  section:nth-of-type(2) article:nth-of-type(8):hover {
    background-color: #033870;
    color: white;
  }
  section:nth-of-type(2) article p {
    width: 90%;
    margin: auto;
  }
  section:nth-of-type(6) iframe {
    box-shadow: 2px 2px 10px 5px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
  }
  section:nth-of-type(7) article p {
    width: 90%;
    margin: auto;
  }
  #esteDiv ul li a {
    width: 10% !important;
  }
}
@media (min-width: 577px) {
  header nav ul li a {
    color: white;
    font-weight: bold;
    transition: background-color 0.5s, color 0.5s;
  }

  header nav ul li a {
    color: white;
    font-weight: bold;
  }
  header nav ul li {
    border: 1px white solid;
    padding: 1%;
    border-radius: 10px;
  }

  header nav ul li:hover {
    background-color: white;
    color: black;
  }

  header nav ul li:hover a {
    color: black;
    background-color: white;
  }
  header nav ul {
    margin-top: 2%;
  }


  section:nth-of-type(1) article:nth-of-type(1) h1 {
    font-size: 30px;
    font-weight: bold;
  }
  
  header video {
    filter: brightness(0.2);
    position: relative;
  }
  header nav {
    position: absolute;
    z-index: 1;
  }
  section:nth-of-type(2) article:nth-of-type(1),
  section:nth-of-type(2) article:nth-of-type(2),
  section:nth-of-type(2) article:nth-of-type(3),
  section:nth-of-type(2) article:nth-of-type(4),
  section:nth-of-type(2) article:nth-of-type(9),
  section:nth-of-type(2) article:nth-of-type(10) {
    background-color: #033870;
    color: white;
  }
  section:nth-of-type(2) article:nth-of-type(5),
  section:nth-of-type(2) article:nth-of-type(6),
  section:nth-of-type(2) article:nth-of-type(7),
  section:nth-of-type(2) article:nth-of-type(8) {
    background-color: #407c4e;
    color: white;
  }
  section:nth-of-type(2) article:nth-of-type(1):hover,
  section:nth-of-type(2) article:nth-of-type(2):hover,
  section:nth-of-type(2) article:nth-of-type(3):hover,
  section:nth-of-type(2) article:nth-of-type(4):hover,
  section:nth-of-type(2) article:nth-of-type(9):hover,
  section:nth-of-type(2) article:nth-of-type(10):hover {
    background-color: #407c4e;
    color: white;
  }
  section:nth-of-type(2) article:nth-of-type(5):hover,
  section:nth-of-type(2) article:nth-of-type(6):hover,
  section:nth-of-type(2) article:nth-of-type(7):hover,
  section:nth-of-type(2) article:nth-of-type(8):hover {
    background-color: #033870;
    color: white;
  }

  section:nth-of-type(6) iframe,
  section:nth-of-type(6) figure img {
    box-shadow: 2px 2px 10px 5px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
  }
  #esteDiv ul li {
    margin: 0%;
  }
  #esteDiv ul li {
    width: 15%;
  }
  #esteDiv ul li a img {
    margin: 15px 0px 5px 0px;
    padding: 0;
    display: unset;
    margin-bottom: 2%;
  }
  #esteDiv ul li a img:hover {
    margin: 5px 0px 15px 0px;
    padding: 0;
    display: unset;
    margin-bottom: 2%;
  }
  
  #div2{
      text-align: center;
  }
  #div3 {
      text-align: left;
  }
}

section:nth-of-type(1) video {
  filter: brightness(0.2);
  position: relative;
}

section:nth-of-type(2) article {
  padding: 3%;
  border: 1px solid white;
}
section:nth-of-type(2) article a {
  text-decoration: none;
  color: white;
}

#fondo {
  margin: 0% !important;
}
section:nth-of-type(7) figure img {
  max-width: 100%;
}
section:nth-of-type(6) {
  background-image: linear-gradient(
    to bottom,
    #033870,
    #4574a7,
    #8ba1b8,
    #b2c1d1
  );
  margin-top: 0% !important;
}
section:nth-of-type(6) h2 {
  color: white;
}
footer {
  background-color: #427d4f;
  margin-top: 0% !important;
  color: white;
}
footer a {
  color: white;
}

footer iframe {
  box-shadow: 2px 2px 10px 5px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

section:nth-of-type(8) h2 {
  color: white;
}
.slider {
  background: white;
  height: 100px;
  margin: auto;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.slider::before,
.slider::after {
  background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
  content: "";
  height: 100px;
  position: absolute;
  width: 200px;
  z-index: 2;
}
.slider::after {
  right: 0;
  top: 0;
  transform: rotateZ(180deg);
}
.slider::before {
  left: 0;
  top: 0;
}
.slider .slide-track {
  -webkit-animation: scroll 10s linear infinite;
  animation: scroll 10s linear infinite;
  display: flex;
  width: calc(250px * 10);
}
.slider .slide {
  height: 100px;
  width: 250px;
}
@-webkit-keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 10));
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 10));
  }
}

h2.border-bottom-half {
  position: relative;
  display: inline-block;
}

h2.border-bottom-half::after {
  content: "";
  position: absolute;
  bottom: -7px; /* Ajusta la altura del borde */
  left: 50%;
  width: calc(
    50% + 120px
  ); /* Ajusta la longitud del borde (50% del ancho del contenedor + 10px) */
  height: 7px; /* Grosor del borde */
  background: linear-gradient(
    to right,
    transparent 30%,
    #407c4e 50%,
    transparent 70%
  );
  transform: translateX(-50%);
  z-index: -1; /* Coloca el borde detrás del texto */
}

#formulario {
  position: relative;
  margin-bottom: 5%;
}
option,
select,
input,
button{
  font-family: "Lato", sans-serif;
  font-size: 0.875em;
  width: 90% !important;
  height: 50px;
  padding: 0px 15px 0px 15px;
  background: white;
  outline: none;
  border-radius: 10px;
  margin: 5px !important;
  color: #726659;
  border: solid 1px #b3aca7;
  transition: all 0.3s ease-in-out;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
}
select:hover,
input:hover,
textarea:hover,
button:hover{
  background-color: #8ba1b8;
  color: white;
}

textarea {
  border-radius: 10px;
  width: 90%;
  margin: 5px !important;
  max-width: 90%;
  height: 110px;
  max-height: 110px;
  padding: 15px;
  background: white;
  outline: none;
  color: #a0b2c2;
  font-family: "Lato", sans-serif;
  font-size: 0.875em;
  border: solid 1px #b3aca7;
  transition: all 0.3s ease-in-out;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
}

form label:hover {
  color: #997586;
  margin: 1%;
  width: 100%;
  background-color: #8ba1b8;
  border-radius: 10px;
}
/* Estilos para el contenedor y la imagen */
.image-container {
  overflow: hidden; /* Para ocultar partes de la imagen que se salgan del contenedor */
  width: 100%; /* Tamaño fijo del contenedor */
  border-radius: 10px;
  box-shadow: 2px 2px 10px 5px rgba(0, 0, 0, 0.2);
}

.zoom-img {
  transition: transform 0.3s; /* Agregamos una transición suave */
  width: 100%; /* Ancho completo */
  height: auto; /* Altura automática para mantener la proporción */
  transform-origin: center center; /* Establece el punto de origen de la transformación */
}

/* Efecto de zoom al hacer hover */
.zoom-img:hover {
  transform: scale(1.1); /* Escalamos la imagen al hacer hover */
}

.fadeTop {
  opacity: 0;
  transform: translate(0, 10vh);
  transition: all 2s;
}
.fadeTop1 {
  opacity: 0;
  transform: translate(0, 20vh);
  transition: all 2s;
}
.fadeTop2 {
  opacity: 0;
  transform: translate(0, 30vh);
  transition: all 2s;
}

.fadeRight {
  opacity: 0;
  transform: translate(20vh, 0vh);
  transition: all 2s;
}

.fadeLeft {
  opacity: 0;
  transform: translate(-20vh, 0vh);
  transition: all 2s;
}

.visible {
  opacity: 1;
  transform: translate(0, 0);
}

section:nth-of-type(5) figure img {
  max-width: 100% !important;
}

#botonBajar {
  position: fixed; /* Posición absoluta dentro del contenedor */
  top: 80%; /* Alinear arriba del contenedor */
  left: 80%;
  z-index: 1;
}

section:nth-of-type(1) article p {
  width: 70%;
  margin: auto;
  font-size: 20px;
}
@media (max-width: 767px){
    

section:nth-of-type(1) article:nth-of-type(1) {
    position: absolute;
    top: 10% ;
    color: white;
  }
  
  footer{
      padding: 2%;
  }
  
}
@media (min-width: 768px) and (max-width: 1023px){
    

section:nth-of-type(1) article:nth-of-type(1) {
    position: absolute;
    top: 10% ;
    color: white;
  }
  section:nth-of-type(1) article:nth-of-type(2) {
    position: absolute;
    top: 25%;
    color: white;
  }
}


 @media (min-width: 1024px) and (max-width: 1439px) {
     
    section:nth-of-type(1) article:nth-of-type(1) {
    position: absolute;
    top: 15%;
    color: white;
  }

section:nth-of-type(1) article:nth-of-type(2) {
    position: absolute;
    top:35%;
    color: white;
  }
 }
 
 @media (min-width: 1440px) and (max-width:2559px){
     
    section:nth-of-type(1) article:nth-of-type(1) {
    position: absolute;
    top: 20%;
    color: white;
  }

section:nth-of-type(1) article:nth-of-type(2) {
    position: absolute;
    top:50%;
    color: white;
  }
 }
 @media (min-width: 2560px) {
     
    section:nth-of-type(1) article:nth-of-type(1) {
    position: absolute;
    top: 20%;
    color: white;
  }

section:nth-of-type(1) article:nth-of-type(2) {
    position: absolute;
    top:70%;
    color: white;
  }
 }