/* ==========================================================================
   WCFM - ESTILOS COMPLETOS DE ORDER BUMPS Y EMBUDOS
   ========================================================================== */

.wcfm-order-bump-container {
    margin: 20px 0;
    transition: all 0.3s ease;
}

/* --------------------------------------------------------------------------
   SKIN 1: Clásico Destacado (Borde Punteado + Barra Amarilla + Flecha)
   -------------------------------------------------------------------------- */
.wcfm-bump-skin-1 {
    border: 2px dashed #333;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.wcfm-bump-skin-1 .wcfm-bump-top-bar {
    background-color: #fef08a; /* Amarillo suave */
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #eab308;
}
.wcfm-bump-skin-1 .wcfm-bump-body {
    padding: 14px;
    display: flex;
    gap: 15px;
    align-items: center;
}

/* --------------------------------------------------------------------------
   SKIN 2: Tarjeta Moderna con Botón CTA (Verde / Teal)
   -------------------------------------------------------------------------- */
.wcfm-bump-skin-2 {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    overflow: hidden;
}
.wcfm-bump-skin-2 .wcfm-bump-top-bar {
    padding: 12px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wcfm-bump-skin-2 .wcfm-bump-body {
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.wcfm-bump-skin-2 .wcfm-bump-btn-action {
    display: inline-block;
    background: #0d9488;
    color: #fff;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    border: none;
    margin-top: 10px;
    transition: background 0.2s, transform 0.1s;
}
.wcfm-bump-skin-2 .wcfm-bump-btn-action:hover {
    background: #0f766e;
    transform: translateY(-1px);
}
.wcfm-bump-skin-2.wcfm-bump-active .wcfm-bump-btn-action {
    background: #dc2626; /* Rojo para remover */
}

/* --------------------------------------------------------------------------
   SKIN 3: Minimalista Limpio con Caja de Selección
   -------------------------------------------------------------------------- */
.wcfm-bump-skin-3 {
    border: 1.5px solid #dbeafe;
    border-radius: 10px;
    background: #eff6ff;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
}
.wcfm-bump-skin-3 .wcfm-bump-box-trigger {
    background: #fff;
    border: 1.5px solid #3b82f6;
    border-radius: 6px;
    padding: 6px 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    font-weight: 700;
    font-size: 13px;
    margin-top: 8px;
    transition: all 0.2s;
}
.wcfm-bump-skin-3.wcfm-bump-active .wcfm-bump-box-trigger {
    background: #2563eb;
    color: #fff;
}

/* --------------------------------------------------------------------------
   SKIN 4: Interruptor Toggle (Switch iOS / Beige Suave)
   -------------------------------------------------------------------------- */
.wcfm-bump-skin-4 {
    border: 1px solid #fef3c7;
    border-radius: 10px;
    background: #fffbeb;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
}
.wcfm-bump-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.wcfm-bump-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.wcfm-bump-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 24px;
}
.wcfm-bump-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}
.wcfm-bump-switch input:checked + .wcfm-bump-slider {
    background-color: #10b981;
}
.wcfm-bump-switch input:checked + .wcfm-bump-slider:before {
    transform: translateX(20px);
}

/* --------------------------------------------------------------------------
   ELEMENTOS COMUNES (Imágenes, Flecha, Precios, Insignias)
   -------------------------------------------------------------------------- */
.wcfm-bump-img-wrap {
    flex-shrink: 0;
}
.wcfm-bump-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    display: block;
}

.wcfm-bump-arrow {
    color: #dc2626;
    font-size: 16px;
    margin-right: 6px;
    animation: wcfm-pulse-arrow 1.5s infinite;
    display: inline-block;
}
@keyframes wcfm-pulse-arrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

.wcfm-bump-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: #1f2937;
    font-size: 14px;
    margin: 0;
}
.wcfm-bump-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    accent-color: #16a34a;
    cursor: pointer;
}

.wcfm-bump-prices {
    font-size: 14px;
    white-space: nowrap;
}
.wcfm-bump-price-regular {
    text-decoration: line-through;
    color: #ef4444;
    margin-right: 6px;
    font-size: 13px;
}
.wcfm-bump-price-sale {
    font-weight: 800;
    color: #111827;
    font-size: 15px;
}

.wcfm-bump-badge {
    display: inline-block;
    background: #0ea5e9;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.wcfm-bump-desc-text {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.4;
    margin: 4px 0 0 0;
}

/* Estado activo resaltado */
.wcfm-bump-active {
    border-color: #16a34a !important;
    background-color: #f0fdf4 !important;
}

/* --------------------------------------------------------------------------
   ESTILOS DE PÁGINAS DE EMBUDO (Upsell y Downsell)
   -------------------------------------------------------------------------- */
body.wcfm-funnel-page {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f6f9;
    color: #2c3e50;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}
.wcfm-progress-bar-container {
    width: 100%;
    max-width: 750px;
    margin: 25px auto 10px auto;
    display: flex;
    justify-content: space-between;
    background: #fff;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-size: 13px;
    font-weight: 600;
}
.wcfm-progress-step { color: #95a5a6; }
.wcfm-progress-step.completed { color: #27ae60; }
.wcfm-progress-step.active { color: #2980b9; }

.wcfm-funnel-card {
    background: #fff;
    width: 90%;
    max-width: 750px;
    margin: 15px auto 40px auto;
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    box-sizing: border-box;
}
.wcfm-alert-badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}
.wcfm-headline {
    font-size: 26px;
    font-weight: 800;
    color: #1a252f;
    margin: 0 0 12px 0;
    line-height: 1.25;
}
.wcfm-subheadline {
    font-size: 16px;
    color: #7f8c8d;
    margin: 0 0 25px 0;
    line-height: 1.5;
}
.wcfm-product-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fdfefe;
    border: 1px solid #eef2f5;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}
@media(min-width: 600px) {
    .wcfm-product-showcase {
        flex-direction: row;
        text-align: left;
        gap: 20px;
    }
}
.wcfm-product-image img {
    max-width: 220px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}
.wcfm-product-details h2 {
    font-size: 20px;
    margin: 0 0 10px 0;
    color: #2c3e50;
}
.wcfm-price-tag { font-size: 16px; margin-bottom: 12px; }
.wcfm-price-tag .highlight { font-size: 22px; font-weight: 800; color: #27ae60; }
.wcfm-description { font-size: 14px; color: #666; line-height: 1.4; }

.wcfm-btn-accept {
    width: 100%;
    max-width: 550px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
    border: none;
    padding: 18px 24px;
    font-size: 18px;
    font-weight: 800;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(39, 174, 96, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}
.wcfm-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(39, 174, 96, 0.45);
}
.wcfm-link-decline {
    background: transparent;
    border: none;
    color: #95a5a6;
    font-size: 13.5px;
    text-decoration: underline;
    cursor: pointer;
    padding: 10px;
    transition: color 0.2s;
}
.wcfm-link-decline:hover { color: #7f8c8d; }
.wcfm-guarantee-footer { margin-top: 25px; font-size: 12px; color: #bdc3c7; font-weight: 600; }

/* --------------------------------------------------------------------------
   CHECKOUT: Controles interactivos de cantidad (- / +) y botón Eliminar
   -------------------------------------------------------------------------- */
.wcfm-checkout-qty-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.wcfm-checkout-qty-control {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    vertical-align: middle;
}
.wcfm-qty-btn {
    background: #f8fafc;
    border: none;
    outline: none;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    color: #475569;
    padding: 0;
    margin: 0;
    transition: background 0.15s ease, color 0.15s ease;
    user-select: none;
    line-height: 1;
}
.wcfm-qty-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.wcfm-qty-btn.wcfm-qty-minus:hover {
    color: #dc2626;
    background: #fee2e2;
}
.wcfm-qty-btn.wcfm-qty-plus:hover {
    color: #16a34a;
    background: #dcfce7;
}
.wcfm-qty-btn svg {
    display: block;
}
.wcfm-qty-val {
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
    min-width: 24px;
    text-align: center;
    padding: 0 4px;
    user-select: none;
    line-height: 26px;
}
.wcfm-item-remove-btn {
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
    line-height: 1;
}
.wcfm-item-remove-btn:hover {
    color: #ef4444;
    background: #fee2e2;
}
.wcfm-item-remove-btn svg {
    display: block;
}
.wcfm-checkout-qty-row.wcfm-loading,
.wcfm-checkout-qty-control.wcfm-loading {
    opacity: 0.45;
    pointer-events: none;
}

/* ==========================================================================
   WCFM - EXPERIENCIAS DINÁMICAS & BANNERS PERSONALIZADOS
   ========================================================================== */

.wcfm-dynamic-experience-wrap {
    margin: 18px 0 24px 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.wcfm-banner-box {
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    padding: 22px 26px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.wcfm-banner-box:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.wcfm-banner-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.wcfm-banner-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 8px 0;
    line-height: 1.35;
}

.wcfm-banner-subtitle {
    font-size: 14.5px;
    line-height: 1.55;
    margin: 0 0 16px 0;
    opacity: 0.95;
    max-width: 780px;
}

/* Micro-Formulario de Captura de Leads Directo en Banner */
.wcfm-lead-form {
    margin-top: 12px;
    max-width: 580px;
}

.wcfm-lead-input-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.wcfm-lead-input {
    flex: 1;
    min-width: 240px;
    background: #ffffff !important;
    border: 1.5px solid rgba(0,0,0,0.15) !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    color: #1e293b !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}

.wcfm-lead-input:focus {
    border-color: #2563eb !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.18) !important;
}

.wcfm-lead-submit-btn {
    padding: 10px 22px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    transition: transform 0.15s ease, opacity 0.15s ease !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.wcfm-lead-submit-btn:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.wcfm-lead-submit-btn:active {
    transform: translateY(0);
}

.wcfm-lead-feedback {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
}

.wcfm-lead-success-msg {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 14px 18px;
    font-weight: 700;
    font-size: 14.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Cupón con Clic para Copiar */
.wcfm-coupon-badge-wrap {
    margin: 12px 0 16px 0;
}

.wcfm-coupon-code {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1.5px dashed #10b981;
    border-radius: 8px;
    padding: 7px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.wcfm-coupon-code:hover {
    background: #f0fdf4;
    border-color: #059669;
    transform: scale(1.02);
}

.wcfm-coupon-code .wcfm-code-text {
    font-family: monospace;
    font-size: 15px;
    color: #065f46;
    letter-spacing: 1px;
}

.wcfm-coupon-code .wcfm-copy-action {
    font-size: 11px;
    font-weight: 700;
    background: #d1fae5;
    color: #047857;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Botón CTA del Banner */
.wcfm-banner-action-wrap {
    margin-top: 14px;
}

.wcfm-banner-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.wcfm-banner-cta-btn:hover {
    transform: translateY(-1px);
    opacity: 0.93;
}

/* Notificación / Alerta Dinámica */
.wcfm-dynamic-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 8px;
    margin: 14px 0;
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid;
}

.wcfm-notice-info {
    background: #eff6ff;
    color: #1e40af;
    border-left-color: #3b82f6;
}

.wcfm-notice-success {
    background: #f0fdf4;
    color: #166534;
    border-left-color: #22c55e;
}

.wcfm-notice-warning {
    background: #fffbeb;
    color: #92400e;
    border-left-color: #f59e0b;
}

.wcfm-notice-icon {
    font-size: 18px;
    line-height: 1;
}

@media (max-width: 640px) {
    .wcfm-banner-box {
        padding: 16px 18px;
    }
    .wcfm-banner-title {
        font-size: 17px;
    }
    .wcfm-banner-subtitle {
        font-size: 13.5px;
    }
    .wcfm-lead-input-row {
        flex-direction: column;
        align-items: stretch;
    }
    .wcfm-lead-input {
        min-width: 100%;
    }
    .wcfm-lead-submit-btn {
        width: 100%;
    }
}

/* ==========================================================================
   WCFM - FORMULARIOS INTELIGENTES DE CAPTACIÓN [wcfm_lead_form]
   ========================================================================== */

.wcfm-standalone-lead-card {
    border-radius: 12px;
    padding: 24px 28px;
    margin: 20px 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.wcfm-standalone-lead-card.wcfm-skin-dark {
    background: #0f172a;
    color: #ffffff;
    border-color: #1e293b;
}

.wcfm-standalone-lead-card.wcfm-skin-dark .wcfm-card-title {
    color: #ffffff;
}

.wcfm-standalone-lead-card.wcfm-skin-dark .wcfm-card-subtitle {
    color: #94a3b8;
}

.wcfm-standalone-lead-card.wcfm-skin-highlight {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #f59e0b;
}

.wcfm-card-title {
    font-size: 19px;
    font-weight: 800;
    margin: 0 0 6px 0;
    color: #0f172a;
}

.wcfm-card-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.wcfm-form-group {
    margin-bottom: 12px;
}

.wcfm-input-field {
    width: 100% !important;
    padding: 11px 14px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    box-sizing: border-box !important;
    transition: border-color 0.15s ease;
}

.wcfm-input-field:focus {
    border-color: #ea580c !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15) !important;
}

.wcfm-submit-btn {
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    background: #ea580c !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: transform 0.15s ease, opacity 0.15s ease !important;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25) !important;
}

.wcfm-submit-btn:hover {
    opacity: 0.93;
    transform: translateY(-1px);
}

.wcfm-form-feedback {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
}

/* ==========================================================================
   WCFM - BOTÓN FLOTANTE E INTEGRADO DE WHATSAPP
   ========================================================================== */

.wcfm-wa-container {
    position: fixed !important;
    z-index: 9999999 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    pointer-events: auto !important;
}

.wcfm-wa-pos-bottom-right {
    bottom: 25px !important;
    right: 25px !important;
    left: auto !important;
}

.wcfm-wa-pos-bottom-right .wcfm-wa-link {
    flex-direction: row !important;
}

.wcfm-wa-pos-bottom-left {
    bottom: 25px !important;
    left: 25px !important;
    right: auto !important;
}

.wcfm-wa-pos-bottom-left .wcfm-wa-link {
    flex-direction: row-reverse !important;
}

.wcfm-wa-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px;
    text-decoration: none !important;
}

.wcfm-wa-button-circle {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background: #25D366 !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.48) !important;
    cursor: pointer !important;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease !important;
    animation: wcfm-wa-pulse 2.4s infinite !important;
}

.wcfm-wa-button-circle:hover {
    transform: scale(1.12) translateY(-2px) !important;
    box-shadow: 0 8px 26px rgba(37, 211, 102, 0.7) !important;
}

.wcfm-wa-button-circle.wcfm-transparent-bg {
    background: transparent !important;
    box-shadow: none !important;
    animation: none !important;
    border-radius: 0 !important;
}

.wcfm-wa-button-circle.wcfm-transparent-bg:hover {
    box-shadow: none !important;
    transform: scale(1.08) translateY(-2px) !important;
}

@keyframes wcfm-wa-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7), 0 4px 18px rgba(37, 211, 102, 0.48);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 4px 18px rgba(37, 211, 102, 0.48);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 4px 18px rgba(37, 211, 102, 0.48);
    }
}

.wcfm-wa-button-circle svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
}

.wcfm-wa-badge {
    background: #ffffff;
    color: #0f172a;
    padding: 7px 15px;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    border: 1px solid #e2e8f0;
    white-space: nowrap;
    line-height: 1.35;
    animation: wcfm-wa-float 2.5s ease-in-out infinite alternate;
}

@keyframes wcfm-wa-float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}

/* Botón WhatsApp Inline para Artículos de Blog [wcfm_whatsapp_button] */
.wcfm-wa-inline-wrap {
    margin: 20px 0;
}

.wcfm-wa-inline-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366 !important;
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 3px 12px rgba(37, 211, 102, 0.35);
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.wcfm-wa-inline-btn:hover {
    background: #20bd5a !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(37, 211, 102, 0.5);
}

.wcfm-wa-inline-icon {
    display: flex;
    align-items: center;
}

@media (max-width: 640px) {
    .wcfm-wa-pos-bottom-right {
        bottom: 18px !important;
        right: 18px !important;
    }
    .wcfm-wa-pos-bottom-left {
        bottom: 18px !important;
        left: 18px !important;
    }
    .wcfm-wa-badge {
        display: none !important; /* En pantallas pequeñas se oculta el texto flotante para no tapar contenido */
    }
}

/* ==========================================================================
   WCFM - MENSAJE EMERGENTE / VENTANA DE CHAT POPUP DE WHATSAPP
   ========================================================================== */

.wcfm-wa-popup-wrap {
    position: fixed !important;
    z-index: 9999998 !important;
    width: 320px;
    max-width: calc(100vw - 36px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.96);
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.28s;
    font-family: inherit;
}

.wcfm-wa-popup-wrap.wcfm-wa-pos-bottom-right {
    bottom: 96px !important;
    right: 25px !important;
    left: auto !important;
}

.wcfm-wa-popup-wrap.wcfm-wa-pos-bottom-left {
    bottom: 96px !important;
    left: 25px !important;
    right: auto !important;
}

.wcfm-wa-popup-wrap.wcfm-wa-popup-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

.wcfm-wa-popup-header {
    background: linear-gradient(135deg, #075e54 0%, #128c7e 100%);
    color: #ffffff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.wcfm-wa-popup-avatar-col {
    flex-shrink: 0;
}

.wcfm-wa-popup-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
}

.wcfm-wa-popup-default-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

.wcfm-wa-popup-meta {
    flex: 1;
    min-width: 0;
}

.wcfm-wa-popup-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0 !important;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wcfm-wa-popup-status {
    font-size: 11.5px;
    color: #dcf8c6;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
}

.wcfm-wa-status-dot {
    width: 7px;
    height: 7px;
    background: #25D366;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px #25D366;
}

.wcfm-wa-popup-close {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 300 !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 0 4px !important;
    opacity: 0.8;
    transition: opacity 0.15s;
    position: absolute;
    top: 10px;
    right: 12px;
}

.wcfm-wa-popup-close:hover {
    opacity: 1;
}

.wcfm-wa-popup-body {
    background: #efeae2;
    padding: 16px;
    background-image: radial-gradient(#d1c7b7 1px, transparent 1px);
    background-size: 14px 14px;
}

.wcfm-wa-popup-bubble {
    background: #ffffff;
    padding: 11px 14px;
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    font-size: 13.5px;
    line-height: 1.45;
    color: #111b21;
}

.wcfm-wa-popup-time {
    font-size: 10.5px;
    color: #667781;
    text-align: right;
    display: block;
    margin-top: 4px;
}

.wcfm-wa-popup-footer {
    padding: 12px 16px;
    background: #f0f2f5;
    text-align: center;
}

.wcfm-wa-popup-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    background: #25D366 !important;
    color: #ffffff !important;
    padding: 11px 18px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35) !important;
    transition: background 0.15s ease, transform 0.15s ease !important;
    box-sizing: border-box !important;
}

.wcfm-wa-popup-cta:hover {
    background: #20bd5a !important;
    transform: translateY(-1px) !important;
}

@media (max-width: 640px) {
    .wcfm-wa-popup-wrap.wcfm-wa-pos-bottom-right,
    .wcfm-wa-popup-wrap.wcfm-wa-pos-bottom-left {
        bottom: 80px !important;
        right: 18px !important;
        left: 18px !important;
        width: auto !important;
    }
}

/* ==========================================================================
   WCFM CHAT ROOT & WIDGET HIBRIDO (FASE 1)
   Encapsulado estricto bajo #wcfm-chat-root
   ========================================================================== */

#wcfm-chat-root {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
}

#wcfm-chat-root *,
#wcfm-chat-root *::before,
#wcfm-chat-root *::after {
    box-sizing: border-box;
}

/* Ventana Flotante en Escritorio */
#wcfm-chat-root .wcfm-chat-window {
    display: none !important;
    position: fixed !important;
    width: 380px !important;
    max-width: calc(100vw - 36px) !important;
    max-height: calc(100vh - 120px) !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    flex-direction: column !important;
    overflow: hidden !important;
    z-index: 99999999 !important;
    border: 1px solid #e2e8f0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(14px) scale(0.98) !important;
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#wcfm-chat-root .wcfm-chat-window.wcfm-chat-open,
#wcfm-chat-root .wcfm-chat-window[data-wcfm-chat-state="open"] {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
}

#wcfm-chat-root.wcfm-pos-bottom-right .wcfm-chat-window {
    bottom: 95px !important;
    right: 25px !important;
    left: auto !important;
}

#wcfm-chat-root.wcfm-pos-bottom-left .wcfm-chat-window {
    bottom: 95px !important;
    left: 25px !important;
    right: auto !important;
}

@keyframes wcfmFadeInUp {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Barra Handle para Móvil */
.wcfm-bottomsheet-handle-bar {
    display: none;
}

/* Cabecera del Widget */
.wcfm-chat-header {
    background: linear-gradient(135deg, #075e54 0%, #128c7e 100%) !important;
    color: #ffffff !important;
    padding: 16px 18px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    position: relative !important;
}

.wcfm-chat-header-avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.wcfm-chat-avatar-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.wcfm-chat-avatar-svg {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
}

.wcfm-chat-header-info {
    flex: 1 !important;
    min-width: 0 !important;
}

.wcfm-chat-header-title {
    margin: 0 0 2px 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.25 !important;
}

.wcfm-chat-header-status {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.wcfm-status-indicator {
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    border-radius: 50% !important;
    display: inline-block !important;
}

.wcfm-status-indicator.online {
    background: #22c55e !important;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.4) !important;
}

.wcfm-status-indicator.offline {
    background: #f59e0b !important;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.4) !important;
}

.wcfm-chat-btn-close {
    background: rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    color: #ffffff !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 20px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.15s ease !important;
}

.wcfm-chat-btn-close:hover {
    background: rgba(0, 0, 0, 0.3) !important;
}

/* Saludo Contextual */
.wcfm-chat-greeting-box {
    background: #f8fafc !important;
    padding: 12px 18px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.wcfm-chat-greeting-text {
    margin: 0 !important;
    font-size: 13.5px !important;
    color: #334155 !important;
    line-height: 1.45 !important;
}

/* Cuerpo con Scroll */
.wcfm-chat-body {
    padding: 16px 18px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    flex: 1 !important;
    max-height: 480px !important;
}

.wcfm-chat-section-label {
    margin: 6px 0 10px 0 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Tarjetas de Canales */
.wcfm-chat-channels-section {
    margin-bottom: 16px !important;
}

.wcfm-channel-card {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 14px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    margin-bottom: 10px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    color: #1e293b !important;
    background: #ffffff !important;
    transition: all 0.15s ease !important;
    min-height: 44px !important;
}

.wcfm-channel-card:hover {
    border-color: #25D366 !important;
    background: #f0fdf4 !important;
    transform: translateY(-1px) !important;
}

.wcfm-channel-internal:hover {
    border-color: #0ea5e9 !important;
    background: #f0f9ff !important;
}

.wcfm-channel-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
}

.wcfm-bg-wa {
    background: #25D366 !important;
}

.wcfm-bg-internal {
    background: #0ea5e9 !important;
}

.wcfm-channel-details {
    flex: 1 !important;
    min-width: 0 !important;
}

.wcfm-channel-name {
    display: block !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #0f172a !important;
}

.wcfm-channel-desc {
    display: block !important;
    font-size: 12px !important;
    color: #64748b !important;
}

.wcfm-channel-arrow {
    margin-left: auto !important;
    color: #94a3b8 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

/* Pantalla Inicial de Soporte Interno */
.wcfm-chat-screen-internal {
    margin-bottom: 16px !important;
}

.wcfm-chat-back-btn {
    background: none !important;
    border: none !important;
    color: #0ea5e9 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    padding: 0 0 10px 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    min-height: 44px !important;
}

.wcfm-support-preview-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 14px !important;
}

.wcfm-support-preview-title {
    margin: 0 0 4px 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.wcfm-support-preview-desc {
    margin: 0 0 12px 0 !important;
    font-size: 12.5px !important;
    color: #64748b !important;
    line-height: 1.4 !important;
}

.wcfm-form-group-chat {
    margin-bottom: 10px !important;
}

.wcfm-chat-label {
    display: block !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    margin-bottom: 4px !important;
}

.wcfm-chat-input,
.wcfm-chat-textarea {
    width: 100% !important;
    box-sizing: border-box !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    color: #1e293b !important;
    outline: none !important;
    background: #ffffff !important;
    transition: border-color 0.15s ease !important;
}

.wcfm-chat-input:focus,
.wcfm-chat-textarea:focus {
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.15) !important;
}

.wcfm-support-notice {
    background: #f1f5f9 !important;
    border-radius: 6px !important;
    padding: 8px 10px !important;
    color: #64748b !important;
    font-size: 11.5px !important;
    margin-top: 8px !important;
}

/* Sección de Preguntas Frecuentes */
.wcfm-chat-faq-section {
    margin-top: 6px !important;
}

.wcfm-faq-search-wrap {
    margin-bottom: 10px !important;
}

.wcfm-faq-search {
    width: 100% !important;
    box-sizing: border-box !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 20px !important;
    padding: 9px 14px !important;
    font-size: 13px !important;
    outline: none !important;
    background: #ffffff !important;
    min-height: 44px !important;
}

.wcfm-faq-search:focus {
    border-color: #128c7e !important;
    box-shadow: 0 0 0 2px rgba(18, 140, 126, 0.15) !important;
}

.wcfm-faq-cat-pills {
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto !important;
    padding-bottom: 6px !important;
    margin-bottom: 10px !important;
    scrollbar-width: none !important;
}

.wcfm-faq-cat-pills::-webkit-scrollbar {
    display: none !important;
}

.wcfm-cat-pill {
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #475569 !important;
    border-radius: 16px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: all 0.15s ease !important;
}

.wcfm-cat-pill.active {
    background: #128c7e !important;
    color: #ffffff !important;
    border-color: #128c7e !important;
}

.wcfm-faq-item {
    border-bottom: 1px solid #f1f5f9 !important;
    margin-bottom: 4px !important;
}

.wcfm-faq-question-btn {
    width: 100% !important;
    min-height: 44px !important;
    background: none !important;
    border: none !important;
    text-align: left !important;
    padding: 10px 4px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    box-sizing: border-box !important;
}

.wcfm-faq-question-btn:hover {
    color: #128c7e !important;
}

.wcfm-faq-toggle-icon {
    font-size: 18px !important;
    color: #94a3b8 !important;
    font-weight: 400 !important;
    min-width: 20px !important;
    text-align: center !important;
    transition: transform 0.2s ease !important;
}

.wcfm-faq-question-btn.active .wcfm-faq-toggle-icon {
    transform: rotate(45deg) !important;
    color: #128c7e !important;
}

.wcfm-faq-answer-pane {
    padding: 0 4px 12px 4px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #475569 !important;
}

.wcfm-faq-action-row {
    margin-top: 8px !important;
}

.wcfm-faq-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #128c7e !important;
    text-decoration: none !important;
    padding: 6px 12px !important;
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    border-radius: 6px !important;
    min-height: 44px !important;
    transition: all 0.15s ease !important;
}

.wcfm-faq-action-btn:hover {
    background: #dcfce7 !important;
    color: #075e54 !important;
}

/* ==========================================================================
   ADAPTACION RESPONSIVE MOBILE-FIRST (BOTTOM SHEET)
   ========================================================================== */
@media (max-width: 768px) {
    #wcfm-chat-root .wcfm-chat-window {
        display: none !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        max-height: calc(100vh - 40px) !important;
        max-height: calc(100dvh - 40px) !important;
        border-radius: 20px 20px 0 0 !important;
        border: none !important;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2) !important;
        padding-bottom: env(safe-area-inset-bottom, 20px) !important;
        z-index: 99999999 !important;
        flex-direction: column !important;
        transform: translateY(100%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease !important;
    }

    #wcfm-chat-root .wcfm-chat-window.wcfm-chat-open,
    #wcfm-chat-root .wcfm-chat-window[data-wcfm-chat-state="open"] {
        display: flex !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    #wcfm-chat-root.wcfm-pos-bottom-right .wcfm-chat-window,
    #wcfm-chat-root.wcfm-pos-bottom-left .wcfm-chat-window {
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
    }

    @keyframes wcfmSlideUpMobile {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }

    .wcfm-bottomsheet-handle-bar {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 8px 0 4px 0 !important;
        background: #075e54 !important;
        cursor: grab !important;
    }

    .wcfm-bottomsheet-handle {
        width: 38px !important;
        height: 4px !important;
        background: rgba(255, 255, 255, 0.4) !important;
        border-radius: 2px !important;
        display: block !important;
    }

    .wcfm-chat-body {
        max-height: calc(100dvh - 160px) !important;
    }
}

/* ==========================================================================
   FASE 3: FICHA DE INTELIGENCIA Y PROGRESSIVE IDENTIFICATION
   ========================================================================== */
.wcfm-prog-card {
    transition: all 0.2s ease;
}
.wcfm-prog-card input:focus {
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2) !important;
}
#wcfm-agent-intelligence-pane::-webkit-scrollbar {
    width: 5px;
}
#wcfm-agent-intelligence-pane::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
#wcfm-agent-intelligence-pane::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ==========================================================================
   FASE 5: PWA & RESPONSIVE AGENT DESK (TABLETS Y MÓVILES)
   ========================================================================== */
@media (max-width: 1024px) {
    .wcfm-desk-columns-wrap {
        flex-direction: column !important;
        min-height: auto !important;
    }
    #wcfm-agent-col-list,
    #wcfm-agent-col-intel {
        width: 100% !important;
        min-width: 100% !important;
        border-right: none !important;
        border-left: none !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }
    #wcfm-mobile-pane-switcher {
        display: flex !important;
    }
    .wcfm-desk-pane {
        display: none !important;
    }
    /* Vista activa por defecto en móvil */
    #wcfm-agent-col-chat {
        display: flex !important;
    }
}
@media (min-width: 1025px) {
    #wcfm-mobile-pane-switcher {
        display: none !important;
    }
    #wcfm-agent-col-list,
    #wcfm-agent-col-chat,
    #wcfm-agent-col-intel {
        display: flex !important;
    }
}

/* ==========================================================================
   WCFM - SISTEMA DE ATENCION HIBRIDO DEFINITIVO: DUAL DESKTOP & MOBILE HELP MENU
   ========================================================================== */

/* 1. Botones Flotantes Base */
.wcfm-floating-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    outline: none !important;
    position: relative !important;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.wcfm-floating-btn:hover {
    transform: scale(1.08) !important;
}

.wcfm-floating-btn:active {
    transform: scale(0.95) !important;
}

.wcfm-floating-btn .wcfm-btn-icon-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease !important;
}

.wcfm-btn-wa .wcfm-btn-icon-wrap {
    background-color: #25D366;
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.42);
}

.wcfm-btn-chat .wcfm-btn-icon-wrap {
    background-color: #0ea5e9;
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(14, 165, 233, 0.42);
}

.wcfm-btn-help .wcfm-btn-icon-wrap {
    background: linear-gradient(135deg, #128c7e 0%, #0ea5e9 100%);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(18, 140, 126, 0.45);
}

/* 2. Badge / Tooltip flotante al pasar el cursor */
.wcfm-floating-badge {
    position: absolute;
    background: #0f172a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    padding: 6px 11px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9999999;
}

.wcfm-dual-pos-bottom-right .wcfm-floating-badge,
.wcfm-mobile-pos-bottom-right .wcfm-floating-badge,
.wcfm-single-pos-bottom-right .wcfm-floating-badge {
    right: 100%;
    margin-right: 12px;
    transform: translateX(6px);
}

.wcfm-dual-pos-bottom-left .wcfm-floating-badge,
.wcfm-mobile-pos-bottom-left .wcfm-floating-badge,
.wcfm-single-pos-bottom-left .wcfm-floating-badge {
    left: 100%;
    margin-left: 12px;
    transform: translateX(-6px);
}

.wcfm-floating-btn:hover .wcfm-floating-badge {
    opacity: 1;
    transform: translateX(0);
}

/* 3. Modo Fondo Transparente (Eliminación estricta de recuadro verde) */
.wcfm-floating-btn.wcfm-transparent-bg,
.wcfm-floating-btn.wcfm-transparent-bg .wcfm-btn-icon-wrap,
.wcfm-wa-button-circle.wcfm-transparent-bg {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    animation: none !important;
}

.wcfm-floating-btn.wcfm-transparent-bg img,
.wcfm-wa-button-circle.wcfm-transparent-bg img {
    background: transparent !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    object-fit: contain !important;
}

/* 4. Contenedor Escritorio: Dos Botones Flotantes Simultáneos (> 768px) */
.wcfm-desktop-dual-buttons {
    position: fixed !important;
    bottom: 25px !important;
    z-index: 9999998 !important;
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 12px !important;
}

.wcfm-desktop-dual-buttons.wcfm-dual-pos-bottom-right {
    right: 25px !important;
    left: auto !important;
    align-items: flex-end !important;
}

.wcfm-desktop-dual-buttons.wcfm-dual-pos-bottom-left {
    left: 25px !important;
    right: auto !important;
    align-items: flex-start !important;
}

/* 5. Contenedor Móvil: Botón Único de Ayuda (<= 768px) */
.wcfm-mobile-help-container {
    position: fixed !important;
    bottom: 20px !important;
    z-index: 9999998 !important;
    display: none;
}

.wcfm-mobile-help-container.wcfm-mobile-pos-bottom-right {
    right: 20px !important;
    left: auto !important;
    align-items: flex-end !important;
}

.wcfm-mobile-help-container.wcfm-mobile-pos-bottom-left {
    left: 20px !important;
    right: auto !important;
    align-items: flex-start !important;
}

/* 6. Menú Flotante de Opciones en Móvil (WhatsApp + Chat) */
.wcfm-mobile-help-menu {
    position: fixed !important;
    bottom: 85px !important;
    width: 290px !important;
    max-width: calc(100vw - 36px) !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    z-index: 9999999 !important;
    overflow: hidden !important;
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(12px) scale(0.96) !important;
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.wcfm-mobile-help-container.wcfm-mobile-pos-bottom-right #wcfm-mobile-help-menu {
    right: 20px !important;
    left: auto !important;
}

.wcfm-mobile-help-container.wcfm-mobile-pos-bottom-left #wcfm-mobile-help-menu {
    left: 20px !important;
    right: auto !important;
}

.wcfm-mobile-help-menu.wcfm-menu-open,
.wcfm-mobile-help-menu[data-wcfm-menu-state="open"] {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
}

.wcfm-help-menu-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 16px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.wcfm-help-menu-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
}

.wcfm-help-menu-close {
    background: none !important;
    border: none !important;
    color: #94a3b8 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    padding: 0 4px !important;
    line-height: 1 !important;
}

.wcfm-help-menu-close:hover {
    color: #475569 !important;
}

.wcfm-help-menu-options {
    padding: 10px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.wcfm-help-menu-option {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    border: 1px solid #f1f5f9 !important;
    background: #ffffff !important;
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer !important;
    width: 100% !important;
    text-align: left !important;
    box-sizing: border-box !important;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease !important;
}

.wcfm-help-menu-option:hover,
.wcfm-help-menu-option:active {
    transform: translateX(2px) !important;
}

.wcfm-help-menu-option.wcfm-opt-wa:hover {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
}

.wcfm-help-menu-option.wcfm-opt-chat:hover {
    background: #f0f9ff !important;
    border-color: #bae6fd !important;
}

.wcfm-menu-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.wcfm-menu-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.wcfm-menu-opt-name {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.25 !important;
}

.wcfm-menu-opt-sub {
    font-size: 11px !important;
    color: #64748b !important;
    line-height: 1.3 !important;
}

.wcfm-menu-opt-arrow {
    color: #94a3b8 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

/* 7. Contenedor de Solo Chat Interno (internal_only) */
.wcfm-single-chat-container {
    position: fixed !important;
    bottom: 25px !important;
    z-index: 9999998 !important;
    display: flex !important;
    align-items: center !important;
}

.wcfm-single-chat-container.wcfm-single-pos-bottom-right {
    right: 25px !important;
    left: auto !important;
}

.wcfm-single-chat-container.wcfm-single-pos-bottom-left {
    left: 25px !important;
    right: auto !important;
}

/* 8. Reglas Responsive de Conmutación (Escritorio vs Móvil) */
@media (min-width: 769px) {
    .wcfm-desktop-dual-buttons {
        display: flex !important;
    }
    .wcfm-mobile-help-container {
        display: none !important;
    }
    .wcfm-mobile-help-menu {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .wcfm-desktop-dual-buttons {
        display: none !important;
    }
    .wcfm-mobile-help-container {
        display: flex !important;
    }
}

/* ==========================================================================
   WCFM - DISENO ESTILO ZOHO SALESIQ
   ========================================================================== */

/* 1. Ventana SalesIQ */
#wcfm-chat-root .wcfm-salesiq-window {
    position: fixed !important;
    z-index: 99999999 !important;
    width: 380px !important;
    max-width: calc(100vw - 32px) !important;
    height: 620px !important;
    max-height: calc(100vh - 110px) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    display: none !important;
    flex-direction: column !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22), 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(14px) scale(0.98) !important;
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#wcfm-chat-root.wcfm-pos-bottom-right .wcfm-salesiq-window {
    bottom: 95px !important;
    right: 25px !important;
    left: auto !important;
}

#wcfm-chat-root.wcfm-pos-bottom-left .wcfm-salesiq-window {
    bottom: 95px !important;
    left: 25px !important;
    right: auto !important;
}

#wcfm-chat-root .wcfm-salesiq-window.wcfm-chat-open,
#wcfm-chat-root .wcfm-salesiq-window[data-wcfm-chat-state="open"] {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
}

@media (max-width: 768px) {
    #wcfm-chat-root .wcfm-salesiq-window {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 88vh !important;
        height: 88dvh !important;
        max-height: calc(100dvh - 30px) !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: 20px 20px 0 0 !important;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.22) !important;
        transform: translateY(100%) !important;
    }

    #wcfm-chat-root.wcfm-pos-bottom-right .wcfm-salesiq-window,
    #wcfm-chat-root.wcfm-pos-bottom-left .wcfm-salesiq-window {
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }

    #wcfm-chat-root .wcfm-salesiq-window.wcfm-chat-open,
    #wcfm-chat-root .wcfm-salesiq-window[data-wcfm-chat-state="open"] {
        transform: translateY(0) !important;
    }
}

/* 2. Cabecera SalesIQ */
.wcfm-salesiq-header {
    background: #e11d48;
    color: #ffffff;
    padding: 18px 20px 24px 20px;
    position: relative;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    flex-shrink: 0;
}

.wcfm-salesiq-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.wcfm-salesiq-badge {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    overflow: hidden;
}

.wcfm-salesiq-badge-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.wcfm-salesiq-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wcfm-salesiq-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid rgba(255, 255, 255, 0.85);
    display: inline-block;
}

.wcfm-salesiq-status-dot.offline {
    background: #94a3b8;
}

.wcfm-salesiq-close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    font-weight: 400;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    opacity: 0.85;
    transition: opacity 0.15s ease;
}

.wcfm-salesiq-close-btn:hover {
    opacity: 1;
}

.wcfm-salesiq-title {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 4px 0 2px 0 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.3px;
}

.wcfm-salesiq-sub {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.92) !important;
    margin: 0 0 16px 0 !important;
    line-height: 1.35 !important;
}

/* Tarjeta CTA: Chatee con nosotros ahora */
.wcfm-salesiq-cta-wrap {
    margin-top: 4px;
}

.wcfm-salesiq-cta-card {
    width: 100%;
    background: #ffffff;
    border-radius: 14px;
    border: 1.5px solid transparent;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    text-align: left;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.wcfm-salesiq-cta-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.wcfm-cta-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #ffe4e6;
    color: #e11d48;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wcfm-cta-text-box {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wcfm-cta-main-text {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.wcfm-cta-sub-text {
    font-size: 11px;
    color: #64748b;
    line-height: 1.3;
}

.wcfm-cta-arrow {
    font-size: 22px;
    font-weight: 700;
    color: #94a3b8;
    line-height: 1;
}

/* 3. Viewport de Pestañas */
.wcfm-salesiq-viewport {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: #f8fafc;
    padding: 16px;
    scroll-behavior: smooth;
}

.wcfm-salesiq-viewport::-webkit-scrollbar {
    width: 5px;
}
.wcfm-salesiq-viewport::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.wcfm-tab-pane {
    display: none;
    flex-direction: column;
    animation: wcfmPaneFade 0.2s ease;
}

.wcfm-tab-pane.active {
    display: flex;
}

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

/* 4. Tarjeta Promocional / Banner Estilo SalesIQ */
.wcfm-salesiq-promo-card {
    background: linear-gradient(135deg, #e11d48 0%, #ea580c 55%, #f43f5e 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(225, 29, 72, 0.22);
}

.wcfm-promo-tag {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 6px;
}

.wcfm-promo-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.25 !important;
}

.wcfm-promo-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 12px 0;
    line-height: 1.35;
}

.wcfm-promo-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wcfm-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.wcfm-promo-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 12px;
    padding-top: 8px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    text-align: right;
}

/* 5. Secciones de la pestaña Inicio */
.wcfm-home-section {
    margin-bottom: 16px;
}

.wcfm-home-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.wcfm-home-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.4px;
    margin: 0;
}

.wcfm-link-see-all {
    background: none;
    border: none;
    color: #e11d48;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.wcfm-home-channel-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.wcfm-home-channel-card:hover {
    transform: translateY(-1px);
    border-color: #25D366;
}

.wcfm-home-channel-card .wcfm-channel-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wcfm-home-channel-card .wcfm-channel-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
}

.wcfm-home-channel-card .wcfm-channel-subtitle {
    font-size: 11px;
    color: #64748b;
}

.wcfm-home-channel-card .wcfm-channel-arrow {
    font-size: 18px;
    font-weight: 700;
    color: #94a3b8;
}

.wcfm-home-faq-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wcfm-home-faq-item {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.wcfm-home-faq-item:hover {
    background: #f1f5f9;
    transform: translateX(2px);
}

.wcfm-faq-preview-text {
    flex: 1;
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
}

.wcfm-faq-preview-arrow {
    color: #94a3b8;
    font-size: 16px;
    font-weight: 700;
}

/* 6. Pestaña de Chat y Header de Asesor */
.wcfm-chat-pane-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 10px;
}

.wcfm-pane-agent-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #64748b;
}

.wcfm-pane-agent-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wcfm-agent-team-name {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.wcfm-agent-status-tag {
    font-size: 11px;
    color: #15803d;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wcfm-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
}

.wcfm-chat-back-btn {
    background: #f1f5f9;
    border: none;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: background 0.15s ease;
}

.wcfm-chat-back-btn:hover {
    background: #e2e8f0;
}

.wcfm-visitor-thread {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
    padding: 6px 2px;
    margin-bottom: 10px;
}

.wcfm-bubble-sender {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 2px;
}

/* SalesIQ Pill Input Dock */
.wcfm-salesiq-input-dock {
    display: flex;
    gap: 8px;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 24px;
    padding: 4px 6px 4px 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.wcfm-salesiq-input-dock:focus-within {
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
}

.wcfm-salesiq-input-dock .wcfm-chat-textarea {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    resize: none !important;
    flex: 1 !important;
    min-height: 22px !important;
    max-height: 70px !important;
    padding: 4px 0 !important;
    color: #0f172a !important;
}

.wcfm-salesiq-input-dock .wcfm-submit-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    border-radius: 50% !important;
    background: #e11d48;
    color: #ffffff !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: transform 0.15s ease, background 0.15s ease !important;
}

.wcfm-salesiq-input-dock .wcfm-submit-btn:hover {
    transform: scale(1.06);
}

/* 7. Pestaña WhatsApp Completa */
.wcfm-wa-pane-wrap {
    padding: 16px 0;
    text-align: center;
}

.wcfm-wa-pane-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 24px 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wcfm-wa-pane-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.wcfm-wa-pane-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 4px 0 !important;
}

.wcfm-wa-pane-sub {
    font-size: 13px !important;
    color: #15803d !important;
    font-weight: 600 !important;
    margin: 0 0 10px 0 !important;
}

.wcfm-wa-pane-desc {
    font-size: 12.5px !important;
    color: #64748b !important;
    line-height: 1.4 !important;
    margin: 0 0 18px 0 !important;
    max-width: 280px;
}

.wcfm-wa-pane-cta-btn {
    background: #25D366;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    padding: 11px 24px;
    border-radius: 24px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wcfm-wa-pane-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* 8. Barra Inferior / Dock SalesIQ */
.wcfm-salesiq-dock-container {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.wcfm-salesiq-dock {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 6px 2px 6px;
}

.wcfm-dock-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none !important;
    border: none !important;
    padding: 6px 2px 2px 2px !important;
    cursor: pointer;
    color: #64748b;
    outline: none !important;
    transition: color 0.15s ease;
}

.wcfm-dock-item:hover {
    color: #0f172a;
}

.wcfm-dock-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 22px;
}

.wcfm-dock-label {
    font-size: 10.5px !important;
    font-weight: 600 !important;
    margin-top: 3px !important;
    line-height: 1 !important;
    white-space: nowrap;
}

.wcfm-dock-indicator {
    display: block;
    width: 0;
    height: 2.5px;
    border-radius: 2px;
    margin-top: 4px;
    background: transparent;
    transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
}

.wcfm-dock-item.active {
    color: #e11d48;
}

.wcfm-dock-item.active .wcfm-dock-label {
    font-weight: 700 !important;
}

.wcfm-dock-item.active .wcfm-dock-indicator {
    width: 22px;
    background: #e11d48;
}

.wcfm-salesiq-watermark {
    text-align: center;
    padding: 3px 0 6px 0;
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}

/* 9. Botón Flotante con Transformación a X Roja (Estilo SalesIQ) */
.wcfm-floating-btn .wcfm-icon-close {
    display: none !important;
}

.wcfm-floating-btn.wcfm-btn-is-open .wcfm-icon-default {
    display: none !important;
}

.wcfm-floating-btn.wcfm-btn-is-open .wcfm-icon-close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
}

.wcfm-floating-btn.wcfm-btn-is-open .wcfm-btn-icon-wrap {
    background: #e11d48 !important;
    background-color: #e11d48 !important;
    box-shadow: 0 6px 24px rgba(225, 29, 72, 0.48) !important;
    transform: rotate(90deg) !important;
    transition: transform 0.22s ease, background 0.22s ease !important;
}

/* 10. Estilos SalesIQ Operator Console - Árbol de categorías y panel de inteligencia */
.wcfm-salesiq-tree-sidebar {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    user-select: none;
}
.wcfm-tree-group-title {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    padding: 8px 14px 4px 14px;
    letter-spacing: 0.6px;
}
.wcfm-tree-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 14px;
    font-size: 12px;
    color: #475569;
    text-decoration: none;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}
.wcfm-tree-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.wcfm-tree-item.active {
    background: #e0f2fe;
    color: #0284c7;
    font-weight: 700;
    border-left-color: #0284c7;
}
.wcfm-tree-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    background: #e2e8f0;
    color: #475569;
}
.wcfm-tree-item.active .wcfm-tree-badge {
    background: #0284c7;
    color: #ffffff;
}
.wcfm-salesiq-visitor-card {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.wcfm-salesiq-visitor-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #86efac;
}
.wcfm-salesiq-meta-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 11.5px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}
.wcfm-salesiq-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.wcfm-salesiq-meta-label {
    color: #64748b;
    font-weight: 500;
}
.wcfm-salesiq-meta-val {
    color: #0f172a;
    font-weight: 600;
    text-align: right;
    word-break: break-all;
}
.wcfm-chat-date-banner {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}
.wcfm-chat-date-badge {
    font-size: 10.5px;
    color: #64748b;
    background: #e2e8f0;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
}
.wcfm-new-msg-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
    color: #f97316;
    font-size: 11px;
    font-weight: 700;
}
.wcfm-new-msg-divider::before,
.wcfm-new-msg-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #fdba74;
}
.wcfm-salesiq-accordion {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    margin-bottom: 8px;
}
.wcfm-salesiq-acc-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border: none;
    background: #ffffff;
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    text-align: left;
}
.wcfm-salesiq-acc-header:hover {
    background: #f8fafc;
}
.wcfm-salesiq-acc-body {
    padding: 12px;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
}






