/* ==============================================
   ESTILOS DEL HEADER - MODO CLARO (Rojo para todos)
   ============================================== */
.navbar-header {
    background: #cc1d1d !important;
    border-bottom: none !important;
}

.logo-header[data-background-color="dark"],
.logo-header {
    background: #cc1d1d !important;
}

.navbar-header .nav-link {
    color: #ffffff !important;
}

.navbar-header .nav-link:hover {
    color: #f0f0f0 !important;
}

/* ==============================================
   ESTILOS DEL HEADER - MODO OSCURO (Negro #000000)
   ============================================== */
body.dark-mode .navbar-header {
    background: #000000 !important;
}

body.dark-mode .logo-header[data-background-color="dark"],
body.dark-mode .logo-header {
    background: #000000 !important;
}

/* Dropdown profesional estilo sistema */
.dropdown-user {
    min-width: 280px;
    padding: 0;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    overflow: hidden;
}

.dropdown-user-scroll {
    max-height: 400px;
}

.dropdown-user .user-box {
    padding: 25px 20px;
    background: linear-gradient(135deg, #cc1d1d 0%, #8b1515 100%);
    text-align: center;
    border-radius: 0 0 12px 12px;
}

.dropdown-user .user-box .avatar-lg {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    overflow: hidden;
}

.dropdown-user .user-box .avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropdown-user .user-box h4 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}

.dropdown-user .user-box p {
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    margin-bottom: 8px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.dropdown-user .user-box .badge {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    background: rgba(255,255,255,0.2) !important;
    color: #ffffff;
}

.dropdown-user .dropdown-divider {
    margin: 0;
    border-color: #f0f0f0;
}

.dropdown-user .dropdown-item {
    padding: 12px 20px;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-user .dropdown-item:hover {
    background: #fef2f2;
    color: #cc1d1d;
    border-left-color: #cc1d1d;
}

.dropdown-user .dropdown-item i {
    width: 20px;
    text-align: center;
    color: #cc1d1d;
    transition: all 0.2s ease;
}

.dropdown-user .dropdown-item:hover i {
    transform: translateX(3px);
}

.dropdown-user .dropdown-item.text-danger {
    color: #dc2626;
}

.dropdown-user .dropdown-item.text-danger i {
    color: #dc2626;
}

/* Dropdown de notificaciones estilizado */
.notif-box {
    min-width: 320px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    overflow: hidden;
}

.notif-box .dropdown-title {
    padding: 15px 20px;
    background: linear-gradient(135deg, #cc1d1d 0%, #8b1515 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
}

.notif-box .notif-center a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #4a5568;
}

.notif-box .notif-center a:hover {
    background: #fef2f2;
}

.notif-box .notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.notif-box .notif-primary { background: #fee2e2; color: #cc1d1d; }
.notif-box .notif-success { background: #d1fae5; color: #059669; }
.notif-box .notif-danger { background: #fee2e2; color: #dc2626; }

.notif-box .notif-content {
    flex: 1;
}

.notif-box .notif-content .block {
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
}

.notif-box .notif-content .time {
    font-size: 12px;
    color: #9ca3af;
}

.notif-box .see-all {
    display: block;
    padding: 12px 20px;
    text-align: center;
    color: #cc1d1d;
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.notif-box .see-all:hover {
    background: #fef2f2;
}

/* Dropdown del carrito */
.cart-dropdown {
    min-width: 380px;
    max-width: 450px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    overflow: hidden;
}

.cart-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, #cc1d1d 0%, #8b1515 100%);
    color: white;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header .btn-vaciar {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.cart-header .btn-vaciar:hover {
    background: rgba(255,255,255,0.3);
}

.cart-items {
    max-height: 350px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.cart-item:hover {
    background: #fef2f2;
}

.cart-item-img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-img i {
    font-size: 24px;
    color: #9ca3af;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 13px;
    color: #cc1d1d;
    font-weight: 500;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-qty {
    width: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.cart-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: bold;
}

.cart-qty-btn:hover {
    background: #cc1d1d;
    color: white;
    border-color: #cc1d1d;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s;
    padding: 5px;
}

.cart-remove-btn:hover {
    color: #dc2626;
}

.cart-footer {
    padding: 15px 20px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 16px;
}

.cart-total span:last-child {
    color: #cc1d1d;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.cart-empty i {
    font-size: 48px;
    margin-bottom: 15px;
}

.btn-cart-checkout {
    background: #cc1d1d;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 10px;
    width: 100%;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cart-checkout:hover {
    background: #8b1515;
    transform: translateY(-2px);
}

/* ESTILOS CORREGIDOS DEL BADGE DEL CARRITO */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #cc1d1d;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    padding: 0 4px;
    z-index: 10;
}

/* Quick actions dropdown */
.quick-actions {
    min-width: 280px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    overflow: hidden;
}

.quick-actions .quick-actions-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, #cc1d1d 0%, #8b1515 100%);
}

.quick-actions .quick-actions-header .title {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    display: block;
}

.quick-actions .quick-actions-header .subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
}

.quick-actions .quick-actions-item {
    padding: 15px;
    text-align: center;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
}

.quick-actions .quick-actions-item:hover {
    background: #fef2f2;
    transform: translateY(-2px);
}

.quick-actions .quick-actions-item .avatar-item {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    color: #ffffff;
    font-size: 18px;
}

.quick-actions .quick-actions-item .text {
    font-size: 12px;
    font-weight: 500;
    color: #4a5568;
}

.dolar_group {
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 8px 15px !important;
    border-radius: 20px !important;
    color: #ffffff !important;
    margin-right: 15px !important;
}

.tasa_text {
    color: #ffffff !important;
    font-weight: 500 !important;
}

.valor_text {
    color: #ffffff !important;
    font-weight: bold !important;
}

.notification {
    background: #ffffff !important;
    color: #cc1d1d !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.profile-username {
    color: #ffffff !important;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.profile-username .op-7 {
    opacity: 0.8 !important;
}

/* Botones de toggle */
.btn-toggle {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.btn-toggle:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.topbar-toggler {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.topbar-toggler:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.theme-toggle-nav {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    transition: all 0.25s ease;
}

.theme-toggle-nav:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.theme-toggle-nav.dark {
    background: #ffffff;
    color: #1a1b2b;
    border-color: rgba(0, 0, 0, 0.12);
}

/* ==============================================
   ESTILOS DEL MODO OSCURO - GLOBALES
   ============================================== */
body.dark-mode {
    background: #000000ff !important;
    color: #e7e9f0;
}

body.dark-mode .main-panel,
body.dark-mode .page-inner,
body.dark-mode .page-header-modern,
body.dark-mode .navbar,
body.dark-mode .main-header,
body.dark-mode .submenu-panel,
body.dark-mode .dropdown-menu,
body.dark-mode .notif-box,
body.dark-mode .quick-actions,
body.dark-mode .dropdown-user,
body.dark-mode .page-header {
    background: #181d2d !important;
    border-color: #2a3041 !important;
    color: #e7e9f0 !important;
}

body.dark-mode .navbar-brand,
body.dark-mode .navbar-nav .nav-link,
body.dark-mode .profile-username,
body.dark-mode .dropdown-item,
body.dark-mode .dropdown-title,
body.dark-mode .notif-content .block,
body.dark-mode .notif-content .time,
body.dark-mode .quick-actions .quick-actions-item .text,
body.dark-mode .dolar_group,
body.dark-mode .submenu-back,
body.dark-mode .page-header-modern h2,
body.dark-mode .page-header-modern p {
    color: #e7e9f0 !important;
}

/* Estilos submenu-back en modo oscuro */
body.dark-mode .submenu-header {
    background: #181d2d !important;
    border-bottom-color: #2a3041 !important;
}

body.dark-mode .submenu-back {
    background: #181d2d !important;
    color: #e7e9f0 !important;
}

body.dark-mode .submenu-back:hover {
    background: #2a3041 !important;
    color: #e7e9f0 !important;
}

body.dark-mode .submenu-back i {
    color: #9ca3af !important;
}

/* ==============================================
   ESTILOS DEL DROPDOWN DE NOTIFICACIONES EN MODO OSCURO
   ============================================== */
body.dark-mode .notif-box .notif-center a:hover {
    background: #2a3041 !important;
}

body.dark-mode .notif-box .see-all:hover {
    background: #2a3041 !important;
}

body.dark-mode .notif-box .notif-center a {
    border-bottom-color: #2a3041 !important;
    color: #e7e9f0 !important;
}

body.dark-mode .notif-box .notif-content .block {
    color: #e7e9f0 !important;
}

body.dark-mode .notif-box .notif-content .time {
    color: #9ca3af !important;
}

body.dark-mode .notif-box .notif-primary {
    background: #3a2525 !important;
    color: #ff6b6b !important;
}

body.dark-mode .notif-box .notif-success {
    background: #1e3a2e !important;
    color: #6ee7b7 !important;
}

body.dark-mode .notif-box .notif-danger {
    background: #3a2525 !important;
    color: #ff6b6b !important;
}

body.dark-mode .notif-box .see-all {
    color: #e7e9f0 !important;
}

/* ==============================================
   ESTILOS DEL CARRITO EN MODO OSCURO
   ============================================== */
body.dark-mode .cart-dropdown {
    background: #1a1f2e !important;
    border: 1px solid #2a3041 !important;
}

body.dark-mode .cart-header {
    background: linear-gradient(135deg, #cc1d1d 0%, #8b1515 100%) !important;
}

body.dark-mode .cart-item {
    background: #1a1f2e !important;
    border-bottom: 1px solid #2a3041 !important;
}

body.dark-mode .cart-item:hover {
    background: #2a3041 !important;
}

body.dark-mode .cart-item-name {
    color: #e7e9f0 !important;
}

body.dark-mode .cart-item-price {
    color: #ff6b6b !important;
}

body.dark-mode .cart-item-img {
    background: #2a3041 !important;
}

body.dark-mode .cart-item-img i {
    color: #9ca3af !important;
}

body.dark-mode .cart-qty-btn {
    background: #2a3041 !important;
    border: 1px solid #3a4055 !important;
    color: #e7e9f0 !important;
}

body.dark-mode .cart-qty-btn:hover {
    background: #cc1d1d !important;
    color: white !important;
    border-color: #cc1d1d !important;
}

body.dark-mode .cart-remove-btn {
    color: #9ca3af !important;
}

body.dark-mode .cart-remove-btn:hover {
    color: #ff6b6b !important;
}

body.dark-mode .cart-footer {
    background: #1a1f2e !important;
    border-top: 1px solid #2a3041 !important;
}

body.dark-mode .cart-total {
    color: #e7e9f0 !important;
}

body.dark-mode .cart-total span:last-child {
    color: #ff6b6b !important;
}

body.dark-mode .cart-empty {
    color: #9ca3af !important;
}

body.dark-mode .cart-empty i {
    color: #4a5568 !important;
}

body.dark-mode .cart-empty small {
    color: #6b7280 !important;
}

body.dark-mode .btn-cart-checkout {
    background: #cc1d1d !important;
    color: white !important;
}

body.dark-mode .btn-cart-checkout:hover {
    background: #8b1515 !important;
}

body.dark-mode .btn-vaciar {
    background: rgba(255,255,255,0.15) !important;
    color: white !important;
}

body.dark-mode .btn-vaciar:hover {
    background: rgba(255,255,255,0.25) !important;
}

body.dark-mode .cart-item:hover .cart-item-name {
    color: white !important;
}

body.dark-mode .cart-item:hover .cart-item-price {
    color: #ff8888 !important;
}

body.dark-mode .cart-item-actions .cart-item-qty {
    color: #e7e9f0 !important;
}

/* Submenu estilo Facebook - cubre todo el dropdown */
.menu-item-with-submenu {
    position: static;
}

.dropdown-item.has-submenu {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.dropdown-item.has-submenu span {
    flex: none;
}

.dropdown-item.has-submenu .submenu-arrow {
    font-size: 12px;
    color: #9ca3af;
    transition: transform 0.2s ease;
    margin-left: auto;
}

.dropdown-item.has-submenu:hover .submenu-arrow {
    color: #cc1d1d;
    transform: translateX(3px);
}

.submenu-panel {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    min-width: 280px;
    height: 100%;
    min-height: 100%;
    background: #ffffff;
    z-index: 9999;
    overflow-y: auto;
    animation: slideInRight 0.25s ease-out;
    border-radius: 8px;
}

.submenu-panel.active {
    display: block;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

.submenu-panel.closing {
    animation: slideOutLeft 0.25s ease-out forwards;
}

/* Header fijo del submenu */
.submenu-header {
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 10000;
    border-bottom: 1px solid #f0f0f0;
}

.submenu-back {
    font-weight: 600;
    color: #1a1b2b !important;
    padding: 15px 20px !important;
}

.submenu-back:hover {
    background: #f3f4f6 !important;
    color: #1a1b2b !important;
    border-left-color: transparent !important;
}

.submenu-back i {
    color: #6b7280 !important;
}

/* Contenido del submenu con padding */
.submenu-content {
    padding: 8px 0;
}

/* Icono carrito en navbar */
.cart-icon {
    position: relative;
    cursor: pointer;
}

/* Estilos del modal de carrito */
.cart-modal-item {
    transition: background 0.2s ease;
}

.cart-modal-item:hover {
    background: #fef2f2;
}

body.dark-mode .cart-modal-item {
    background: #1a1f2e;
    border-color: #2a3041;
}

body.dark-mode .cart-modal-item:hover {
    background: #2a3041;
}

body.dark-mode .modal-content {
    background: #181d2d;
    border-color: #2a3041;
}

body.dark-mode .modal-header {
    border-bottom-color: #2a3041;
}

body.dark-mode .modal-footer {
    border-top-color: #2a3041;
}

body.dark-mode .btn-close {
    filter: invert(1);
}

.cart-item-img-modal {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    background: #f3f4f6;
}

.cart-item-img-modal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.dark-mode .cart-item-img-modal {
    background: #2a3041;
}

/* Estilos del texto del modal del carrito en modo oscuro */
body.dark-mode .cart-modal-item h6 {
    color: #e7e9f0 !important;
}

body.dark-mode .cart-modal-item small {
    color: #9ca3af !important;
}

body.dark-mode .cart-modal-item .text-muted {
    color: #9ca3af !important;
}

body.dark-mode .cart-modal-item .fw-bold {
    color: #e7e9f0 !important;
}

body.dark-mode .cart-modal-item .btn-outline-secondary {
    border-color: #3a4055 !important;
    color: #e7e9f0 !important;
}

body.dark-mode .cart-modal-item .btn-outline-secondary:hover {
    background: #2a3041 !important;
    border-color: #cc1d1d !important;
    color: white !important;
}

body.dark-mode .cart-modal-item .btn-outline-danger {
    border-color: #3a4055 !important;
    color: #ef4444 !important;
}

body.dark-mode .cart-modal-item .btn-outline-danger:hover {
    background: #2a3041 !important;
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

/* Estilos del modal Ver como */
#verComoModal .list-group-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 15px;
    transition: all 0.2s ease;
}

#verComoModal .list-group-item:hover {
    background: #fef2f2;
    transform: translateX(5px);
    border-color: #cc1d1d;
}

#verComoModal .list-group-item h6 {
    color: #1f2937;
    margin-bottom: 2px;
}

#verComoModal .list-group-item small {
    color: #6b7280;
}

/* Estilos del modal Ver como en modo oscuro */
body.dark-mode #verComoModal .list-group-item {
    background: #1a1f2e;
    border-color: #2a3041;
    color: #e7e9f0;
}

body.dark-mode #verComoModal .list-group-item:hover {
    background: #2a3041;
    border-color: #cc1d1d;
}

body.dark-mode #verComoModal .list-group-item h6 {
    color: #e7e9f0;
}

body.dark-mode #verComoModal .list-group-item small {
    color: #9ca3af;
}

/* ==============================================
   MENÚ MÓVIL SUPERPUESTO
   ============================================== */
.mobile-menu-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 9999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
}

.mobile-menu-overlay.active {
    display: flex !important;
}

.mobile-menu-content {
    background: #ffffff !important;
    width: 90% !important;
    max-width: 400px !important;
    max-height: 80vh !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
    animation: slideInUp 0.3s ease-out !important;
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

body.dark-mode .mobile-menu-content {
    background: #1a1f2e !important;
    color: #e7e9f0 !important;
}

.mobile-menu-header {
    background: linear-gradient(135deg, #cc1d1d 0%, #8b1515 100%) !important;
    color: white !important;
    padding: 15px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

body.dark-mode .mobile-menu-header {
    background: linear-gradient(135deg, #cc1d1d 0%, #8b1515 100%) !important;
}

.mobile-menu-title {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

.mobile-menu-close {
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    color: white !important;
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.mobile-menu-body {
    padding: 0 !important;
    max-height: calc(80vh - 60px) !important;
    overflow-y: auto !important;
}

.mobile-menu-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mobile-menu-section {
    padding: 15px 20px 5px !important;
}

.mobile-menu-section-title {
    color: #cc1d1d !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

body.dark-mode .mobile-menu-section-title {
    color: #cc1d1d !important;
}

.mobile-menu-item {
    padding: 0 !important;
}

.mobile-menu-item a {
    display: flex !important;
    align-items: center !important;
    padding: 12px 20px !important;
    color: #4a5568 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border-left: 3px solid transparent !important;
}

.mobile-menu-item a:hover {
    background: #fef2f2 !important;
    color: #cc1d1d !important;
    border-left-color: #cc1d1d !important;
}

body.dark-mode .mobile-menu-item a {
    color: #e7e9f0 !important;
}

body.dark-mode .mobile-menu-item a:hover {
    background: #2a3041 !important;
    color: #cc1d1d !important;
}

.mobile-menu-item a i {
    width: 25px !important;
    margin-right: 12px !important;
    font-size: 16px !important;
}

.mobile-menu-item a span {
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Scrollbar del menú móvil */
.mobile-menu-body::-webkit-scrollbar {
    width: 5px;
}

.mobile-menu-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mobile-menu-body::-webkit-scrollbar-thumb {
    background: #cc1d1d;
    border-radius: 3px;
}

body.dark-mode .mobile-menu-body::-webkit-scrollbar-track {
    background: #2a3041;
}

/* ==============================================
   HEADER FIJO EN MÓVIL - CORRECCIÓN
   ============================================== */
@media screen and (max-width: 991.5px) {
    /* Mantener el logo-header siempre fijo arriba en móvil */
    .main-header-logo .logo-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1002 !important;
        background: #cc1d1d !important;
        height: auto !important;
        min-height: 40px !important;
        padding: 5px 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body.dark-mode .main-header-logo .logo-header {
        background: #000000 !important;
    }

    /* Ocultar el logo de Kaiadmin en móvil */
    .main-header-logo .logo-header .logo {
        display: none !important;
    }

    /* Ocultar los botones de toggle del logo-header */
    .main-header-logo .logo-header .nav-toggle {
        display: none !important;
    }

    /* Agregar botones de toggle en el navbar-header a la izquierda de Natys */
    .navbar-header .container-fluid::before {
        content: '';
        display: flex !important;
        gap: 5px !important;
        position: absolute !important;
        left: 10px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 10 !important;
    }

    /* Crear contenedor para los toggles en el navbar-header - como elemento del flexbox */
    .navbar-header .nav-toggle-mobile {
        display: flex !important;
        gap: 5px !important;
        flex: 0 0 auto !important;
    }

    .navbar-header .nav-toggle-mobile .btn-toggle {
        padding: 6px 10px !important;
        font-size: 16px !important;
        background: transparent !important;
        border: none !important;
        color: white !important;
        border-radius: 0 !important;
    }

    .navbar-header .nav-toggle-mobile .btn-toggle:hover {
        background: rgba(255, 255, 255, 0.1) !important;
    }

    .navbar-header .nav-toggle-mobile .btn-toggle i {
        font-size: 18px !important;
    }

    /* Ocultar el segundo botón de toggle en móvil, dejar solo uno */
    .navbar-header .nav-toggle-mobile .sidenav-toggler {
        display: none !important;
    }

    /* Ajustar el logo de Natys para que no tenga margin-left */
    .navbar-header .d-flex.align-items-center {
        margin-left: 0 !important;
    }

    /* Ocultar el botón de 3 puntos ya que no es necesario */
    .main-header-logo .logo-header .more {
        display: none !important;
    }

    /* Mantener el navbar-header siempre visible en móvil - todo en una línea */
    .navbar-header {
        position: fixed !important;
        transform: translate3d(0, 0, 0) !important;
        top: 40px !important;
        background: #cc1d1d !important;
        transition: none !important;
        min-height: auto !important;
        padding: 5px 0 !important;
    }

    body.dark-mode .navbar-header {
        background: #000000 !important;
    }

    /* Ajustar el navbar en móvil - icono y Natys a la izquierda juntos */
    .navbar-header .container-fluid {
        padding: 0 10px 0 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
    }

    .navbar-header .d-flex.align-items-center {
        margin: 0 !important;
        flex: 0 0 auto !important;
    }

    .navbar-header .navbar-brand {
        margin: 0 !important;
        padding: 0 !important;
    }

    .navbar-header .navbar-brand img {
        width: 50px !important;
        height: 50px !important;
    }

    /* Ocultar la tasa BCV de momento */
    .dolar_group {
        display: none !important;
    }

    /* Ajustar los iconos del navbar en móvil - completamente a la derecha */
    .navbar-header .navbar-nav {
        margin-left: auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 0 !important;
        justify-content: flex-end !important;
        flex: 1 !important;
    }

    .navbar-header .navbar-nav .nav-link {
        padding: 2px 3px !important;
        font-size: 12px !important;
    }

    /* Ajustar los elementos del navbar-nav a la derecha */
    .navbar-header .navbar-nav > li {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .navbar-header .navbar-nav .me-3 {
        margin-right: 0 !important;
    }

    /* Ajustar el botón de toggle de tema */
    .theme-toggle-nav {
        padding: 2px 4px !important;
        width: 28px !important;
        height: 28px !important;
    }

    /* Ocultar el icono de búsqueda en móvil */
    .navbar-header .nav-item.d-flex.d-lg-none {
        display: none !important;
    }

    /* Ocultar el botón de E-commerce en móvil */
    .navbar-header .btn-sm {
        display: none !important;
    }

    /* Ocultar el correo electrónico en el perfil en móvil */
    .profile-username small {
        display: none !important;
    }

    /* Ajustar el perfil para mostrar solo la imagen */
    .profile-pic {
        padding: 0 !important;
    }

    .profile-pic .avatar-sm {
        width: 30px !important;
        height: 30px !important;
    }

    .profile-pic .avatar-sm img {
        width: 30px !important;
        height: 30px !important;
    }

    /* Ajustar el badge del carrito en móvil */
    .cart-badge {
        top: -5px !important;
        right: -5px !important;
        min-width: 15px !important;
        height: 15px !important;
        font-size: 9px !important;
    }

    /* Ajustar el badge de notificaciones en móvil - igual que el carrito */
    .notification {
        font-size: 9px !important;
        min-width: 15px !important;
        height: 15px !important;
        top: -5px !important;
        right: -5px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Centrar solo el dropdown de notificaciones en móvil */
    .notif-box {
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
    }

    /* Dejar el dropdown del carrito más a la izquierda en móvil */
    .cart-dropdown {
        left: auto !important;
        right: 0 !important;
        transform: none !important;
    }

    /* Ajustar el contenido principal para que no quede oculto detrás del header */
    .main-panel > .container {
        margin-top: 80px !important;
    }

    .topbar_open .navbar-header {
        transform: translate3d(0, 0, 0) !important;
    }
}

/* Ocultar botones de toggle en desktop */
@media screen and (min-width: 992px) {
    .navbar-header .nav-toggle-mobile {
        display: none !important;
    }

    .navbar-header .d-flex.align-items-center {
        margin-left: 30px !important;
    }
}

/* Ajustes adicionales para pantallas muy pequeñas */
@media screen and (max-width: 576px) {
    .main-header-logo .logo-header {
        padding: 4px 8px !important;
        min-height: 35px !important;
    }

    .navbar-header {
        top: 35px !important;
        padding: 4px 0 !important;
    }

    .navbar-header .navbar-brand img {
        width: 40px !important;
        height: 40px !important;
    }

    .dolar_group {
        display: none !important;
    }

    .navbar-header .navbar-nav .nav-link {
        padding: 3px 5px !important;
        font-size: 11px !important;
    }

    .profile-pic .avatar-sm {
        width: 25px !important;
        height: 25px !important;
    }

    .profile-pic .avatar-sm img {
        width: 25px !important;
        height: 25px !important;
    }

    .cart-badge {
        min-width: 12px !important;
        height: 12px !important;
        font-size: 8px !important;
    }

    .notification {
        font-size: 8px !important;
        min-width: 12px !important;
        height: 12px !important;
    }

    .main-panel > .container {
        margin-top: 85px !important;
    }
}

/* ==============================================
   NOTIFICACIONES E IDIOMA - ESTILO UNIFORME
   ============================================== */

/* Modo claro: fondo blanco */
.notif-box {
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
}
.notif-box::before,
.notif-box::after {
    display: none !important;
}
.notif-box .arrow,
.dropdown-menu.notif-box .arrow {
    display: none !important;
}
.notif-box .dropdown-title {
    background: transparent !important;
    color: #333 !important;
    border-bottom: 1px solid #eee !important;
}
.notif-box .see-all {
    background: transparent !important;
    color: #333 !important;
    border-top: 1px solid #eee !important;
}
.notif-box .notif-center p,
.notif-box .notif-center span,
.notif-box .notif-center strong {
    color: #333 !important;
}
.notif-box .notif-center i {
    color: #999 !important;
}
/* Eliminar backdrop temporal de Bootstrap para dropdowns */
.nav-item.topbar-icon.dropdown.hidden-caret .dropdown-backdrop {
    display: none !important;
}

/* Dark mode notificaciones: fondo oscuro suave, texto claro */
body.dark-mode .navbar-header .dropdown-menu.notif-box,
body[data-background-color="dark"] .navbar-header .dropdown-menu.notif-box {
    background: #2a3041 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
}
body.dark-mode .navbar-header .dropdown-menu.notif-box .dropdown-title,
body[data-background-color="dark"] .navbar-header .dropdown-menu.notif-box .dropdown-title {
    background: transparent !important;
    color: #e7e9f0 !important;
    border-bottom: 1px solid #3a4155 !important;
}
body.dark-mode .navbar-header .dropdown-menu.notif-box .see-all,
body[data-background-color="dark"] .navbar-header .dropdown-menu.notif-box .see-all {
    background: transparent !important;
    color: #e7e9f0 !important;
    border-top: 1px solid #3a4155 !important;
}
body.dark-mode .navbar-header .dropdown-menu.notif-box .see-all:hover,
body[data-background-color="dark"] .navbar-header .dropdown-menu.notif-box .see-all:hover {
    background: #3a4155 !important;
}
body.dark-mode .navbar-header .dropdown-menu.notif-box .notif-center p,
body.dark-mode .navbar-header .dropdown-menu.notif-box .notif-center span,
body.dark-mode .navbar-header .dropdown-menu.notif-box .notif-center strong,
body[data-background-color="dark"] .navbar-header .dropdown-menu.notif-box .notif-center p,
body[data-background-color="dark"] .navbar-header .dropdown-menu.notif-box .notif-center span,
body[data-background-color="dark"] .navbar-header .dropdown-menu.notif-box .notif-center strong {
    color: #e7e9f0 !important;
}
body.dark-mode .navbar-header .dropdown-menu.notif-box .notif-center i,
body[data-background-color="dark"] .navbar-header .dropdown-menu.notif-box .notif-center i {
    color: #9ca3af !important;
}

/* Modal selector de idioma - modo oscuro */
body.dark-mode #idiomaModal .modal-content,
body[data-background-color="dark"] #idiomaModal .modal-content {
    background: #2a3041 !important;
    border: 1px solid #3a4155 !important;
}
body.dark-mode #idiomaModal .modal-header,
body[data-background-color="dark"] #idiomaModal .modal-header {
    border-bottom: 1px solid #3a4155 !important;
}
body.dark-mode #idiomaModal .modal-body,
body[data-background-color="dark"] #idiomaModal .modal-body {
    background: transparent !important;
}
body.dark-mode #idiomaModal .text-muted,
body[data-background-color="dark"] #idiomaModal .text-muted {
    color: #9ca3af !important;
}
body.dark-mode #idiomaModal .list-group-item,
body[data-background-color="dark"] #idiomaModal .list-group-item {
    background: #2a3041 !important;
    border-color: #3a4155 !important;
    color: #e7e9f0 !important;
}
body.dark-mode #idiomaModal .list-group-item:hover,
body[data-background-color="dark"] #idiomaModal .list-group-item:hover {
    background: #3a4155 !important;
}
body.dark-mode #idiomaModal h6,
body[data-background-color="dark"] #idiomaModal h6 {
    color: #e7e9f0 !important;
}

/* SweetAlert2 toast - quitar backdrop oscuro (forzar transparente) */
body.dark-mode .swal2-container.swal2-backdrop-show,
body.dark-mode .swal2-container.swal2-backdrop-hide,
body[data-background-color="dark"] .swal2-container.swal2-backdrop-show,
body[data-background-color="dark"] .swal2-container.swal2-backdrop-hide {
    background: transparent !important;
}

/* Modo oscuro - aviso de inactividad / sesión cerrada */
body.dark-mode .swal-inactividad,
body[data-background-color="dark"] .swal-inactividad {
    background: #1a1f2e !important;
    color: #e7e9f0 !important;
    box-shadow: 0 10px 40px rgba(0,0,0,.55) !important;
}
body.dark-mode .swal-inactividad .swal2-title,
body.dark-mode .swal-inactividad .swal2-html-container,
body[data-background-color="dark"] .swal-inactividad .swal2-title,
body[data-background-color="dark"] .swal-inactividad .swal2-html-container {
    color: #e7e9f0 !important;
}
body.dark-mode .swal-inactividad .swal2-timer-progress-bar,
body[data-background-color="dark"] .swal-inactividad .swal2-timer-progress-bar {
    background: rgba(231,233,240,.45) !important;
}