/* ========================================
   BOTONES FLOTANTES
   ======================================== */

.btn-flotante {
    position: fixed;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
    border: none;
    text-decoration: none;
}

.btn-flotante:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-flotante svg {
    width: 28px;
    height: 28px;
}

/* WhatsApp - Lado Izquierdo */
.btn-whatsapp {
    left: 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
}

.btn-whatsapp:active {
    transform: translateY(-3px) scale(0.95);
}

/* Botón Subir - Lado Derecho */
.btn-subir {
    right: 30px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.btn-subir.visible {
    opacity: 1;
    visibility: visible;
}

.btn-subir:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

.btn-subir:active {
    transform: translateY(-3px) scale(0.95);
}

/* Animación de entrada */
@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.btn-whatsapp {
    animation: slideInLeft 0.5s ease-out 0.5s both;
}

.btn-subir.visible {
    animation: slideInRight 0.3s ease-out;
}

/* Efecto de pulso para WhatsApp */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

.btn-whatsapp {
    animation: slideInLeft 0.5s ease-out 0.5s both, pulse 2s ease-in-out infinite 1s;
}

/* Responsive */
@media (max-width: 768px) {
    .btn-flotante {
        width: 55px;
        height: 55px;
        bottom: 20px;
    }
    
    .btn-whatsapp {
        left: 20px;
    }
    
    .btn-subir {
        right: 20px;
    }
    
    .btn-flotante svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .btn-flotante {
        width: 50px;
        height: 50px;
        bottom: 15px;
    }
    
    .btn-whatsapp {
        left: 15px;
    }
    
    .btn-subir {
        right: 15px;
    }
    
    .btn-flotante svg {
        width: 22px;
        height: 22px;
    }
}
