/* Estilos para componentes flotantes */

/* Contenedor de botones flotantes */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 50;
}

/* Botones flotantes generales */
.floating-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.floating-btn:hover {
    transform: scale(1.1);
}

/* Botón de WhatsApp */
.whatsapp-btn { 
    background-color: #25D366;
    animation: pulse 4s infinite; 
}

/* Botón de menú */
.menu-btn {
    background-color: #4A5568;
}

/* Botón de scroll */
.scroll-top-btn {
    background-color: #3B82F6;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

/* Animación de pulso */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Menú lateral */
.side-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 60;
    overflow-y: auto;
}

.side-menu.open {
    right: 0;
}

/* Overlay del menú */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 55;
}

.menu-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Tarjeta del asesor */
.advisor-card {
    display: none;
    margin-bottom: 1rem;
    transition: all 0.5s ease;
    transform: translateX(120%);
}

.advisor-card.show {
    transform: translateX(0);
}

.close-btn { transition: all 0.3s ease; }
.close-btn:hover { transform: rotate(90deg); }

/* Responsive */
@media (max-width: 640px) {
    .floating-buttons {
        right: 10px;
        bottom: 10px;
    }

    .floating-btn {
        width: 3rem;
        height: 3rem;
    }

    .advisor-card {
        width: 250px;
        right: 10px;
    }

    .side-menu {
        width: 280px;
        right: -280px;
    }
}