@import url('https://fonts.googleapis.com/css2?family=Alegreya+Sans+SC:ital,wght@0,100;0,300;0,400;0,500;0,700;0,800;0,900;1,100;1,300;1,400;1,500;1,700;1,800;1,900&display=swap'); 
/* -------------------- RESET -------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Alegreya Sans SC", sans-serif !important;
}

.ctn-Main {
    margin: 0;
    padding: 0;
    background-color: #F1EFEC;
    font-family: "Alegreya Sans SC", sans-serif;
}

.logo img {
    height: 50px;
    width: auto;
}

@media (max-width: 1024px) {
    .logo img {
        max-width: 120px;
    }
}

/* Móviles (pantallas menores a 767px) */
@media (max-width: 767px) {
    .logo img {
        max-width: 100px;
    }
}
/* -------------------- SECCION 1 -------------------- */

.seccion1 {
    margin-top: 0;
    padding-top: 0;
    position: relative;
    overflow: hidden;
}

.seccion1-container {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.seccion1-slide img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

/* -------------------- CATEGORÍAS -------------------- */
.seccion-categorias {
    display: flex;
    flex-direction: column;
    gap: 3dvh;
    width: 80%;
    margin: auto;
    padding: 5dvh 0;
}

.seccion-categorias h2 {
    text-align: center;
    font-size: 2rem;
}

.carousel-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    /* max-width: 1200px; */
    /* margin: auto; */
}

.seccion-categorias .listCtnImage {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: fit-content;
}

.seccion-categorias .itemListCtnImage {
    width: 100%;
}

.itemListCtnImage {
    display: flex;
    flex-direction: column;
    flex: 0 0 31%;
    gap: 2dvh;
    position: relative;
    cursor: pointer;
}

.itemListCtnImage img {
    width: 100%;
    height: auto;
    object-fit: fill;
    aspect-ratio: 1;
}

.categoria-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 99%;
    background-color: black;
    opacity: 0.3;
    z-index: 1;
}

.itemListCtnImage .descripcionCategorias {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    translate: -50% -50%;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 70;
    color: white;
}

.btnCategoria {
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: #D4C9BE;
    border: none;
    z-index: 5;
    cursor: pointer;
    translate: 0 -50%;
    transition: left 0.2s, right 0.2s, background-color 0.2s;
}

.btnCategoria:hover {
    background-color: #4B352A;
}

.right {
    left: 2%;
}

.left {
    left: auto;
    right: 2%;
}

.carousel-container:hover > .right {
    left: 0;
}

.carousel-container:hover > .left {
    right: 0;
}

.titulo-categorias {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
  gap: 1rem; 
}

.titulo-categorias::before,
.titulo-categorias::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #4B352A;
  max-width: 1200px;
}

.titulo-categorias h2 {
  font-family: "Alegreya Sans SC", sans-serif;
  font-size: 1.5rem;
  white-space: nowrap;
  color: #4B352A;
}   

/* -------------------- NEW ARRIVALS -------------------- */
.seccion-newArrivals {
    display: flex;
    flex-direction: column;
    gap: 3dvh;
    width: 80%;
    margin: auto;
    padding: 5dvh 0;
}

.seccion-newArrivals h3 {
    color: #4B352A;
}

.seccion-newArrivals .imageWrapper {
    overflow: hidden;
    border-radius: 15px;
}

.seccion-newArrivals .itemListCtnImage img {
    width: 100%;
    display: block;
    filter: drop-shadow(0 0 8px #e7e7e7);
    border-radius: 15px;
    transition: transform 4.5s ease, filter 1.5s ease;
}

.seccion-newArrivals .itemListCtnImage:hover .imageWrapper img {
    transform: scale(1.35);
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.2)) brightness(1.05);
}

.seccion-newArrivals .itemListCtnImage:hover > .spanDeseos {
    opacity: 1;
    visibility: visible;
}

.seccion-newArrivals .itemListCtnImage:hover > .spanArrivalsCart {
    bottom: 20%;
    visibility: visible;
    opacity: 1;
}

.spanDeseos {
    position: absolute;
    top: 3%;
    right: 4%;
    background-color: #fff;
    border-radius: 100%;
    display: flex;
    align-items: center;
    padding: 1dvh;
    opacity: 0;
    visibility: hidden;
    transition: visibility 0.3s, opacity 0.3s;
}

.spanArrivalsCart {
    display: flex;
    flex-direction: row;
    gap: 2dvh;
    position: absolute;
    bottom: 10%;
    left: 50%;
    translate: -50% -50%;
    background-color: white;
    border-radius: 20px;
    padding: 10px 8px;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: bottom 0.2s, visibility 0.2s, opacity 0.2s;
}

.listCtnImage {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    grid-template-rows: 1fr;              
    gap: 4dvh;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ctnTextDescripcion {
    display: flex;
    flex-direction: column;
    gap: 0.5dvh;
    margin-top: 2dvh; 
}

.itemListCtnImage a {
    text-decoration: none;
    color: #4B352A;
}

.itemListCtnImage a p {
    text-decoration: none !important;
    color: #4B352A; 
    margin: 0.2rem 0;
}

.itemListCtnImage .categoriaProducto {
    color: gray !important;
}

/* -------------------- EN TENDENCIA -------------------- */
.seccion-enTendencia {
    display: flex;
    flex-direction: column;
    gap: 3dvh;
    width: 80%;
    margin: auto;
    padding: 5dvh 0;
}

.seccion-enTendencia img {
    filter: drop-shadow(0 0 8px #e7e7e7);
    border-radius: 15px;
}

.seccion-enTendencia .itemListCtnImage:hover > .spanDeseos {
    opacity: 1;
    visibility: visible;
}

.seccion-enTendencia .itemListCtnImage:hover > .spanArrivalsCart {
    bottom: 15%;
    visibility: visible;
    opacity: 1;
}

.seccion-enTendencia .ctn_subTitle {
    display: flex;
    flex-direction: column;
    gap: 1dvh;
}

.ctn_subTitle {
  text-align: center;
  margin-bottom: 2rem;
}

.titulo-categorias {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  color: #4B352A;
}

.titulo-categorias h2 {
  font-family: "Alegreya Sans SC", sans-serif; 
  font-size: 2rem;
  color: #4B352A;
}
.titulo-categorias p {
  margin-top: -20px;
  color: #4B352A;
}

/* -------------------- FOLLOW -------------------- */
.secccion-follow {
    display: flex;
    flex-direction: column;
    gap: 4dvh;
    text-align: center;
}

.listRedesSociales {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.itemListRedesSociales img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: fill;
}

/* -------------------- DETALLES -------------------- */
.listDetalles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    list-style: none;
    padding: 0;
    width: 90%;
    max-width: 1000px;
    margin: 2dvh auto 8dvh;
}

.itemListDetalles {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    flex-basis: 250px;
    max-width: 280px;
}

.itemListDetalles svg {
    fill: #555;
}

.itemListDetalles p {
    font-family: "Alegreya Sans SC", sans-serif;
    font-size: 0.9em;
    color: #4B352A;
    margin: 0;
    line-height: 1.4;
}

/* -------------------- FOOTER -------------------- */

.ctnFooter {
    padding: 10dvh;
    background-color: #D4C9BE;
}

.listFooter {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly; 
    column-gap: 6rem; 
    row-gap: 3rem;    
    list-style: none;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    font-family: "Alegreya Sans SC", sans-serif;
}

.itemListFooter {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5dvh;
    min-width: 220px;
    max-width: 250px;
    align-items: center;
}

.tituloFooter {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 8px;
    text-decoration: none;
    color: #4B352A;
}

.subListFooter {
    display: flex;
    flex-direction: column;
    gap: 1.5dvh;
}

.subListFooter a {
    text-decoration: none;
}

.subListFooter p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
    cursor: pointer;
}

.socialIcons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.socialIcons img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.socialIcons img:hover {
    transform: scale(1.1);
}

.reclamaciones {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.reclamaciones img {
    width: 100px;
    height: auto;
    object-fit: contain;
}

.copyright {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2dvh;
    margin: 2dvh auto 4dvh;
    font-size: 0.85rem;
    color: #666;
    font-family: "Alegreya Sans SC", sans-serif;
}

/* -------------------- WHATSAPP -------------------- */
.ctnWhatsapp{
    position: fixed;
    padding: 2dvh;
    background-color: #08c902;
    bottom: 4%;
    left: 2%;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998 !important;
    cursor: pointer;

    scale: 1;
    visibility: visible;
    opacity: 1;
    
    transition: scale 0.2s, visibility 0.2s, opacity 0.2s, background-color 0.2s;
}

.ctnWhatsapp:hover{
    background-color: #07a001;
}

.ctnWhatsapp-act{
    scale: 0.7;
    visibility: hidden;
    opacity: 0;
}

.ctnWspConversacion{
    font-family: "Alegreya Sans SC", sans-serif;
    position: fixed;
    bottom: 4%;
    left: 2%;
    display: flex;
    flex-direction: column;
    width: 25%;
    z-index: 9999 !important;

    scale: 0.5;
    opacity: 0;
    visibility: hidden;
    transition: scale 0.2s,opacity 0.2s,visibility 0.2s;
}

.ctnWspConversacion-act{
    scale: 1;
    opacity: 1;
    visibility: visible;
}

#closeWsp{
    cursor: pointer;
}

.ctnTopConversation{
    border-top-left-radius: 4dvh;
    border-top-right-radius: 4dvh;
    background-color: #4B352A;
    display: flex; 
    flex-direction: row;
    justify-content: space-between;
    padding: 3dvh;
    color: white;
    align-items: center;
    font-size: 1.2rem;
}

.conversation{
    background-color: #D4C9BE;
    border-bottom-left-radius: 2dvh;
    border-bottom-right-radius: 2dvh;
    padding: 3dvh 2dvh;
    display: flex;
    flex-direction: column;
    gap: 3dvh;
}

.conversation span:first-child{
    color: white;
    background-color: #555;
    padding: 2dvh 4dvh;
    border-radius: 4dvh;
    font-size: 1.1rem;
    position: relative;
    width: 100%;
    text-align: justify;
    box-sizing: border-box;
}

.enviarWsp{
    display: flex;
    align-items: center;
    gap: 2dvh;
    color: white;
    background-color: #123458;
    padding: 1dvh 3dvh;
    border-radius: 5dvh;
    width: max-content;
    text-decoration: none;
}

/* -------------------- MEDIA QUERIES -------------------- */
@media screen and (max-width: 768px) {
    .ctnWhatsapp {
        bottom: 3%;
        left: 3%;
        padding: 1.5dvh;
    }

    .ctnWspConversacion {
        width: 45%;
        left: 4%;
        bottom: 4%;
    }

    .ctnTopConversation {
        padding: 2dvh;
        font-size: 1rem;
    }

    .conversation {
        padding: 2dvh 1.5dvh;
        gap: 2dvh;
    }

    .conversation span:first-child {
        font-size: 1rem;
        padding: 1.5dvh;
    }

    .enviarWsp {
        gap: 1.5dvh;
        font-size: 1rem;
        padding: 1dvh 2dvh;
    }

    .enviarWsp svg {
        width: 30px;
        height: 30px;
    }

    .ctnWspConversacion-act {
        scale: 1;
        opacity: 1;
        visibility: visible;
    }
}


@media (max-width: 768px) {
    .listDetalles {
        grid-template-columns: repeat(3, 1fr);
        gap: 4dvh;
    }

    .listCtnImage {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .seccion-enTendencia .itemListCtnImage:hover > .spanArrivalsCart {
        bottom: 17%;
    }
    
    .listFooter {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .itemListFooter {
        text-align: center;
    }

    .itemListFooter .subListFooter p {
        margin: 0.3rem 0;
    }

    .seccion-categorias .listCtnImage {
        gap: 1dvh;
    }

    .seccion-categorias .itemListCtnImage{
        flex: 0 0 100%;
    }
}


@media (max-width: 480px) {
    .listDetalles {
        grid-template-columns: repeat(2, 1fr);
        gap: 4dvh;
    }

    .listCtnImage {
        grid-template-columns: repeat(1, 1fr);
    }

    .seccion-categorias .listCtnImage {
        gap: 1dvh;
    }

    .seccion-categorias .itemListCtnImage{
        flex: 0 0 100%;
    }
}

@media (max-width: 1024px) {
  .titulo-categorias h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  .titulo-categorias h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .titulo-categorias h2 {
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 768px) {
    .listFooter {
        flex-direction: column;
        align-items: center;
        padding: 0 1rem;
    }

    .itemListFooter {
        align-items: center;
        text-align: center;
    }
    
    .socialIcons,
    .reclamaciones {
        justify-content: center;
        align-items: center;
    }

    .reclamaciones {
        flex-direction: column;
    }
}

/* --------- RESPONSIVE DEL CARRITO --------- */

@media screen and (max-width: 1024px) {
    .ctnCart {
        width: 70vw;
        right: 0;
        max-width: none;
        background-color: #fff;
        height: 100vh;
        overflow-y: auto;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
        position: fixed;
        top: 0;
        z-index: 999;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .itemCart {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }

    .imgItemCart img {
        width: 120px;
        height: auto;
        object-fit: cover;
        border-radius: 0.5rem;
    }

    .descripcionItemCart {
        text-align: center;
        width: 100%;
        padding: 1rem 0;
    }

    .nombreItemCart {
        font-size: 1rem;
    }

    .cantidadItemCart {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        margin: 1rem 0;
    }

    .cantidadItemCart p {
        font-size: 1.2rem;
        padding: 0.3rem 0.7rem;
        border-radius: 5px;
        border: 1px solid #ccc;
        min-width: 32px;
        text-align: center;
    }

    .actItemCart {
        margin-top: 0.5rem;
    }

    .btnDeleteItemCart {
        font-size: 1.2rem;
        cursor: pointer;
    }

    .ctnBotomCart {
        padding: 1.5rem;
    }

    .descriptionCart span {
        display: flex;
        justify-content: space-between;
        font-size: 1rem;
    }

    .actionsCart {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }

    .actionsCart a {
        padding: 0.75rem;
        border-radius: 25px;
        text-align: center;
        background-color: #f1f1f1;
        color: #000;
        font-weight: bold;
        text-decoration: none;
        transition: background-color 0.2s;
    }

    .actionsCart a:last-child {
        background-color: #000;
        color: #fff;
    }

    .actionsCart a:hover {
        background-color: #ccc;
    }
}

@media screen and (max-width: 768px) {
    .ctnCart {
        width: 100vw;
    }
}

@media screen and (max-width: 480px) {
    .imgItemCart img {
        width: 100px;
    }

    .nombreItemCart {
        font-size: 0.95rem;
    }

    .cantidadItemCart p {
        font-size: 1rem;
        min-width: 28px;
    }

    .actionsCart a {
        font-size: 0.9rem;
        padding: 0.6rem;
    }
}

/* Tablets (ancho menor a 1024px) */
@media (max-width: 1024px) {
    .listCtnImage {
        grid-template-columns: repeat(2, 1fr);
    }

    .spanArrivalsCart {
        bottom: 25%; /* Aumenta el espacio desde el borde inferior */
        padding: 10px 12px;
        font-size: 0.9rem;
        gap: 1.5dvh;
    }
}

/* Móviles (ancho menor a 600px) */
@media (max-width: 600px) {
    .listCtnImage {
        grid-template-columns: 1fr;
    }

    .spanArrivalsCart {
        flex-direction: column;
        align-items: center;
        bottom: 12%;
        width: 80%;
        left: 50%;
        translate: -50% -50%;
        padding: 10px;
        font-size: 0.85rem;
        gap: 1dvh;
    }

    .spanArrivalsCart svg {
        width: 24px;
        height: 24px;
    }
}
