.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background: white;
}

/* ========== TOP HEADER (BLANCO) ========== */
.header-top {
    background-color: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid #e8e8e8;
}

.header-top-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.header-logo {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 65px;
    width: auto;
    display: block;
}

.logo-tagline {
    font-size: 16px;
    font-weight: 900;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Layout */
.header-mobile-layout {
    display: none;
}

.mobile-icons-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 15px 0 10px 0;
}

/* Navigation */
.header-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #000;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #000;
    transition: width 0.3s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

/* Header Icons */
.header-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-icon-btn {
    position: relative;
    color: #333;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    cursor: pointer;
}

.header-icon-btn:hover {
    background-color: #f5f5f5;
    color: #000;
}

.icon-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: #8b0000;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* ========== SEARCH BAR (NEGRO) ========== */
.header-search {
    background-color: #000000;
    padding: 18px 0;
}

/* ========== MOBILE MENU ========== */
.menu-toggle,
.menu-toggle-mobile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
}

.menu-toggle span,
.menu-toggle-mobile span {
    width: 24px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: block;
}

.menu-toggle.active span:nth-child(1),
.menu-toggle-mobile.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background-color: #8b0000;
}

.menu-toggle.active span:nth-child(2),
.menu-toggle-mobile.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.menu-toggle.active span:nth-child(3),
.menu-toggle-mobile.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background-color: #8b0000;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1001;
    padding-top: 80px;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                opacity 0.4s ease,
                visibility 0.4s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
}

.mobile-menu-close::before,
.mobile-menu-close::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-close::before {
    transform: rotate(45deg);
}

.mobile-menu-close::after {
    transform: rotate(-45deg);
}

.mobile-menu-close:hover::before,
.mobile-menu-close:hover::after {
    background-color: #8b0000;
    transform: rotate(45deg) scale(1.1);
}

.mobile-menu-close:hover::after {
    transform: rotate(-45deg) scale(1.1);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 40px 30px;
    gap: 5px;
}

.mobile-nav-link {
    padding: 18px 20px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    transform: translateX(-30px);
    opacity: 0;
    letter-spacing: 1px;
}

.mobile-menu.active .mobile-nav-link {
    transform: translateX(0);
    opacity: 1;
}

.mobile-menu.active .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-nav-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-nav-link:nth-child(6) { transition-delay: 0.35s; }

.mobile-nav-link:hover,
.mobile-nav-link:active {
    background-color: rgba(139, 0, 0, 0.2);
    color: #d4af37;
    padding-left: 30px;
    border-left: 4px solid #d4af37;
}

/* ========== RESPONSIVE ========== */

/* Tablet (1024px y menos) */
@media (max-width: 1024px) {
    .header-nav {
        display: none;
    }
    
    .header-icons .menu-toggle {
        display: flex;
    }
}

/* Móvil (768px y menos) */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    
    .show-mobile {
        display: block !important;
    }
    
    .header-top {
        padding: 12px 0 0;
    }
    
    .header-top-content {
        padding: 0 15px;
        justify-content: center;
    }
    
    .logo-link {
        flex-direction: column;
        gap: 8px;
    }
    
    .logo-img {
        height: 90px;
    }
    
    .logo-tagline {
        font-size: 18px;
    }
    
    .header-mobile-layout {
        display: block;
    }
    
    .mobile-icons-row .header-icon-btn svg {
        width: 26px;
        height: 26px;
    }
    
    .header-nav {
        display: none;
    }
}

/* Móvil pequeño (576px y menos) */
@media (max-width: 576px) {
    .logo-img {
        height: 80px;
    }
    
    .logo-tagline {
        font-size: 16px;
    }
    
    .mobile-icons-row {
        gap: 15px;
    }
    
    .mobile-icons-row .header-icon-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* Desktop (mayor a 1024px) */
@media (min-width: 1025px) {
    .menu-toggle,
    .menu-toggle-mobile {
        display: none;
    }
    
    .header-mobile-layout {
        display: none;
    }
}