/* Asegura que el header sea transparente con alta prioridad */
header {
    position: fixed;
    width: 100%;
    top: 0;
    /* Usar un color transparente con rgba también funciona y puede ser más robusto */
    background-color: rgba(0, 0, 0, 0); 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

/* Esta clase se agregará con JavaScript para ocultar el header */
.header-hidden {
    transform: translateY(-100%);
}

/* Asegura que el nav sea transparente con alta prioridad */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    /* Usar un color transparente con rgba también funciona y puede ser más robusto */
    background-color: rgba(0, 0, 0, 0); 
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    justify-content: center; 
    flex-grow: 1; 
}

.nav-links li a {
    font-weight: bold;
    transition: 0.3s;
    /* justify-content y justify-items no son válidos aquí */
    /* justify-content: center; */
    /* justify-items: center; */
    color: #81ff4f;
}

.nav-links li a:hover {
    color: #007BFF;
}

/* Burger menu */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 4px;
}

/* Responsive */
@media(max-width:768px){
    .nav-links {
        position: absolute;
        right: 0;
        height: 100vh;
        top: 0;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.3s ease-in;
    }

    .nav-links.active {
        transform: translateX(0%);
    }

    .burger {
        display: flex;
    }
}

