/**
 * Estilos para el botón "Mi cuenta" inteligente
 */
.mi-cuenta-button {
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mi-cuenta-button:hover {
    color: #2bbef9 !important;
    transform: translateY(-1px);
}

.mi-cuenta-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(43, 190, 249, 0.1) 0%, rgba(30, 136, 229, 0.1) 100%);
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.mi-cuenta-button:hover:before {
    opacity: 1;
}

/* Indicador de estado */
.mi-cuenta-button.logged-in {
    color: #28a745 !important;
}

.mi-cuenta-button.logged-in:hover {
    color: #20c997 !important;
}

.mi-cuenta-button.logged-out {
    color: #6c757d !important;
}

.mi-cuenta-button.logged-out:hover {
    color: #2bbef9 !important;
}

/* Animación de carga */
.mi-cuenta-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.mi-cuenta-button.loading:after {
    content: '';
    position: absolute;
    top: 50%;
    right: 5px;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    border: 2px solid #2bbef9;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltip personalizado */
.mi-cuenta-button[data-bs-toggle="tooltip"] {
    position: relative;
}

.mi-cuenta-button[data-bs-toggle="tooltip"]:hover:after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

.mi-cuenta-button[data-bs-toggle="tooltip"]:hover:before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    margin-bottom: -5px;
}

/* Responsive */
@media (max-width: 768px) {
    .mi-cuenta-button {
        font-size: 0.9rem;
    }
    
    .mi-cuenta-button i {
        font-size: 0.8rem;
    }
}
