/* NAVBAR - VERSIÓN CORREGIDA - LOGO MÁS GRANDE */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
    background-color: #ffffff !important;
    min-height: 110px; /* Aumentado de 90px a 110px */
}

/* CONTENEDOR DEL LOGO MÁS GRANDE */
.navbar-brand {
    margin-right: auto;
    display: flex;
    align-items: center;
    height: 110px; /* Aumentado */
}

/* LOGO - MÁS GRANDE Y VISIBLE */
.navbar-brand img {
    height: 95px; /* Aumentado de 85px a 95px */
    width: auto; 
    max-width: 280px; /* Aumentado */
    object-fit: contain; 
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-nav {
    align-items: center;
    margin-left: auto;
    gap: 5px;
}

.nav-link {
    font-weight: 500;
    margin: 0 2px;
    padding: 10px 18px !important;
    border-radius: 6px;
    transition: all 0.3s;
    color: #333 !important;
    text-decoration: none;
}

.nav-link:hover,
.nav-link:focus {
    background-color: #F9F9F9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    color: #EF3738 !important;
    outline: none;
}

.nav-link.active {
    background-color: #EF3738;
    color: white !important;
    font-weight: 600;
}

.nav-link.active:hover,
.nav-link.active:focus {
    background-color: #B71C1C;
    color: white !important;
    transform: translateY(-2px);
}

/* Botón cerrar sesión */
.btn-logout {
    background-color: #dc3545 !important;
    color: white !important;
    border: none;
}

.btn-logout:hover,
.btn-logout:focus {
    background-color: #c82333 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
    color: white !important;
}

/* Botón hamburguesa */
.navbar-toggler {
    border: none;
    padding: 4px 8px !important;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
    z-index: 2000; /* Asegurar que esté por encima */
}

.navbar-toggler:hover {
    background-color: #F9F9F9;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(239, 55, 56, 0.25);
    outline: none;
}

.navbar-toggler-icon {
    width: 24px !important;
    height: 24px !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28239, 55, 56, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-size: 24px 24px !important;
}

/* NAVBAR PARA MÓVIL - LOGO MÁS GRANDE TAMBIÉN */
@media (max-width: 991.98px) {
    .navbar {
        text-align: center;
        padding: 8px 0;
        min-height: 80px; /* Aumentado en móvil */
    }
    
    .navbar-brand {
        height: 80px; /* Aumentado en móvil */
        margin: 0 auto;
        justify-content: center;
    }
    
    .navbar-brand img {
        height: 65px; /* Aumentado de 50px a 65px en móvil */
        max-width: 220px; /* Aumentado */
    }
    
    .navbar-toggler {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 35px;
        height: 35px;
    }
    
    .navbar-toggler-icon {
        width: 20px !important;
        height: 20px !important;
        background-size: 20px 20px !important;
    }
    
    .navbar-collapse {
        margin-top: 15px;
        width: 100%;
        background-color: #ffffff; /* Fondo blanco para el menú desplegado */
        padding-bottom: 10px;
        z-index: 1999;
    }
    
    .nav-link {
        margin: 2px 0;
        text-align: center;
        display: block;
        padding: 12px 16px !important;
        font-size: 16px;
    }
    
    .navbar-nav {
        align-items: stretch;
        width: 100%;
        margin-left: 0;
        gap: 0;
    }
}

/* Estados de foco mejorados */
.nav-link:focus-visible {
    outline: 2px solid #EF3738;
    outline-offset: 2px;
}