
/* ==========================================
   HEADER - BARRA DE NAVEGACIÓN
========================================== */


/* CABECERA FIJA */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;

    background: rgba(41, 34, 56, 0.95);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.35);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* BARRA DE NAVEGACIÓN */

.navbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;

    width: 100%;
    box-sizing: border-box;
    padding: 12px 40px;
    gap: 30px;
}





/* ==========================================
   PERFIL: FOTO Y NOMBRE
========================================== */

.perfil {
    display: flex;
    align-items: center;
    gap: 12px;
}

.perfil img {
    width: 55px;
    height: 55px;

    border-radius: 50%;
    object-fit: cover;

    border: 2px solid #BFA0FF;
}

.perfil h2 {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
}
.perfil a {
    display: block;
    border-radius: 50%;
}

.perfil img {
    transition: transform 0.3s ease;
}

.perfil a:hover img {
    transform: scale(1.08);
}

/* ==========================================
   ENLACES DE NAVEGACIÓN
========================================== */


.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;

    list-style: none;
    margin: 0;
    padding: 0;
}


.nav-links li {
    position: relative;
}

.nav-links a {
    display: block;
    padding: 10px 0;

    color: #F5F0FF;

    font-size: 16px;
    font-weight: 600;

    text-decoration: none;

    transition: color 0.3s ease;
}

/* EFECTO HOVER */

.nav-links a:hover {
    color: #BFA0FF;
}

/* ==========================================
   MENÚS DESPLEGABLES
========================================== */

.dropdown {
    display: none;

    position: absolute;
    top: 100%;
    left: 0;

    min-width: 190px;

    background: #38304D;

    border: 1px solid rgba(191, 160, 255, 0.15);
    border-radius: 10px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);

    list-style: none;

    z-index: 100;
}

/* ENLACES DEL DESPLEGABLE */

.dropdown li a {
    padding: 13px 16px;

    color: #FFFFFF;

    font-size: 14px;
    font-weight: 500;

    transition: background 0.3s ease,
                color 0.3s ease;
}

/* HOVER DEL DESPLEGABLE */

.dropdown li a:hover {
    background: #51416F;
    color: #D6BFFF;
}

/* MOSTRAR DESPLEGABLE */

.nav-links li:hover > .dropdown,
.nav-links li:focus-within > .dropdown {
    display: block;
}

/* ==========================================
   ADAPTACIÓN A MÓVILES
========================================== */

@media (max-width: 700px) {
    .navbar {
        flex-direction: column;
        gap: 12px;
        padding: 10px 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .nav-links a {
        font-size: 14px;
    }
}

/* REDES SOCIALES DEL HEADER */

.header-redes {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.header-redes a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 35px;
    height: 35px;

    transition: transform 0.3s ease;
}

.header-redes img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-redes a:hover {
    transform: translateY(-3px) scale(1.08);
}

