main {
  text-align: center;
  color: #333333;
}

.header1, .header1M {
  position: relative;
  text-align: center;
  color: white;
}

main .grid-container {
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px; 
}

main .grid-item {
  display: flex; 
  flex-direction: column;
  align-items: center; 
}

h3 {
  color: #ffffff;
  background-color: #848688;
  padding: 3vw;
}

h4 {
  max-width: 250px;
}

.contenidoheader, .contenidoheader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-shadow: 2px 2px 3px #00000080;
}

.contenidoheader .botonesHdr {
  display: flex;
  justify-content: center;
  align-items: center; /* Optional vertical centering */
  margin-top: 20px; /* Adjust as needed */
  text-shadow: none;
}

.botonCtzr a {
  background-color: #28bcf6;
  padding: 1vw;
  border: none;
  margin-left: 5px;
  margin-right: 5px;
  color: #1b1b1b;
  text-decoration: none;
  box-shadow: 2px 2px 6px #00000080;
  font-weight: bold;
  text-shadow: none;
}

.contenidoheader a {
  padding: 1.5vw;
  border: none;
  background-color: #ffffff;
  margin-left: 5px;
  margin-right: 5px;
  transition: 0.2s; 
  color: #1b1b1b;
  text-decoration: none;
  font-size: 20px;
  display: block;
  box-shadow: 2px 2px 6px #00000080;
}

.contenidoheader .botonCtzr a {
  background-color: #28bcf6;
}

.guia {
  color: #ffffff;
  background-color: #848688;
  padding: 1vw;
}

p {
  text-align: center;
  font-size: 15px;
}

.grid-item img {
  width: 100%; 
  object-fit: contain; 
}



/* -----------------------------codigo para hacer la pagina responsiva de escritorio---------------------------- */
@media screen and (min-width: 1051px) {

  .header1M {
    display: none;
  }

  .textoheader1 {
    font-size: 4vw;
  }

  .textoheader2 {
    font-size: 2vw;
  }

  h1 {
    font-size: 30px;
  }
  
  h2 {
    font-size: 20px;
    display: flex;
    flex-direction: column;
  }
  
  h3 {
    font-size: 20px;
    padding: 3vw;
  }

  .grid-item img {
    max-height: 100px; 
  }

  .botonCtzr a:hover {
    color: white;
    background-color: #0080c5;
  }
  
  .plan video {
    width: 640px;
    height: 360px;
  }

}

/* -----------------------------codigo para hacer la pagina responsiva de celular---------------------------- */
@media screen and (max-width: 1050px) {

  .header1 {
  display: none;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 20px;
  }
  
  h3 {
    padding: 20px;
  }

  h4 {
    font-size: 15px;
  }

  h5 {
    font-size: 14px;

  }

  .grid-item img {
    max-height: 15vw; 
  }
  
  .plan video {
    width: 320px;
    height: 180px;
  }
}