@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');

/*header inicio*/ 
html {
  height: 100%;
  width: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{margin: 0;
    padding:0;
    overflow-x:hidden}

    header {
      height: auto;
      width: auto;
      background: rgba(0,0,0,0.2);
      position: fixed;
      z-index: 1;
      align-items: center;
      text-align: center;
      justify-content: center;
      font-family: "Moderustic", sans-serif;
      font-weight: bold;
      border-radius: 10px 10px 0px 0px;
      transition: 0.2 ease
    }
    
    #navegacion1{
      display: grid;
      grid-template-columns: 2fr 1fr 2fr;
    }
    
    header img {
      width: 95px;
      height: 85px;
      transition: 0.5s ease;
      border-radius: 15px;
      padding: 5px;
    }
    
    header img:hover {
      pointer-events: visibleFill;
    }
    
    
    header ul {
      display: grid;
      grid-template-columns: 1fr 2fr 1fr;
      grid-template-rows: 1fr;
      text-align: center;
      align-items: baseline;
      font-size: 30px;
      gap:90px;  
      margin-top: 30px
    }
    
    header li {
      list-style: none;
    
    }
    
    li a {
      color: white;
      text-decoration: none;
      font-size: 5vh;
      transition: 0.8s ease;
      padding: 5px;
    }
    
    li a:hover {
      color: black;
      text-decoration: none;
      font-weight: bold;
      background-color: white;
      border-radius: 10px;
    }
    
    #carrito{
      height: 100%;
      width: 100%
    }
    
    #carrito img{
      height: 60px;
      width: 60px;
      margin-top: 20px
    }
    
    
    
    .sidebar {
      position: fixed;
      top: 0;
      right: 0;
      height: 100vh;
      width: 250px;
      z-index: 999;
      background-color: rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(10px);
      box-shadow: -10px 0 10px black;
      display: none;
      flex-direction: column;
      align-items: flex-start;
      justify-content: flex-start;
    }
    
    .sidebar li {
      width: 100%;
    }
    
    .sidebar a {
      width: 100%;
      color: black;
    }
    
    .menu-button {
      display: none
    }
    
    
/*final header*/ 

/*inicio Main*/ 
.espacio{
  height:80px;
}
.imagen-equipo{
  position: relative;
  width: 100%;
}

.imagen-equipo img{
  width: 100%;
  height: auto;
  display: block;
}



#intro {
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2em;
  text-align: center;
  font-weight: bold;
  background-color: white;
  border-radius: 0px 0px 50px 0px;
  padding: 3vw;
  padding-left: 30px
}

h1 {
  font-size: 5vw;
}

.enfoque{
  color: black;
}

#typewriter {
  color: darkgreen;
  font-size: 6vw;
  font-weight: bold;
  font-family: "Lexend", sans-serif;

}

#cursor {
  color: darkgreen ;
  animation: blink 1s linear infinite;
   font-size: 10vw;
}

@keyframes blink {
  0% {
    opacity: 100%;
  }
  50% {
    opacity: 0%;
  }
}

#compromiso {
  display:grid;
  font-family: "Moderustic", sans-serif;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  padding-top: 20px;
}

#compromiso img{
  height: 100%;
  width: 100%;
  border-radius: 15px;
  padding-left: 10px;
}

#compromiso h1{
  font-size: 8vw
}

#compromiso p{
  font-size: 2.5vh;
  padding:30px;
}

#objetivo {
  display:grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-content: center;
  text-align: center;
  grid-gap: 20px;
  margin-top: 20px;
  font-family: "Moderustic", sans-serif;
}

#objetivo img{
  height: 100%;
  width: 100%;
  border-radius: 15px;
  padding-right: 10px;
}

#objetivo h1{
  font-size: 8vw
}

#objetivo p{
  font-size: 2.5vh;
  padding:30px;
}

#formulario{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px solid darkgreen;
  border-radius: 15px;
  margin:  20px 20% 20px 20% ;
  padding: 50px 55px;
  box-shadow: 0 0 20px black;
}

#formulario h2{
  font-family: "Lexend", sans-serif;
  font-size: 35px;
  font-weight: bold;
  margin-bottom: 15px;
}

#formulario #datos {
text-align: left;
 display: grid;
  grid-template-columns: 1fr 1fr;
  
}

#formulario .mensaje{
  display:grid;
  grid-template-columns: 1fr;
}

label{
  font-weight:bold;
  padding: 10px;
  font-size: 25px;
  font-family: "Lexend", sans-serif;
  margin-top: 20px
}

input, textarea, select, button{
  padding:17px 25px;
  border-radius: 25px;
  background-color: #EDFFF0;
  border: 2px solid darkgreen;
  margin: 0 20px;
  
}

textarea{
  width: 30vw;
  height: 10vw;
}

button{
  margin-top: 20px;
  width: 30vw;
}

button:hover{
  cursor: pointer; 
}
/*footer inicio*/ 
footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background-color: olivedrab;
  color: white;
  font-family: "Ubuntu", sans-serif;
  max-width: 100%;
  overflow: hidden;
  padding: 10px
}

#columna1f {
  display: grid;
  grid-template-rows: 1fr 1fr;
  justify-content: center
}

footer img {
  height: 50px;
  width: 50px;
}

footer h3 {
  padding: 10px;
  font-size: 30px;
}

footer p {
  padding: 10px;
  font-size: 15px;
}

#redes a img {
  height: 40px;
  width: 40px;
  margin-left: 5px;
  border-radius: 10px;
  margin-top: 5px;
  transition: 0.2s ease
}


.logof {
  justify-content: center;
  align-items: center;
}

.logof img {
  height: 100px;
  width: 100px;
  background-color: white;
  border-radius: 20px;
  margin-top: 20px;
  padding: 10px;
}

#ubicacion iframe{
  height:150px
}

/* animacion de imagenes en la que mientras bajas aparecen */
@keyframes show {
  from {
    opacity: 0;
    scale: 25%
  }

  to {
    opacity: 1;
    scale: 100%
  }
}

#info img,
#Infraestructura img,
#arboles img {
  view-timeline-name: --image;
  view-timeline-axis: block;

  animation-timeline: --image;
  animation-name: show;

  animation-range: entry 25% cover 30%;
  animation-fill-mode: both
}

/*esonconder menu normal y mostrar icono de menu*/
@media(max-width: 800px) {
  .hideOnMobile {
    display: none;
  }
  header ul{
    margin-top:0px;
  }
  .menu-button {
    display: block; /* Asegura que sea visible */
    position: absolute; /* Para posicionarlo con precisión */
    top: 10px; /* Ajusta hacia arriba */
    right: 10px; /* Alinea hacia la derecha */
    z-index: 10; /* Asegura que esté en la parte superior */
  }
  #formulario #datos{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width:120%;
    grid-gap: 10px;
  }
  label{
    display:none;
  }
  input, textarea, select, button{
    width:35vh;
  }
  textarea{
    margin-top: 10px;;
    height: 15vh;
  }
  header {
    grid-template-columns: 1fr; /* Simplifica el diseño del header */
    padding: 10px; /* Ajusta el espacio interno */
  }

  .menu-button img {
    width: 80px; /* Tamaño del icono */
    height: 80px;
  }
}

@media(max-width: 630px){
  #info{
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr;
  }
  #compromiso, #objetivo{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  #Infraestructura, #arboles{
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }
  header{
    margin-bottom:400px;
    height: 95px
    }
    #formulario{
      width:80%;
      margin:30px;
      padding: 10px;
      
    }
  .imagen-equipo img{
    width: 100%;
    height: auto;
    display: block;
    padding-top: 20px;
  }
  
  .sidebar {
    width: 100%;
  }
  footer{
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr;
  }
}