/* ========== NAVBAR.CSS COMPLETO (SUBMENÚ CONTENIDO) ========== */
.navbar {
    display: flex;
    justify-content: center; 
    align-items: center; 
    position: fixed;
    top: 0;
    left: 0; 
    width: 100%; 
    height: 60px; 
    z-index: 1000;

    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    max-width: 1280px; 
    margin: 0 auto;
}

.nav-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links > li {
    margin: 0 10px;
    position: relative; 
}

.nav-links a {
    padding: 10px 15px;
    color: #000;
    text-decoration: none;
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links > li > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 5px;
    height: 3px; 
    width: 0;
    background: hsl(19, 100%, 47%); 
    transition: width 0.3s ease; 
    transform: translateX(-50%);
    border-radius: 10px;
}

.nav-links > li:hover > a::after {
    width: 75px;
}

/* ============================================================
   ESTILOS SUBMENÚ (DESPLEGABLE CONTENIDO - SIN FRANJA)
   ============================================================ */
.submenu {
    position: absolute;
    top: 50px; /* LO HE VUELTO A BAJAR PARA QUE SE VEA BIEN, AHORA NO SE CERRARÁ */
    left: 0;
    min-width: 220px; 
    background: rgba(255, 255, 255, 0.98); 
    backdrop-filter: blur(10px);
    list-style: none;
    padding: 8px; 
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 8px; 
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ESTO ES LO QUE ARREGLA TU PROBLEMA: Puente invisible */
.submenu::before {
    content: "";
    position: absolute;
    top: -15px; /* Cubre el hueco de aire hacia arriba */
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent; /* Es invisible, pero mantiene el hover */
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
}

.submenu li {
    width: 100%; 
}

.submenu li a {
    border: 1px solid transparent; 
    padding: 10px 20px;
    font-weight: 400;
    font-size: 0.9rem;
    color: #333;
    white-space: nowrap;
    display: block; 
    width: 100%; 
    box-sizing: border-box;
}

.submenu li a:hover {
    border: 1px solid hsl(19, 100%, 47%);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.02);
}

/* ============================================================
   ELEMENTOS ADICIONALES (LOGO, ICONOS, ACTIVE)
   ============================================================ */
.logo {
    height: 35px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.iconos-derecha {
    display: flex;
    gap: 15px;
    align-items: center;
}

.icono {
    width: 22px;
    height: 22px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.icono-user-nav {
    border-radius: 50%; 
    width: 32px; 
    height: 32px; 
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.icono-user-nav:hover {
    border-color: hsl(19, 100%, 47%);
}

.nav-links > li.active > a::after {
    width: 75px;
    background: #000;
}

/* ======================================================================================
ELIMINAR CUANDO SE QUITE LA ETIQUETA BETA DEL CABECERO, JUNTO CON EL SPAN DEL HTML.
====================================================================================== */
.badge-beta {
    position: absolute;
    top: 8px;          /* Ajusta según prefieras más arriba o abajo */
    right: -60px;       /* Ajusta según el ancho de tu logo */
    background-color: #ff5200;
    color: #ffffff;
    font-size: 12px;    /* Tamaño pequeño y elegante */
    font-weight: bold;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    pointer-events: none; /* Para que no interfiera con el clic al logo */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}