/* =========================================
   NAVBAR Y RINCÓN DEL ALUMNO (ELIX)
   ========================================= */
.elix-nav {
    position: fixed; 
    top: 0; 
    width: 100%; 
    z-index: 1000;
    padding: 20px 0; 
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent; 
    background-color: rgba(10, 10, 11, 0.95);
}

.elix-nav.scrolled {
    padding: 15px 0; 
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.brand-logo { 
    font-size: 24px; 
    font-weight: 800; 
    color: #fff; 
    display: flex; 
    gap: 8px; 
    align-items: center;
}

.nav-menu { 
    display: flex; 
    gap: 30px; 
    align-items: center;
}

.nav-link { 
    color: var(--text-muted); 
    font-size: 15px; 
    font-weight: 600; 
    transition: 0.3s; 
    display: flex; 
    gap: 6px; 
    align-items: center;
}

.nav-link:hover, .nav-link.active { 
    color: #fff; 
}

/* --- DROPDOWN RINCÓN DEL ALUMNO --- */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-arrow {
    font-size: 12px;
    margin-left: 4px;
    transition: transform 0.3s;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background-color: var(--bg-card);
    min-width: 260px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

.dropdown-content a {
    color: var(--text-muted);
    padding: 12px 15px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.2s;
}

.dropdown-content a i {
    color: var(--yellow-main);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.dropdown-content a:hover {
    background-color: rgba(250, 204, 21, 0.05);
    color: #fff;
}

/* --- BOTONES NAVBAR --- */
.nav-actions { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.btn-nav-wa {
    background-color: rgba(37, 211, 102, 0.1); 
    color: #25D366; 
    padding: 10px 20px;
    border-radius: 8px; 
    font-weight: 700; 
    font-size: 14px; 
    transition: 0.3s;
    border: 1px solid rgba(37, 211, 102, 0.3); 
    display: flex; 
    align-items: center; 
    gap: 8px;
}

.btn-nav-wa:hover { 
    background-color: #25D366; 
    color: #000; 
}

.mobile-btn { 
    display: none; 
    background: none; 
    border: none; 
    color: #fff; 
    font-size: 24px; 
    cursor: pointer; 
}

/* --- RESPONSIVE Y FIX DEL DROPDOWN MÓVIL --- */
@media (max-width: 768px) {
    .nav-menu, .nav-actions .btn-nav-wa { display: none; }
    .mobile-btn { display: block; }
    
    /* Arreglo del Dropdown en Móvil (Formato Acordeón) */
    .nav-dropdown { 
        width: 100%; 
    }
    
    .dropdown-content { 
        position: static; 
        transform: none !important; 
        opacity: 0; 
        visibility: hidden; 
        max-height: 0; 
        overflow: hidden; 
        box-shadow: none; 
        border: none; 
        padding: 0 0 0 15px; /* Ligera sangría para que se note que es un submenú */
        margin: 0;
        background-color: transparent;
        transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    }
    
    /* Anulamos el efecto hover de PC para que no haga cosas raras al tocar la pantalla */
    .nav-dropdown:hover .dropdown-content {
        opacity: 0;
        visibility: hidden;
        transform: none;
    }
    
    /* Clase activa que añadiremos con JavaScript al hacer "Tap" */
    .nav-dropdown.open .dropdown-content {
        opacity: 1;
        visibility: visible;
        max-height: 400px; /* Espacio suficiente para los 4 enlaces */
        margin-top: 15px;
    }
    
    .nav-dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
    }
}