/* ═══════════════════════════════════════════════════════════════════
   WF WhatsApp Forms — Public CSS v1.1
   Compatible con Materialize CSS / standalone
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --wf-accent:     #25D366;
    --wf-radius:     12px;
    --wf-shadow:     0 20px 60px rgba(0,0,0,.35);
    --wf-transition: .25s cubic-bezier(.4,0,.2,1);
    --wf-overlay-bg: rgba(0,0,0,.6);
    --wf-btn-radius: 20px; /* radio de bordes para modo botones (overridden inline) */
}

/* ── Trigger button (shortcode) ─────────────────────────────────── */

.wf-waf-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--wf-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: filter var(--wf-transition), transform var(--wf-transition);
    text-decoration: none;
    letter-spacing: .02em;
}
.wf-waf-trigger-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    color: #fff;
}
.wf-waf-trigger-btn:active { transform: translateY(0); }

/* ── Overlay ─────────────────────────────────────────────────────── */

.wf-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: transparent;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
}

/* Animación slide */
.wf-anim-slide .wf-popup-modal {
    transform: translateY(40px);
    opacity: 0;
    transition: transform var(--wf-transition), opacity var(--wf-transition);
}
.wf-anim-slide.wf-popup-open .wf-popup-modal { transform: translateY(0); opacity: 1; }

/* Animación fade */
.wf-anim-fade .wf-popup-modal {
    opacity: 0; transform: scale(.96);
    transition: opacity var(--wf-transition), transform var(--wf-transition);
}
.wf-anim-fade.wf-popup-open .wf-popup-modal { opacity: 1; transform: scale(1); }

/* ── Modal ───────────────────────────────────────────────────────── */

.wf-popup-modal {
    background: #fff;
    border-radius: var(--wf-radius);
    box-shadow: var(--wf-shadow);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (max-width: 600px) {
    .wf-popup-overlay { padding: 0; align-items: flex-end; }
    .wf-popup-modal {
        max-width: 100%;
        max-height: 95vh;
        border-radius: var(--wf-radius) var(--wf-radius) 0 0;
    }
    .wf-anim-slide .wf-popup-modal  { transform: translateY(100%); }
    .wf-anim-slide.wf-popup-open .wf-popup-modal { transform: translateY(0); }
}

/* ── Header ──────────────────────────────────────────────────────── */

.wf-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    color: #fff;
    flex-shrink: 0;
}
.wf-popup-title { font-size: 17px; font-weight: 700; letter-spacing: .01em; }
.wf-popup-close {
    background: rgba(255,255,255,.2);
    border: none; color: #fff;
    width: 32px; height: 32px;
    border-radius: 50%; font-size: 16px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s; flex-shrink: 0; line-height: 1;
}
.wf-popup-close:hover { background: rgba(255,255,255,.35); }

/* ── Body ────────────────────────────────────────────────────────── */

.wf-popup-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}
/* Ocultar scrollbar visual manteniendo el scroll funcional */
.wf-popup-body,
.wf-popup-modal.wf-style-soft.switch {
    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* IE / Edge legacy */
}
.wf-popup-body::-webkit-scrollbar,
.wf-popup-modal.wf-style-soft.switch::-webkit-scrollbar {
    display: none;                /* Chrome / Safari / Opera */
}
.wf-popup-description { font-size: 14px; color: #666; margin: 0 0 16px; line-height: 1.6; }

/* ── Fields grid ─────────────────────────────────────────────────── */

.wf-fields-grid { display: flex; flex-wrap: wrap; gap: 12px; }

.wf-fw-100 { flex: 0 0 100%; }
.wf-fw-75  { flex: 0 0 calc(75% - 10px); }
.wf-fw-66  { flex: 0 0 calc(66.666% - 10px); }
.wf-fw-50  { flex: 0 0 calc(50% - 10px); }
.wf-fw-33  { flex: 0 0 calc(33.333% - 10px); }
.wf-fw-25  { flex: 0 0 calc(25% - 10px); }

/*
 * Visually-hidden toggle (admin builder → "Ocultar campo en frontend").
 * Deliberately uses a CSS class with !important instead of an inline style.
 * Reason: tab/step/conditional JS does `element.style.display = ''` on field
 * wrappers when activating them, which would strip an inline display:none.
 * A stylesheet !important overrides any inline style WITHOUT !important
 * (CSS cascade level 2 > level 3), so this class is immune to JS manipulation.
 */
.wf-field-visually-hidden { display: none !important; }
.wf-step-hidden { display: none !important; } /* field hidden because it belongs to a different step */

@media (max-width: 480px) {
    .wf-fw-75, .wf-fw-66, .wf-fw-50, .wf-fw-33, .wf-fw-25 { flex: 0 0 100%; }
}

/* ── Input styles (Materialize-compatible) ───────────────────────── */

.wf-input-wrap { display: flex; flex-direction: column; width: 100%; overflow: hidden; }

.wf-input-wrap label {
    font-size: 12px; font-weight: 600;
    color: #888; margin-bottom: 4px; letter-spacing: .01em;
}

.wf-input-wrap input,
.wf-input-wrap select,
.wf-input-wrap textarea {
    width: 100%;
    border: none;
    border-bottom: 2px solid #ddd;
    border-radius: 0;
    padding: 8px 2px;
    font-size: 15px;
    color: #333;
    background: transparent;
    box-sizing: border-box;
    transition: border-color .2s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
}
body .wf-popup-form [type="checkbox"]:not(:checked), body .wf-popup-form [type="checkbox"]:checked{
    position: relative !important;
    display: none !important;
}

.wf-input-wrap select { display: block !important; }

/* Range slider: reset appearance:none that breaks native thumb drag */
.wf-input-wrap input[type=range],
.wf-popup-modal .wf-input-wrap input[type=range],
.wf-inline-form-wrap .wf-input-wrap input[type=range] {
    -webkit-appearance: auto !important;
    appearance: auto !important;
    border: none !important;
    border-bottom: none !important;
    background: transparent !important;
    padding: 0 !important;
    height: auto !important;
    cursor: pointer !important;
    width: 100% !important;
    accent-color: var(--wf-accent, #25d366);
    position: static !important;
    float: none !important;
}
body .contenedor-slider,
body input[type=range]+.thumb {
    position: relative !important;
    top: 0 !important;
}

body .wf-range-flex {
    flex-direction: column-reverse;
    align-items: flex-start !important;
    gap: 0 !important;
}
/* The flex container for the range must have overflow:visible so the thumb isn't clipped */
.wf-range-wrap {
    overflow: visible !important;
    position: relative;
}
/* Output element can get position:absolute from themes — reset it */
output.wf-range-output {
    position: static !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}
/* Range output: max specificity to override any theme positioning */
span.wf-range-output,.wf-range-wrap span.wf-range-output,div span.wf-range-output,.wf-input-wrap span.wf-range-output,.wf-input-wrap div span.wf-range-output{position:static !important;top:auto !important;bottom:auto !important;left:auto !important;right:auto !important;transform:none !important;float:none !important;clear:none !important;margin:0 !important;vertical-align:middle !important;display:inline-flex !important;align-items:center !important;justify-content:center !important;flex-shrink:0 !important;}

/* Color picker: restore 44x44 size - .wf-input-wrap input forces width:100% */
input[type=color].wf-color-native,.wf-input-wrap input[type=color].wf-color-native,.wf-color-field input[type=color],.wf-popup-modal .wf-input-wrap input[type=color].wf-color-native,.wf-inline-form-wrap .wf-input-wrap input[type=color].wf-color-native{width:44px !important;height:44px !important;min-width:44px !important;max-width:44px !important;min-height:44px !important;padding:2px !important;-webkit-appearance:auto !important;appearance:auto !important;border:2px solid #d1d5db !important;border-bottom:2px solid #d1d5db !important;border-radius:8px !important;cursor:pointer !important;background:transparent !important;flex-shrink:0 !important;box-shadow:none !important;}

/* Range thumb: parent overflow clip fix */
.wf-input-wrap:has(input[type=range]){overflow:visible !important;}

/* WP native editor frontend: replicate WP admin tab-switching CSS */
.wf-wysiwyg-field-wrap .quicktags-toolbar,.wp-editor-wrap .quicktags-toolbar{display:inline-flex !important;flex-wrap:wrap !important;align-items:center !important;gap:2px !important;padding:4px 6px !important;background:#f6f7f7 !important;border-bottom:1px solid #dcdcde !important;}
.wf-wysiwyg-field-wrap .quicktags-toolbar input,.wp-editor-wrap .quicktags-toolbar input{display:inline-block !important;width:auto !important;min-width:auto !important;height:auto !important;padding:3px 7px !important;margin:0 !important;font-size:12px !important;line-height:1.5 !important;border-radius:3px !important;border:1px solid #c3c4c7 !important;border-bottom:1px solid #c3c4c7 !important;background:#fff !important;cursor:pointer !important;-webkit-appearance:none !important;appearance:none !important;box-shadow:none !important;flex-shrink:0 !important;}
.wp-editor-wrap.tmce-active .quicktags-toolbar{display:none !important;}
.wp-editor-wrap.tmce-active .wp-switch-editor.switch-html{display:none !important;}
.wp-editor-wrap.html-active .mce-container,.wp-editor-wrap.html-active .mce-panel{display:none !important;}
.wp-editor-wrap.html-active .wp-switch-editor.switch-tmce{display:none !important;}
.wf-wysiwyg-field-wrap .wp-editor-wrap{border:1px solid #dcdcde;border-radius:4px;overflow:hidden;margin-top:4px;}
/* Password strength bar */
.wf-pwd-strength { height:4px; border-radius:2px; background:#e5e7eb; margin-top:6px; overflow:hidden; }
.wf-pwd-strength-bar { height:100%; border-radius:2px; transition:width .3s, background .3s; width:0; }

/* Custom color picker popup */
.wf-cp-popup { position:absolute; z-index:9999; background:#fff; border:1px solid #d1d5db;
    border-radius:12px; box-shadow:0 8px 32px rgba(0,0,0,.18); padding:16px; width:248px; }
.wf-cp-popup input[type=range] { width:100% !important; appearance:auto !important;
    -webkit-appearance:auto !important; border:none !important; height:auto !important;
    border-bottom:none !important; padding:0 !important; cursor:pointer !important; }
.wf-cp-slider-row { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.wf-cp-slider-row label { font-size:11px; font-weight:700; color:#6b7280; width:14px; flex-shrink:0; }
.wf-cp-slider-row span { font-size:11px; color:#374151; width:28px; text-align:right; flex-shrink:0; }
.wf-cp-preview-bar { height:36px; border-radius:6px; border:1px solid #e5e7eb; margin-bottom:12px; }
.wf-cp-presets { display:flex; flex-wrap:wrap; gap:5px; margin-top:10px; }
.wf-cp-swatch-dot { width:22px; height:22px; border-radius:50%; cursor:pointer; border:2px solid transparent;
    transition:transform .15s, border-color .15s; flex-shrink:0; }
.wf-cp-swatch-dot:hover { transform:scale(1.2); border-color:#374151; }
.wf-cp-actions { display:flex; gap:8px; margin-top:12px; }
.wf-cp-actions button { flex:1; padding:7px; border-radius:6px; border:none; cursor:pointer; font-size:13px; font-weight:600; }
.wf-cp-ok { background:var(--wf-accent,#25d366); color:#fff; }
.wf-cp-cancel { background:#f3f4f6; color:#374151; }

/* ── Quill rich-text editor — modern redesign ──────────────────────────────── */

/* 1. Fix: WP theme rule forces select{display:block!important}.
      Quill hides its toolbar <select> elements and replaces them with
      custom pickers (.ql-picker). Without this override they show as
      native selects breaking the toolbar layout. */
.wf-quill-wrap .ql-toolbar select,
.wf-quill-wrap .ql-toolbar select:focus { display: none !important; }

/* 2. Wrapper */
.wf-quill-wrap {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    transition: border-color .18s, box-shadow .18s;
}
.wf-quill-wrap:focus-within {
    border-color: var(--wf-accent, #25d366);
    box-shadow: 0 0 0 3px rgba(37,211,102,.10);
}

/* 3. Toolbar */
.wf-quill-wrap .ql-toolbar.ql-snow {
    border: none !important;
    border-bottom: 1.5px solid #f1f5f9 !important;
    background: #f8fafc;
    padding: 6px 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
}

/* 4. Toolbar buttons */
.wf-quill-wrap .ql-toolbar.ql-snow .ql-formats {
    display: flex;
    align-items: center;
    gap: 1px;
    margin-right: 6px;
}
.wf-quill-wrap .ql-toolbar.ql-snow button {
    width: 30px;
    height: 28px;
    border-radius: 5px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none !important;
    background: transparent;
    color: #64748b;
    transition: background .12s, color .12s;
}
.wf-quill-wrap .ql-toolbar.ql-snow button:hover,
.wf-quill-wrap .ql-toolbar.ql-snow button.ql-active {
    background: #e8f5e9;
    color: var(--wf-accent, #25d366);
}
.wf-quill-wrap .ql-toolbar.ql-snow button svg { width: 15px; height: 15px; }
.wf-quill-wrap .ql-toolbar.ql-snow .ql-stroke { stroke: currentColor; }
.wf-quill-wrap .ql-toolbar.ql-snow .ql-fill   { fill:   currentColor; }

/* 5. Picker (header / align dropdowns) */
.wf-quill-wrap .ql-snow .ql-picker {
    height: 28px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    border-radius: 5px;
}
.wf-quill-wrap .ql-snow .ql-picker-label {
    height: 28px;
    line-height: 28px;
    padding: 0 8px;
    border: none !important;
    background: transparent;
    border-radius: 5px;
    color: #64748b;
    display: flex !important;
    align-items: center;
    gap: 4px;
    transition: background .12s, color .12s;
}
.wf-quill-wrap .ql-snow .ql-picker-label:hover,
.wf-quill-wrap .ql-snow .ql-picker.ql-expanded .ql-picker-label {
    background: #e8f5e9;
    color: var(--wf-accent, #25d366);
}
.wf-quill-wrap .ql-snow .ql-picker-label::before { font-size: 12px; }
.wf-quill-wrap .ql-snow .ql-picker-options {
    border-radius: 8px !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    padding: 4px;
    background: #fff;
    z-index: 9999;
}
.wf-quill-wrap .ql-snow .ql-picker-item {
    border-radius: 5px;
    padding: 4px 10px;
    font-size: 12px;
    transition: background .1s;
}
.wf-quill-wrap .ql-snow .ql-picker-item:hover { background: #f0fdf4; color: #16a34a; }
.wf-quill-wrap .ql-snow .ql-picker-item.ql-selected { background: #dcfce7; color: #16a34a; font-weight: 700; }

/* 6. Editor body */
.wf-quill-wrap .ql-container.ql-snow {
    border: none !important;
    font-size: 14px;
    font-family: inherit;
}
.wf-quill-wrap .ql-editor {
    min-height: 150px;
    line-height: 1.65;
    padding: 14px 16px;
    color: #1e293b;
}
.wf-quill-wrap .ql-editor.ql-blank::before {
    color: #94a3b8;
    font-style: normal;
    font-size: 13px;
    left: 16px;
}
.wf-quill-wrap .ql-editor p,
.wf-quill-wrap .ql-editor h1,
.wf-quill-wrap .ql-editor h2,
.wf-quill-wrap .ql-editor h3 { margin: 0 0 6px; }
.wf-quill-wrap .ql-editor h1 { font-size: 1.5em; font-weight: 700; }
.wf-quill-wrap .ql-editor h2 { font-size: 1.25em; font-weight: 700; }
.wf-quill-wrap .ql-editor h3 { font-size: 1.1em; font-weight: 600; }
.wf-quill-wrap .ql-editor a  { color: var(--wf-accent, #25d366); text-decoration: underline; }
.wf-quill-wrap .ql-editor blockquote {
    border-left: 3px solid var(--wf-accent, #25d366);
    margin: 8px 0; padding: 4px 12px;
    color: #64748b; background: #f8fafc; border-radius: 0 4px 4px 0;
}
.wf-quill-wrap .ql-editor pre.ql-syntax {
    background: #1e293b; color: #e2e8f0;
    border-radius: 6px; padding: 10px 14px; font-size: 12px;
}

.wf-quill-wrap .ql-editor img {
    display: block;
    max-width: 100%;
    cursor: pointer;
    border-radius: 4px;
}
.wf-quill-wrap .ql-editor img:hover { outline: 2px solid var(--wf-accent, #25d366); }

/* Image resize overlay */
.wf-img-resize-overlay { user-select: none; }
.wf-img-resize-handle  { transition: transform .1s; }
.wf-img-resize-handle:hover { transform: scale(1.3); }

/* Image modal */
.wf-img-modal-backdrop {
    position: fixed; inset: 0; background: rgba(15,23,42,.5);
    backdrop-filter: blur(3px); z-index: 999999; display: flex;
    align-items: center; justify-content: center;
}
.wf-img-modal {
    background: #fff; border-radius: 14px; width: min(480px,92vw);
    box-shadow: 0 24px 64px rgba(0,0,0,.2);
    padding: 24px; display: flex; flex-direction: column; gap: 16px;
}
.wf-img-modal h3 {
    margin: 0; font-size: 15px; font-weight: 700; color: #1e293b;
    display: flex; justify-content: space-between; align-items: center;
}
.wf-img-modal-close {
    background: none; border: none; cursor: pointer; padding: 4px;
    color: #94a3b8; border-radius: 5px; transition: color .15s;
    display: flex; align-items: center;
}
.wf-img-modal-close:hover { color: #475569; }
.wf-img-modal-tabs {
    display: flex; gap: 4px; background: #f1f5f9;
    padding: 3px; border-radius: 8px;
}
.wf-img-modal-tab {
    flex: 1; padding: 7px; border: none; border-radius: 6px; cursor: pointer;
    font-size: 12px; font-weight: 600; background: transparent; color: #64748b;
    transition: background .15s, color .15s;
}
.wf-img-modal-tab.active { background: #fff; color: #1e293b; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.wf-img-modal-panel { display: none; flex-direction: column; gap: 12px; }
.wf-img-modal-panel.active { display: flex; }
.wf-img-drop-zone {
    border: 2px dashed #cbd5e1; border-radius: 10px;
    padding: 32px 20px; text-align: center; cursor: pointer;
    transition: border-color .15s, background .15s; background: #f8fafc;
}
.wf-img-drop-zone:hover, .wf-img-drop-zone.drag-over {
    border-color: var(--wf-accent, #25d366); background: #f0fdf4;
}
.wf-img-drop-zone svg { margin-bottom: 8px; color: #94a3b8; }
.wf-img-drop-zone p { margin: 0; font-size: 13px; color: #64748b; }
.wf-img-drop-zone strong { color: var(--wf-accent, #25d366); }
.wf-img-url-input {
    width: 100%; padding: 10px 12px; border: 1.5px solid #e2e8f0;
    border-radius: 7px; font-size: 13px; box-sizing: border-box;
    transition: border-color .15s;
}
.wf-img-url-input:focus { outline: none; border-color: var(--wf-accent, #25d366); }
.wf-img-modal-insert {
    padding: 10px 20px; background: var(--wf-accent, #25d366); color: #fff;
    border: none; border-radius: 8px; cursor: pointer; font-size: 13px;
    font-weight: 700; transition: opacity .15s; align-self: flex-end;
}
.wf-img-modal-insert:hover { opacity: .88; }
.wf-img-modal-insert:disabled { opacity: .4; cursor: not-allowed; }
.wf-img-upload-progress {
    font-size: 12px; color: #64748b; display: none; text-align: center;
}

.wf-input-wrap input:focus,
.wf-input-wrap select:focus,
.wf-input-wrap textarea:focus { border-bottom-color: var(--wf-accent); }

.wf-input-wrap select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    padding-right: 24px;
    cursor: pointer;
}

.wf-input-wrap textarea { resize: vertical; min-height: 80px; line-height: 1.5; }

/* ── Radio & Checkbox groups ─────────────────────────────────────── */

.wf-input-group { display: flex; flex-direction: column; gap: 4px; }

.wf-group-label {
    font-size: 12px; font-weight: 600;
    color: #888; letter-spacing: .01em;
    margin-bottom: 6px;
}

/* ── Contenedor de opciones — los 3 modos ────────────────────────── */

.wf-options-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Modo "en línea": fila con wrap → en móvil pasan a columna sólos */
.wf-options-inline {
    flex-direction: row;
    flex-wrap: wrap;          /* ← wrap siempre activo */
    gap: 8px 16px;
}

/* Modo "botones": fila con wrap → ídem */
.wf-options-buttons {
    flex-direction: row;
    flex-wrap: wrap;          /* ← wrap siempre activo */
    gap: 6px;
}

/* En pantallas muy pequeñas los modos inline/buttons vuelven a columna */
@media (max-width: 360px) {
    .wf-options-inline,
    .wf-options-buttons { flex-direction: column; }
}

/* ── Ocultar el input nativo ─────────────────────────────────────── */
.wf-radio-label input[type="radio"],
.wf-checkbox-label input[type="checkbox"],
.wf-opt-btn-label input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }

/* ── Label contenedor ────────────────────────────────────────────── */
.wf-radio-label,
.wf-checkbox-label {
    display: flex; align-items: center; gap: 9px;
    cursor: pointer; font-size: 14px; color: #333;
    padding: 2px 0; user-select: none;
}

/* ── Indicador radio ─────────────────────────────────────────────── */
body .wf-radio-indicator {
    width: 18px !important; height: 18px !important;
    border: 2px solid #bbb;
    border-radius: 50%; flex-shrink: 0;
    display: inline-block; position: relative;
    transition: border-color .2s; box-sizing: border-box;
    padding: 0 !important;
}
.wf-radio-label:hover .wf-radio-indicator { border-color: var(--wf-accent); }
.wf-radio-label input[type="radio"]:checked ~ .wf-radio-indicator { border-color: var(--wf-overlay-bg); background: var(--wf-accent); }
.wf-radio-label input[type="radio"]:checked ~ .wf-radio-indicator::after {
    content: ''; position: absolute; inset: 3px;
    border-radius: 50%; background: var(--wf-accent);
}
.wf-radio-label input[type="radio"]:focus-visible ~ .wf-radio-indicator {
    outline: 2px solid var(--wf-accent); outline-offset: 2px;
}

/* ── Indicador checkbox ──────────────────────────────────────────── */
body .wf-checkbox-indicator {
    width: 18px !important; height: 18px !important;
    border: 2px solid #bbb; border-radius: 3px;
    flex-shrink: 0; display: inline-block; position: relative;
    transition: border-color .2s, background .2s; box-sizing: border-box;
    padding: 0 !important;
}
.wf-checkbox-label:hover .wf-checkbox-indicator { border-color: var(--wf-accent); }
.wf-checkbox-label input[type="checkbox"]:checked ~ .wf-checkbox-indicator {
    border-color: var(--wf-accent); background: var(--wf-accent);
}
.wf-checkbox-label input[type="checkbox"]:checked ~ .wf-checkbox-indicator::after {
    content: ''; position: absolute;
    left: 4px; top: 1px; width: 6px; height: 10px;
    border: 2px solid #fff; border-top: none; border-left: none;
    transform: rotate(45deg);
}
.wf-checkbox-label input[type="checkbox"]:focus-visible ~ .wf-checkbox-indicator {
    outline: 2px solid var(--wf-accent); outline-offset: 2px;
}

/* ── Modo botones ────────────────────────────────────────────────── */
/* El radio de bordes usa --wf-btn-radius, inyectado inline por PHP  */
.wf-options-buttons .wf-opt-btn-label {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border: 2px solid #ddd;
    border-radius: var(--wf-btn-radius, 20px); /* fallback */
    cursor: pointer;
    font-size: 13px;
    color: #555;
    font-weight: 500;
    transition: border-color .2s, background .2s, color .2s;
    user-select: none;
    line-height: 1.3;
    position: relative;   /* para el input oculto */
}
.wf-options-buttons .wf-opt-btn-label:hover {
    border-color: var(--wf-accent);
    color: var(--wf-accent);
}
/* :has() — navegadores modernos */
.wf-options-buttons .wf-opt-btn-label:has(input:checked) {
    border-color: var(--wf-accent);
    background: var(--wf-accent);
    color: #fff;
}
/* Fallback clase JS .wf-btn-checked */
.wf-options-buttons .wf-opt-btn-label.wf-btn-checked {
    border-color: var(--wf-accent);
    background: var(--wf-accent);
    color: #fff;
}

/* ── Materialize overrides ───────────────────────────────────────── */
.wf-popup-modal .wf-radio-label label,
.wf-inline-form-wrap .wf-radio-label label,
.wf-popup-modal .wf-checkbox-label label,
.wf-inline-form-wrap .wf-checkbox-label label { transform: none !important; font-size: 14px !important; }
.wf-radio-label [type="radio"] + span::before,
.wf-radio-label [type="radio"] + span::after,
.wf-checkbox-label [type="checkbox"] + span::before,
.wf-checkbox-label [type="checkbox"] + span::after { display: none !important; }

/* ── Rating stars ────────────────────────────────────────────────── */
.wf-rating-stars { display: flex; gap: 4px; margin-top: 4px; }
.wf-star {
    background: none; border: none;
    font-size: 28px; cursor: pointer;
    color: var(--wf-accent); opacity: .3;
    transition: opacity .15s, transform .15s;
    padding: 0; line-height: 1;
}
.wf-star:hover, .wf-star-active { opacity: 1; }
.wf-star:hover { transform: scale(1.2); }

/* ── Special fields ──────────────────────────────────────────────── */
.wf-field-heading {
    font-size: 15px; font-weight: 700; color: #333;
    padding: 8px 0 4px;
    border-bottom: 2px solid var(--wf-accent);
    margin-bottom: 2px;
}
.wf-field-divider { border: none; border-top: 1px solid #e0e0e0; margin: 4px 0; }

/* ── Validation ──────────────────────────────────────────────────── */
.wf-invalid { border-bottom-color: #e53935 !important; }
.wf-field-error { font-size: 11px; color: #e53935; margin-top: 3px; display: block; }
.wf-form-error {
    background: #fde8e8; border: 1px solid #e53935; border-radius: 6px;
    color: #c62828; padding: 10px 14px; font-size: 13px; margin-top: 12px;
}
.wf-req { color: #e53935; margin-left: 2px; font-weight: 700; }

/* ── Footer ──────────────────────────────────────────────────────── */
.wf-popup-footer {
    padding: 14px 20px;
    border-top: 1px solid #eee;
    display: flex; flex-direction: column; gap: 10px;
    flex-shrink: 0; background: #fafafa;
}
.wf-email-notice {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: #888;
}

/* ── Submit button ───────────────────────────────────────────────── */
.wf-submit-btn {
    width: 100%; padding: 14px;
    color: #fff; border: none; border-radius: 6px;
    font-size: 16px; font-weight: 700; cursor: pointer;
    letter-spacing: .02em;
    transition: filter .2s, transform .15s;
    font-family: inherit;
    display: flex; align-items: center; justify-content: center;
}
.wf-submit-btn:hover  { filter: brightness(1.1); transform: translateY(-1px); }
.wf-submit-btn:active { transform: translateY(0); }
.wf-submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.wf-submit-loading {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; font-size: 13px; color: #666; padding: 4px 0;
}
.wf-spinner {
    width: 18px; height: 18px;
    border: 2px solid rgba(0,0,0,.15);
    border-top-color: var(--wf-accent);
    border-radius: 50%;
    animation: wf-spin .7s linear infinite;
    display: inline-block;
}
@keyframes wf-spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════════
   SUCCESS STATE (email-only)
   ═══════════════════════════════════════════════════════════════════ */

.wf-form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 20px;
    gap: 10px;
    animation: wf-success-in .4s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes wf-success-in {
    from { opacity: 0; transform: scale(.85); }
    to   { opacity: 1; transform: scale(1); }
}

.wf-success-icon {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 4px;
}

.wf-success-title {
    font-size: 20px;
    font-weight: 700;
    color: #1d2327;
}

.wf-success-msg {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    max-width: 280px;
}

/* ── Materialize overrides ───────────────────────────────────────── */
.wf-popup-modal .select-wrapper { border-bottom: 2px solid #ddd !important; }
.wf-popup-modal .select-wrapper input.select-dropdown { border-bottom: none !important; }
.wf-popup-modal .dropdown-content { border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.wf-popup-modal label { transform: none !important; font-size: 12px !important; }

/* ── Static text field ───────────────────────────────────────────── */
.wf-field-static-text {
    background: #fffbf0;
    border: 1px solid #ffe082;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px; color: #555; line-height: 1.6;
    width: 100%; box-sizing: border-box;
}

/* ── Inline form ─────────────────────────────────────────────────── */
.wf-inline-form-wrap {
    background: #fff;
    border-radius: var(--wf-radius);
    box-shadow: 0 2px 16px rgba(0,0,0,.08);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.wf-inline-description { font-size: 14px; color: #666; margin: 0; padding: 16px 20px 0; line-height: 1.6; }
.wf-inline-form-wrap .wf-popup-form { padding: 20px; }
.wf-inline-footer {
    padding: 14px 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
    display: flex; flex-direction: column; gap: 10px;
}
.wf-inline-submit { width: 100%; }

/* ═══════════════════════════════════════════════════════════════════════════
   WF WAF — AntiSpam / Captcha  (v1.3)
   ═══════════════════════════════════════════════════════════════════════════ */

.wf-captcha-area {
    padding: 10px 0 4px;
}

/* reCAPTCHA v2 / Turnstile widget wrapper */
.wf-captcha-widget {
    display: inline-block;
    min-height: 64px;
}

/* reCAPTCHA v3 notice badge */
.wf-captcha-v3-notice {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    color: #9ca3af;
    padding: 4px 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    gap: 4px;
}
.wf-captcha-v3-notice svg {
    fill: #6b7280;
    flex-shrink: 0;
}

/* Error message bajo el captcha */
.wf-captcha-error {
    margin-top: 8px;
    font-size: 12px;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    padding: 7px 12px;
    display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   WF WAF — Boolean / Tab / Step  (v1.4)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Boolean toggle (Sí / No) ────────────────────────────────────────────── */
.wf-boolean-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0 6px;
}

.wf-boolean-toggle {
    --wf-accent: #25D366;
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: #dde1e7;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background .22s ease;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}
.wf-boolean-toggle:focus-visible {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wf-accent) 35%, transparent);
}
.wf-boolean-toggle.wf-boolean-on {
    background: var(--wf-accent);
}
.wf-bool-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
    transition: left .22s ease;
    pointer-events: none;
}
.wf-boolean-toggle.wf-boolean-on .wf-bool-knob {
    left: 23px;
}

.wf-bool-false-lbl,
.wf-bool-true-lbl {
    font-size: 14px;
    font-weight: 600;
    transition: color .18s, opacity .18s;
    color: #1a1a1a;
}
.wf-bool-sep {
    font-size: 13px;
    color: #ccc;
}
.wf-bool-lbl-dim {
    color: #adb5bd !important;
    font-weight: 400 !important;
}

/* ── Tab bar (construido por JS) ─────────────────────────────────────────── */
.wf-tab-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 18px;
    overflow-y: hidden;
}

.wf-tab-btn {
    --wf-accent: #25D366;
    position: relative;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color .18s, border-color .18s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    white-space: nowrap;
}
.wf-tab-btn:hover {
    color: var(--wf-accent);
}
.wf-tab-btn:focus {
    background-color: transparent !important;
}
.wf-tab-btn.wf-tab-active {
    color: var(--wf-accent);
    border-bottom-color: var(--wf-accent);

}
.wf-tab-btn:focus-visible {
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--wf-accent) 40%, transparent);
    border-radius: 4px 4px 0 0;
    
}

/* ── Step: barra de progreso (construida por JS) ─────────────────────────── */
.wf-step-progress {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: 22px;
    counter-reset: wf-step;
    padding: 0 4px;
}

.wf-step-dot {
    --wf-accent: #25D366;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-align: center;
    cursor: default;
    transition: color .2s;
}
/* Conector entre dots */
.wf-step-dot:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 14px;
    left: calc(50% + 14px);
    right: calc(-50% + 14px);
    height: 2px;
    background: #e5e7eb;
    transition: background .25s;
    z-index: 0;
}
.wf-step-dot.wf-step-dot-done:not(:last-child)::after {
    background: var(--wf-accent);
}

/* Círculo numerado */
.wf-step-dot::before {
    counter-increment: wf-step;
    content: counter(wf-step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
    border: 2px solid #e5e7eb;
    transition: background .2s, color .2s, border-color .2s;
    position: relative;
    z-index: 1;
}
.wf-step-dot.wf-step-dot-done::before {
    content: '✓';
    background: var(--wf-accent);
    border-color: var(--wf-accent);
    color: #fff;
}
.wf-step-dot.wf-step-dot-active {
    color: var(--wf-accent);
}
.wf-step-dot.wf-step-dot-active::before {
    background: #fff;
    border-color: var(--wf-accent);
    color: var(--wf-accent);
}

/* ── Step: navegación (anterior / siguiente) ─────────────────────────────── */
.wf-step-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0 4px;
    margin: .5em 1em;
    border-top: 1px solid #f0f0f0;
}

.wf-step-back-btn,
.wf-step-next-btn {
    --wf-accent: #25D366;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity .18s, transform .12s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.wf-step-back-btn:active,
.wf-step-next-btn:active {
    transform: scale(.97);
}
.wf-step-back-btn {
    background: #f3f4f6;
    color: #374151;
}
.wf-step-back-btn:hover { background: #e5e7eb; }

.wf-step-next-btn {
    background: var(--wf-accent);
    color: #fff;
    margin-left: auto;
}
.wf-step-next-btn:hover { opacity: .88; }

.wf-step-back-btn:focus-visible,
.wf-step-next-btn:focus-visible {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wf-accent) 35%, transparent);
}

/* Responsive: en pantallas pequeñas los labels de step se reducen */
@media (max-width: 480px) {
    .wf-step-dot { font-size: 10px; }
    .wf-tab-btn  { padding: 8px 12px; font-size: 13px; }
    .wf-step-back-btn,
    .wf-step-next-btn { padding: 9px 16px; font-size: 13px; }
}

/* ── Popup pantalla completa (wf-popup-fullscreen) ─────────────────────
   Cuando el formulario tiene "Popup pantalla completa" habilitado:
   · JS llama a requestFullscreen() — oculta barra de dirección y chrome
   · CSS adapta el overlay y modal para cubrir el 100% del espacio
   ──────────────────────────────────────────────────────────────────────── */

html.wf-fs-active { overflow: hidden; }

/* El overlay en fullscreen cubre todo, fondo blanco sólido */
.wf-popup-overlay.wf-popup-fullscreen {
    padding: 0 !important;
    backdrop-filter: none !important;
    background: #fff !important;
    align-items: stretch !important;
    justify-content: stretch !important;
}

/* El modal llena el 100% del overlay */
.wf-popup-overlay.wf-popup-fullscreen .wf-popup-modal {
    width: 100% !important;
    max-width: 100% !important;
    /* Usar dvh si el navegador lo soporta (excluye barra de dirección móvil) */
    height: 100vh;
    height: 100dvh;
    max-height: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    flex: 1 1 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
}

/* Animación: fade limpio (slide se ve raro en fullscreen) */
.wf-popup-overlay.wf-popup-fullscreen .wf-popup-modal {
    opacity: 0;
    transform: none !important;
    transition: opacity .2s ease !important;
}
.wf-popup-overlay.wf-popup-fullscreen.wf-popup-open .wf-popup-modal {
    opacity: 1;
    transform: none !important;
    overflow: hidden !important;
}

/* En fullscreen nativo el ::backdrop se oculta con esto */
.wf-popup-overlay.wf-popup-fullscreen:fullscreen,
.wf-popup-overlay.wf-popup-fullscreen:-webkit-full-screen,
.wf-popup-overlay.wf-popup-fullscreen:-moz-full-screen {
    padding: 0 !important;
    background: #fff !important;
    display: flex !important;
}

/* Botón cerrar fijo arriba a la derecha, siempre visible */
.wf-popup-overlay.wf-popup-fullscreen .wf-popup-close {
    position: fixed !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 99999 !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: rgba(0,0,0,.07) !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    line-height: 1 !important;
    transition: background .15s !important;
}
.wf-popup-overlay.wf-popup-fullscreen .wf-popup-close:hover {
    background: rgba(0,0,0,.14) !important;
}

/* Mobile: sin bottom-sheet, ocupa todo */
@media (max-width: 600px) {
    .wf-popup-overlay.wf-popup-fullscreen {
        align-items: stretch !important;
    }
    .wf-popup-overlay.wf-popup-fullscreen .wf-popup-modal {
        border-radius: 0 !important;
        max-height: 100% !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   WF FORMS — ISOLATION CSS + STYLE THEMES
   
   ORDEN CRÍTICO: Isolation primero, themes después.
   Ambos en el mismo archivo → themes (que vienen después) ganan con igual !important.
   Themes usan especificidad (0,4,1) vs isolation (0,3,1) → themes siempre ganan.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── ISOLATION: neutraliza Materialize / Divi / Bootstrap ─────────────────
   Especificidad (0,3,1) — base sobre la que los temas añaden (0,4,1).         */

.wf-popup-modal *,
.wf-inline-form-wrap * { box-sizing: border-box; }

.wf-popup-modal,
.wf-inline-form-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px; line-height: 1.5; color: #333;
    -webkit-font-smoothing: antialiased;
}

/* Inputs: altura fija y apariencia de Materialize */
.wf-popup-modal .wf-input-wrap input:not([type=hidden]):not([type=radio]):not([type=checkbox]):not([type=submit]):not([type=range]):not([type=color]),
.wf-inline-form-wrap .wf-input-wrap input:not([type=hidden]):not([type=radio]):not([type=checkbox]):not([type=submit]):not([type=range]):not([type=color]) {
    height: auto !important; min-height: 0 !important; max-height: none !important;
    position: static !important; float: none !important; margin: 0 !important;
    box-shadow: none !important; outline: none !important;
    font-size: 15px !important; font-family: inherit !important; color: #333 !important;
    line-height: 1.5 !important; width: 100% !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important; appearance: none !important;
}
body .wf-wysiwyg-field-wrap .quicktags-toolbar input:not([type=hidden]):not([type=radio]):not([type=checkbox]):not([type=submit]):not([type=range]):not([type=color]){
    width: auto !important;
}
.wf-popup-modal .wf-input-wrap select,
.wf-inline-form-wrap .wf-input-wrap select {
    height: auto !important; min-height: 0 !important; display: block !important;
    visibility: visible !important; opacity: 1 !important; position: static !important;
    margin: 0 !important; box-shadow: none !important; outline: none !important;
    font-size: 15px !important; font-family: inherit !important; color: #333 !important;
    line-height: 1.5 !important; width: 100% !important; cursor: pointer !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important; appearance: none !important;
}
.wf-popup-modal .wf-input-wrap textarea,
.wf-inline-form-wrap .wf-input-wrap textarea {
    height: auto !important; min-height: 80px !important; max-height: none !important;
    position: static !important; float: none !important; margin: 0 !important;
    box-shadow: none !important; outline: none !important;
    font-size: 15px !important; font-family: inherit !important; color: #333 !important;
    line-height: 1.5 !important; width: 100% !important; resize: vertical !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important; appearance: none !important;
}

/* Labels: reset Materialize position:absolute y transform
   :not() excluye labels de radio/checkbox/botones para no bloquear pointer-events */
.wf-popup-modal .wf-input-wrap label:not(.wf-radio-label):not(.wf-checkbox-label):not(.wf-opt-btn-label),
.wf-inline-form-wrap .wf-input-wrap label:not(.wf-radio-label):not(.wf-checkbox-label):not(.wf-opt-btn-label) {
    position: static !important; transform: none !important; top: auto !important;
    left: auto !important; display: block !important; height: auto !important;
    cursor: default !important; pointer-events: none !important; width: 100% !important;
}
.wf-popup-modal label.active,
.wf-inline-form-wrap label.active { transform: none !important; top: auto !important; }

/* Labels de opciones: pointer-events activos, cursor pointer */
.wf-popup-modal .wf-radio-label,
.wf-popup-modal .wf-checkbox-label,
.wf-popup-modal .wf-opt-btn-label,
.wf-inline-form-wrap .wf-radio-label,
.wf-inline-form-wrap .wf-checkbox-label,
.wf-inline-form-wrap .wf-opt-btn-label {
    position: static !important; transform: none !important;
    cursor: pointer !important; pointer-events: auto !important;
    height: auto !important; display: inline-flex !important;
}
.wf-popup-modal .wf-group-label,
.wf-inline-form-wrap .wf-group-label {
    position: static !important; transform: none !important;
    display: block !important; pointer-events: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STYLE THEMES — Especificidad (0,4,1): siempre gana sobre isolation (0,3,1)
   Selector patrón: .wf-popup-modal.wf-style-X .wf-input-wrap input
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Mixin reutilizable: select arrow (reemplaza el default eliminado por appearance:none) */
.wf-popup-modal .wf-input-wrap select,
.wf-inline-form-wrap .wf-input-wrap select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    padding-right: 30px !important;
}

/* ═══════════════════════════════
   TEMA 2 — SOFT
   Inspirado en: Linear, Vercel, Stripe
   Limpio, moderno, professional SaaS
   ═══════════════════════════════ */

.wf-popup-modal.wf-style-soft,
.wf-inline-form-wrap.wf-style-soft {
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 20px 40px -8px rgba(0,0,0,.12) !important;
}
/* Inputs */
.wf-popup-modal.wf-style-soft .wf-input-wrap input:not([type=hidden]):not([type=radio]):not([type=checkbox]):not([type=submit]),
.wf-inline-form-wrap.wf-style-soft .wf-input-wrap input:not([type=hidden]):not([type=radio]):not([type=checkbox]):not([type=submit]),
.wf-popup-modal.wf-style-soft .wf-input-wrap select,
.wf-inline-form-wrap.wf-style-soft .wf-input-wrap select,
.wf-popup-modal.wf-style-soft .wf-input-wrap textarea,
.wf-inline-form-wrap.wf-style-soft .wf-input-wrap textarea {
    background: #f7f8fa !important;
    border: 1.5px solid transparent !important;
    border-radius: 10px !important;
    padding: 11px 14px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    color: #111827 !important;
    font-size: 15px !important;
    transition: border-color .2s, background .2s, box-shadow .2s !important;
}
.wf-popup-modal.wf-style-soft .wf-input-wrap input:focus,
.wf-inline-form-wrap.wf-style-soft .wf-input-wrap input:focus,
.wf-popup-modal.wf-style-soft .wf-input-wrap select:focus,
.wf-inline-form-wrap.wf-style-soft .wf-input-wrap select:focus,
.wf-popup-modal.wf-style-soft .wf-input-wrap textarea:focus,
.wf-inline-form-wrap.wf-style-soft .wf-input-wrap textarea:focus {
    background: #fff !important;
    border-color: var(--wf-accent) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wf-accent) 15%, transparent) !important;
    outline: none !important;
}
.wf-popup-modal.wf-style-soft .wf-input-wrap label:not(.wf-radio-label):not(.wf-checkbox-label):not(.wf-opt-btn-label),
.wf-inline-form-wrap.wf-style-soft .wf-input-wrap label:not(.wf-radio-label):not(.wf-checkbox-label):not(.wf-opt-btn-label) {
    font-size: 13px !important; font-weight: 600 !important;
    color: #374151 !important; margin-bottom: 6px !important;
}
.wf-popup-modal.wf-style-soft .wf-input-wrap input::placeholder,
.wf-inline-form-wrap.wf-style-soft .wf-input-wrap input::placeholder,
.wf-popup-modal.wf-style-soft .wf-input-wrap textarea::placeholder,
.wf-inline-form-wrap.wf-style-soft .wf-input-wrap textarea::placeholder { color: #9ca3af !important; }
/* Botones de opciones */
.wf-popup-modal.wf-style-soft .wf-options-buttons .wf-opt-btn-label,
.wf-inline-form-wrap.wf-style-soft .wf-options-buttons .wf-opt-btn-label {
    background: #f7f8fa !important; border: 1.5px solid transparent !important;
    border-radius: 10px !important; color: #374151 !important;
    padding: 8px 16px !important; font-weight: 500 !important;
}
.wf-popup-modal.wf-style-soft .wf-options-buttons .wf-opt-btn-label:has(input:checked),
.wf-popup-modal.wf-style-soft .wf-options-buttons .wf-opt-btn-label.wf-btn-checked,
.wf-inline-form-wrap.wf-style-soft .wf-options-buttons .wf-opt-btn-label:has(input:checked),
.wf-inline-form-wrap.wf-style-soft .wf-options-buttons .wf-opt-btn-label.wf-btn-checked {
    background: var(--wf-accent) !important; border-color: var(--wf-accent) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--wf-accent) 35%, transparent) !important;
}
.wf-style-soft .wf-popup-header { border-radius: 18px 18px 0 0; }
.wf-style-soft.wf-inline-form-wrap { border: 1px solid #f3f4f6; }

/* ═══════════════════════════════
   TEMA 3 — GLASS
   Inspirado en: macOS, iOS, Framer
   Glassmorphism premium
   ═══════════════════════════════ */

.wf-popup-modal.wf-style-glass,
.wf-inline-form-wrap.wf-style-glass {
    background: rgba(15, 15, 35, 0.72) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 24px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.1) !important;
}
.wf-popup-modal.wf-style-glass .wf-input-wrap input:not([type=hidden]):not([type=radio]):not([type=checkbox]):not([type=submit]),
.wf-inline-form-wrap.wf-style-glass .wf-input-wrap input:not([type=hidden]):not([type=radio]):not([type=checkbox]):not([type=submit]),
.wf-popup-modal.wf-style-glass .wf-input-wrap select,
.wf-inline-form-wrap.wf-style-glass .wf-input-wrap select,
.wf-popup-modal.wf-style-glass .wf-input-wrap textarea,
.wf-inline-form-wrap.wf-style-glass .wf-input-wrap textarea {
    background: rgba(255,255,255,.08) !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    border-radius: 12px !important;
    padding: 11px 14px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    color: #ffffff !important;
    font-size: 15px !important;
    transition: border-color .2s, background .2s, box-shadow .2s !important;
}
.wf-popup-modal.wf-style-glass .wf-input-wrap input:focus,
.wf-inline-form-wrap.wf-style-glass .wf-input-wrap input:focus,
.wf-popup-modal.wf-style-glass .wf-input-wrap select:focus,
.wf-inline-form-wrap.wf-style-glass .wf-input-wrap select:focus,
.wf-popup-modal.wf-style-glass .wf-input-wrap textarea:focus,
.wf-inline-form-wrap.wf-style-glass .wf-input-wrap textarea:focus {
    background: rgba(255,255,255,.14) !important;
    border-color: rgba(255,255,255,.5) !important;
    box-shadow: 0 0 0 3px rgba(255,255,255,.08), 0 4px 12px rgba(0,0,0,.2) !important;
    outline: none !important;
}
.wf-popup-modal.wf-style-glass .wf-input-wrap label:not(.wf-radio-label):not(.wf-checkbox-label):not(.wf-opt-btn-label),
.wf-inline-form-wrap.wf-style-glass .wf-input-wrap label:not(.wf-radio-label):not(.wf-checkbox-label):not(.wf-opt-btn-label) {
    font-size: 12px !important; font-weight: 600 !important;
    color: rgba(255,255,255,.7) !important; letter-spacing: .04em !important;
    text-transform: uppercase !important; margin-bottom: 6px !important;
}
.wf-popup-modal.wf-style-glass .wf-input-wrap input::placeholder,
.wf-inline-form-wrap.wf-style-glass .wf-input-wrap input::placeholder,
.wf-popup-modal.wf-style-glass .wf-input-wrap textarea::placeholder,
.wf-inline-form-wrap.wf-style-glass .wf-input-wrap textarea::placeholder { color: rgba(255,255,255,.3) !important; }
.wf-popup-modal.wf-style-glass .wf-group-label,
.wf-popup-modal.wf-style-glass .wf-radio-label,
.wf-popup-modal.wf-style-glass .wf-checkbox-label,
.wf-inline-form-wrap.wf-style-glass .wf-group-label,
.wf-inline-form-wrap.wf-style-glass .wf-radio-label,
.wf-inline-form-wrap.wf-style-glass .wf-checkbox-label { color: rgba(255,255,255,.85) !important; }
.wf-popup-modal.wf-style-glass .wf-popup-header { background: rgba(0,0,0,.3) !important; border-radius: 22px 22px 0 0; }
.wf-popup-modal.wf-style-glass .wf-popup-footer,
.wf-inline-form-wrap.wf-style-glass .wf-inline-footer { background: rgba(0,0,0,.25) !important; border-top: 1px solid rgba(255,255,255,.08) !important; }
.wf-popup-modal.wf-style-glass .wf-popup-description,
.wf-inline-form-wrap.wf-style-glass .wf-inline-description { color: rgba(255,255,255,.6) !important; }
.wf-style-glass .wf-input-wrap select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,0.5)'/%3E%3C/svg%3E") !important;
}
.wf-popup-modal.wf-style-glass .wf-options-buttons .wf-opt-btn-label,
.wf-inline-form-wrap.wf-style-glass .wf-options-buttons .wf-opt-btn-label {
    background: rgba(255,255,255,.08) !important; border: 1px solid rgba(255,255,255,.2) !important;
    border-radius: 12px !important; color: rgba(255,255,255,.9) !important; font-weight: 500 !important;
}
.wf-popup-modal.wf-style-glass .wf-options-buttons .wf-opt-btn-label:has(input:checked),
.wf-popup-modal.wf-style-glass .wf-options-buttons .wf-opt-btn-label.wf-btn-checked,
.wf-inline-form-wrap.wf-style-glass .wf-options-buttons .wf-opt-btn-label:has(input:checked),
.wf-inline-form-wrap.wf-style-glass .wf-options-buttons .wf-opt-btn-label.wf-btn-checked {
    background: var(--wf-accent) !important; border-color: var(--wf-accent) !important;
    color: #fff !important;
}

/* ═══════════════════════════════
   TEMA 4 — DARK
   Inspirado en: Figma, VS Code, Linear dark
   Modo oscuro elegante
   ═══════════════════════════════ */

.wf-popup-modal.wf-style-dark,
.wf-inline-form-wrap.wf-style-dark {
    background: #0f172a !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,.6) !important;
    border: 1px solid rgba(255,255,255,.06) !important;
}
.wf-popup-modal.wf-style-dark .wf-input-wrap input:not([type=hidden]):not([type=radio]):not([type=checkbox]):not([type=submit]),
.wf-inline-form-wrap.wf-style-dark .wf-input-wrap input:not([type=hidden]):not([type=radio]):not([type=checkbox]):not([type=submit]),
.wf-popup-modal.wf-style-dark .wf-input-wrap select,
.wf-inline-form-wrap.wf-style-dark .wf-input-wrap select,
.wf-popup-modal.wf-style-dark .wf-input-wrap textarea,
.wf-inline-form-wrap.wf-style-dark .wf-input-wrap textarea {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    border-radius: 10px !important;
    padding: 11px 14px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    color: #e2e8f0 !important;
    font-size: 15px !important;
    transition: border-color .2s, box-shadow .2s !important;
}
.wf-popup-modal.wf-style-dark .wf-input-wrap input:focus,
.wf-inline-form-wrap.wf-style-dark .wf-input-wrap input:focus,
.wf-popup-modal.wf-style-dark .wf-input-wrap select:focus,
.wf-inline-form-wrap.wf-style-dark .wf-input-wrap select:focus,
.wf-popup-modal.wf-style-dark .wf-input-wrap textarea:focus,
.wf-inline-form-wrap.wf-style-dark .wf-input-wrap textarea:focus {
    border-color: var(--wf-accent) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wf-accent) 20%, transparent) !important;
    outline: none !important; background: #1e293b !important;
}
.wf-popup-modal.wf-style-dark .wf-input-wrap label:not(.wf-radio-label):not(.wf-checkbox-label):not(.wf-opt-btn-label),
.wf-inline-form-wrap.wf-style-dark .wf-input-wrap label:not(.wf-radio-label):not(.wf-checkbox-label):not(.wf-opt-btn-label) {
    font-size: 13px !important; font-weight: 500 !important;
    color: #94a3b8 !important; margin-bottom: 6px !important;
}
.wf-popup-modal.wf-style-dark .wf-input-wrap input::placeholder,
.wf-inline-form-wrap.wf-style-dark .wf-input-wrap input::placeholder,
.wf-popup-modal.wf-style-dark .wf-input-wrap textarea::placeholder,
.wf-inline-form-wrap.wf-style-dark .wf-input-wrap textarea::placeholder { color: #475569 !important; }
.wf-popup-modal.wf-style-dark .wf-group-label,
.wf-popup-modal.wf-style-dark .wf-radio-label,
.wf-popup-modal.wf-style-dark .wf-checkbox-label,
.wf-inline-form-wrap.wf-style-dark .wf-group-label,
.wf-inline-form-wrap.wf-style-dark .wf-radio-label,
.wf-inline-form-wrap.wf-style-dark .wf-checkbox-label { color: #cbd5e1 !important; }
.wf-popup-modal.wf-style-dark .wf-popup-header { background: #1e293b !important; color: #e2e8f0; border-radius: 18px 18px 0 0; }
.wf-popup-modal.wf-style-dark .wf-popup-title { color: #f1f5f9 !important; }
.wf-popup-modal.wf-style-dark .wf-popup-footer,
.wf-inline-form-wrap.wf-style-dark .wf-inline-footer { background: #0f172a !important; border-top: 1px solid #1e293b !important; }
.wf-popup-modal.wf-style-dark .wf-popup-description,
.wf-inline-form-wrap.wf-style-dark .wf-inline-description { color: #64748b !important; }
.wf-style-dark .wf-input-wrap select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2394a3b8'/%3E%3C/svg%3E") !important;
}
.wf-popup-modal.wf-style-dark .wf-options-buttons .wf-opt-btn-label,
.wf-inline-form-wrap.wf-style-dark .wf-options-buttons .wf-opt-btn-label {
    background: #1e293b !important; border: 1px solid #334155 !important;
    border-radius: 10px !important; color: #94a3b8 !important;
}
.wf-popup-modal.wf-style-dark .wf-options-buttons .wf-opt-btn-label:has(input:checked),
.wf-popup-modal.wf-style-dark .wf-options-buttons .wf-opt-btn-label.wf-btn-checked,
.wf-inline-form-wrap.wf-style-dark .wf-options-buttons .wf-opt-btn-label:has(input:checked),
.wf-inline-form-wrap.wf-style-dark .wf-options-buttons .wf-opt-btn-label.wf-btn-checked {
    background: var(--wf-accent) !important; border-color: var(--wf-accent) !important;
    color: #fff !important;
}

/* ═══════════════════════════════
   TEMA 5 — ELEGANT
   Inspirado en: Luxury brands, editorial
   Línea de acento izquierda, tipografía refinada
   ═══════════════════════════════ */

.wf-popup-modal.wf-style-elegant,
.wf-inline-form-wrap.wf-style-elegant {
    background: #fafaf8 !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 12px 40px rgba(0,0,0,.08) !important;
    border-left: 4px solid var(--wf-accent) !important;
}
.wf-popup-modal.wf-style-elegant .wf-input-wrap input:not([type=hidden]):not([type=radio]):not([type=checkbox]):not([type=submit]),
.wf-inline-form-wrap.wf-style-elegant .wf-input-wrap input:not([type=hidden]):not([type=radio]):not([type=checkbox]):not([type=submit]),
.wf-popup-modal.wf-style-elegant .wf-input-wrap select,
.wf-inline-form-wrap.wf-style-elegant .wf-input-wrap select,
.wf-popup-modal.wf-style-elegant .wf-input-wrap textarea,
.wf-inline-form-wrap.wf-style-elegant .wf-input-wrap textarea {
    background: transparent !important;
    border: none !important;
    border-bottom: 1.5px solid #d1d5db !important;
    border-radius: 0 !important;
    padding: 10px 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    color: #111 !important;
    font-size: 15px !important;
    letter-spacing: .01em !important;
    transition: border-color .25s !important;
}
.wf-popup-modal.wf-style-elegant .wf-input-wrap input:focus,
.wf-inline-form-wrap.wf-style-elegant .wf-input-wrap input:focus,
.wf-popup-modal.wf-style-elegant .wf-input-wrap select:focus,
.wf-inline-form-wrap.wf-style-elegant .wf-input-wrap select:focus,
.wf-popup-modal.wf-style-elegant .wf-input-wrap textarea:focus,
.wf-inline-form-wrap.wf-style-elegant .wf-input-wrap textarea:focus {
    border-bottom-color: var(--wf-accent) !important;
    outline: none !important; box-shadow: none !important;
}
.wf-popup-modal.wf-style-elegant .wf-input-wrap label:not(.wf-radio-label):not(.wf-checkbox-label):not(.wf-opt-btn-label),
.wf-inline-form-wrap.wf-style-elegant .wf-input-wrap label:not(.wf-radio-label):not(.wf-checkbox-label):not(.wf-opt-btn-label) {
    font-size: 11px !important; font-weight: 700 !important;
    color: #6b7280 !important; letter-spacing: .1em !important;
    text-transform: uppercase !important; margin-bottom: 4px !important;
}
.wf-popup-modal.wf-style-elegant .wf-input-wrap input::placeholder,
.wf-inline-form-wrap.wf-style-elegant .wf-input-wrap input::placeholder,
.wf-popup-modal.wf-style-elegant .wf-input-wrap textarea::placeholder,
.wf-inline-form-wrap.wf-style-elegant .wf-input-wrap textarea::placeholder { color: #d1d5db !important; }
.wf-popup-modal.wf-style-elegant .wf-popup-header { border-radius: 0; border-left: none; }
.wf-popup-modal.wf-style-elegant .wf-popup-footer,
.wf-inline-form-wrap.wf-style-elegant .wf-inline-footer {
    background: transparent !important; border-top: 1px solid #e5e7eb !important;
}
.wf-popup-modal.wf-style-elegant .wf-options-buttons .wf-opt-btn-label,
.wf-inline-form-wrap.wf-style-elegant .wf-options-buttons .wf-opt-btn-label {
    background: transparent !important; border: 1.5px solid #d1d5db !important;
    border-radius: 4px !important; color: #374151 !important;
}
.wf-popup-modal.wf-style-elegant .wf-options-buttons .wf-opt-btn-label:has(input:checked),
.wf-popup-modal.wf-style-elegant .wf-options-buttons .wf-opt-btn-label.wf-btn-checked,
.wf-inline-form-wrap.wf-style-elegant .wf-options-buttons .wf-opt-btn-label:has(input:checked),
.wf-inline-form-wrap.wf-style-elegant .wf-options-buttons .wf-opt-btn-label.wf-btn-checked {
    background: var(--wf-accent) !important; border-color: var(--wf-accent) !important;
    color: #fff !important;
}
