/* Estilos para el botón de sesión desplegable */
.session-dropdown {
    position: relative;
    display: inline-block;
}

.session-button {
    background: linear-gradient(135deg, #dc2626 0%, #f90000 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(234, 102, 102, 0.3);
}

.session-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px #dc2626;
    background: linear-gradient(135deg, #dc2626 0%, #f90000 100%);
}

.session-button.logged-in {
    background: linear-gradient(135deg, #dc2626  0%, #f90000 100%);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.session-button.logged-in:hover {
    background: linear-gradient(135deg, #dc2626 0%, #f90000 100%);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.session-dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.session-dropdown.active .session-dropdown-arrow {
    transform: rotate(180deg);
}

.session-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 8px;
}

.session-dropdown.active .session-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.session-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
    font-size: 14px;
    border-bottom: 1px solid #0000000d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.session-dropdown-item:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.session-dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.session-dropdown-item:hover {
    background: #f8f9fa;
    color: #dc2626;
}

.session-dropdown-item.logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

.user-name {
    font-weight: 600;
    max-width: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Estilos responsive */
@media (max-width: 768px) {
    .session-button {
        padding: 10px 16px;
        font-size: 13px;
        min-width: 120px;
    }
    
    .session-dropdown-menu {
        min-width: 160px;
        right: -10px;
    }
    
    .session-dropdown-item {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* Estilos para el botón móvil */
.boton-sesion-mobile .session-dropdown {
    width: 100%;
}

.boton-sesion-mobile .session-button {
    width: 100%;
    justify-content: center;
    border-radius: 8px;
    background: transparent;
    color: #333;
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.boton-sesion-mobile .session-button:hover {
    background: rgba(255, 0, 0, 0.1);
    transform: none;
    box-shadow: none;
}

.boton-sesion-mobile .session-button.logged-in {
    background: transparent;
    color: #dc2626;
    border-color: #dc2626;
}

.boton-sesion-mobile .session-button.logged-in:hover {
    background: rgba(255, 0, 0, 0.1);
}

/* Modo oscuro */
body.dark-mode .session-dropdown-menu {
    background: #482d2d;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .session-dropdown-item {
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .session-dropdown-item:hover {
    background: #684a4a;
    color: #dc2626;
}

body.dark-mode .session-dropdown-item.logout:hover {
    background: #742a2a;
    color: #f56565;
}

body.dark-mode .boton-sesion-mobile .session-button {
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .boton-sesion-mobile .session-button:hover {
    background: rgba(102, 126, 234, 0.2);
}

