/* ==========================================
   ESTILOS DEL BOTÓN HAMBURGUESA - MÁS ESPECÍFICOS
   ========================================== */

.header .hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    width: 30px;
    height: 24px;
    position: relative;
}

.header .bar {
    width: 100%;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Animación cuando está activo */
.header .hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.header .hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.header .hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ==========================================
   MENÚ MÓVIL - MÁS ESPECÍFICO
   ========================================== */

.header .nav-links {
    display: flex;
}

.header .nav-links.active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px 0;
    z-index: 1000;
}

.header .nav-links.active a {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
}

/* ==========================================
   MEDIA QUERIES - RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .header .hamburger {
        display: flex;
    }
    
    .header .nav-links {
        display: none;
        flex-direction: column;
    }
    
    .header .nav-links.active {
        display: flex !important;
    }
}

@media (min-width: 769px) {
    .header .hamburger {
        display: none !important;
    }
    
    .header .nav-links {
        display: flex !important;
    }
}