/* Estilos para el Botón Flotante de WhatsApp */
#wp-wa-button-container {
    position: fixed;
    bottom: 25px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

#wp-wa-button-container.wp-wa-right {
    right: 25px;
    align-items: flex-end;
}

#wp-wa-button-container.wp-wa-left {
    left: 25px;
    align-items: flex-start;
}

/* Tooltip / Globo de Saludo */
.wp-wa-tooltip {
    background: #ffffff;
    color: #1f2937;
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    max-width: 240px;
    line-height: 1.4;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    animation: wpWaFadeIn 0.4s ease-out;
}

.wp-wa-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #ffffff;
}

.wp-wa-right .wp-wa-tooltip::after {
    right: 22px;
}

.wp-wa-left .wp-wa-tooltip::after {
    left: 22px;
}

.wp-wa-tooltip-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin: 0;
    transition: color 0.2s ease;
}

.wp-wa-tooltip-close:hover {
    color: #4b5563;
}

/* Botón Circular */
.wp-wa-btn {
    position: relative;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.wp-wa-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
    color: #ffffff;
}

.wp-wa-btn:active {
    transform: scale(0.95);
}

.wp-wa-icon {
    width: 32px;
    height: 32px;
    z-index: 2;
}

/* Animación de Pulso */
.wp-wa-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25d366;
    border-radius: 50%;
    z-index: 1;
    opacity: 0.7;
    animation: wpWaPulseAnim 2s infinite ease-in-out;
}

@keyframes wpWaPulseAnim {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.4);
        opacity: 0;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes wpWaFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividad para Móviles */
@media (max-width: 480px) {
    #wp-wa-button-container {
        bottom: 18px;
    }
    #wp-wa-button-container.wp-wa-right {
        right: 18px;
    }
    #wp-wa-button-container.wp-wa-left {
        left: 18px;
    }
    .wp-wa-btn {
        width: 54px;
        height: 54px;
    }
    .wp-wa-icon {
        width: 28px;
        height: 28px;
    }
}
