* {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden; /* Evita la barra de desplazamiento horizontal */
  }

.encabezado {
    background-color: black;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 15px;
    color: white;
    align-items: center;
  
  }
  
  .lista-encabezado ul {
    display: flex;
    flex-direction: row;
    gap: 15px;
  }
  
  #opciones {
    padding: 5px;
    border-radius: 10%;
  }
  
  nav ul li a {
    text-decoration: none;
    color: white
  }
  
  nav ul li a:hover {
    color: #feb602;
  }

  .contenedor-logo {
    display: flex;
    flex-direction: row;
    gap:5px
  }

  #logo {
    width: 36px;
    height: 36px;

}
.carousel-container * {box-sizing:border-box}
.carousel-container .mySlides {display:none}
.carousel-container img {vertical-align: middle;}


.slideshow-container {
  max-width: 850px;
  position: relative;
  margin: auto;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {right: 0; border-radius: 3px 0 0 3px;}
.prev:hover, .next:hover {background-color: rgba(0,0,0,0.8);}

.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

.text {
  color: #f2f2f2;
  font-size: 1.3em;
  padding: 8px 12px;
  position: absolute;
  bottom: 30%;
  gap:10px;
  width: 100%;
  text-align:justify;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  padding:20px 60px;

}

.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

#img-c {
  width: 100%;
  height: 100%;
  margin-top:5px
}

@-webkit-keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}





.nosotros {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap:20px;
    margin-top: 20px;
}

.mision,.vision,.objetivos {
    display: flex;
    flex-direction: row;
    text-align: center;
    border: solid black 1px;
}



.contenedor-texto {
    width: 304px;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: space-around;
    padding: 20px
    
}

.contenedor-texto p {
    font-size: 1.2em;
}



#img-vision {
    width: 343px;
    height: 291px;
}


.h1-nosotros,.h1-tramites {
    background-color: black;
    color: white;
    padding: 15px;
}


#img-tramites{
  width: 380px;
  height: 300px;
  border:solid black 1px
}

.tramites {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    gap:15px;
    margin: 2% 0;
}

.tramites ul li {
    font-size: 1.3em;
}

.tramites ul li:hover {
    color: #5b4202;
}

/* Agrega estilos para el menú de navegación */
.lista-encabezado ul {
    display: flex;
    flex-direction: row;
    gap: 15px; /* Espacio entre elementos del menú */
  }
  
  .lista-encabezado ul li {
    list-style: none;
  }
  
  .lista-encabezado ul li a {
    text-decoration: none;
    color: white;
  }
  
  .lista-encabezado ul li a:hover {
    color: #feb602;
  }
  
  /* Estilos para el botón de hamburguesa en dispositivos móviles */
  .hamburguesa-btn {
    display: none; /* Oculta el botón de hamburguesa por defecto */
  }


  #gmail {
    width: 38px;
    height: 32px;
  }

  .contenedor-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap:10px

  }


  footer {
    height: 50px;
    background-color: black;
    color: white;
  }
  
  footer a img {
    width: 30px;
    height: 30px;
    color: white;
  }
  
  footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px;
    align-items: center;
  }
  
  .iconos-contenedor {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
  }
  
  /* .premium {
    background-color: #feb602;
    color: black;
    padding: 10px;
    border-radius: 5%;
  } */
  
  footer a {
    text-decoration: none;
  }

  #contacto {
    width: 420px;
    height: 360px;
    border:1px solid black
    }

.seccion-contacto {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  margin: 3% 0
}

.contenedor-form {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap:20px
}

form {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap:8px
}

.h1-consulta {
  width: 250px;
  background-color: black;
  color: white;
  margin:2% 40%;
  padding:15px
}

.input-enviar{
  background-color: black;
  color: white;
  padding: 5px;
  border-radius: 10%;
}
  
.input-enviar:hover {
  background-color: #feb602;
  color:black
}

form label {
  font-weight: 600;
}

textarea {
  resize: none;
  font-size: 1.1em;
  font-family: Arial, Helvetica, sans-serif;
}

form input {
  font-size: 1.1em;
}

#empresa {
  width: 350px;
  height: 300px;
  border: 1px solid black;
}

.correo-enviado {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap:30px;
  margin: 3% 0;
}

#img-t {
  width: 32px;
  height: 32px;
}

.contenedor-grid {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  grid-template-columns: 1fr 1fr 1fr;
  margin: 1% 20%;
  gap:50px
  

}

.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 200px;
  text-align: center;
  border: black 1px solid;
  gap:5px;
  padding:10px;
  transition: transform 0.3s ease;
}

.grid-item:hover {
  transform: scale(1.1);
}



  /* Estilos adicionales según sea necesario para pantallas pequeñas */
  @media screen and (max-width: 700px) {
    /* Estilos para pantallas con ancho máximo de 600px */
  
    /* Muestra el botón de hamburguesa solo en dispositivos móviles */
    .hamburguesa-btn {
        display: block;
        background-color: transparent;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
        position: absolute;
        top: 15px;
        right: 15px;
        z-index: 1100;
    }
  
    /* Oculta el menú de navegación por defecto en dispositivos móviles */
    .lista-encabezado ul {
        display: none;
        flex-direction: column;
        background-color: rgb(5, 4, 67);
        position: absolute;
        top: 60px; /* Ajusta esta posición según el tamaño de tu encabezado */
        left: 0;
        width: 100%;
        padding: 10px;
        z-index: 1000;
    }
  
    /* Muestra el menú de navegación cuando la clase 'mostrar-menu' está presente */
    .lista-encabezado ul.mostrar-menu {
        display: flex;
    }
  
    .lista-encabezado ul li {
        margin-bottom: 10px;
    }
    

    

    .prev, .next {
      top: calc(15% - 10px); /* Ajusta este valor según sea necesario */
  }

    footer a img {
        width: 20px;
        height: 20px;
        color: white;
      }
    
    
      footer {
        height: 80px;
        background-color: rgb(5, 4, 67);
        color: white;
        margin-top:5%
      }
      
      footer a img {
        width: 25px;
        height: 25px;
        color: white;
      }
      
      footer {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 10px;
        align-items: center;
      }
      
      .iconos-contenedor {
        display: flex;
        flex-direction: row;
        gap: 10px;
        align-items: center;
      }
      
      /* .premium {
        background-color: #feb602;
        color: black;
        padding: 10px;
        border-radius: 5%;
      } */
 

      .mision,.vision,.objetivos {
        display: flex;
        flex-direction: column;
        text-align: center;
        border: solid black 1px
    }


    #contacto {
      width: 300px;
      height: 260px;
  }

    .contenedor-form {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap:20px
    }

      .h1-consulta {
        width: 250px;
        background-color: black;
        color: white;
        margin:4% 15%;
        padding:15px
      }

    .tramites ul li {
      font-size: 0.9em;
    }

    .contenedor-texto {
      width: 304px;
      display: flex;
      flex-direction: column;
      text-align: center;
      justify-content: space-around;
      padding: 20px;
      gap:20px;
      
  }

  .tramites {
    margin: 5% 0;
  }

  .contenedor-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin:2% 0;
    
  
  }
  
  .grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    text-align: center;
    border: black 1px solid;
    gap:5px;
    padding:10px
  }


  .text {
    font-size: 1em; /* Ajusta el tamaño del texto para pantallas más pequeñas */
    padding: 10px; /* Ajusta el padding según sea necesario */
    width: 100%; /* Ajusta el ancho del texto según sea necesario */
  }

  .text h1 {
    font-size: 1.3em; /* Ajusta el tamaño de la etiqueta h1 para pantallas más pequeñas */
  }

  .text p {
    font-size: 0.9em; /* Ajusta el tamaño de los párrafos para pantallas más pequeñas */
  }
}



  /* Animaciones */

  /* Solo en pantallas grandes */

  @media screen and (min-width: 701px) {

    .vision {
      position: relative;
      left: 100%;
      transition: left 1.5s ease;
      
    }
  
    .vision.animate {
       left: 0; /* Posición original */
  }
  
  .mision {
    position: relative;
    left: -100%;
    transition: left 1.5s ease;
    
  }
  
  .mision.animate {
     left: 0; /* Posición en el centro de la pantalla */
     
  }

  .objetivos {
    position: relative;
    left: -100%;
    transition: left 1.5s ease;
    
  }

  .objetivos.animate {
     left: 0; /* Posición original */
}

  
  }

  @media screen and (min-width: 701px) and (max-width: 1140px) {

    .contenedor-grid {
      display: grid;
      grid-template-rows: 1fr 1fr ;
      grid-template-columns: 1fr 1fr;
      margin: 1% 20%;
      gap:50px
      
    
    }
    
    .grid-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 200px;
      text-align: center;
      border: black 1px solid;
      gap:5px;
      padding:10px;
    }

 
  
    .centrado {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      width: 200px;
      text-align: center;
      border: black 1px solid;
      gap:5px;
      padding:10px;
      margin:0 65%
    }
  }