.grid-item-color {
    display: grid;
    border-top: 1px solid #999;
    border-bottom: 1px solid #999;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    justify-content: center;
    align-items: center;
    height: 50px;
    background-color: #999;
}
.grid-item-color div {
    cursor: pointer;
    color: white;
}

.card-container {
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    justify-content: center;
}

.card {
    display: flex;
    position: relative;
    width: 580px;
    height: 580px;
    align-items: center;
    justify-content: center;
}


@media screen and (max-width: 600px) {
  .card{
    width: 580px;
    height: 450px;
  }
}  

@media screen and (max-width: 500px) {
  .card{
    width: 580px;
    height: 440px;
  }
} 

@media screen and (max-width: 400px) {
  .card{
    width: 560px;
    height: 445px;
  }
} 

.front, .back {
  display: flex;
  position: absolute;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  transition: 1s;
}

.front {
  transform: perspective(1000px) rotateY(0deg);
}

.back {
  transform: perspective(1000px) rotateY(180deg);
}

.card.is-active .front {
  transform: perspective(1000px) rotateY(180deg);
}

.card.is-active .back {
  transform: perspective(1000px) rotateY(360deg);
}
 .containercajas{
    text-align: center;
    
 }


 @media screen and (max-width: 600px) {
  .containercaja{
      display: flex;
      
  }
}

 .cajaproducto {
    /* border: 1px solid red; */
    margin: 20px;
    padding: 20px;
    height: 500px;
    width: 500px;
    box-shadow: 1px 1px 6px;
    border-radius: 10px;
    background-color: rgb(224, 224, 224);
    overflow: hidden;
  }

  @media screen and (max-width: 600px) {
    .cajaproducto{
      margin: 20px;
      padding: 10px;
      height: 430px;
      width: 400px;
    }
  }

  @media screen and (max-width: 500px) {
    .cajaproducto{
      margin: 20px;
      padding: 10px;
      height: 425px;
      width: 400px;
    }
  }

  @media screen and (max-width: 400px) {
    .cajaproducto{
      margin: 20px;
      padding: 10px;
      height: 435px;
      width: 280px;
    }
  }

  .fotosproducto {
    padding: 20px;
    padding-bottom: 20px;
  }
  .cajatextos {
    padding: 5px;
    position: relative;
  }
  .tituloproducto {
    border-top: 1px solid #aaa;
    padding: 15px;
    color: black;
    font-size: 20px;
    font-style: bold;
    font-family: 'Maven Pro', sans-serif;
    background-color: rgb(224, 224, 224);
    border: none;
  }

  @media screen and (max-width: 600px) {
    .tituloproducto{
      font-size: 20px;
    }
  }
 
  @media screen and (max-width: 400px) {
    .tituloproducto{
      font-size: 20px;
    }
  }

  .modeloproducto {
    border-bottom: 1px solid #aaa;
    padding: 15px;
    font-size: 20px;
    font-style: bold;
    font-family: 'Maven Pro', sans-serif;
    background-color: rgb(224, 224, 224);
  }

  @media screen and (max-width: 600px) {
    .modeloproducto{
      font-size: 19px;
    }
  }

  @media screen and (max-width: 500px) {
    .modeloproducto{
      font-size: 17px;
    }
  }

  .container-botones {
    display: flex;
    flex-direction: row;
    padding-top: 5px;
    justify-content: space-between;
    
  }

  .boton-izquierdo {
    display: flex;
  }

  .boton-derecho {
    margin-left: auto;
  }

  .cajaboton {
    margin-right: 10px;
  }

  @media screen and (max-width: 500px) {
    .cajaboton{
      padding-right: 5px !important;
      padding-left: 5px !important;
    }
  }

  .cajaboton:last-child {
    margin-right: 0px;
  }

  @media screen and (max-width: 600px) {
    .container-botones{
      justify-content: center;
      padding: 0px;
      margin: 0px;
    }
  }

  @media screen and (max-width: 500px) {
    .container-botones{
      vertical-align: center;
      padding: 0px;
      margin: -2px;
    }
  }

  @media screen and (max-width: 400px) {
    .container-botones{
      margin-top: 18px;
    }
  }

  .botonproducto {
    padding: 10px;
    background-color: rgb(180,180,180);
    color: rgb(80,80,80);
    font-size: 18px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.3);
    box-shadow: 1px 1px 5px rgba(0,0,0,0.5);
    font-style: bold;
    font-family: 'Maven Pro', sans-serif; 
    min-height: 45px;
    max-height: 45px;
    justify-items: center;
  }

  @media screen and (max-width: 600px) {
    .botonproducto{
      font-size: 14px;
    }
  }

  @media screen and (max-width: 500px) {
    .botonproducto{
      font-size: 12px;
      height: 20px;
      width: 80px;
    }
  }

  .botonproducto:hover{
    color: white;
    background-color: rgb(100,100,100);
  }

  .container-botones .boton-derecho .cajaboton button.botonproducto {
    background-color: rgb(57, 167, 90);
    color: white;
    border: none;
    box-shadow: none;
  }

  /* .container-botones   {
    justify-content: space-between;
  } */

  .cajaboton{
    padding: 15px;
    /* border: 1px solid lightcoral; */
    text-align: left;
  }

  .cajaproducto-b {
    margin: 20px;
    padding: 20px;
    height: 500px;
    width: 500px;
    box-shadow: 1px 1px 6px;
    border-radius: 10px;
    background-color: rgb(224, 224, 224);
    display: flex;
    flex-direction: column;
  }

  @media screen and (max-width: 600px) {
    .cajaproducto-b{
      margin: 20px;
      padding: 10px;
      height: 430px;
      width: 400px;
    }
  }

  @media screen and (max-width: 500px) {
    .cajaproducto-b{
      margin: 20px;
      padding: 10px;
      height: 425px;
      width: 400px;
    }
  }

  @media screen and (max-width: 400px) {
    .cajaproducto{
      margin: 20px;
      padding: 10px;
      height: 435px;
      width: 280px;
    }
  }

 .descripcionproducto {
   padding-top: 10px;
   color: black;
   font-size: 20px;
   font-style: bold;
   font-family: 'Maven Pro', sans-serif;
   border: none;
   padding-bottom: 0px;
 }

 @media screen and (max-width: 600px) {
   .descripcionproducto{
     font-size: 15px;
   }
 }

 @media screen and (max-width: 400px) {
   .descripcionproducto{
     font-size: 14px;
   }
 }

@media screen and (max-width: 500px) {
  .descripcionproducto{
    padding-top: 8px;
    padding-bottom: 0px;
  }
}

 .boton-cerrar{
   padding: 5px 15px;
   background-color: rgb(224, 224, 224, 0.8);
   border: 1px solid rgb(180, 180, 180, 0.8);
   border-radius: 3px;
   cursor: pointer;
   align-self: flex-end;
 }

 @media screen and (max-width: 600px) {
 .boton-cerrar{
  padding: 3px 10px;
  background-color: rgb(224, 224, 224, 0.8);
  border: 1px solid rgb(180, 180, 180, 0.8);
  border-radius: 3px;
  cursor: pointer;
  align-self: flex-end;
  }
 }

 .boton-cerrar:hover {
   background-color:rgb(180, 180, 180);
   box-shadow: 1px 1px 5px rgba(0,0,0,0.2);
 }

.precio {
  float: left;
  position: absolute;
  margin-top: 430px;
  border-radius: 10px;
  padding: 5px;
  background-color:rgba(71, 161, 245, 0.733);
  border-bottom: 1px solid rgba(49, 146, 236, 0.836);
  border-right: 1px solid rgba(49, 146, 236, 0.836);
  color: white;
  font-family: 'Maven Pro', sans-serif;
  font-size: 20px;
  font-style: bold;
}

@media screen and (max-width: 600px) {
  .precio{
    font-size: 15px;
    margin-top: 370px;
  }
}

@media screen and (max-width: 500px) {
  .precio{
    font-size: 15px;
    margin-top: 370px;
    margin-left: 190px;
  }
}

@media screen and (max-width: 400px) {
  .precio{
    font-size: 15px;
    margin-top: 380px;
    margin-left: 170px;
  }
}

.cajadescripcion {
  display: flex;
}

.medidasproducto {
  padding-top: 10px;
  padding-left: 10px;
  color: black;
  font-size: 20px;
  font-style: bold;
  font-family: 'Maven Pro', sans-serif;
  border: none;
}


@media screen and (max-width: 600px) {
  .medidasproducto{
    font-size: 15px;
    padding-top: 8px;
    padding-bottom: 0px;
  }
}

@media screen and (max-width: 400px) {
  .medidasproducto{
    font-size: 14px;
  }
}

@media screen and (max-width: 500px) {
  .medidasproducto{
    padding-top: 8px;
    padding-bottom: 0px;
  }
}

.boton-cerrar{
  padding: 5px 15px;
  background-color: rgb(224, 224, 224, 0.8);
  /* box-shadow: 1px 1px 5px rgba(0,0,0,0.3); */
  border: 1px solid rgb(180, 180, 180, 0.8);
  border-radius: 3px;
  display: flex;
  float: right;
  cursor: pointer;
}

.boton-cerrar:hover {
  background-color:rgb(180, 180, 180);
  box-shadow: 1px 1px 5px rgba(0,0,0,0.2);
}

.especificacion1 {
  padding-top: 1px;
}

@media screen and (max-width: 500px) {
  .especificacion1{
    padding-top: 1px;
  }
}

.especificacion2 {
  padding-top: 2px;
  font-style: bold;
  font-family: 'Maven Pro', sans-serif;
}

@media screen and (max-width: 500px) {
  .especificacion2{
    padding-top: 1px;
  }
}

/* Hacer que el header sea sticky */
#sticky-header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: #1d1d1dd8; /* Color de fondo */
  color: white; /* Color del texto */
  padding: 10px 0; /* Espaciado interno */
  text-align: center; /* Centrar el texto */
  z-index: 1000; /* Asegurar que esté por encima de otros elementos */
}

#sticky-header > .header-content > h1{
  font-family: "poppins", sans-serif !important;
  font-weight: 400;
  font-style: normal;
}

#sticky-header > .header-content > h1 > span{
  font-family: "poppins", sans-serif !important;
  font-weight: 400;
  font-style: normal;
  color: rgb(99, 202, 99);
}

#sticky-header > .header-content > h2{
  font-family: "poppins", sans-serif !important;
  font-weight: 200;
  font-style: normal;
}

/* Contenido del header */
.header-content {
  max-width: 1200px; /* Ancho máximo del contenido */
  margin: 0 auto; /* Centrar horizontalmente */
  padding: 0 20px; /* Espaciado interno */
}

/* Responsividad */
@media (max-width: 600px) {
  #sticky-header {
      padding: 20px 0; /* Ajustar padding en pantallas pequeñas */
  }
  
  .header-content {
      padding: 0 10px; /* Ajustar padding en pantallas pequeñas */
  }

  #sticky-header > .header-content > h1{
    font-family: "poppins", sans-serif !important;
    font-weight: 400;
    font-style: normal;
    font-size: 22px;
  }
  
  #sticky-header > .header-content > h1 > span{
    font-family: "poppins", sans-serif !important;
    font-weight: 400;
    font-style: normal;
    color: rgb(99, 202, 99);
  }
  
  #sticky-header > .header-content > h2{
    font-family: "poppins", sans-serif !important;
    font-weight: 200;
    font-style: normal;
    font-size: 16px;
  }

}

/* Responsividad */
@media (max-width: 400px) {
  #sticky-header {
      padding: 20px 0; /* Ajustar padding en pantallas pequeñas */
  }
  
  .header-content {
      padding: 0 10px; /* Ajustar padding en pantallas pequeñas */
  }

  #sticky-header > .header-content > h1{
    font-family: "poppins", sans-serif !important;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
  }
  
  #sticky-header > .header-content > h1 > span{
    font-family: "poppins", sans-serif !important;
    font-weight: 400;
    font-style: normal;
    color: rgb(99, 202, 99);
  }
  
  #sticky-header > .header-content > h2{
    font-family: "poppins", sans-serif !important;
    font-weight: 200;
    font-style: normal;
    font-size: 14px;
  }

}

#myDiv {
  width: 100%;
  height: 200px;
  background-color: lightblue;
  text-align: center;
  line-height: 200px;
  font-size: 24px;
  position: fixed;
  top: 0;
  left: 0;
  display: none; /* Comienza oculto */
}
