/* Estilos para el botón de WhatsApp */
.wpb-whatsapp-button {
    margin: 20px 0 40px 0;
    text-align: center;
    padding-bottom: 20px;
}

.wpb-whatsapp-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
    border: none;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: auto;
    max-width: 280px;
}

.wpb-whatsapp-link:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    color: white;
    text-decoration: none;
}

.wpb-whatsapp-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(37, 211, 102, 0.3);
}

.wpb-whatsapp-icon {
    margin-right: 8px;
    font-size: 18px;
}

/* Animación de pulso para llamar la atención */
@keyframes wpb-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.wpb-whatsapp-link.wpb-pulse {
    animation: wpb-pulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .wpb-whatsapp-link {
        padding: 10px 20px;
        font-size: 14px;
        width: auto;
        max-width: 250px;
        justify-content: center;
    }
    
    .wpb-whatsapp-icon {
        font-size: 16px;
    }
}

/* Estilos para el admin */
.wpb-admin-notice {
    background: #fff;
    border-left: 4px solid #25D366;
    padding: 12px;
    margin: 20px 0;
}

.wpb-admin-notice p {
    margin: 0;
    font-size: 14px;
}

/* Personalización de color del botón */
.wpb-whatsapp-link {
    background-color: var(--wpb-button-color, #25D366) !important;
    color: var(--wpb-text-color, #ffffff) !important;
}

.wpb-whatsapp-link:hover {
    background-color: var(--wpb-hover-color, #128C7E) !important;
    color: var(--wpb-text-color, #ffffff) !important;
}

/* Estilos para diferentes posiciones */
.wpb-position-left {
    text-align: left !important;
}

.wpb-position-center {
    text-align: center !important;
}

.wpb-position-right {
    text-align: right !important;
}

/* Estilos para diferentes tamaños */
.wpb-size-small .wpb-whatsapp-link {
    font-size: 14px !important;
    padding: 8px 16px !important;
}

.wpb-size-large .wpb-whatsapp-link {
    font-size: 20px !important;
    padding: 18px 36px !important;
}

/* Estilos responsivos mejorados */
@media (max-width: 768px) {
    .wpb-whatsapp-link {
        width: auto !important;
        max-width: 250px !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
    
    .wpb-position-left,
    .wpb-position-center,
    .wpb-position-right {
        text-align: center !important;
    }
}
