/* Botón de Chat Flotante */ 
.chat-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #D85918, #ff7b3d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(216, 89, 24, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 3px solid #fff;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(216, 89, 24, 0.6);
    text-decoration: none;
}

.chat-button img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1);
}

.chat-button:hover img {
    transform: scale(1.05);
}

/* Animación de pulsación */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 16px rgba(216, 89, 24, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(216, 89, 24, 0.7);
    }
    100% {
        box-shadow: 0 4px 16px rgba(216, 89, 24, 0.4);
    }
}

.chat-button.pulse {
    animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .chat-button {
        width: 60px;
        height: 60px;
        bottom: 15px;
        left: 15px;
    }
    
    .chat-button img {
        width: 35px;
        height: 35px;
    }
}
.chat-wrapper {
    position: fixed;
    bottom: 20px;
    left: 4px;
    z-index: 1000;
    }

    /* Burbuja de texto */
    .chat-bubble {
    position: absolute;
    left: 90px;
    bottom: 15px;
    background: #fff;
    color: #333;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 1s ease, transform 1s ease;
    max-width: 250px;
    line-height: 1.4;
    position: relative;
    }

    /* Flecha que apunta al botón */
    .chat-bubble .bubble-tail {
    content: "";
    position: absolute;
    left: -10px;
    bottom: 12px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-right-color: #fff;
    }

    /* Animación de aparición */
    .chat-bubble.visible {
    opacity: 1;
    transform: translateY(0);
    }
