/* Estilos generales */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Botón flotante alineado a la izquierda con animación */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    left: -300px; /* Inicialmente oculto fuera de pantalla */
    z-index: 1000;
    animation: slide-in 0.8s ease-out forwards; /* Animación de entrada */
}

/* Estilos del botón */
.floating-whatsapp a {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    padding: 12px 20px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}

/* Icono de WhatsApp */
.floating-whatsapp img {
    width: 24px;
    height: 24px;
    margin-left: 10px;
}

/* Animación de hover */
.floating-whatsapp a:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
}

/* Animación de entrada */
@keyframes slide-in {
    from {
        left: -300px;
    }
    to {
        left: 20px;
    }
}

/* Responsive: Ajustar en pantallas pequeñas */
@media (max-width: 768px) {
    .floating-whatsapp {
        left: -250px; /* Ajustado para móviles */
        bottom: 10px;
        animation: slide-in-mobile 0.8s ease-out forwards;
    }

    .floating-whatsapp a {
        font-size: 14px;
        padding: 10px 16px;
    }

    .floating-whatsapp img {
        width: 20px;
        height: 20px;
    }
}

/* Animación de entrada en móviles */
@keyframes slide-in-mobile {
    from {
        left: -250px;
    }
    to {
        left: 10px;
    }
}
