@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Poppins:wght@300&display=swap");
@import url("https://fonts.googleapis.com/css?family=Caveat|Lato:400,700|Patua+One&display=swap");

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: poppins, "Helvetica Neue";
    background-color: #f6f2ed;
    box-sizing: border-box;
  }

  main {
    flex: 1;
}
  .boton-productListAdmin {
    text-align: center;
    margin-top: 10px;
  }
  
  /* =========================================================
   ENCABEZADO DEL CATÁLOGO
========================================================= */

.catalogo-header {

    text-align: center;

    padding: 35px 20px 10px;

    max-width: 850px;

    margin: 0 auto;

}


/* TÍTULO */

.catalogo-header h1 {

    margin: 0;

    color: #61234A;

    font-family:
        "Patua One",
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(36px, 5vw, 52px);

    font-weight: normal;

    letter-spacing: 1px;

}


/* DECORACIÓN DEBAJO DEL TÍTULO */

.catalogo-header h1::after {

    content: "";

    display: block;

    width: 70px;

    height: 3px;

    margin: 12px auto 14px;

    background:
        linear-gradient(
            to right,
            #E1A5CA,
            #61234A,
            #E1A5CA
        );

    border-radius: 10px;

}


/* TEXTO */

.catalogo-header p {

    margin: 0 auto;

    max-width: 650px;

    color: #666;

    font-size: 16px;

    line-height: 1.7;

    font-weight: 300;

}


/* =========================================================
   CATÁLOGO DE CATEGORÍAS
========================================================= */

.row-products {

    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 30px;

    width: min(1400px, 92%);

    margin: 0 auto;

   padding: 30px 0 70px;

    box-sizing: border-box;
}


/* ---------------------------------------------------------
   TARJETA DE CATEGORÍA
--------------------------------------------------------- */

.container-category {

    width: 100%;

}


.category-card {

    display: flex;

    flex-direction: column;

    height: 100%;

    background: #ffffff;

    border-radius: 22px;

    overflow: hidden;

    text-decoration: none;

    box-shadow:
        0 8px 25px rgba(35, 48, 91, 0.10);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;

}


/* ---------------------------------------------------------
   EFECTO HOVER
--------------------------------------------------------- */

.category-card:hover {

    transform: translateY(-8px);

    box-shadow:
        0 18px 40px rgba(97, 35, 74, 0.22);

}


/* ---------------------------------------------------------
   IMAGEN
--------------------------------------------------------- */

.category-image {

    position: relative;

    width: 100%;

    height: 280px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    background-color: #f8f4f1;

}


.category-image img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: contain;

    padding: 8px;

    box-sizing: border-box;

    transition: transform 0.5s ease;

}

/* Zoom suave */

.category-card:hover .category-image img {

    transform: scale(1.06);

}


/* Degradado inferior */

.category-image::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: 0;

    width: 100%;

    height: 35%;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.25),
            transparent
        );

    pointer-events: none;

}


/* ---------------------------------------------------------
   INFORMACIÓN
--------------------------------------------------------- */

.category-info {

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    padding: 22px 18px 25px;

    flex: 1;

}

.category-info h2::after {

    content: "";

    display: block;

    width: 45px;

    height: 2px;

    margin: 10px auto 0;

    background-color: #E1A5CA;

    border-radius: 5px;

}
/* ---------------------------------------------------------
   NOMBRE DE CATEGORÍA
--------------------------------------------------------- */

.category-info h2 {

    margin: 0;

    color: #61234A;

    font-family:
        "Patua One",
        Georgia,
        serif;

    font-size: 25px;

    font-weight: normal;

    line-height: 1.2;

}


/* ---------------------------------------------------------
   DESCRIPCIÓN
--------------------------------------------------------- */

.category-info p {

    margin: 10px 0 0;

    color: #666;

    font-size: 14px;

    line-height: 1.5;

}


/* ---------------------------------------------------------
   VER COLECCIÓN
--------------------------------------------------------- */

.category-info span {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    margin-top: 18px;

    padding: 8px 18px;

    border-radius: 20px;

    background-color: #61234A;

    color: white;

    font-size: 14px;

    font-weight: 600;

    transition:
        background-color 0.3s ease,
        transform 0.3s ease;

}


.category-card:hover .category-info span {

    background-color: #23305B;

    transform: translateY(-2px);

}
  /*-----------------------------página categoría pirámides---------------------------*/
  .titulo-subcategoria{
    display: flex;
    justify-content: center;
    background-color: #23305B;
    color: white;
    padding: 20px;
    margin: 10px 30px 5px 30px
  }

  .row-piramides{
    display: flex;
    flex-direction:row;
    flex-wrap: wrap;
    padding: 20px; 
    justify-content: space-around;
    gap: 20px;
    box-sizing: border-box;
  }
  .section-piramide{
    width: 25%;
    display:flex;
    flex-direction: column;
    padding: 12px;
  }

  .section-piramide:hover{
    box-shadow: 0px 0px 6px 6px #77AAB6;
  }
  .section-piramide button{
    background-color: #E1A5CA;
    width:100%;
    text-align: center;
    border: none;
    padding: 8px;
    cursor: pointer;
    margin: 0 auto;
  }


  .section-piramide button:hover{
    background-color: #61234A;
    color: white
  }

  .catPiramides img{
    width: 100%
  }
  .volver-product{
    width: 100%;
    text-decoration: none;
    padding: 30px;
    margin-right: 20px;
    text-align: right;
    box-sizing: border-box;
  }

  .volver-product a:link{
    text-decoration: none;
    font-size: 20px;
  }

  /*--------------------------página piramidesA----------------------------------*/

  h3{
    text-align: center;
    padding: 15px;
  }

  .contenedor-piramidesA{
    display: flex;
    flex-direction: column;
  }

  .section-piramidesA1{
    background-color: white;
    padding:5px;
  }
  
  .section-piramidesA1 img{
    border-bottom: solid 1px black;
    max-width: 284px; /* Tamaño máximo deseado para las imágenes */
    max-height: 284px; /* Tamaño máximo deseado para las imágenes */
    width: auto; /* Para mantener la proporción de la imagen */
    height: auto; /* Para mantener la proporción de la imagen */
  }
 .section-piramidesA1 p{
  font-family: "Patua One", Georgia, "Times New Roman", Times, serif;
  text-align: center;
 }
  .botonDetail a{
    color: black;
    text-decoration-line: none;
  }

  .boton-piramidesA {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: #61234A; ;
    text-decoration: none;
    padding: 10px;
    border-radius: 15px;
    cursor: pointer;
  }
  .boton-verDetalle button {
    width: 100%;
    margin-top: 10px;
    background-color: #61234A;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

  .boton-verDetalle button:hover{
    background-color: #00A4BD;
    color: black;
    border: none
  }

  .boton-piramidesA a{
    color: white;
    text-decoration-line: none;
    text-align: center;
  }

  .ultimaSeccion-ProductList{
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
  }

  .ultimaSeccion-ProductList i{
    margin-left: 5px;
  }

  .ultimaSeccion-ProductList button{
    background-color: #23305B;
    color: white;
    border-radius: 15px;
    border: none;
    padding: 8px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
  }

  .ultimaSeccion-ProductList button:hover{
    transform: scale(1.1);
    background-color: #77AAB6;
    color: black;
  }

  /*------------------- piramides----------------------------------*/

  .img-piramide{
text-align: center;
  }


  .boton-verDetalle button {
    visibility: visible;
     opacity: 1;
   /* transition: visibility 0.3s ease; /* Agregar una transición suave */
}
/*.section-piramidesA1 :hover {
  border: 1 px solid rgb(77, 76, 76)
}*/
/*.section-piramidesA1:hover .boton-verDetalle button {
    visibility: visible; /* Mostrar el botón cuando se hace hover sobre la sección */
   



/*--------------------------resultado de busqueda--------------------------*/
.title-busqueda {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: "Patua One", Georgia, "Times New Roman", Times, serif;
}

.title-busqueda h1 {
 text-align: center;
 font-weight: lighter;
}

.title-busqueda p{
  text-align: center;
  font-weight: bold;
 }
/*----------------------------------------Media Queries----------------------------------------*/

@media (max-width: 480px) {

   .row-products {

        grid-template-columns: 1fr;

        width: 88%;

        gap: 25px;

        padding-top: 30px;

    }

    .category-image {

        height: 240px;

    }

    .category-info {

        padding: 20px 15px 23px;

    }

    .category-info h2 {

        font-size: 23px;

    }


  .row-piramides {
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
    width: 100%; /* Ajusta según sea necesario */
    height: 100%; /* Ajusta según sea necesario */
    flex-wrap: wrap;
    padding: 20px;
    gap: 20px;
    box-sizing: border-box;
}

.section-piramide {
  width: 90%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
}


}

@media (min-width: 481px) and (max-width: 768px) {

    .row-products {

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 22px;

        width: 90%;

        padding-top: 35px;

    }

.category-image {

        height: 220px;

    }

    .category-info h2 {

        font-size: 22px;

    }

.section-piramide {
  width: 35%;
  display: flex;
  flex-direction: column;
  padding: 12px;
}

.terminosYcondiciones {
  width: 30vw;
  height: 100%;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  justify-content: center;
  padding-left: 3vw;
  padding-right: 5vw;
}
}

@media (min-width: 769px) and (max-width: 1100px) {

    .row-products {

        grid-template-columns: repeat(3, minmax(0, 1fr));

        gap: 25px;

        width: 90%;

    }

    .category-image {

        height: 230px;

    }

}