@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500&family=Poppins:wght@400;500&display=swap");
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body{
  overflow-x: hidden;
  background-color: aliceblue;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  flex-direction: column;
}

.containerinicio{
  width: 100%;
  height: 50vh;
  background-image: url(img/img3.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 20px;
}

.textos{
 position: relative;
 top: 250px;
}

.textos h1{
  font-size: 28px;
  display: flex;
  justify-content: center;
  background-color: aliceblue;
  padding: 10px 15px;
  width: 725px;
}

.textos h2{
  font-size: 21px;
  background-color: black;
  display: flex;
  justify-content: center;
  color: aliceblue;
  padding: 10px 25px;
  width: 800px;
}

.teximg{
  width: 100%;
  height: 100%;
}


.containerinfo{
  width: 1355px;
  height: 650px;
  display: grid;
  place-items: center;
  grid-template-columns: repeat(4, 1fr);
}

.containerinfo .container{
  width: 95%;
  height: 460px;
  margin-top: 150px;
  background-color: white;
  box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 10px;
}

.imagen-grid img{
  width: 70%;
  margin: -100px;
  box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.5);
}

.texto-grid{
  margin-top: 150px;
}
.texto-grid h1{
  font-size: 22px;
  padding: 0px 0px;
}
.texto-grid p{
  font-size: 14px;
  padding: 10px 25px;
  opacity: 75%;
}

.final-de-pagina{
  background-color: #161616;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  color: aliceblue;
  font-weight: 500;
}

.btn-contact{
  margin-top: 50px;
  color: aliceblue;
  background-color: rgba(0, 183, 255, 0.9);
  width: 250px;
  height: 60px;
  font-size: 18px;
  font-weight: 600;
  padding: 5px;
  border: none;
  box-shadow: 2px 1px 5px 2px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: all .2s ease;
}


@media (width < 1360px){
  
  .containerinicio{
    width: 1000px;
    height: 50vh;
    background-image: url(img/img3.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 20px;
  }

  .containerinfo{
    width: 1000px;
    height: 500px;
    display: grid;
    place-items: center;
    grid-template-columns: repeat(4, 1fr);
  }

  .containerinfo .container{
   margin-top: -20px;
   height: 450px;
  }

  .containerinfo .container .texto-grid{
   margin-top: 120px;
  }

  .texto-grid h1{
    font-size: 18px;
    padding: 0px 2px;
  }
  .texto-grid p{
    font-size: 12px;
    padding: 10px 25px;
    opacity: 75%;
  }
  
}

@media (width < 1093px){
  .containerinicio{
    width: 100%;
    height: 50vh;
    background-color: white;
    background-image: url(img/img3.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 20px;
  }

  .textos h1{
    font-size: 22px;
    display: flex;
    justify-content: center;
    background-color: aliceblue;
    padding: 10px 15px;
    width: 710px;
  }
  
  .textos h2{
    font-size: 18px;
    background-color: black;
    display: flex;
    justify-content: center;
    color: aliceblue;
    padding: 10px 25px;
    width: 700px;
  }

  .containerinfo{
    width: 800px;
    height: 850px;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    grid-template-rows: repeat(2,1fr);
    gap: -100px;
  }

  .containerinfo .container{
   margin-top: 50px;
   height: 340px;
   width: 340px;
  }

  .imagen-grid img{
    width: 200px;
    box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.5);
  }

  .texto-grid h1{
    font-size: 19px;
    padding: 0px 2px;
  }
  .texto-grid p{
    font-size: 11px;
    padding: 10px 25px;
    opacity: 85%;
  }
  
}

@media (width < 801px){
  body{
    overflow-x: hidden;
  }
  .containerinicio{
    width: 700px;
    height: 50vh;
    background-image: url(img/img3.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat; 
    padding: 20px;
  }

  .textos h1{
    font-size: 22px;
    display: flex;
    justify-content: center;
    background-color: aliceblue;
    padding: 10px 15px;
    width: 600px;
  }
  
  .textos h2{
    font-size: 15px;
    background-color: black;
    display: flex;
    justify-content: center;
    color: aliceblue;
    padding: 10px 25px;
    width: 600px;
  }

  .containerinfo{
    width: 700px;
    height: 800px;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    grid-template-rows: repeat(2,1fr);
    gap: -400px;
  }

  .containerinfo .container{
   margin-top: 50px;
   height: 355px;
   width: 340px;
  }

  .imagen-grid img{
    width: 200px;
    box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.5);
  }

  .texto-grid h1{
    font-size: 19px;
    padding: 0px 2px;
  }
  .texto-grid p{
    font-size: 11px;
    padding: 10px 25px;
    opacity: 85%;
  }
}

@media (width < 702px){
  body{
    overflow-x: hidden;
  }

  .containerinicio{
    width: 600px;
    height: 50vh;
    background-image: url(img/img3.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat; 
    padding: 20px;
  }

  .textos{
    margin-top: -30px;
  }

  .textos h1{
    font-size: 20px;
    display: flex;
    justify-content: center;
    background-color: aliceblue;
    padding: 5px 10px;
    width: 520px;
  }
  
  .textos h2{
    font-size: 15px;
    background-color: black;
    display: flex;
    justify-content: center;
    color: aliceblue;
    padding: 1px 20px;
    width: 490px;
  }

  .containerinfo{
    width: 600px;
    height: 900px;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    grid-template-rows: repeat(2,1fr);
    gap: -400px;
  }

  .containerinfo .container{
   margin-top: 50px;
   height: 390px;
   width: 290px;
  }

  .imagen-grid img{
    width: 200px;
    box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.5);
  }

  .texto-grid h1{
    font-size: 20px;
    padding: 0px 2px;
  }
  .texto-grid p{
    font-size: 12px;
    padding: 10px 25px;
    opacity: 85%;
  }
}

@media (width < 601px){
  body{
    overflow-x: hidden;
  }

  .containerinicio{
    width: 480px;
    height: 50vh;
    background-image: url(img/img3.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat; 
    padding: 20px;
  }

  .textos{
  margin-top: 80px;
  }

  .textos h1{
    font-size: 17px;
    display: flex;
    justify-content: center;
    background-color: aliceblue;
    padding: 5px 6px;
    width: 450px;
  }
  
  .textos h2{
    font-size: 13px;
    background-color: black;
    display: flex;
    justify-content: center;
    color: aliceblue;
    padding: 10px 25px;
    width: 390px;
  }

  .containerinfo{
    margin-top: 15px;
    width: 480px;
    height: 2800px;
    display: grid;
    grid-template-columns: repeat(1,1fr);
    grid-template-rows: repeat(4,1fr);
    gap: -400px;
  }

  .containerinfo .container{
   margin-top: 50px;
   height: 590px;
   width: 100%;
  }

  .imagen-grid img{
    width: 350px;
    margin-top: -50px;
    box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.5);
  }

  .texto-grid h1{
    font-size: 35px;
    padding: 0px 2px;
  }
  .texto-grid p{
    font-size: 20px;
    padding: 10px 25px;
    opacity: 85%;
  }

  .dos h1{
   font-size: 33px;
  }
}

@media (width < 501px){
  body{
    overflow-x: hidden;
  }

  .containerinicio{
    width: 426px;
    height: 50vh;
    background-image: url(img/img3.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat; 
    padding: 20px;
  }

  .textos{
  margin-top: 50px;
  }

  .textos h1{
    font-size: 17px;
    display: flex;
    justify-content: center;
    background-color: aliceblue;
    padding: 5px 6px;
    width: 390px;
  }
  
  .textos h2{
    font-size: 13px;
    background-color: black;
    display: flex;
    justify-content: center;
    color: aliceblue;
    padding: 10px 25px;
    width: 370px;
  }

  .containerinfo{
    margin-top: 15px;
    width: 400px;
    height: 2800px;
    display: grid;
    grid-template-columns: repeat(1,1fr);
    grid-template-rows: repeat(4,1fr);
    gap: -400px;
  }

  .containerinfo .container{
   margin-top: 50px;
   height: 590px;
   width: 100%;
  }

  .imagen-grid img{
    width: 350px;
    margin-top: -50px;
    box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.5);
  }

  .texto-grid h1{
    font-size: 30px;
    padding: 0px 2px;
  }
  .texto-grid p{
    font-size: 18px;
    padding: 10px 25px;
    opacity: 85%;
  }

  .dos h1{
   font-size: 33px;
  }
}

@media (width < 501px){
  body{
    overflow-x: hidden;
  }

  .containerinicio{
    width: 420px;
    height: 50vh;
    background-image: url(img/img3.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat; 
    padding: 20px;
  }

  .textos{
  margin-top: 10px;
  }

  .textos h1{
    font-size: 17px;
    display: flex;
    justify-content: center;
    background-color: aliceblue;
    padding: 5px 6px;
    width: 300px;
  }
  
  .textos h2{
    font-size: 13px;
    background-color: black;
    display: flex;
    justify-content: center;
    color: aliceblue;
    padding: 10px 25px;
    width: 320px;
  }

  .containerinfo{
    margin-top: 15px;
    width: 375px;
    height: 2550px;
    display: grid;
    grid-template-columns: repeat(1,1fr);
    grid-template-rows: repeat(4,1fr);
    gap: -400px;
  }

  .containerinfo .container{
   margin-top: 50px;
   height: 550px;
   width: 100%;
  }

  .imagen-grid img{
    width: 350px;
    margin-top: -50px;
    box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.5);
  }

  .texto-grid h1{
    font-size: 25px;
    padding: 0px 2px;
  }
  .texto-grid p{
    font-size: 16px;
    padding: 10px 25px;
    opacity: 85%;
  }

  .dos h1{
   font-size: 33px;
  }
}

@media (max-width: 932px) and (max-height: 430px) {
  body{
    overflow-x: hidden;
  }

  .containerinicio {
    width: 90%; /* Ajusta el contenedor al ancho completo */
    height: 100vh; /* Reduce la altura para que no ocupe toda la pantalla */
  }

  .textos {
    top: 200px; /* Baja los textos para que no queden muy arriba */
  }

  .textos h1, .textos h2 {
    width: 100%; /* Que los textos ocupen todo el ancho disponible */
    font-size: 20px; /* Ajusta el tamaño de las letras */
    padding: 10px; 
  }

  .containerinfo {
    grid-template-columns: repeat(2, 1fr); /* Cambia la grilla de 4 columnas a 2 columnas */
    height: 1000px; /* Permite que la altura se ajuste al contenido */
    /* background-color: aqua; */
    margin-top: 100px; /* Da más espacio entre el contenido */
  }

  .containerinfo .container {
    height: 400px; /* Ajusta la altura de las tarjetas */
    margin-top: 0; 
  }

  .imagen-grid img {
    width: 80%; /* Hace que las imágenes se vean más grandes en pantallas pequeñas */
    margin: -70px auto; /* Centra y ajusta para que no se desborden */
  }

  .texto-grid {
    margin-top: 100px; /* Baja los textos */
  }

  .texto-grid h1 {
    font-size: 18px; 
  }

  .texto-grid p {
    font-size: 12px; 
  }
}


@media (max-width: 1024px) and (max-height: 600px) {
  body{
    overflow-x: hidden;
  }
  
  .containerinicio {
    width: 100%; /* Se adapta al ancho completo */
    height: 95vh; /* Mantiene la proporción */
  }

  .textos {
    top: 350px; /* Baja los textos para que no queden pegados arriba */
  }

  .textos h1, .textos h2 {
    width: 90%; /* Ocupa casi todo el ancho, pero deja márgenes */
    font-size: 24px; /* Letras un poco más chicas */
    padding: 10px;
    margin: auto; /* Centra los textos */
    text-align: center;
  }

  .containerinfo {
    grid-template-columns: repeat(2, 1fr); /* Dos columnas para mejor adaptación */
    height: auto; /* Ajuste automático al contenido */
    margin-top: 100px; 
    gap: 20px; /* Espacio entre tarjetas */
  }

  .containerinfo .container {
    height: 470px; /* Ajusta la altura */
    margin-top: 100px; 
  }

  .imagen-grid img {
    width: 80%; /* Tamaño ideal para pantallas medianas */
    margin: -50px auto; /* Centra la imagen */
    display: block;
  }

  .texto-grid {
    margin-top: 120px; 
  }

  .texto-grid h1 {
    font-size: 20px; 
  }

  .texto-grid p {
    font-size: 13px; 
  }
}

@media only screen and (max-width: 412px) and (orientation: portrait){
  .containerinicio {
    width: 100%; /* Se adapta al ancho completo */
    height: 60vh; /* Mantiene la proporción */
  }

  .containerinfo img{
    width: 300px;
  }

  .containerinfo{
    width: 350px;
    padding: 10px;
  }
}

