﻿/*#region Header*/
/* Barra superior */
.top-bar {
    background-color: #e5eefa;
    font-size: 14px;
}

/* Color links navbar */
.navbar-light .navbar-nav .nav-link {
    color: #000000;
}

/* Línea debajo del menú al hover o activo */
.navbar-nav .nav-link {
    position: relative;
}

    .navbar-nav .nav-link:hover::after,
    .navbar-nav .nav-link.active::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: #0a2240;
    }

/* Mega menú ancho completo */
.nav-item.dropdown .dropdown-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%; /* justo debajo del nav-link */
    margin-top: -13px; /* eliminar el gap que causa cierre */
    width: 100%;
    border: 0;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    display: none;
    background-color: #fff;
    padding: 2rem 1rem;
    z-index: 1050;
}

/* Mostrar al hover */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

/* Mega menú columnas */
.mega-left {
    border-right: 1px solid #dee2e6;
    padding-right: 2rem;
}

.mega-right {
    padding-left: 2rem;
}

    /* Ajuste imágenes */
    .mega-right img {
        max-width: 150px;
        height: auto;
    }

/* Quitar flecha de todos los dropdown-toggle */
.nav-link.dropdown-toggle::after {
    display: none;
}

/* Línea debajo del menú al hover o activo */
.navbar-nav .nav-link {
    position: relative;
}

    /* Creamos un ::before para la línea, no depende de dropdown-toggle */
    .navbar-nav .nav-link:hover::before,
    .navbar-nav .nav-link.active::before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: #0a2240;
    }

/* Mega menú horizontal tipo galería */
#catalogosDropdown + .dropdown-menu {
    width: 100%; /* ancho completo */
    padding: 2rem 1rem;
}

    #catalogosDropdown + .dropdown-menu .col-auto img {
        max-width: 120px;
        height: auto;
    }

.hover-bg:hover {
    background-color: #f0f0f0;
}

/* Input búsqueda móvil */
#mobileSearchInput {
    background-color: #f2f2f2; /* gris claro */
    border: none;
    border-radius: 25px;
    padding: 10px 15px;
    font-size: 0.95rem;
}

    #mobileSearchInput:focus {
        outline: none;
        box-shadow: none;
    }

/* Botón lupa dentro del input */
#mobileSearchBtn {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #555;
    cursor: pointer;
}

    #mobileSearchBtn:hover {
        color: #000;
    }

.mobile-nav .menu-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5px;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
}

    .mobile-nav .menu-item a:hover {
        background-color: #f9f9f9;
    }

.mobile-nav .menu-item i {
    font-size: 0.9rem;
    color: #888;
}

.mobile-extra-menu .menu-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 10px;
    font-size: 1rem;
    color: #333;
    text-decoration: none;
}

    .mobile-extra-menu .menu-item a:hover {
        background-color: #f1f1f1;
    }

.mobile-extra-menu .menu-item i {
    font-size: 0.9rem;
    color: #666;
}

.dropup .dropdown-toggle::after {
    transform: rotate(180deg) !important;
}

.logout-item a {
    font-size: 1rem;
}

.logout-item i {
    font-size: 1rem;
}

.submenu li a {
    font-weight: 500;
    color: #333;
}

    .submenu li a i {
        color: #888;
    }

#searchResultsDesk {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-height: 500px;
    overflow-y: auto;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 10000;
}

    #searchResultsDesk img {
        height: 350px;
    }

    #searchResultsDesk .add-cart {
        width: 40px;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        #searchResultsDesk .add-cart:hover {
            transform: translateY(-3px);
        }

    #searchResultsDesk .product-points {
        background-color: #fff8db !important;
        color: #da8207;
        font-size: 14px;
        border-radius: 10px;
        border: 1px solid #ffd86e;
    }

        #searchResultsDesk .product-points div.border {
            border-color: #ffcb3c !important;
        }

        #searchResultsDesk .product-points i.fa-coins {
            font-size: 13px;
            color: #ffcb3c;
            margin: 4px 4px;
        }

#searchOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    z-index: 200;
}

#searchBoxDesk.search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 9999;
    background-color: #fff;
    backdrop-filter: blur(5px);
}

#searchBoxDesk .search-input-wrapper {
    position: relative;
    width: 100%;
}

#searchBoxDesk .search-input {
    width: 100%;
    padding: 8px 35px 8px 25px;
    font-size: 1rem;
    border-radius: 30px;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    background-color: #e6e6e6;
    color: #333;
}

    #searchBoxDesk .search-input:focus {
        outline: none;
        border: 1px solid #bbb;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

#searchBoxDesk .search-icon-desk {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: #888;
    font-size: 1rem;
    cursor: pointer;
}

#searchBoxDesk .btn-close-search-desk {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    font-size: 1.2rem;
    cursor: pointer;
    color: #000;
}

    #searchBoxDesk .btn-close-search-desk:hover {
        color: #286bc7;
    }

#mobileSearchResults {
    max-height: 100vh;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 10px;
}

    #mobileSearchResults img {
        width: 100%;
        height: 220px;
        border-radius: 4px;
        object-fit: cover;
    }

    #mobileSearchResults .add-cart {
        width: 40px;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        #mobileSearchResults .add-cart:hover {
            transform: translateY(-3px);
        }

    #mobileSearchResults .product-points {
        background-color: #fff8db !important;
        color: #da8207;
        font-size: 14px;
        border-radius: 10px;
        border: 1px solid #ffd86e;
    }

        #mobileSearchResults .product-points div.border {
            border-color: #ffcb3c !important;
        }

        #mobileSearchResults .product-points i.fa-coins {
            font-size: 13px;
            color: #ffcb3c;
            margin: 4px 4px;
        }

.toast-add-layout {
    z-index: 990;
    top: 15%;
    left: 40%;
    opacity: 0.9;
    width: fit-content;
}

.img-submenus {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 10px;
    border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
}
/*#endregion*/

/* #region Footer */

footer {
    background-color: #0c233f;
    color: #ffffff;
}

    footer .logo-nice {
        width: 150px;
    }

    footer .row {
        --bs-gutter-x: 0rem;
    }

    footer .accordion-item {
        background-color: transparent;
        color: #ffffff;
        border: 0px solid rgba(0,0,0,.125);
    }

    footer .accordion-button {
        background-color: transparent;
        color: #ffffff;
        padding: 0rem 0rem;
        font-weight: 700;
        pointer-events: none;
    }

        footer .accordion-button:focus {
            border-color: transparent;
            box-shadow: 0 0 0 0rem rgba(13,110,253,.25);
        }

        footer .accordion-button:not(.collapsed) {
            color: #ffffff;
            background-color: transparent;
            box-shadow: inset 0 0px 0 rgba(0,0,0,.125);
        }

        footer .accordion-button::after {
            background-image: none;
        }

        footer .accordion-button:not(.collapsed)::after {
            background-image: none;
        }

    footer .accordion-body {
        padding: 1.5rem 0rem 0rem 0rem;
    }

        footer .accordion-body li {
            padding: 0rem 0rem 0.4rem 0rem;
        }

    footer form {
        border-bottom: 1px solid #ffffff;
    }

        footer form .form-control {
            box-shadow: none !important;
            border: none !important;
            background-color: transparent !important;
            padding-left: 0 !important;
            color: #ffffff !important;
        }

            footer form .form-control::placeholder {
                color: #ffffff;
                opacity: 0.8;
            }

        footer form a {
            padding-right: 0 !important;
        }

    footer .join div {
        height: 50px;
    }

    footer .join a {
        padding: 1rem 2rem;
        border: none;
    }

        footer .join a:hover {
            background-color: #d3d4d5;
        }

    footer hr {
        margin: 0 !important;
    }

    footer .terms {
        position: relative;
        height: 50px;
    }

    footer .terms {
        position: relative;
        height: 50px;
    }

        footer .terms > div:nth-child(1) {
            padding: 0rem 1.5rem !important;
            margin: 0;
            position: absolute;
            top: 50%;
            left: 0%;
            transform: translate(0%, -50%);
        }

        footer .terms > div:nth-child(2) {
            margin: 0;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

@media (max-width: 1199px) {
    footer .terms > div:nth-child(2) {
        padding: 0rem 1.5rem !important;
        top: 50%;
        left: unset;
        right: 0%;
        transform: translate(0%, -50%);
    }
}

@media (max-width: 991px) {
    footer .accordion-flush {
        border-top: 1px solid #ffffff !important;
    }

    footer .accordion-item {
        border-bottom: 1px solid #ffffff !important;
    }

    footer .accordion-button {
        padding: 1.5rem 0rem;
        pointer-events: unset;
    }

        footer .accordion-button::after {
            background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-plus-lg" viewBox="0 0 16 16"><path fill-rule="evenodd" stroke="white" d="M8 2a.5.5 0 0 1 .5.5v5h5a.5.5 0 0 1 0 1h-5v5a.5.5 0 0 1-1 0v-5h-5a.5.5 0 0 1 0-1h5v-5A.5.5 0 0 1 8 2"/></svg>');
        }

        footer .accordion-button:not(.collapsed)::after {
            background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-dash-lg" viewBox="0 0 16 16"><path fill-rule="evenodd" stroke="white" d="M2 8a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11A.5.5 0 0 1 2 8"/></svg>');
        }

    footer .accordion-body {
        padding: 0rem 0rem 0rem 0rem;
    }

    footer .join a {
        padding: 0.8rem 1.5rem;
    }

    footer .terms {
        height: unset;
    }

        footer .terms > div:nth-child(1) {
            padding: 0rem !important;
            margin: 0;
            position: unset;
            top: unset;
            left: unset;
            transform: unset;
        }

        footer .terms > div:nth-child(2) {
            padding: 1.5rem 0rem 3rem 0rem !important;
            margin: 0;
            position: unset;
            top: unset;
            left: unset;
            transform: unset;
        }
}

/* #endregion */