/* ==============================
   Header líquido/fijo estilo hielo
============================== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;

    /* Fondo estilo hielo */
    background: rgba(7, 7, 7, 0.684); /* azul muy transparente */
    backdrop-filter: blur(5px) saturate(130%);
    border-bottom: 1px solid rgba(173, 216, 230, 0.569);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);

    transition: all 0.3s ease;
    z-index: 1000;
}

.header.scrolled {
    background: rgba(173, 216, 230, 0.25); /* un poco más visible al scrollear */
    border-bottom: 1px solid rgba(173, 216, 230, 0.6);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.header .logo img {
    height: 50px;
    padding-top: 15px;
}

/* @media (max-width: 768px) {
    .header .logo img {
        height: 50px;
        display: block;
    }
} */

.header .logo:hover {
    transform: translateY(-1.5px);
}

.header nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #ffffff; /* azul hielo para los links */
    font-weight: bold;
    transition: all 0.3s;
}

.header nav a:hover {
    color: #000000; /* azul más fuerte al pasar el mouse */
}

.header::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(173,216,230,0.2), rgba(106, 255, 0, 0.05));
    border-radius: inherit;
    pointer-events: none;
    z-index: -1;
}

/* ==============================
   HAMBURGUESA
============================== */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: black;
    z-index: 99999;
}

/* ==============================
   MOBILE
============================== */

@media (max-width: 768px) {

    .header {
        padding: 0 20px;
    }

    /* Mostrar hamburguesa */
    .menu-toggle {
        display: block;
    }

    /* NAV móvil */
    .header nav {
        position: fixed;

        top: 70px;
        left: -100%;

        width: 100%;
        height: calc(100vh - 70px);

        background: rgba(74, 74, 74, 0.95);

        backdrop-filter: blur(12px);

        display: flex;
        flex-direction: column;

        justify-content: flex-start;
        align-items: center;

        gap: 30px;

        padding-top: 40px;

        transition: left 0.3s ease;
        z-index: 99999;
    }

    /* Menú abierto */
    .header nav.active {
        left: 0;
    }

    /* Links */
    .header nav a {
        margin-left: 0;
        font-size: 1.3rem;
    }

    /* Ocultar dropdown desktop */
    .desktop-dropdown {
        display: none;
    }

    /* Mostrar links móviles */
    .mobile-menu-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .mobile-menu-links-categories {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;

        font-size: 0.95rem;
        font-family: 'Montserrat';
        font-weight: normal;

        opacity: 0.85;

        letter-spacing: 0.5px;
    }
}

/* ==============================
   DESKTOP
============================== */

@media (min-width: 769px) {

    .mobile-menu-links {
        display: none;
    }
}