        /* ========== VARIABLES ========== */
        :root {
            --primary-blue: #1a5f7a;
            --primary-blue-dark: #134b61;
            --accent-orange: #f39c12;
            --accent-yellow: #f1c40f;
            --promo-red: #c0392b;
            --light-gray: #f8f9fa;
            --border-gray: #e9ecef;
            --text-dark: #2c3e50;
            --text-muted: #6c757d;
            --transition-speed: 0.3s;
            --header-container-width: 1400px;
        }

        /* ========== RESET & BASE ========== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            color: var(--text-dark);
            background-color: #fff;
        }

        .top-bar .contact-info a:hover,
        .top-bar .contact-info a:hover i {
            color: var(--hover) !important;
            transition: color var(--transition-speed) ease;
        }


        /* ========== LOGO STYLES ========== */
        .logo-container {
            display: flex;
            flex-direction: column;
        }

        .logo-freddy {
            font-family: 'Georgia', serif;
            font-size: 1.8rem;
            font-weight: bold;
            letter-spacing: 1px;
            line-height: 1;
        }

        .logo-repuestos {
            font-size: 0.75rem;
            letter-spacing: 3px;
            text-transform: uppercase;
            text-decoration: underline;
        }

        /* ========== SEARCH BAR ========== */
        .search-container .form-select,
        .search-container .form-control {
            border: 1px solid #ced4da;
            border-radius: 0;
        }

        .search-container .form-select:focus,
        .search-container .form-control:focus {
            box-shadow: none;
            border-color: var(--accent-orange);
        }

        .search-category {
            border-radius: 4px 0 0 4px !important;
        }

        .search-input {
            border-left: none !important;
            border-right: none !important;
        }

        .btn-search {
            background-color: var(--accent-orange);
            border: none;
            border-radius: 0 4px 4px 0;
            color: white;
            transition: background-color var(--transition-speed) ease;
        }

        .btn-search:hover {
            background-color: #e67e22;
        }

        /* ========== SEARCH BAR GROUP - PERFECTAMENTE UNIDOS ========== */
        .search-container {
            position: relative;
        }

        .search-container form {
            display: flex;
            width: 100%;
        }

        .search-row {
            display: flex;
            align-items: stretch;
            width: 100%;
            margin: 0 !important;
        }

        .search-col {
            display: flex;
            align-items: stretch;
            padding: 0 !important;
        }

        .search-container .form-select,
        .search-container .form-control,
        .search-container .btn-search {
            height: 46px;
            border-radius: 0;
            /*display: flex;*/
            align-items: center;
            width: 100%;
            margin: 0;
        }

        /* Borde izquierdo redondeado solo en el primer elemento */
        .search-container .form-select {
            border-radius: 4px 0 0 4px !important;
        }

        /* Borde derecho redondeado solo en el último elemento */
        .search-container .btn-search {
            background-color: var(--accent-orange);
            border: none;
            border-radius: 0 4px 4px 0;
            color: white;
            transition: background-color var(--transition-speed) ease;
        }

        .search-container .btn-search:hover {
            background-color: #e67e22;
        }

        /* Bordes internos para separar visualmente los elementos */
        .search-container .form-control.search-input {
            border-left: none;
            border-right: 1px solid #ced4da;
        }

        .search-container .form-select {
            border-right: 1px solid #ced4da;
        }

        /* Asegurar misma altura en todos los breakpoints responsive */
        @media (max-width: 575px) {

            .search-container .form-select,
            .search-container .form-control,
            .search-container .btn-search {
                height: 44px;
                font-size: 0.9rem;
            }

            .search-container .form-select {
                font-size: 0.85rem;
            }

            .search-container .form-control.search-input::placeholder {
                font-size: 0.85rem;
                opacity: 0.8;
            }
        }

        /* ========== USER ACTIONS - DISEÑO MEJORADO ========== */
        .user-actions {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 0.75rem;
        }

        .user-action-link {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.15);
            color: white;
            text-decoration: none;
            transition: all var(--transition-speed) ease;
            backdrop-filter: blur(5px);
        }

        .user-action-link:hover {
            background-color: rgba(255, 255, 255, 0.25);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .user-action-link i {
            font-size: 1.1rem;
            transition: transform var(--transition-speed) ease;
        }

        .user-action-link:hover i {
            transform: scale(1.1);
        }

        .user-action-link .badge {
            position: absolute;
            top: -2px;
            right: -2px;
            min-width: 20px;
            height: 20px;
            padding: 0 5px;
            font-size: 0.7rem;
            font-weight: 600;
            line-height: 20px;
            text-align: center;
            background-color: #e74c3c;
            border: 2px solid #056CC1;
            border-radius: 10px;
            transition: all var(--transition-speed) ease;
        }

        .user-action-link:hover .badge {
            background-color: #c0392b;
            transform: scale(1.1);
        }

        /* ========== CATEGORIES BUTTON ========== */
        .btn-categories {
            background-color: var(--accent-orange);
            color: #333;
            border: none;
            padding: 0.6rem 1.2rem;
            font-weight: 600;
            border-radius: 4px;
            transition: background-color var(--transition-speed) ease;
        }

        .btn-categories:hover {
            background-color: #e67e22;
            color: #333;
        }

        .btn-categories::after {
            margin-left: 0.5rem;
        }

        /* ========== NAVBAR STYLES ========== */
        .navbar-custom {
            background-color: white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
            position: relative;
        }

        .navbar-custom .container {
            max-width: var(--header-container-width);
            position: relative;
        }

        /* ========== MEGA MENU BASE STYLES ========== */
        .mega-menu-container {
            position: static !important;
        }

        .dropdown-menu.mega-menu,
        .dropdown-menu.mega-menu-brands,
        .dropdown-menu.mega-menu-categories {
            position: fixed;
            left: 50% !important;
            transform: translateX(-50%) !important;
            width: 100%;
            max-width: var(--header-container-width);
            margin: 0;
            padding: 0;
            border: none;
            border-radius: 0 0 8px 8px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
            animation: slideDown 0.3s ease-out;
            top: auto !important;
        }

        /* Animación para mega menús con translateX(-50%) para centrado horizontal */
        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateX(-50%) translateY(-10px);
            }

            to {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
            }
        }

        /* Animación específica para mensajes de alerta - SIN translateX(-50%) */
        @keyframes slideDownAlert {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Animación para ocultar alertas */
        @keyframes slideUpAlert {
            from {
                opacity: 1;
                transform: translateY(0);
            }

            to {
                opacity: 0;
                transform: translateY(-10px);
            }
        }

        .dropdown-menu {
            position: absolute;
        }

        .navbar-custom .dropdown:hover>.dropdown-menu {
            display: block;
        }

        /* ========== MEGA MENU CONTENT BASE ========== */
        .mega-menu-content-wrapper {
            padding: 1.25rem 1.5rem;
            position: relative;
        }

        .mega-menu-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid var(--border-gray);
            flex-shrink: 0;
        }

        .mega-menu-title {
            font-size: 1rem;
            font-weight: 700;
            color: var(--primary-blue);
            margin: 0;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* ========== SCROLLABLE CONTENT AREA ========== */
        .mega-menu-scrollable {
            max-height: 360px;
            overflow-y: auto;
            overflow-x: hidden;
            scrollbar-width: thin;
            scrollbar-color: #ccc #f8f9fa;
        }

        /* Scrollbar personalizada para Webkit (Chrome, Safari, Edge) */
        .mega-menu-scrollable::-webkit-scrollbar {
            width: 6px;
        }

        .mega-menu-scrollable::-webkit-scrollbar-track {
            background: #f8f9fa;
            border-radius: 3px;
        }

        .mega-menu-scrollable::-webkit-scrollbar-thumb {
            background: #ccc;
            border-radius: 3px;
        }

        .mega-menu-scrollable::-webkit-scrollbar-thumb:hover {
            background: #aaa;
        }

        /* ========== GRID CARDS STYLES ========== */
        .grid-cards-container {
            margin-bottom: 1rem;
        }

        .grid-cards-wrapper {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 0.75rem;
        }

        .grid-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding: 0.75rem 0.5rem;
            border-radius: 8px;
            transition: all var(--transition-speed) ease;
            text-decoration: none !important;
        }

        .grid-card:hover {
            background-color: #f8f9fa;
            transform: translateY(-3px);
        }

        .grid-card-image {
            width: 100%;
            height: 55px;
            object-fit: contain;
            margin-bottom: 0.5rem;
            border-radius: 4px;
            background-color: #f8f9fa;
            padding: 6px;
        }

        .grid-card-title {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 0.25rem;
            line-height: 1.3;
        }

        .grid-card-link {
            font-size: 0.75rem;
            color: var(--primary-blue);
            transition: color var(--transition-speed) ease;
        }

        .grid-card:hover .grid-card-link {
            color: var(--accent-orange);
        }

        /* ========== VIEW ALL BUTTON ========== */
        .view-all-section {
            text-align: center;
            padding-top: 1rem;
            border-top: 1px solid var(--border-gray);
            margin-top: 0.75rem;
            flex-shrink: 0;
        }

        .btn-view-all {
            background-color: transparent;
            color: var(--primary-blue);
            border: 2px solid var(--primary-blue);
            padding: 0.5rem 1.5rem;
            font-weight: 600;
            border-radius: 25px;
            transition: all var(--transition-speed) ease;
            text-transform: uppercase;
            font-size: 0.8rem;
            letter-spacing: 0.5px;
        }

        .btn-view-all:hover {
            background-color: var(--primary-blue);
            color: white;
        }

        /* ========== MEGA MENU - ALL CATEGORIES ========== */
        .mega-menu-content {
            min-height: 400px;
            width: 100%;
        }

        .categories-sidebar {
            background-color: #f8f9fa;
            border-right: 1px solid var(--border-gray);
            height: 380px;
            max-height: 380px;
            padding: 1rem 0;
            overflow-y: auto;
            overflow-x: hidden;
            scrollbar-width: thin;
            scrollbar-color: #ccc #f8f9fa;
        }

        /* Scrollbar personalizada para Webkit (Chrome, Safari, Edge) */
        .categories-sidebar::-webkit-scrollbar {
            width: 6px;
        }

        .categories-sidebar::-webkit-scrollbar-track {
            background: #f8f9fa;
            border-radius: 3px;
        }

        .categories-sidebar::-webkit-scrollbar-thumb {
            background: #ccc;
            border-radius: 3px;
        }

        .categories-sidebar::-webkit-scrollbar-thumb:hover {
            background: #aaa;
        }

        .categories-sidebar .list-group-item {
            border: none;
            padding: 0.85rem 1.5rem;
            border-left: 3px solid transparent;
            transition: all var(--transition-speed) ease;
            cursor: pointer;
            white-space: nowrap;
        }

        .categories-sidebar .list-group-item:hover {
            background-color: white;
            border-left-color: var(--accent-orange);
        }

        .categories-sidebar .list-group-item.active {
            background-color: white;
            color: var(--accent-orange);
            border-left: 3px solid var(--accent-orange);
            font-weight: 600;
        }

        .categories-sidebar .list-group-item i {
            width: 24px;
            text-align: center;
            flex-shrink: 0;
        }

        .subcategories-panel {
            padding: 1.5rem 2rem;
            height: 380px;
            max-height: 380px;
            background-color: white;
            overflow-y: auto;
            overflow-x: hidden;
            scrollbar-width: thin;
            scrollbar-color: #ccc #f8f9fa;
        }

        /* Scrollbar personalizada para Webkit (Chrome, Safari, Edge) */
        .subcategories-panel::-webkit-scrollbar {
            width: 6px;
        }

        .subcategories-panel::-webkit-scrollbar-track {
            background: #f8f9fa;
            border-radius: 3px;
        }

        .subcategories-panel::-webkit-scrollbar-thumb {
            background: #ccc;
            border-radius: 3px;
        }

        .subcategories-panel::-webkit-scrollbar-thumb:hover {
            background: #aaa;
        }

        .subcategories-panel h6 {
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--primary-blue);
        }

        .subcategories-panel ul li {
            margin-bottom: 0.5rem;
        }

        .subcategory-link {
            color: var(--text-muted);
            transition: color var(--transition-speed) ease;
            font-size: 0.9rem;
            display: block;
            padding: 0.2rem 0;
        }

        .subcategory-link:hover {
            color: var(--accent-orange);
        }

        .view-all-link {
            font-size: 0.85rem;
            display: inline-block;
            margin-top: 1rem;
        }

        /* ========== PROMO BANNER SECTION ========== */
        .promo-banner-section {
            background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
            border-radius: 0 0 8px 0;
            min-height: 400px;
            position: relative;
        }

        .promo-card {
            position: relative;
            overflow: hidden;
            height: 100%;
        }

        .promo-content {
            padding: 2rem;
            position: relative;
            z-index: 2;
        }

        .promo-products {
            position: absolute;
            bottom: 0;
            right: 0;
            width: 100%;
            display: flex;
            justify-content: flex-end;
        }

        .promo-products img {
            opacity: 0.85;
            max-width: 180px;
            height: auto;
        }

        /* ========== MAIN NAVIGATION ========== */
        .main-nav {
            width: 100%;
        }

        /* DISTRIBUCIÓN UNIFORME EN ESCRITORIO */
        @media (min-width: 992px) {
            .main-nav {
                display: flex !important;
                justify-content: space-between !important;
                flex: 1;
            }

            .main-nav .nav-item {
                flex: 1;
                text-align: center;
            }
        }

        .main-nav .nav-link {
            color: var(--text-dark);
            font-weight: 500;
            padding: 0.5rem 1rem !important;
            transition: color var(--transition-speed) ease;
            white-space: nowrap;
        }

        .main-nav .nav-link:hover {
            color: var(--accent-orange);
        }

        .main-nav .badge {
            font-size: 0.65rem;
            padding: 0.25em 0.5em;
            vertical-align: middle;
        }

        /* ========== MOBILE CATEGORIES BAR ========== */
        .mobile-categories-bar {
            background-color: white;
            border-bottom: 1px solid var(--border-gray);
            padding: 0.75rem 0;
        }

        .mobile-category-select {
            border: 2px solid var(--accent-orange);
            border-radius: 4px;
            color: var(--text-dark);
            font-weight: 500;
        }

        /* ========== NAVBAR TOGGLER ========== */
        .navbar-toggler {
            border: none;
            padding: 0.5rem;
        }

        .navbar-toggler:focus {
            box-shadow: none;
        }

        .navbar-toggler-icon {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        }

        /* ========== WHATSAPP BUTTON ========== */
        .whatsapp-btn {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 60px;
            height: 60px;
            background-color: #25d366;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 2rem;
            box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
            transition: all var(--transition-speed) ease;
            z-index: 1000;
        }

        .whatsapp-btn:hover {
            background-color: #1ebc57;
            transform: scale(1.1);
        }

        /* ========== MODAL ========== */
        .modal-content {
            border: none;
            border-radius: 12px;
        }

        .modal-header {
            border-bottom: 1px solid var(--border-gray);
        }

        .btn-close:focus {
            box-shadow: none;
        }

        /* ========== OFFCANVAS ========== */
        .offcanvas {
            border-left: 1px solid var(--border-gray);
        }

        /* ========== ALERT MESSAGE STYLES ========== */
        .alert-custom {
            background-color: #f8d7da;
            color: #721c24;
            padding: 12px 15px;
            border: 1px solid #f5c6cb;
            border-radius: 6px;
            margin: 0 0 15px 0;
            font-size: 14px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            /* Usar animación específica para alertas sin translateX */
            animation: slideDownAlert 0.3s ease-out;
        }

        .alert-custom.fade-out {
            animation: slideUpAlert 0.3s ease-out;
        }

        /* ========== RESPONSIVE STYLES ========== */
        @media (max-width: 1399px) {
            :root {
                --header-container-width: 1140px;
            }

            .grid-cards-wrapper {
                grid-template-columns: repeat(5, 1fr);
            }
        }

        @media (max-width: 1199px) {
            :root {
                --header-container-width: 960px;
            }

            .grid-cards-wrapper {
                grid-template-columns: repeat(4, 1fr);
            }

            .mega-menu-scrollable {
                max-height: 320px;
            }
        }

        @media (max-width: 991px) {
            :root {
                --header-container-width: 100%;
            }

            /* MANTENER TOP BAR VISIBLE EN MÓVIL */
            .top-bar .contact-info {
                font-size: 0.7rem;
            }

            .top-bar .contact-info a {
                display: inline-flex;
                align-items: center;
            }

            .search-container {
                margin-top: 1rem;
            }

            /* MANTENER FUNCIONALIDAD DE CATEGORÍAS EN MÓVIL */
            .categories-sidebar {
                border-right: none;
                border-bottom: 1px solid var(--border-gray);
                min-height: auto;
            }

            .promo-banner-section {
                display: none !important;
            }

            .user-actions {
                gap: 0.5rem !important;
            }

            .user-action-link {
                width: 36px;
                height: 36px;
            }

            .user-action-link i {
                font-size: 1rem;
            }

            /* MEGA MENUS RESPONSIVE CON TOUCH */
            .dropdown-menu.mega-menu,
            .dropdown-menu.mega-menu-brands,
            .dropdown-menu.mega-menu-categories {
                position: absolute;
                left: 0 !important;
                transform: none !important;
                width: 100%;
                max-width: 100%;
            }

            .mega-menu-content {
                min-height: auto;
            }

            .subcategories-panel {
                min-height: auto;
                padding: 1rem;
            }

            .grid-cards-wrapper {
                grid-template-columns: repeat(3, 1fr);
            }

            .mega-menu-scrollable {
                max-height: 280px;
            }
        }

        @media (max-width: 767px) {
            .logo-freddy {
                font-size: 1.5rem;
            }

            .logo-repuestos {
                font-size: 0.65rem;
            }

            .promo-banner small {
                font-size: 0.8rem;
            }

            .whatsapp-btn {
                width: 50px;
                height: 50px;
                font-size: 1.5rem;
                bottom: 15px;
                right: 15px;
            }

            .subcategories-panel {
                padding: 1rem;
            }

            .grid-cards-wrapper {
                grid-template-columns: repeat(3, 1fr);
                gap: 0.5rem;
            }

            .grid-card {
                padding: 0.5rem 0.25rem;
            }

            .grid-card-image {
                height: 45px;
            }

            .grid-card-title {
                font-size: 0.75rem;
            }

            .mega-menu-scrollable {
                max-height: 250px;
            }

            .user-action-link {
                width: 36px;
                height: 36px;
            }

            .user-action-link i {
                font-size: 1rem;
            }
        }

        @media (max-width: 575px) {
            .search-container .row {
                margin: 0 -0.25rem;
            }

            .search-container [class*="col-"] {
                padding: 0.25rem;
            }

            .search-category {
                font-size: 0.85rem;
                padding: 0.5rem;
            }

            .search-input {
                font-size: 0.85rem;
                padding: 0.5rem;
            }

            .btn-search {
                padding: 0.5rem;
            }

            .user-actions {
                gap: 0.5rem !important;
            }

            .user-action-link {
                width: 34px;
                height: 34px;
            }

            .user-action-link i {
                font-size: 0.95rem;
            }

            .user-action-link .badge {
                min-width: 18px;
                height: 18px;
                font-size: 0.65rem;
                line-height: 18px;
            }

            .grid-cards-wrapper {
                grid-template-columns: repeat(2, 1fr);
            }

            .mega-menu-scrollable {
                max-height: 220px;
            }
        }

        /* ========== HOVER EFFECTS FOR MEGA MENU ========== */
        @media (min-width: 992px) {
            .navbar-custom .dropdown:hover>.dropdown-menu {
                display: block;
            }

            .dropdown>.dropdown-toggle:active {
                pointer-events: none;
            }
        }

        /* ========== SMOOTH TRANSITIONS ========== */
        a,
        button,
        .btn,
        .nav-link,
        .list-group-item {
            transition: all var(--transition-speed) ease;
        }

        /* ========== FOCUS STATES ========== */
        .form-control:focus,
        .form-select:focus {
            border-color: var(--accent-orange) !important;
            box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.25) !important;
        }

        .btn:focus {
            box-shadow: none;
        }

        /* ========== TAB PANE TRANSITIONS ========== */
        .tab-pane {
            transition: all 0.2s ease;
        }

        /* ========== USER DROPDOWN STYLES ========== */
        .user-dropdown {
            position: relative;
            display: inline-block;
        }

        .user-button {
            background: rgba(255, 255, 255, 0.15);
            border: none;
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 25px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all var(--transition-speed) ease;
            backdrop-filter: blur(5px);
        }

        .user-button:hover {
            background: var(--hover-bg, rgba(255,255,255,0.25));
            color: var(--hover) !important;
        }

        .user-button i {
            font-size: 0.8rem;
            transition: transform var(--transition-speed) ease;
        }

        .user-button.active i {
            transform: rotate(180deg);
        }

        .dropdown-content {
            display: none;
            position: absolute;
            right: 0;
            top: 100%;
            background-color: white;
            min-width: 220px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
            border-radius: 8px;
            z-index: 1000;
            margin-top: 0.5rem;
            overflow: hidden;
            animation: dropdownSlideDown 0.3s ease-out;
        }

        .dropdown-content.show {
            display: block;
        }

        @keyframes dropdownSlideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .dropdown-content p {
            padding: 0.75rem 1rem;
            margin: 0;
            background-color: #f8f9fa;
            color: var(--text-dark);
            font-size: 0.85rem;
            font-weight: 600;
            border-bottom: 1px solid var(--border-gray);
        }

        .dropdown-content a,
        .dropdown-content button {
            color: var(--text-dark);
            padding: 0.75rem 1rem;
            text-decoration: none;
            display: block;
            transition: all var(--transition-speed) ease;
            background: none;
            border: none;
            width: 100%;
            text-align: left;
            font-size: 0.9rem;
            cursor: pointer;
        }

        .dropdown-content a:hover,
        .dropdown-content button:hover {
            background-color: #f8f9fa;
            color: var(--accent-orange);
        }

        .dropdown-logout {
            border-top: 1px solid var(--border-gray);
            color: #dc3545 !important;
        }

        .dropdown-logout:hover {
            background-color: #f8d7da !important;
            color: #721c24 !important;
        }


        /* ========================================
   ESTILOS PARA AUTOCOMPLETADO DE BÚSQUEDA
   ======================================== */

        /* Contenedor de resultados */
        .search-autocomplete-results {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid #e9ecef;
            border-top: none;
            border-radius: 0 0 8px 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            max-height: 400px;
            overflow-y: auto;
            z-index: 9999;
            margin-top: 2px;
        }

        /* Cada item de resultado */
        .search-result-item {
            display: flex;
            align-items: center;
            padding: 12px 16px;
            cursor: pointer;
            transition: background-color 0.2s ease;
            border-bottom: 1px solid #f0f0f0;
        }

        .search-result-item:last-child {
            border-bottom: none;
            border-radius: 0 0 8px 8px;
        }

        .search-result-item:hover,
        .search-result-item.selected {
            background-color: #f8f9fa;
        }

        /* Imagen del producto en resultados */
        .search-result-image {
            flex-shrink: 0;
            width: 60px;
            height: 60px;
            margin-right: 12px;
            border-radius: 6px;
            overflow: hidden;
            border: 1px solid #e9ecef;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #fff;
        }

        .search-result-image img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        /* Texto del resultado */
        .search-result-text {
            flex: 1;
            min-width: 0;
        }

        .search-result-title {
            font-size: 0.9rem;
            color: #2c3e50;
            font-weight: 500;
            line-height: 1.4;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        /* Mensaje cuando no hay resultados */
        .search-no-results,
        .search-error {
            text-align: center;
            padding: 32px 16px;
            color: #6c757d;
        }

        .search-no-results i,
        .search-error i {
            font-size: 2rem;
            margin-bottom: 12px;
            display: block;
            color: #adb5bd;
        }

        .search-no-results p,
        .search-error p {
            margin: 0;
            font-size: 0.95rem;
        }

        .search-error {
            color: #dc3545;
        }

        .search-error i {
            color: #dc3545;
        }

        /* Spinner de carga */
        .search-spinner {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            display: none;
            align-items: center;
            justify-content: center;
            color: #f39c12;
            font-size: 1.2rem;
            z-index: 10;
            pointer-events: none;
        }

        .search-spinner i {
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        /* Ajuste al contenedor de búsqueda para posicionamiento relativo */
        .search-container {
            position: relative;
        }

        /* Scrollbar personalizada para los resultados */
        .search-autocomplete-results::-webkit-scrollbar {
            width: 8px;
        }

        .search-autocomplete-results::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 0 0 8px 0;
        }

        .search-autocomplete-results::-webkit-scrollbar-thumb {
            background: #cbd5e0;
            border-radius: 4px;
        }

        .search-autocomplete-results::-webkit-scrollbar-thumb:hover {
            background: #a0aec0;
        }

        /* Responsivo */
        @media (max-width: 991px) {
            .search-autocomplete-results {
                position: fixed;
                top: auto;
                left: 15px;
                right: 15px;
                max-height: 50vh;
            }

            .search-result-item {
                padding: 10px 12px;
            }

            .search-result-image {
                width: 50px;
                height: 50px;
                margin-right: 10px;
            }

            .search-result-title {
                font-size: 0.85rem;
            }
        }

        @media (max-width: 575px) {
            .search-result-image {
                width: 45px;
                height: 45px;
            }

            .search-result-title {
                font-size: 0.8rem;
            }

            .search-spinner {
                right: 10px;
                font-size: 1rem;
            }
        }

        /* Animación suave al mostrar resultados */
        .search-autocomplete-results {
            animation: slideDown 0.2s ease-out;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Highlight del texto buscado (opcional, para implementar después) */
        .search-highlight {
            background-color: #fff3cd;
            font-weight: 600;
            padding: 0 2px;
            border-radius: 2px;
        }

        /* Estado de carga en el input */
        .search-input.searching {
            padding-right: 45px;
        }

        /*////////////////INICIO FOOTER////////////////*/

        footer {
            background: #b65959;
            color: white;
            width: 100%;
            min-width: 250px;
        }

        .footer-top {
            background: rgb(4, 191, 51);
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
            text-align: center;
            border-bottom: 1px solid #444;
            padding: 20px 0;
        }

        .feature {
            flex: 1 1 200px;
            padding: 10px;
            max-width: 250px;
        }

        .feature i {
            font-size: 50px;
        }

        .footer-top h4 {
            font-size: 22px;
            margin-bottom: 10px;
        }

        .footer-bottom {
            background-color: black;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 20px;
            padding: 20px 5%;
        }

        .footer-bottom .brand {
            flex: 1 1 250px;
            text-align: center;
        }

        .footer_bottom_logo img {
            width: 100%;
            max-width: 250px;
            height: auto;
        }

        .social-icons {
            display: flex;
            flex-wrap: wrap;
            column-gap: 10px;
            row-gap: 20px;
            justify-content: center;
            max-width: 100%;
            margin-top: 20px;
        }

        .social-icons a {
            margin: 0 10px;
            display: inline-block;
        }

        .social-icons a i {
            font-size: 30px;
            color: white;
            transition: color 0.3s ease;
        }

        .social-icons a i:hover {
            color: var(--hover, #edab4e) !important;
        }

        .footer-bottom .links {
            display: flex;
            flex: 2 1 300px;
            justify-content: space-around;
            text-align: left;
            flex-wrap: wrap;
            gap: 20px;
        }

        .footer-bottom .links div {
            min-width: 120px;
        }

        .contact h4,
        .footer-bottom .links h4,
        .footer-bottom .links h3 {
            font-size: 1.1rem;
            margin-bottom: 10px;
        }

        .footer-bottom .links ul {
            list-style: none;
            padding: 0;
        }

        .footer-bottom .links ul li a {
            color: inherit;
            text-decoration: none;
            font-size: 0.9rem;
        }

        .footer-bottom .links ul li a:hover {
            color: var(--hover, #edab4e) !important;
        }

        .contact {
            flex: 1 1 250px;
            text-align: left;
        }

        .contact ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .contact ul li {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 3px;
            font-size: 0.9rem;
        }

        .contact ul li i {
            font-size: 14px;
            flex-shrink: 0;
        }

        .footer-bottom a {
            color: inherit;
        }

        .footer-bottom a:hover {
            color: #edab4e;
        }

        /*//////////////// RESPONSIVE FOOTER //////////////////*/

        @media screen and (max-width: 768px) {
            .footer-top {
                flex-direction: column;
                align-items: center;
                padding: 15px;
            }

            .feature {
                max-width: 100%;
                text-align: center;
            }

            .footer-bottom {
                flex-direction: column;
                align-items: center;
                padding: 20px;
            }

            .footer-bottom .brand,
            .footer-bottom .links,
            .contact {
                text-align: center;
            }

            .footer-bottom .links {
                flex-direction: column;
                align-items: center;
            }

            .footer-bottom .links div {
                margin-bottom: 20px;
            }

            .contact_info_1,
            .contact_info_2 {
                justify-content: center;
            }

            .footer_bottom_logo img {
                max-width: 200px;
            }

            .social-icons a i {
                font-size: 25px;
            }
        }

        @media (max-width: 300px) {

            .footer-top .feature,
            .footer-bottom .contact,
            .footer-bottom .brand {
                flex: 1 1 100%;
            }
        }

        /* ========== ESTILOS PARA TOAST ========== */
        .toast-container {
            z-index: 1100 !important;
        }

        .toast {
            border-radius: 8px;
        }

        .toast-success {
            background-color: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

        .toast-error {
            background-color: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

        .toast-warning {
            background-color: #fff3cd;
            color: #856404;
            border: 1px solid #ffeeba;
        }

        .toast-info {
            background-color: #d1ecf1;
            color: #0c5460;
            border: 1px solid #bee5eb;
        }

        .toast-icon {
            font-size: 1.1rem;
        }

        .toast-success .toast-icon {
            color: #28a745;
        }

        .toast-error .toast-icon {
            color: #dc3545;
        }

        .toast-warning .toast-icon {
            color: #ffc107;
        }

        .toast-info .toast-icon {
            color: #17a2b8;
        }