/* ==========================================================
   1. VARIABLES GLOBALES
========================================================== */
:root {
    --primary-color: #64748b;
    --primary-dark: #4F5D72;
    --primary-light: #f1f5f9;
    --secondary-color: #1e2f5d;
    --accent-color: #ffc107;

    --bg-light: #fcf7f8;
    --background: #f8fafc;
    --card: #ffffff;
    --border: #e5e7eb;

    --texto: #334155;
    --text: #0f172a;
    --text-light: #64748b;
    --text-muted: #94a3b8;

    --warning: #fbbf24;
    --warning-hover: #f59e0b;
    /* --existencias: #023373; */

    --existencias: #023373;
    --borde-coral: #F28705;
    /* 0a58ca */
}


/* ==========================================================
   2. SCROLLBAR
========================================================== */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: #64748B;
    border-radius: 50px;
}

.modal-backdrop {
    z-index: 0 !important;

}

/* ==========================================================
   3. ESTILOS GLOBALES
========================================================== */

body {
    font-family: "Poppins", sans-serif;
    /* background: var(--background); */
}

h1,
h2,
h3,
.navbar-brand {
    font-family: "Poppins", sans-serif;
}

.logo {
    width: 150px;
}

.section-products {
    margin-top: 8rem;
}

.pleca-mobile {
    display: none;
}

.mobile {
    display: none;
}

/* ==========================================================
   4. UTILIDADES PERSONALIZADAS
========================================================== */

.bg-primary-custom {
    background: var(--primary-color) !important;
}

.bg-primary-dark {
    background: var(--primary-dark) !important;
    color: #fff !important;
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-custom {
    color: var(--texto);
}

.text-custom-black {
    color: var(--secondary-color) !important;
}

.text-icons {
    color: var(--primary-color);
}

.text-price-from {
    color: var(--secondary-color);
    font-weight: 600;
}

.text-price-val {
    color: var(--secondary-color);
    font-weight: 700;
}


/* ==========================================================
   5. BOTONES
========================================================== */

.btn-whatsapp-nav {
    background: #25d366;
    color: #fff;
}

.btn-whatsapp-nav:hover {
    background: #25d366;
    color: #fff;
}

.btn-secondary-custom {
    background: var(--secondary-color);
    color: #fff;
    border: none;
    box-shadow: 0 4px 10px rgba(230, 136, 21, .25);
}

.btn-secondary-custom:hover {
    background: #cd770f;
    color: #fff;
}

.btn-quote-custom {
    background: var(--warning);
    color: var(--secondary-color);
    border: none;
    font-weight: 600;
    transition: .2s;
}

.btn-quote-custom:hover {
    background: var(--warning-hover);
    color: #fff;
}

.btn-outline-secondary:hover {
    color: #fff !important;
}

.btn-filtros {
    background-color: var(--secondary-color);
    color: white;
}

.btn-filtros:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* ==========================================================
   6. NAVBAR
========================================================== */

.navbar {
    padding-bottom: 0px !important;
    position: fixed;
    z-index: 2;
    width: 100%;
    top: 70px;

}

.navbar-custom {
    background: var(--primary-color) !important;
}

.nav-link {
    color: var(--secondary-color) !important;
    transition: .2s;
}

.navbar-custom .nav-link {
    color: var(--text) !important;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus {
    color: var(--accent-color) !important;
}


/* ==========================================================
   7. TOP BAR
========================================================== */

.top-bar {
    font-size: .825rem;
    letter-spacing: .2px;
    background: var(--primary-dark);
    position: fixed;
    z-index: 2;
    width: 100%;
}




/* ==========================================================
   8. SIDEBAR
========================================================== */

.sidebar {
    width: 200px !important;
    max-width: 200px !important;
    min-height: 200px !important;
    height: calc(100vh - 90px);
    position: sticky;
    top: 130px;
    overflow-y: auto;
    background: #fff;
    border-right: 1px solid #f0d8e1;
    font-size: .775rem;
}

.category-link {
    display: flex;
    align-items: center;
    padding: 4px 6px;
    color: var(--secondary-color);
    font-size: .775rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: .2s;
}

.category-link:hover {
    background: var(--border);
    color: var(--primary-color);
}

.category-link i {
    color: var(--primary-color);
    transition: .2s;
}

.category-link:hover i {
    transform: scale(1.15);
}


/* ==========================================================
   9. HERO
========================================================== */



/* ==========================================================
   10. TARJETAS DE PRODUCTOS
========================================================== */

.product-card {
    transition:
        transform 0.3s,
        box-shadow 0.3s,
        border-color 0.3s;
    border: 1px solid var(--border);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--border);
    border-color: var(--primary-light);
}

.product-title {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.85rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.product-img-placeholder {
    background-color: var(--card);
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--primary-dark);
    font-weight: 600;
}

.product-img-placeholder img {
    aspect-ratio: 1/1;
    width: 100%;
}


/* ==========================================================
   11. BADGES
========================================================== */

.badge-accent {
    background-color: var(--accent-color);
    color: #333;
    font-weight: 700;
}

.brand-badge {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.brand-badge:hover {
    background-color: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
}

.season-badge-link {
    background-color: #fdf5f7;
    border: 1px solid #f0d8e1;
    border-radius: 8px;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.825rem;
    font-weight: 600;
    transition: all 0.2s;
}

.season-badge-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}


/* ==========================================================
   12. MEGAMENU
========================================================== */

.dropdown-megamenu {}

.megamenu-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--primary-dark);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--existencias);
}

.megamenu-link {
    font-size: 0.83rem;
    color: #444;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.megamenu-link:hover {
    background-color: var(--background);
    color: var(--primary-color);
    font-weight: 600;
    padding-left: 12px;
}

.megamenu-link i {
    color: var(--primary-color);
    font-size: 1rem;
}


/* ==========================================================
   13. BANNER DE TEMPORADA
========================================================== */


.season-banner-card {
    background: linear-gradient(135deg,
            #006847 0%,
            #a71766 50%,
            #ce1126 100%);
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    color: white;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.season-banner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(206, 17, 38, 0.25);
}


/* ==========================================================
   14. FORMULARIOS
========================================================== */

.form-control:hover,
.form-control:focus,
.form-control:active {
    border-color: var(--border) !important;
    box-shadow: 0 0 0 0.25rem rgba(229, 231, 235, 0.9);
}


/* ==========================================================
   15. PASOS
========================================================== */

.step-circle {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    box-shadow: 0 4px 8px rgba(211, 22, 56, 0.2);
}


/* ==========================================================
   16. WHATSAPP FLOTANTE
========================================================== */

.whatsapp-float {
    position: fixed;
    width: 80px;
    height: 80px;
    bottom: 90px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: whatsappPulse 2s infinite;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    color: #fff;
    transform: scale(1.1);
}


/* ==========================================================
   17. FOOTER
========================================================== */

.footer-custom {
    background-color: var(--primary-dark);
    /* color: #ffffff; */
}

.footer-title-accent {
    color: white;
}

.footer-link {
    color: white;
    text-decoration: none;
    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}

.footer-link:hover {
    color: var(--bg-light);
    padding-left: 4px;
}

.footer-social-icon {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.25s ease;
    text-decoration: none;
    font-size: 1.1rem;
}

.footer-social-icon:hover {
    background-color: #cf948e;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(230, 136, 21, 0.4);
}


/* ==========================================================
   18. ANIMACIONES
========================================================== */

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================================
   19. RESPONSIVE
========================================================== */

@media (min-width:1670px) {

    .col-lg-10 {
        flex: 0 0 auto;
        width: 88%;
    }
}

@media (min-width:992px) {

    /* .col-lg-10 {
        flex: 0 0 auto;
         width: 83.33333333%
    } */

    .nav-link:focus-visible {
        box-shadow: none;
    }

    /* Mantiene el menú abierto cuando el cursor está sobre el item o el contenido */
    .nav-item.dropdown:hover>.mega-menu-content {
        /* display: block; */
        /* opacity: 1;
        visibility: visible;
        margin-top: 0; */
    }

    /* Ajuste para evitar que el menú se cierre al intentar bajar el mouse */


    .dropdown-megamenu {
        position: static !important;
    }

    /* Puente invisible para evitar que se cierre al mover el cursor hacia el menú */
    /* .dropdown-megamenu::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        height: 10px;
        top: 100%;
        background-color: transparent;
    } */

    .dropdown-megamenu .dropdown-menu {
        width: 100%;
        left: 0;
        right: 0;
        top: 100%;
        margin-top: 0;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 15px 30px rgba(167, 23, 102, 0.15);
        display: none;
        animation: fadeIn 0.25s ease-in-out forwards;
    }

    /* .dropdown-megamenu:hover>.dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        margin-top: -0;
    } */

    .dropdown-megamenu:hover>.dropdown-menu,
    .dropdown-megamenu>.dropdown-menu.show {
        display: block;
        opacity: 1;
        visibility: visible;
        margin-top: -0;
    }
}

@media (max-width:992px) {
    .escritorio {
        display: none;
    }

    .mobile {
        display: block;
    }

    .pleca-mobile {
        height: 65px;
        background-color: var(--primary-dark);
        display: flex;
        justify-content: space-between;
        align-items: center;

    }

    .section-products {
        margin-top: 0;
    }


    .logo-mobile {
        width: 150px;

    }

    .whatsapp-mobile {
        background: #25d366;
        color: white;
        z-index: 999;
        font-size: 13px;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 7rem;
        height: 2rem;
        /* padding: 32px; */
        text-decoration: none;
        border-radius: 0.375rem;
        animation-name: pulse;
        animation-duration: 1.5s;
        animation-timing-function: ease-out;
        animation-iteration-count: infinite;
    }
}

@media (min-width: 1400px) {
    .row-cols-xl-7>* {
        flex: 0 0 auto;
        width: 14.285714%;
    }
}

@media (max-width:1400px) {

    .btn-whatsapp-nav span,
    .btn-filtros span,
    .btn-cart-text {
        display: none;
    }
    .logo{
        width: 100px;
    }
    .whatsapp-container {
      margin-right: 0.85rem !important;
    }
    .navbar{
        padding-bottom: 8px !important;
    }
    .gap-custom{
        gap: .5rem !important;
    }

}