/* ----- HEADER CONTAINER ----- */
.header-contenedor {
    background-color: var(--color-blanco);
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.10);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ----- HEADER MAIN ----- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.3rem 0;
    height: 70px;
}

.header__logo img {
    width: 15rem;
}

/* ----- MENU ICON (Mobile First) ----- */
.menu-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 10;
}

.menu-icon img {
    width: 3rem;
    height: 2.5rem;
    position: absolute;
    transition: all 0.3s ease;
}

.menu-icon-abrir {
    opacity: 1;
}

.menu-icon-cerrar {
    opacity: 0;
}

.menu-icon.active .menu-icon-abrir {
    opacity: 0;
}

.menu-icon.active .menu-icon-cerrar {
    opacity: 1;
}

/* ----- MENU OVERLAY ----- */
.menu-overlay {
    position: fixed;
    top: 71px;
    left: 0;
    width: 100%;
    height: calc(100vh - 71px);
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ----- NAVIGATION MENU (Mobile First) ----- */
.header__nav {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--color-blanco);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 1000;
    border-top: 1px solid var(--color-gris);
    visibility: hidden;
    opacity: 0;
}

.header__nav.active {
    right: 0;
    visibility: visible;
    opacity: 1;
}

/* ----- NAVIGATION LINKS ----- */
.header__nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.header__nav-link {
    text-decoration: none;
    color: var(--color-negro);
    font-size: 1.8rem;
    font-family: "DM Sans", sans-serif;
    font-weight: 500;
    padding: 1.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.header__nav-link:hover {
    color: var(--color-principal);
    font-weight: 600;
}

.header__nav-link.active {
    color: var(--color-principal);
    font-weight: 700;
}

.header__nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 3px;
    background-color: var(--color-principal);
    border-radius: 2px;
}

/* ----- MOBILE MENU FOOTER ----- */
.header__nav-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: center;
}

/* ----- DESKTOP WHATSAPP BUTTON ----- */
.header__boton {
    display: none;
}

/* ----- RESPONSIVE - DESKTOP ----- */
@media (min-width: 1024px) {
    .header {
        padding: 2rem 0;
        height: 80px;
        z-index: 100;
    }
    
    .header__logo img {
        width: 18rem;
    }
    
    .menu-icon,
    .menu-overlay {
        display: none;
    }
    
    .header__nav {
        position: static;
        top: auto;
        right: auto;
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 0;
        overflow-y: visible;
        border-top: none;
        z-index: 100;
        visibility: visible;
        opacity: 1;
    }
    
    .header__nav.active {
        right: auto;
        visibility: visible;
        opacity: 1;
    }
    
    .header__nav-footer {
        display: none;
    }
    
    .header__nav-links {
        flex-direction: row;
        gap: 2rem;
        flex: none;
    }
    
    .header__nav-link {
        font-size: 1.6rem;
        padding: 0;
        font-weight: 600;
    }
    
    .header__nav-link.active::after {
        display: none;
    }
    
    .header__boton {
        display: block;
    }
}