/* Header styles */
header {
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    padding: 10px 0;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Botón hamburguesa del menú */
.menu-toggle {
    display: flex !important;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 1001;
    margin-right: 10px;
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Logo centrado */
.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo img {
    max-height: 40px;
    display: block;
}

/* Botón del carrito a la derecha */
.cart-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    margin-left: auto;
}

.cart-button:hover {
    transform: scale(1.05);
}

/* Mobile responsive para header */
@media (max-width: 768px) {
    .header-content {
        padding: 0 10px;
    }
    
    .logo {
        position: static;
        transform: none;
        margin: 0 auto;
    }    
    .logo img {
        max-height: 35px;
    }
    
    .cart-button {
        font-size: 1.3rem;
    }
    
    .menu-toggle {
        width: 36px;
        height: 36px;
    }
    
    .hamburger-line {
        width: 20px;
        height: 2px;
    }
}
