/**
 * BOTONACO - Plugin WordPress de Conversión
 * Estilos CSS v1.4.0
 *
 * @package Botonaco
 * @author Nico Miragaya
 * @since 1.0.0
 *
 * Estructura:
 * 1. Variables CSS
 * 2. Wrapper
 * 3. CTAs (Botones principales)
 * 4. Modal Overlay
 * 5. Modal (estructura BEM)
 * 6. Opciones de Contacto
 * 7. Formulario (BEM)
 * 8. Responsive
 * 9. Accesibilidad
 * 10. Floating Bar (barra flotante)
 */

/* ========================================
   1. VARIABLES CSS
   ======================================== */

:root {
    /* Colores principales */
    --botonaco-primary: #2E4468;
    --botonaco-primary-hover: #1E73BE;
    --botonaco-secondary: #21808D;
    --botonaco-secondary-hover: #1a9a7a;

    /* WhatsApp */
    --botonaco-whatsapp: #25D366;
    --botonaco-whatsapp-dark: #128C7E;

    /* Textos */
    --botonaco-text: #1a1a2e;
    --botonaco-text-muted: #6b7a90;

    /* Fondos y bordes */
    --botonaco-border: #e8eef5;
    --botonaco-bg-light: #f8fafc;
    --botonaco-bg-overlay: rgba(0, 0, 0, 0.5);

    /* Efectos */
    --botonaco-radius: 14px;
    --botonaco-radius-lg: 20px;
    --botonaco-shadow: 0 4px 20px rgba(46, 68, 104, 0.25);
    --botonaco-shadow-hover: 0 8px 30px rgba(46, 68, 104, 0.35);
    --botonaco-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   2. WRAPPER
   ======================================== */

.botonaco-wrapper {
    display: block;
    width: 100%;
}

/* ========================================
   3. CTAs (BOTONES PRINCIPALES)
   ======================================== */

/* Contenedor de CTAs */
.botonaco-ctas {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* Botón base */
.botonaco-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    box-shadow: none;
}

.botonaco-btn:focus {
    outline: none;
}

.botonaco-btn:focus-visible {
    outline: 3px solid var(--botonaco-primary);
    outline-offset: 2px;
}

/* Icono dentro del botón */
.botonaco-btn__icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Texto del botón */
.botonaco-btn__text {
    white-space: nowrap;
}

/* CTA Primario - "¿Hablamos?" - Sólido verde jade */
.botonaco-btn--primary {
    background: #0D9488;
    color: #ffffff;
    border: 1px solid #0D9488;
    box-shadow: none;
}

.botonaco-btn--primary:hover {
    background: #0F766E;
    border-color: #0F766E;
}

.botonaco-btn--primary:active {
    background: #115E59;
}

/* CTA Secundario - "Solicitar información" - Ghost/Outline */
.botonaco-btn--secondary {
    background: transparent;
    color: #0D9488;
    border: 2px solid #0D9488;
    box-shadow: none;
}

.botonaco-btn--secondary:hover {
    background: rgba(13, 148, 136, 0.1);
    color: #0D9488;
}

.botonaco-btn--secondary:active {
    background: rgba(13, 148, 136, 0.15);
}

/* ========================================
   4. MODAL OVERLAY
   ======================================== */

.botonaco-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--botonaco-bg-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147483647; /* Máximo z-index posible - por encima de cualquier banner de cookies */
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* CRÍTICO: No interceptar clics cuando está oculto */
    transition: var(--botonaco-transition);
}

.botonaco-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Permitir clics solo cuando está activo */
}

/* Asegurar que el contenido del modal oculto no intercepte clics */
.botonaco-modal-overlay:not(.is-active) * {
    pointer-events: none !important;
}

/* ========================================
   5. MODAL (ESTRUCTURA BEM)
   ======================================== */

.botonaco-modal {
    background: #ffffff;
    border-radius: var(--botonaco-radius-lg);
    width: 100%;
    max-width: calc(100% - 32px);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: var(--botonaco-transition);
    position: relative;
    z-index: 2147483647; /* Máximo z-index */
}

.botonaco-modal-overlay.is-active .botonaco-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Header del modal */
.botonaco-modal__header {
    padding: 24px 28px 20px;
    border-bottom: 1px solid var(--botonaco-border);
    position: relative;
    z-index: 1;
    overflow: visible;
}

/* Evitar que elementos del header bloqueen el body */
.botonaco-modal__header * {
    pointer-events: auto;
}

.botonaco-modal__title,
.botonaco-modal__subtitle {
    position: relative;
    z-index: auto;
}

/* Neutralizar spans inyectados por plugins (ej: Table of Contents) */
.botonaco-modal__title span,
.botonaco-modal__header span[id] {
    position: static !important;
    display: inline !important;
    pointer-events: none !important;
}

/* Título del modal */
.botonaco-modal__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--botonaco-primary);
    margin: 0 0 6px 0;
    padding-right: 40px;
    line-height: 1.3;
}

/* Subtítulo del modal */
.botonaco-modal__subtitle {
    font-size: 0.9rem;
    color: var(--botonaco-text-muted);
    margin: 0;
}

/* Botón cerrar - área clickeable completa */
.botonaco-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border: none;
    background: var(--botonaco-bg-light);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    padding: 0;
    z-index: 10;
}

.botonaco-modal__close:hover {
    background: var(--botonaco-border);
}

.botonaco-modal__close:focus-visible {
    outline: 3px solid var(--botonaco-primary);
    outline-offset: 2px;
}

/* Icono del botón cerrar - no captura eventos */
.botonaco-modal__close-icon,
.botonaco-modal__close svg {
    width: 18px;
    height: 18px;
    fill: var(--botonaco-text-muted);
    pointer-events: none;
}

/* Body del modal */
.botonaco-modal__body {
    padding: 24px 28px;
}

/* Footer del modal */
.botonaco-modal__footer {
    padding: 16px 28px 20px;
    background: var(--botonaco-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Icono del footer */
.botonaco-modal__footer-icon {
    width: 16px;
    height: 16px;
    fill: #10b981;
    flex-shrink: 0;
}

/* Texto del footer */
.botonaco-modal__footer-text {
    font-size: 0.8rem;
    color: var(--botonaco-text-muted);
}

/* ========================================
   6. OPCIONES DE CONTACTO
   ======================================== */

.botonaco-contact-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.botonaco-contact-option {
    display: flex !important;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: var(--botonaco-radius);
    text-decoration: none !important;
    transition: var(--botonaco-transition);
    border: 2px solid var(--botonaco-border);
    cursor: pointer !important;
    background: #ffffff;
    position: relative;
    z-index: 999999 !important;
    pointer-events: auto !important;
    isolation: isolate;
}

/* Asegurar que el body del modal no bloquea clicks */
#botonaco-modal-hablamos .botonaco-modal__body {
    position: relative;
    z-index: 1;
    overflow: visible;
}

#botonaco-modal-hablamos .botonaco-contact-options {
    position: relative;
    z-index: 2;
}

.botonaco-contact-option:hover {
    border-color: #d0dae8;
    background: var(--botonaco-bg-light);
}

.botonaco-contact-option:focus-visible {
    outline: 3px solid var(--botonaco-primary);
    outline-offset: 2px;
}

/* Elementos hijos NO bloquean clicks */
.botonaco-contact-option__icon,
.botonaco-contact-option__content,
.botonaco-contact-option__title,
.botonaco-contact-option__desc,
.botonaco-contact-option__arrow,
.botonaco-contact-option svg {
    pointer-events: none;
}

/* Icono de la opción */
.botonaco-contact-option__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.botonaco-contact-option__icon svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
}

/* Variante: Llamada (Phone) */
.botonaco-contact-option__icon--phone {
    background: linear-gradient(135deg, var(--botonaco-primary) 0%, var(--botonaco-primary-hover) 100%);
}

/* Variante: WhatsApp */
.botonaco-contact-option__icon--whatsapp {
    background: linear-gradient(135deg, var(--botonaco-whatsapp) 0%, var(--botonaco-whatsapp-dark) 100%);
}

/* Contenido de la opción */
.botonaco-contact-option__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Título de la opción */
.botonaco-contact-option__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--botonaco-primary);
    line-height: 1.3;
}

/* Descripción de la opción */
.botonaco-contact-option__desc {
    font-size: 0.85rem;
    color: var(--botonaco-text-muted);
}

/* Flecha */
.botonaco-contact-option__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.botonaco-contact-option__arrow svg {
    width: 20px;
    height: 20px;
    fill: #c0c8d4;
    transition: fill 0.2s ease;
}

.botonaco-contact-option:hover .botonaco-contact-option__arrow svg {
    fill: var(--botonaco-primary);
}

/* ========================================
   7. FORMULARIO (BEM)
   ======================================== */

.botonaco-form {
    display: block;
}

/* Grupo de campo */
.botonaco-form__group {
    margin-bottom: 18px;
}

/* Label */
.botonaco-form__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--botonaco-primary);
    margin-bottom: 6px;
}

/* Indicador de campo requerido */
.botonaco-form__required {
    color: #dc3545;
    font-weight: 700;
}

/* Indicador de campo opcional */
.botonaco-form__optional {
    font-weight: 400;
    color: var(--botonaco-text-muted);
    font-size: 0.8rem;
}

/* Input y Textarea */
.botonaco-form__input,
.botonaco-form__textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--botonaco-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--botonaco-text);
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.botonaco-form__input:focus,
.botonaco-form__textarea:focus {
    outline: none;
    border-color: var(--botonaco-secondary);
    box-shadow: 0 0 0 4px rgba(33, 128, 141, 0.1);
}

.botonaco-form__input::placeholder,
.botonaco-form__textarea::placeholder {
    color: #a0aab8;
}

/* Textarea específico */
.botonaco-form__textarea {
    resize: vertical;
    min-height: 80px;
}

/* Botón submit */
.botonaco-form__submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--botonaco-transition);
    background: linear-gradient(135deg, var(--botonaco-secondary) 0%, var(--botonaco-secondary-hover) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(33, 128, 141, 0.3);
    margin-top: 8px;
    -webkit-appearance: none;
    appearance: none;
}

.botonaco-form__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 128, 141, 0.4);
}

.botonaco-form__submit:active {
    transform: translateY(0);
}

.botonaco-form__submit:focus-visible {
    outline: 3px solid var(--botonaco-secondary);
    outline-offset: 2px;
}

/* Icono del submit */
.botonaco-form__submit-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Mensaje de estado */
.botonaco-form__status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.botonaco-form__status[aria-hidden="false"] {
    display: block;
}

.botonaco-form__status--success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.botonaco-form__status--error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.botonaco-form__status--loading {
    background: var(--botonaco-bg-light);
    color: var(--botonaco-text-muted);
    border: 1px solid var(--botonaco-border);
}

/* ========================================
   7.1 WPFORMS DENTRO DEL MODAL FORMULARIO
   Estilos específicos para WPForms en #botonaco-modal-formulario
   NO afecta al modal de "Hablamos"
   ======================================== */

/* Contenedor WPForms */
.botonaco-wpforms-container {
    width: 100%;
}

/* Reset estilos por defecto de WPForms dentro del modal */
#botonaco-modal-formulario .botonaco-wpforms-container,
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-container,
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-container-full,
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-form,
#botonaco-modal-formulario .botonaco-wpforms-container div.wpforms-container-full {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Campos del formulario WPForms */
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field {
    margin-bottom: 16px !important;
    padding: 0 !important;
}

/* Ocultar labels - ya tenemos el header del modal */
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-label {
    display: none !important;
}

/* Indicador requerido WPForms */
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-required-label {
    color: #dc3545 !important;
    font-weight: 700 !important;
}

/* Inputs y Textareas WPForms - ALTA ESPECIFICIDAD */
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-form input[type="text"],
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-form input[type="email"],
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-form input[type="tel"],
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-form input[type="number"],
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-form input[type="url"],
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-form textarea,
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-form select {
    width: 100% !important;
    padding: 14px 16px !important;
    border: 2px solid #e8eef5 !important;
    border-radius: 12px !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    color: #1a1a2e !important;
    background: #ffffff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
    height: auto !important;
    line-height: 1.4 !important;
}

/* Focus en inputs */
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-form input:focus,
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-form textarea:focus,
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-form select:focus {
    outline: none !important;
    border-color: #21808D !important;
    box-shadow: 0 0 0 4px rgba(33, 128, 141, 0.15) !important;
}

/* Placeholders */
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-form input::placeholder,
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-form textarea::placeholder {
    color: #a0aab8 !important;
}

/* Textarea WPForms */
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-form textarea {
    resize: vertical !important;
    min-height: 80px !important;
}

/* Descripción del campo WPForms */
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-description {
    font-size: 0.8rem !important;
    color: #6b7a90 !important;
    margin-top: 6px !important;
}

/* Errores de validación WPForms */
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-error,
#botonaco-modal-formulario .botonaco-wpforms-container label.wpforms-error {
    color: #dc3545 !important;
    font-size: 0.8rem !important;
    margin-top: 6px !important;
    display: block !important;
}

#botonaco-modal-formulario .botonaco-wpforms-container input.wpforms-error,
#botonaco-modal-formulario .botonaco-wpforms-container textarea.wpforms-error {
    border-color: #dc3545 !important;
}

/* Contenedor del botón submit WPForms */
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-submit-container {
    margin-top: 8px !important;
    padding: 0 !important;
    text-align: center !important;
}

/* Botón submit WPForms - MÁXIMA ESPECIFICIDAD */
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-form button[type="submit"],
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-form .wpforms-submit,
#botonaco-modal-formulario .botonaco-wpforms-container button.wpforms-submit {
    width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 16px 24px !important;
    border: none !important;
    border-radius: 12px !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: linear-gradient(135deg, #21808D 0%, #1a9a7a 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(33, 128, 141, 0.3) !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-form button[type="submit"]:hover,
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-form .wpforms-submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(33, 128, 141, 0.4) !important;
    background: linear-gradient(135deg, #1a6b75 0%, #158a6c 100%) !important;
}

#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-form button[type="submit"]:active,
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-form .wpforms-submit:active {
    transform: translateY(0) !important;
}

/* Ocultar elementos innecesarios de WPForms */
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-title,
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-description,
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-head-container {
    display: none !important;
}

/* Mensaje de confirmación WPForms */
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-confirmation-container-full,
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-confirmation-container {
    padding: 20px !important;
    background: #d1fae5 !important;
    border: 1px solid #a7f3d0 !important;
    border-radius: 12px !important;
    color: #065f46 !important;
    text-align: center !important;
    font-size: 0.95rem !important;
}

/* Spinner de carga WPForms */
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-submit-spinner {
    margin-left: 8px !important;
}

/* Ocultar honeypot y campos ocultos */
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-hp,
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-hidden {
    display: none !important;
}

/* ========================================
   CHECKBOX Y GDPR - Estilo moderno
   ======================================== */

/* Contenedor del checkbox GDPR/Privacidad */
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-checkbox,
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-gdpr-checkbox {
    margin-bottom: 16px !important;
    padding: 0 !important;
}

#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-checkbox ul,
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-gdpr-checkbox ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-checkbox li,
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-gdpr-checkbox li {
    margin-bottom: 0 !important;
}

/* Label del checkbox */
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-checkbox label,
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-gdpr-checkbox label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    font-size: 0.85rem !important;
    color: #6b7a90 !important;
    cursor: pointer !important;
    line-height: 1.4 !important;
}

/* Ocultar checkbox nativo */
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-checkbox input[type="checkbox"],
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-gdpr-checkbox input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 2px solid #d1d5db !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    position: relative !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
}

/* Checkbox checked */
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-checkbox input[type="checkbox"]:checked,
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-gdpr-checkbox input[type="checkbox"]:checked {
    background: #21808D !important;
    border-color: #21808D !important;
}

/* Checkmark */
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-checkbox input[type="checkbox"]:checked::after,
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-gdpr-checkbox input[type="checkbox"]:checked::after {
    content: "" !important;
    position: absolute !important;
    left: 6px !important;
    top: 2px !important;
    width: 5px !important;
    height: 10px !important;
    border: solid #ffffff !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
}

/* Focus en checkbox */
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-checkbox input[type="checkbox"]:focus,
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-gdpr-checkbox input[type="checkbox"]:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(33, 128, 141, 0.2) !important;
}

/* Links dentro del checkbox (política privacidad) */
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-checkbox a,
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-gdpr-checkbox a {
    color: #21808D !important;
    text-decoration: underline !important;
}

#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-checkbox a:hover,
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-gdpr-checkbox a:hover {
    color: #1a6b75 !important;
}

/* Asterisco requerido en checkbox */
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-checkbox .wpforms-required-label,
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-gdpr-checkbox .wpforms-required-label {
    color: #dc3545 !important;
    margin-left: 2px !important;
}

/* Radio buttons WPForms */
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-radio ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-radio li {
    margin-bottom: 8px !important;
}

#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-radio input[type="radio"] {
    width: 20px !important;
    height: 20px !important;
    margin-right: 10px !important;
    border: 2px solid #d1d5db !important;
    border-radius: 50% !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    cursor: pointer !important;
    position: relative !important;
}

#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-radio input[type="radio"]:checked {
    border-color: #21808D !important;
}

#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-radio input[type="radio"]:checked::after {
    content: "" !important;
    position: absolute !important;
    top: 4px !important;
    left: 4px !important;
    width: 8px !important;
    height: 8px !important;
    background: #21808D !important;
    border-radius: 50% !important;
}

/* Campos inline WPForms (nombre/apellido, etc.) */
#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-row {
    display: flex !important;
    gap: 12px !important;
}

#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-row .wpforms-field-row-block {
    flex: 1 !important;
}

#botonaco-modal-formulario .botonaco-wpforms-container .wpforms-field-row .wpforms-field-row-block label {
    font-size: 0.75rem !important;
    color: #6b7a90 !important;
    margin-top: 4px !important;
    display: block !important;
}

/* ========================================
   8. RESPONSIVE
   ======================================== */

/* Tablet y Desktop: ≥600px */
@media (min-width: 600px) {
    .botonaco-ctas {
        flex-direction: row;
    }

    .botonaco-btn {
        flex: 1;
        width: auto;
    }

    .botonaco-modal {
        max-width: 420px;
    }
}

/* Desktop: ≥900px */
@media (min-width: 900px) {
    .botonaco-btn {
        padding: 20px 32px;
        font-size: 1.1rem;
    }

    .botonaco-btn__icon {
        width: 26px;
        height: 26px;
    }
}

/* Móviles pequeños: <380px */
@media (max-width: 379px) {
    .botonaco-ctas {
        gap: 12px;
    }

    .botonaco-btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .botonaco-btn__icon {
        width: 20px;
        height: 20px;
    }

    .botonaco-modal__header,
    .botonaco-modal__body {
        padding: 20px;
    }

    .botonaco-modal__title {
        font-size: 1.15rem;
    }

    .botonaco-contact-option {
        padding: 14px 16px;
        gap: 12px;
    }

    .botonaco-contact-option__icon {
        width: 42px;
        height: 42px;
    }

    .botonaco-contact-option__icon svg {
        width: 20px;
        height: 20px;
    }

    .botonaco-contact-option__title {
        font-size: 0.9rem;
    }

    .botonaco-contact-option__desc {
        font-size: 0.8rem;
    }

    /* WPForms en móviles pequeños */
    .botonaco-wpforms-container .wpforms-field-row {
        flex-direction: column;
        gap: 18px;
    }

    .botonaco-wpforms-container input[type="text"],
    .botonaco-wpforms-container input[type="email"],
    .botonaco-wpforms-container input[type="tel"],
    .botonaco-wpforms-container textarea {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .botonaco-wpforms-container button[type="submit"],
    .botonaco-wpforms-container .wpforms-submit {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}

/* ========================================
   9. ACCESIBILIDAD
   ======================================== */

/* Reducir movimiento */
@media (prefers-reduced-motion: reduce) {
    .botonaco-btn,
    .botonaco-modal-overlay,
    .botonaco-modal,
    .botonaco-contact-option,
    .botonaco-form__submit,
    .botonaco-form__input,
    .botonaco-form__textarea {
        transition: none;
    }

    .botonaco-btn:hover,
    .botonaco-form__submit:hover {
        transform: none;
    }
}

/* Alto contraste */
@media (prefers-contrast: high) {
    .botonaco-btn--primary {
        background: #0D9488;
        border: 2px solid #ffffff;
        color: #ffffff;
    }

    .botonaco-btn--secondary {
        background: transparent;
        border: 3px solid #0D9488;
        color: #0D9488;
    }

    .botonaco-contact-option {
        border-width: 3px;
    }

    .botonaco-form__input,
    .botonaco-form__textarea {
        border-width: 3px;
    }
}

/* ========================================
   10. FLOATING BAR
   Diseño moderno 2025 - Elegante y compacto
   ======================================== */

/* Contenedor principal - esquina inferior derecha */
#botonaco-floating-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: auto;
    z-index: 999998;
    animation: botonaco-float 3s ease-in-out infinite;
}

/* Animación flotante suave */
@keyframes botonaco-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Barra principal - Glassmorphism elegante */
.botonaco-floating__bar {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 0;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

/* Botones de acción - Círculos elegantes */
.botonaco-floating__btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    padding: 0;
    text-decoration: none;
}

.botonaco-floating__btn:hover {
    transform: scale(1.08);
}

.botonaco-floating__btn:active {
    transform: scale(0.95);
}

/* Contenedor del icono */
.botonaco-floating__btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Botón primario - Verde jade */
.botonaco-floating__btn--primary {
    background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.4);
}

.botonaco-floating__btn--primary:hover {
    background: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.5);
}

.botonaco-floating__btn--primary svg {
    fill: #ffffff;
    width: 22px !important;
    height: 22px !important;
}

/* Botón secundario - Azul elegante */
.botonaco-floating__btn--secondary {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.botonaco-floating__btn--secondary:hover {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5);
}

.botonaco-floating__btn--secondary svg {
    fill: #ffffff;
    width: 22px !important;
    height: 22px !important;
}

/* Centro con texto y flechas */
.botonaco-floating__center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 16px;
}

.botonaco-floating__cta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    color: #1f2937;
    letter-spacing: -0.01em;
}

.botonaco-floating__cta svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    opacity: 0.7;
}

.botonaco-floating__cta--left {
    color: #000000;
}

.botonaco-floating__cta--right {
    color: #000000;
}

.botonaco-floating__divider {
    width: 1px;
    height: 24px;
    background: rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

/* ========================================
   FLOATING BAR - RESPONSIVE
   ======================================== */

/* Tablets y móviles (≤768px) - Diseño compacto centrado */
@media (max-width: 768px) {
    #botonaco-floating-bar {
        bottom: 16px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        animation: botonaco-float-mobile 3s ease-in-out infinite;
    }

    @keyframes botonaco-float-mobile {
        0%, 100% { transform: translateX(-50%) translateY(0); }
        50% { transform: translateX(-50%) translateY(-5px); }
    }

    .botonaco-floating__bar {
        padding: 6px 10px;
    }

    .botonaco-floating__btn {
        width: 40px;
        height: 40px;
    }

    .botonaco-floating__btn--primary svg,
    .botonaco-floating__btn--secondary svg {
        width: 20px !important;
        height: 20px !important;
    }

    .botonaco-floating__center {
        gap: 10px;
        padding: 0 12px;
    }

    .botonaco-floating__cta {
        font-size: 13px;
    }

    .botonaco-floating__cta svg {
        width: 12px;
        height: 12px;
    }

    .botonaco-floating__divider {
        height: 20px;
    }
}

/* Móviles pequeños (≤380px) */
@media (max-width: 380px) {
    #botonaco-floating-bar {
        bottom: 12px;
    }

    .botonaco-floating__bar {
        padding: 5px 8px;
    }

    .botonaco-floating__btn {
        width: 36px;
        height: 36px;
    }

    .botonaco-floating__btn--primary svg,
    .botonaco-floating__btn--secondary svg {
        width: 18px !important;
        height: 18px !important;
    }

    .botonaco-floating__center {
        gap: 8px;
        padding: 0 10px;
    }

    .botonaco-floating__cta {
        font-size: 12px;
    }

    .botonaco-floating__divider {
        height: 16px;
    }
}

/* Accesibilidad: reducir movimiento */
@media (prefers-reduced-motion: reduce) {
    #botonaco-floating-bar {
        animation: none;
    }

    .botonaco-floating__btn {
        transition: none;
    }
}

/* Focus visible para accesibilidad */
.botonaco-floating__btn:focus-visible {
    outline: 3px solid #3B82F6;
    outline-offset: 2px;
}

/* Ocultar floating bar cuando hay modal abierto */
body.botonaco-modal-open #botonaco-floating-bar {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Fallback para navegadores sin backdrop-filter */
@supports not (backdrop-filter: blur(20px)) {
    .botonaco-floating__bar {
        background: rgba(255, 255, 255, 0.98);
    }
}

/* ========================================
   FIN BOTONACO CSS v1.4.0
   Autor: Nico Miragaya (seonico.com)
   Diseño moderno 2025 - Elegante y compacto
   + Integración WPForms
   ======================================== */
