﻿:root {
    --rosa-claro: rgb(235, 199, 206);
    --rosa-medio: rgb(228, 137, 164);
    --rosa-fondo: rgb(249, 230, 225);
    --rosa-profundo: rgb(209, 167, 180);
    --rosa-suave: rgb(250, 236, 239);
    --rosa-suave2: rgb(239, 228, 225);
    --moka: #b89b82;
    --beige: #f5f5dc;
    --moka: #b89b82;
    --rosa-claro-contenedor: #fef6f8;
    --flechas: rgb(209, 167, 180);
}

body {
    background-color: var(--rosa-suave);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ---- Carousel de Banners ---- */
.carousel-banners .banner-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 480px; /* altura máxima en escritorio */
    transition: transform 0.3s ease;
}

    /* Efecto leve al pasar el mouse */
    .carousel-banners .banner-img:hover {
        transform: scale(1.02);
    }

/* Ajustes para pantallas medianas */
@media (max-width: 992px) {
    .carousel-banners .banner-img {
        max-height: 360px;
    }
}

/* Ajustes para tablets */
@media (max-width: 768px) {
    .carousel-banners .banner-img {
        max-height: 280px;
    }
}

/* Ajustes para móviles */
@media (max-width: 576px) {
    .carousel-banners .banner-img {
        max-height: 200px;
    }
}


/* ✅ Carrusel de promociones full width */
#myCarousel {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
}

    /* ✅ Imagenes del carrusel: pantalla completa, más altura */
    #myCarousel .carousel-inner img {
        width: 100%;
        height: 450px; /* o el alto que prefieras */
        object-fit: cover;
        display: block;
    }

/* ✅ Flechas del carrusel más grandes y con sombra */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 100% 100%;
    width: 3rem;
    height: 3rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
}

/* Estilo para las flechas con Font Awesome */
.flecha-carousel {
    font-size: 3rem;
    color: var(--flechas);
    border-radius: 50%;
    transition: transform 0.2s ease;
}

    .flecha-carousel:hover {
        transform: scale(1.1);
    }

/* Estilo para las flechas promos banner */
.flecha-carousel-banner {
    font-size: 3rem;
    color: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

    .flecha-carousel-banner:hover {
        transform: scale(1.1);
    }

/* ----- Cards generales ----- */
.card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

    .card:hover {
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
        transform: translateY(-6px);
    }

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.custom-img {
    height: 140px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.card-body {
    background-color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
}

/* ----- Botones personalizados ----- */
.btn-eterea {
    background-color: var(--rosa-profundo);
    color: white;
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .btn-eterea:hover {
        background-color: rgb(189, 147, 160);
        transform: scale(1.02);
        color: white;
    }

/* ----- Paginación ----- */
.pagination .page-link {
    color: var(--rosa-profundo);
}

.pagination .page-item.active .page-link {
    background-color: var(--rosa-profundo);
    border-color: var(--rosa-profundo);
    color: white;
}

.text-danger.fw-bold {
    color: #c0392b !important;
    font-size: 0.95rem;
}

/* ----- Offcanvas (carrito lateral) ----- */
#carrito-offcanvas {
    position: fixed;
    top: 20px;
    right: -350px;
    width: 350px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    padding: 20px;
    z-index: 2000;
    transition: right 0.5s ease-in-out;
}

    #carrito-offcanvas.show {
        right: 20px;
    }

.offcanvas-contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

    .offcanvas-contenido img {
        width: 100%;
        height: auto;
        border-radius: 10px;
        margin-bottom: 10px;
    }

    .offcanvas-contenido p {
        margin: 0;
        font-size: 14px;
    }

h2 {
    color: var(--rosa-profundo); /* color igual al filtro */
    font-weight: bold;
}

/* ----- Carrusel y cards de Marcas ----- */
.bg-marcas {
    background-color: var(--rosa-claro-contenedor);
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 3.5rem; /* más espacio para flechas */
    padding-right: 3.5rem;
    position: relative;
}

#carouselMarcas {
    position: relative;
}

    #carouselMarcas .carousel-control-prev,
    #carouselMarcas .carousel-control-next {
        width: 3rem;
        height: 3rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 5;
    }

    #carouselMarcas .carousel-control-prev {
        left: -3rem; /* mueve hacia afuera */
    }

    #carouselMarcas .carousel-control-next {
        right: -3rem; /* mueve hacia afuera */
    }

    #carouselMarcas .carousel-inner .row {
        margin-left: 0;
        margin-right: 0;
        /* margen interno para que no pegue con las flechas */
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        z-index: 20; /* cards arriba de flechas */
    }

    #carouselMarcas .card {
        background-color: var(--rosa-suave);
        border: 1px solid var(--rosa-medio);
        transition: transform 0.3s ease;
        min-height: 45px;
        z-index: 20;
    }

        #carouselMarcas .card:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            position: relative; /* para que el z-index funcione */
            z-index: 30;
        }

    #carouselMarcas h5 {
        font-size: 1.2rem;
        font-weight: bold;
        text-align: center;
    }

    #carouselMarcas .card img.custom-img {
        height: 140px;
        object-fit: cover;
        margin-top: 20px;
    }


/* ----- Carrusel y cards de perfumes en promoción ----- */
#carouselPerfumesEnPromo {
    position: relative;
}

    #carouselPerfumesEnPromo .carousel-control-prev,
    #carouselPerfumesEnPromo .carousel-control-next {
        width: 3rem;
        height: 3rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 5;
    }

    #carouselPerfumesEnPromo .carousel-control-prev {
        left: -3rem; /* mueve hacia afuera */
    }

    #carouselPerfumesEnPromo .carousel-control-next {
        right: -3rem; /* mueve hacia afuera */
    }

    #carouselPerfumesEnPromo .carousel-inner .row {
        margin-left: 0;
        margin-right: 0;
        /* margen interno para que no pegue con las flechas */
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        z-index: 20; /* cards arriba de flechas */
    }


    #carouselPerfumesEnPromo .card {
        border: none;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        flex-direction: column;
        cursor: pointer;
        min-height: 300px;
    }

        #carouselPerfumesEnPromo .card:hover {
            transform: translateY(-6px);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
        }

        #carouselPerfumesEnPromo .card img.custom-img {
            height: 140px;
            object-fit: cover;
            margin-top: 20px;
        }

/* ----- Carrusel y cards de perfumes más vendidos ----- */
#carouselMasVendidos {
    position: relative;
}

    #carouselMasVendidos .carousel-control-prev,
    #carouselMasVendidos .carousel-control-next {
        width: 3rem;
        height: 3rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 5;
    }

    #carouselMasVendidos .carousel-control-prev {
        left: -3rem; /* mueve hacia afuera */
    }

    #carouselMasVendidos .carousel-control-next {
        right: -3rem; /* mueve hacia afuera */
    }

    #carouselMasVendidos .carousel-inner .row {
        margin-left: 0;
        margin-right: 0;
        /* margen interno para que no pegue con las flechas */
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        z-index: 20; /* cards arriba de flechas */
    }


    #carouselMasVendidos .card {
        border: none;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        flex-direction: column;
        cursor: pointer;
        min-height: 300px;
    }

        #carouselMasVendidos .card:hover {
            transform: translateY(-6px);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
        }

        #carouselMasVendidos .card img.custom-img {
            height: 140px;
            object-fit: cover;
            margin-top: 20px;
        }


.container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#myCarousel,
#carouselMarcas,
#carouselPerfumesEnPromo,
#carouselMasVendidos {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.container-fluid.p-0 {
    margin: 0;
    padding: 0;
}





.btn-tamanio {
    background-color: var(--rosa-suave2);
    border: 1px solid;
    border-radius: 20px;
    margin: 2px;
    padding: 4px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-tamanio:hover {
        background-color: var(--rosa-medio);
        color: white;
    }

    .btn-tamanio.active {
        background-color: var(--rosa-profundo);
        color: white;
        font-weight: bold;
    }

.selector-tamanios .btn-tamanio {
    padding: 6px 12px;
    font-size: 0.9rem;
    border-radius: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    min-width: 55px;
    text-align: center;
}

    .selector-tamanios .btn-tamanio.active,
    .selector-tamanios .btn-tamanio:hover {
        background-color: var(--rosa-profundo);
        color: white;
    }

/* ----- Precio con promoción ----- */
.precio-original {
    color: #888;
    text-decoration: line-through;
    margin-right: 8px;
    font-size: 0.95rem;
}

.precio-descuento {
    font-size: 1.1rem;
    font-weight: bold;
}

/* ----- Leyenda de promoción ----- */
.leyenda-promocion {
    font-size: 1rem;
    background-color: var(--rosa-medio);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    min-width: 120px;
    text-align: center;
    display: inline-block;
}

.promo-placeholder {
    min-height: 1.2rem; /* ajusta este valor según el alto que necesites */
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 600;
}


.promo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.promo-content {
    flex: 1;
    text-align: center;
}

.promo-display .precio-original {
    color: #888;
    text-decoration: line-through;
    margin-right: 8px;
    font-size: 0.95rem;
}

.promo-display .precio-descuento {
    font-size: 1.1rem;
    font-weight: bold;
}

.btn-promo-prev,
.btn-promo-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 1rem;
    color: white;
    background-color: var(--rosa-profundo);
    border: none;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

    .btn-promo-prev:hover,
    .btn-promo-next:hover {
        transform: scale(1.1);
        background-color: var(--rosa-medio);
    }


    .btn-promo-prev:focus,
    .btn-promo-next:focus {
        outline: none !important;
        box-shadow: none !important;
    }

    .btn-promo-prev:active,
    .btn-promo-next:active {
        background-color: transparent !important;
        box-shadow: none !important;
    }

.promo-container.promo-sin-promocion {
    padding: 12px 16px;
    border-radius: 6px;
    text-align: center;
    font-style: italic;
    color: #555;
    padding-top: 25px;
    padding-bottom: 25px;
}


    .promo-container.promo-sin-promocion .leyenda-promocion {
        display: inline-block;
        font-size: 0.85rem;
        color: #666;
        background-color: #f5f5f5;
        padding: 4px 8px;
        border-radius: 4px;
        width: 100%;
        max-width: 160px;
        text-align: center;
        margin: 0 auto;
    }


@media (max-width: 768px) { /* dispositivos móviles */
    .bg-marcas {
        padding: 15px 8px 8px 8px !important;
    }
}

/* Imagen del perfume en el popup "Se agregó a tu carrito" */
.popup-perfume-img {
    max-width: 120px; /* ancho máximo visible */
    max-height: 160px; /* alto máximo visible */
    width: auto;
    height: auto;
    object-fit: contain; /* respeta proporciones, sin recortar */
    display: block;
    margin: 0 auto 10px; /* centrado y espacio abajo */
}