/* ============================================
   HEADER - STEREO IMPORT
   ============================================ */

.header-fixed {
    background: linear-gradient(135deg, #3a7bd5 0%, #3a6073 100%);
    color: var(--white-color);
    padding: 0.8rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: var(--z-header);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-fixed.scrolled {
    background: rgba(58, 123, 213, 0.98);
    padding: 0.6rem 0;
    backdrop-filter: blur(20px);
    box-shadow: 0 6px 30px rgba(0,0,0,0.2);
}

.header-fixed .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
}

.header-fixed h1 {
    font-size: var(--font-size-xl);
    margin: 0;
    display: flex;
    align-items: center;
}

.header-fixed h1 a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    padding: 0.3rem 0;
}

.header-fixed h1 a:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

.logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 50%;
    background: transparent;
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.logo-img:hover {
    transform: rotate(3deg) scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    letter-spacing: -0.5px;
}

/* Navegación principal */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.8rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-nav ul li {
    margin: 0;
}

.main-nav a {
    color: var(--white-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.7rem 1.2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-catalog {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2)) !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    font-weight: 700 !important;
    animation: pulse-catalog 4s infinite;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-catalog::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.nav-catalog:hover::before {
    left: 100%;
}

@keyframes pulse-catalog {
    0%, 100% { 
        box-shadow: 0 2px 10px rgba(0,0,0,0.1), 0 0 0 0 rgba(255, 255, 255, 0.6);
        border-color: rgba(255, 255, 255, 0.5);
    }
    50% { 
        box-shadow: 0 4px 15px rgba(0,0,0,0.2), 0 0 0 6px rgba(255, 255, 255, 0);
        border-color: rgba(255, 255, 255, 0.7);
    }
}

.nav-catalog:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.3)) !important;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    border-color: rgba(255, 255, 255, 0.8) !important;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white-color);
    cursor: pointer;
    flex-direction: column;
    gap: 3px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.hamburger-line {
    width: 22px;
    height: 2.5px;
    background: var(--white-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(58, 123, 213, 0.98), rgba(58, 96, 115, 0.98));
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.4s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
}

.mobile-menu ul li {
    margin: 0;
}

.mobile-menu a {
    color: var(--white-color);
    text-decoration: none;
    font-weight: 600;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: block;
    background: rgba(255, 255, 255, 0.12);
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(8px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.mobile-menu .nav-catalog {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15)) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Responsive header */
@media(max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-fixed {
        padding: 0.6rem 0;
    }
    
    .header-fixed .container {
        padding: 0 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        position: relative;
    }
    
    .header-fixed h1 {
        order: 1;
        margin: 0;
        flex-shrink: 0;
    }
    
    .mobile-menu-toggle {
        order: 2;
        margin-left: auto;
        flex-shrink: 0;
        position: relative;
        z-index: 1001;
    }
    
    .logo-img {
        width: 38px;
        height: 38px;
        border-width: 1.5px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
}

/* === ESTILOS ESPECÍFICOS PARA DESKTOP === */
@media (min-width: 769px) {
    .header-fixed {
        padding: 0.9rem 0;
    }
    
    .header-fixed .container {
        max-width: 1400px;
        padding: 0 2rem;
    }
    
    .logo-img {
        width: 48px;
        height: 48px;
        border-width: 2px;
    }
    
    .logo-text {
        font-size: 1.35rem;
    }
    
    .main-nav ul {
        gap: 2rem;
    }
    
    .main-nav a {
        font-size: 0.95rem;
        padding: 0.8rem 1.3rem;
    }
    
    .nav-catalog {
        font-size: 1rem !important;
        padding: 0.9rem 1.6rem !important;
    }
}

/* === ESTILOS PARA PANTALLAS GRANDES === */
@media (min-width: 1200px) {
    .header-fixed .container {
        max-width: 1600px;
        padding: 0 3rem;
    }
    
    .main-nav ul {
        gap: 2.5rem;
    }
    
    .main-nav a {
        font-size: 1rem;
        padding: 0.85rem 1.4rem;
    }
}

/* === ESTILOS PARA MÓVILES PEQUEÑOS === */
@media (max-width: 480px) {
    .header-fixed {
        padding: 0.5rem 0;
    }
    
    .header-fixed .container {
        padding: 0 0.8rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
        width: 100%;
    }
    
    .header-fixed h1 {
        order: 1;
        flex: none;
        margin: 0;
    }
    
    .mobile-menu-toggle {
        order: 2;
        flex: none;
        margin-left: auto;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
        border-width: 1px;
    }
    
    .mobile-menu {
        padding: 1rem;
    }
    
    .mobile-menu a {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }
}