/* ============================== */
/* 📌 NAVBAR ESTILIZADO Y CORREGIDO */
/* ============================== */

.navbar {
    background: #fff;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* ✅ Logo */
.logo img {
    height: 50px;
    width: auto;
}

/* ✅ Menú de navegación */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 20px;
}

/* ✅ Estilos de los enlaces */
.nav-links a {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 1em;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

/* ============================== */
/* 👤 ESTILOS PARA USUARIO LOGUEADO */
/* ============================== */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

/* ✅ Imagen de perfil */
.profile-pic {
    width: 35px !important;
    height: 35px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
}

/* ✅ Nombre del usuario */
.user-info span {
    font-size: 1em;
    font-weight: bold;
    color: #1d1d1f;
}

/* ✅ Botón de cerrar sesión (Rojo) */
.user-info .logout-btn {
    background: #dc3545 !important;
    padding: 8px 12px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease;
}

.user-info .logout-btn:hover {
    background: #c82333 !important;
}

/* ✅ Botón de iniciar sesión (Azul) */
.nav-item .login-btn {
    display: inline-block;
    background: #0071e3 !important;
    color: white !important;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease;
}

.nav-item .login-btn:hover {
    background: #005bb5 !important;
}

/* ============================== */
/* 📱 RESPONSIVE                  */
/* ============================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: white;
        position: absolute;
        top: 60px;
        right: 0;
        width: 220px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        padding: 10px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .user-info {
        justify-content: center;
    }

    .profile-pic {
        width: 30px !important;
        height: 30px !important;
    }

    /* ✅ Botones en móvil */
    .logout-btn, .login-btn {
        padding: 6px 10px !important;
        font-size: 0.9em !important;
    }
}
