/**
 * WhatsApp Burbuja - Estilos CSS
 */

.whatsapp-burbuja {
    position: fixed;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-burbuja-derecha {
    right: 20px;
}

.whatsapp-burbuja-izquierda {
    left: 20px;
}

/* Enlace flotante */
.whatsapp-burbuja-enlace {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--whatsapp-color, #25D366);
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: whatsapp-burbuja-entrada 0.5s ease-out;
    position: relative;
}

.whatsapp-burbuja-enlace:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    text-decoration: none;
    color: white;
}

.whatsapp-burbuja-enlace:active {
    transform: scale(0.95);
}

/* Icono SVG */
.whatsapp-burbuja-icono {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* Botón cerrar */
.whatsapp-burbuja-cerrar {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #FF4444;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
    opacity: 0;
    visibility: hidden;
}

.whatsapp-burbuja:hover .whatsapp-burbuja-cerrar {
    opacity: 1;
    visibility: visible;
}

.whatsapp-burbuja-cerrar:hover {
    background: #CC0000;
    transform: scale(1.1);
}

.whatsapp-burbuja-cerrar:active {
    transform: scale(0.9);
}

/* Animación de entrada */
@keyframes whatsapp-burbuja-entrada {
    from {
        opacity: 0;
        transform: scale(0.5) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Animación de salida */
@keyframes whatsapp-burbuja-salida {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.5) translateY(30px);
    }
}

.whatsapp-burbuja.cerrada {
    animation: whatsapp-burbuja-salida 0.3s ease-out forwards;
}

/* Responsive - Móvil */
@media (max-width: 768px) {
    .whatsapp-burbuja {
        bottom: 15px;
    }

    .whatsapp-burbuja-derecha {
        right: 15px;
    }

    .whatsapp-burbuja-izquierda {
        left: 15px;
    }

    .whatsapp-burbuja-enlace {
        width: 55px;
        height: 55px;
    }

    .whatsapp-burbuja-icono {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 480px) {
    .whatsapp-burbuja {
        bottom: 10px;
    }

    .whatsapp-burbuja-derecha {
        right: 10px;
    }

    .whatsapp-burbuja-izquierda {
        left: 10px;
    }

    .whatsapp-burbuja-enlace {
        width: 50px;
        height: 50px;
    }

    .whatsapp-burbuja-icono {
        width: 24px;
        height: 24px;
    }

    .whatsapp-burbuja-cerrar {
        width: 24px;
        height: 24px;
        font-size: 14px;
        top: -6px;
        right: -6px;
    }
}
