/* ==========================================================================
   RELOADXPRESS 2.0 - ESTILOS EXTRA
   1. Control de Ofertas (ofx-*)
   2. Control Web / Mantenimiento (webctl-*)
   3. Responsividad móvil global
   4. Sin blur en modales
   ========================================================================== */

/* ---------- 1. CONTROL DE OFERTAS ---------- */
.ofx-header {
    background: linear-gradient(135deg, #ffffff 0%, #fffaf5 60%, #ffffff 100%);
    border: 1px solid rgba(255, 122, 0, 0.2);
    border-radius: 20px;
    padding: 22px 24px;
    margin-bottom: 16px;
    box-shadow: 0 8px 26px -12px rgba(255, 122, 0, 0.12);
}
.ofx-header-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.ofx-kicker {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255, 122, 0, 0.1); color: #ea580c; border: 1px solid rgba(255, 122, 0, 0.25);
    padding: 4px 12px; border-radius: 99px; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px;
    margin-bottom: 8px;
}
.ofx-title { font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif; font-size: 1.6rem; font-weight: 900; color: #0f172a; margin: 0 0 6px; letter-spacing: -0.4px; }
.ofx-desc { font-size: 0.88rem; color: #475569; margin: 0; max-width: 680px; line-height: 1.55; }
.ofx-desc s { color: #ef4444; }
.ofx-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.ofx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 42px; padding: 0 16px; border-radius: 11px; font-weight: 800; font-size: 0.86rem;
    cursor: pointer; border: 1px solid transparent; text-decoration: none; white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    font-family: inherit;
}
.ofx-btn i { font-size: 1.1rem; }
.ofx-btn:disabled { opacity: .6; cursor: wait; }
.ofx-btn-primary { background: linear-gradient(135deg, #ff7a00 0%, #ff334b 100%); color: #fff; box-shadow: 0 6px 18px rgba(255, 122, 0, 0.3); }
.ofx-btn-primary:hover { transform: translateY(-1px); }
.ofx-btn-ghost { background: #fff; color: #334155; border-color: #e2e8f0; }
.ofx-btn-ghost:hover { background: #f8fafc; }
.ofx-btn-danger { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.ofx-btn-sm { min-height: 40px; padding: 0 12px; font-size: 0.8rem; }

.ofx-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid #f1f5f9; }
.ofx-stat {
    display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #eef0f4;
    padding: 5px 12px; border-radius: 99px; font-size: 0.78rem;
}
.ofx-stat span { color: #64748b; font-weight: 600; }
.ofx-stat strong { color: #0f172a; font-weight: 800; }

.ofx-toolbar {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 14px 16px; margin-bottom: 16px;
    display: flex; flex-direction: column; gap: 12px;
}
.ofx-tabs { display: flex; gap: 4px; background: #f1f5f9; padding: 4px; border-radius: 12px; overflow-x: auto; scrollbar-width: none; }
.ofx-tabs::-webkit-scrollbar { display: none; }
.ofx-tab {
    flex: 1; min-width: max-content; border: 0; background: transparent; padding: 9px 12px; border-radius: 9px;
    font-weight: 800; font-size: 0.82rem; color: #64748b; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font-family: inherit;
}
.ofx-tab span { background: #e2e8f0; color: #475569; border-radius: 99px; padding: 1px 8px; font-size: 0.72rem; }
.ofx-tab.active { background: #fff; color: #ea580c; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08); }
.ofx-tab.active span { background: #ffedd5; color: #c2410c; }
.ofx-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.ofx-chips::-webkit-scrollbar { display: none; }
.ofx-chips .offer-filter-chip { padding: 6px 13px; font-size: 0.78rem; }
.ofx-toolbar-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ofx-search { position: relative; flex: 1; min-width: 200px; }
.ofx-search i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 1.15rem; }
.ofx-search input {
    width: 100%; height: 42px; padding: 0 14px 0 40px; background: #f8fafc; border: 1.5px solid #e2e8f0;
    border-radius: 11px; color: #0f172a; font-size: 0.9rem; font-weight: 600; box-sizing: border-box; outline: none;
}
.ofx-search input:focus { border-color: #ff7a00; background: #fff; box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.12); }

.ofx-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.ofx-empty { grid-column: 1 / -1; text-align: center; padding: 44px 16px; color: #64748b; background: #fff; border: 1px dashed #e2e8f0; border-radius: 16px; }
.ofx-empty i { font-size: 2.4rem; display: block; margin-bottom: 8px; }
.ofx-empty h3 { margin: 0 0 6px; color: #0f172a; font-size: 1.1rem; font-weight: 800; }
.ofx-empty p { margin: 0 0 14px; font-size: 0.86rem; }

.ofx-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 12px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03); transition: box-shadow .2s ease, border-color .2s ease;
}
.ofx-card:hover { border-color: #fed7aa; box-shadow: 0 8px 22px rgba(255, 122, 0, 0.1); }
.ofx-card.is-dim { background: #fafbfc; }
.ofx-card.is-dim .ofx-new { color: #94a3b8; }
.ofx-card-top { display: flex; align-items: center; gap: 10px; }
.ofx-card-top img { width: 38px; height: 38px; border-radius: 10px; object-fit: contain; border: 1px solid #eef0f4; background: #fff; padding: 2px; flex-shrink: 0; }
.ofx-card-title { flex: 1; min-width: 0; }
.ofx-card-title strong { display: block; color: #0f172a; font-weight: 800; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ofx-card-title span { font-size: 0.74rem; color: #64748b; font-weight: 600; }
.ofx-status { font-size: 0.66rem; font-weight: 800; padding: 3px 8px; border-radius: 99px; text-transform: uppercase; letter-spacing: .3px; flex-shrink: 0; }
.ofx-status.is-active { background: #dcfce7; color: #15803d; }
.ofx-status.is-paused { background: #e2e8f0; color: #475569; }
.ofx-status.is-expired { background: #fee2e2; color: #b91c1c; }
.ofx-card-prices { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; background: #fffaf5; border: 1px solid #ffedd5; border-radius: 12px; padding: 10px 12px; }
.ofx-old { text-decoration: line-through; color: #94a3b8; font-weight: 600; font-size: 0.82rem; }
.ofx-new { font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 900; color: #ea580c; line-height: 1.15; }
.ofx-usd { font-size: 0.74rem; color: #059669; font-weight: 700; }
.ofx-disc { display: inline-block; background: #ef4444; color: #fff; font-weight: 900; font-size: 0.85rem; padding: 3px 9px; border-radius: 8px; }
.ofx-save { font-size: 0.72rem; color: #059669; font-weight: 700; margin-top: 4px; }
.ofx-card-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.ofx-label-tag, .ofx-exp { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.ofx-label-tag { background: #fff7ed; color: #c2410c; border: 1px solid #ffedd5; }
.ofx-exp { background: #f1f5f9; color: #475569; }
.ofx-exp.is-past { background: #fef2f2; color: #b91c1c; }
.ofx-card-actions { display: flex; gap: 6px; }
.ofx-act {
    flex: 1; min-height: 38px; border-radius: 9px; border: 1px solid #e2e8f0; background: #fff; color: #334155;
    font-weight: 700; font-size: 0.8rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-family: inherit;
}
.ofx-act:hover { background: #f8fafc; }
.ofx-act.is-green { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.ofx-act.is-red { flex: 0 0 42px; background: #fef2f2; color: #dc2626; border-color: #fecaca; }

/* Modales de oferta (sin blur) */
.ofx-modal {
    position: fixed; inset: 0; z-index: 10000; background: rgba(15, 23, 42, 0.55);
    display: none; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box;
}
.ofx-modal.open { display: flex; }
.ofx-modal-box {
    width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff;
    border-radius: 18px; padding: 20px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4); box-sizing: border-box;
}
.ofx-modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid #f1f5f9; }
.ofx-modal-head h3 { margin: 0; font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 800; color: #0f172a; }
.ofx-modal-x { width: 36px; height: 36px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; cursor: pointer; font-size: 1.4rem; color: #64748b; display: inline-flex; align-items: center; justify-content: center; }
.ofx-form { display: flex; flex-direction: column; gap: 14px; }
.ofx-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ofx-field label { display: block; font-size: 0.72rem; font-weight: 800; color: #475569; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 5px; }
.ofx-field select, .ofx-field input[type=text], .ofx-field input[type=number], .ofx-field input[type=datetime-local] {
    width: 100%; height: 44px; padding: 0 12px; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 10px;
    color: #0f172a; font-size: 0.92rem; font-weight: 600; box-sizing: border-box; outline: none; font-family: inherit;
}
.ofx-field select:focus, .ofx-field input:focus { border-color: #ff7a00; box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.12); background: #fff; }
.ofx-field select:disabled { opacity: .6; }
.ofx-input-strong { background: #fff7ed !important; border: 2px solid #ff7a00 !important; color: #c2410c !important; font-weight: 800 !important; font-size: 1.05rem !important; }
.ofx-regular { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 14px; }
.ofx-regular small { display: block; font-size: 0.7rem; color: #94a3b8; }
.ofx-mini { font-size: 0.72rem; font-weight: 800; color: #64748b; text-transform: uppercase; }
.ofx-regular-bs { font-size: 1.1rem; font-weight: 800; color: #64748b; text-decoration: line-through; }
.ofx-regular-usd { font-size: 0.74rem; color: #94a3b8; font-weight: 600; }
.ofx-pct-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ofx-pct-row .chip-preset { font-family: inherit; }
.ofx-pct-input { display: inline-flex; align-items: center; gap: 4px; }
.ofx-pct-input input { width: 64px !important; height: 32px !important; padding: 0 8px !important; text-align: center; }
.ofx-pct-input span { font-weight: 800; color: #64748b; }
.ofx-warning { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 10px; padding: 8px 12px; font-size: 0.8rem; font-weight: 700; }
.ofx-disc-badge { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.25); padding: 2px 8px; border-radius: 6px; font-weight: 800; font-size: 0.76rem; }
.ofx-preview { background: #0f172a; padding: 14px; border-radius: 14px; border: 1px solid rgba(255, 122, 0, 0.3); }
.ofx-preview-title { font-size: 0.7rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; margin-bottom: 8px; }
.ofx-preview-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ofx-prev-badge { background: rgba(255, 122, 0, 0.18); color: #ff7a00; border: 1px solid rgba(255, 122, 0, 0.4); padding: 3px 8px; border-radius: 99px; font-weight: 800; font-size: 0.7rem; display: inline-flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.ofx-prev-name { font-weight: 700; color: #fff; font-size: 0.92rem; }
.ofx-prev-old { font-size: 0.8rem; color: #94a3b8; text-decoration: line-through; font-weight: 600; }
.ofx-prev-new { font-size: 1.25rem; font-weight: 900; color: #ff7a00; }
.ofx-modal-actions { display: flex; gap: 10px; padding-top: 14px; border-top: 1px solid #f1f5f9; }
.ofx-modal-actions .ofx-btn { flex: 1; min-height: 46px; }
.ofx-bulk-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ofx-check { display: inline-flex; align-items: center; gap: 6px; font-size: 0.84rem; font-weight: 700; color: #334155; cursor: pointer; }
.ofx-bulk-list { max-height: 300px; overflow-y: auto; border: 1px solid #e2e8f0; border-radius: 12px; }
.ofx-bulk-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #f1f5f9; cursor: pointer; font-size: 0.85rem; }
.ofx-bulk-item:last-child { border-bottom: 0; }
.ofx-bulk-item:hover { background: #fffaf5; }
.ofx-bulk-item input { width: 18px; height: 18px; accent-color: #ff7a00; flex-shrink: 0; }
.ofx-bulk-name { flex: 1; font-weight: 700; color: #0f172a; min-width: 0; }
.ofx-bulk-name em { color: #94a3b8; font-weight: 600; font-style: normal; }
.ofx-bulk-prices { text-align: right; white-space: nowrap; font-size: 0.8rem; }
.ofx-bulk-prices s { color: #94a3b8; }
.ofx-bulk-prices b { color: #ea580c; }

/* ---------- 2. CONTROL WEB ---------- */
.webctl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.webctl-card { position: relative; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 14px; overflow: hidden; transition: border-color .2s ease; }
.webctl-card.is-on { border-color: #fbbf24; background: #fffdf5; padding-top: 42px; }
.webctl-ribbon {
    position: absolute; top: 0; left: 0; right: 0; padding: 6px 10px; font-size: 0.72rem; font-weight: 900; text-transform: uppercase;
    background: repeating-linear-gradient(-45deg, #f59e0b 0 12px, #fbbf24 12px 24px); color: #1f2937;
    display: flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.webctl-top { display: flex; align-items: center; gap: 10px; }
.webctl-top img { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; border: 1px solid #eef0f4; background: #fff; flex-shrink: 0; }
.webctl-name { flex: 1; min-width: 0; }
.webctl-name strong { display: block; font-weight: 800; color: #0f172a; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.webctl-name span { font-size: 0.74rem; color: #64748b; font-weight: 600; }
.webctl-card.is-on .webctl-name span { color: #b45309; }
.webctl-switch { position: relative; width: 50px; height: 28px; flex-shrink: 0; cursor: pointer; }
.webctl-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.webctl-switch span { position: absolute; inset: 0; background: #cbd5e1; border-radius: 99px; transition: background .2s ease; }
.webctl-switch span::before { content: ''; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s ease; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.webctl-switch input:checked + span { background: #f59e0b; }
.webctl-switch input:checked + span::before { transform: translateX(22px); }
.webctl-switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(245, 158, 11, .35); }
.webctl-msg { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.webctl-msg input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid #fcd34d; background: #fff; border-radius: 10px; font-weight: 700; font-size: 0.86rem; box-sizing: border-box; outline: none; font-family: inherit; }
.webctl-msg input:focus { box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); }

/* ---------- 3. SIN BLUR EN MODALES / OVERLAYS ---------- */
.modal, .mobile-overlay, .swal2-container, #custom-confirm-modal, #custom-error-modal, #ff-price-modal, #offer-modal, #offer-bulk-modal, .ref-dup-overlay {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* ---------- 4. RESPONSIVIDAD MÓVIL GLOBAL ---------- */
html, body { max-width: 100%; overflow-x: hidden; }
img, video, canvas { max-width: 100%; }

@media (max-width: 768px) {
    /* Evita que cualquier bloque empuje el ancho de la página */
    .page, .page > *, .glass { max-width: 100%; box-sizing: border-box; }
    .page * { min-width: 0; }
    .page i.bx, .page i[class*="bx"], .page img, .page svg, .page input[type=checkbox], .page input[type=radio] { flex-shrink: 0; }
    .page .ofx-tab, .page .offer-filter-chip, .page .chip-preset { min-width: max-content; }
    .page .ofx-btn { white-space: normal; text-align: center; line-height: 1.2; }

    /* Tablas: desplazamiento horizontal dentro de su contenedor, no de la página */
    .page table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* Inputs sin zoom automático en iOS y a ancho completo */
    input, select, textarea { font-size: 16px !important; max-width: 100%; }
    .ofx-pct-input input { font-size: 14px !important; }

    /* Rejillas de formularios en línea → una columna */
    .page form [style*="grid-template-columns: 1fr 1fr"],
    .page form [style*="grid-template-columns:1fr 1fr"],
    .page form [style*="grid-template-columns: repeat(2"],
    .page form [style*="grid-template-columns: repeat(3"] { grid-template-columns: 1fr !important; }
    .page form [style*="display: flex"][style*="gap"]:not(button):not(label) { flex-wrap: wrap; }
    .page form .input-group[style*="flex: 1"] { flex: 1 1 100% !important; min-width: 0 !important; }

    /* Campos nunca más anchos que su tarjeta (selects con opciones largas) */
    .page form .input-group, .page form .ff-id-row, .page form .ff-player-card, .page form .form-row { max-width: 100% !important; align-self: stretch; }
    .page form select, .page form input:not([type=checkbox]):not([type=radio]), .page form textarea { max-width: 100% !important; text-overflow: ellipsis; }

    /* Botones táctiles */
    .page button, .page .btn, .page .btn-neon { min-height: 40px; }

    /* Modales centrados en pantalla, con margen alrededor */
    .modal { padding: 16px !important; align-items: center !important; justify-content: center !important; }
    .modal-content, .modal .modal-content {
        width: 100% !important; max-width: 100% !important; max-height: calc(100vh - 32px) !important; max-height: calc(100dvh - 32px) !important;
        border-radius: 18px !important; padding: 18px 16px !important; box-sizing: border-box; margin: auto;
    }
    .modal-content [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
    #ff-price-modal > div, #custom-confirm-modal > div, #custom-error-modal > div { max-width: 100% !important; width: 100% !important; box-sizing: border-box; }

    /* Swal */
    .swal2-popup { width: calc(100% - 24px) !important; padding: 18px 14px !important; }

    /* Toast dentro de la pantalla */
    .toast, .modern-toast { max-width: calc(100vw - 24px) !important; }

    /* Ofertas / Control Web */
    .ofx-header { padding: 16px; border-radius: 16px; }
    .ofx-title { font-size: 1.3rem; }
    .ofx-desc { font-size: 0.82rem; }
    .ofx-header-actions { width: 100%; }
    .ofx-header-actions .ofx-btn { flex: 1; }
    .ofx-toolbar { padding: 12px; }
    .ofx-toolbar-row .ofx-search { flex: 1 1 100%; }
    .ofx-toolbar-row .ofx-btn { flex: 1; }
    .ofx-list, .webctl-grid { grid-template-columns: 1fr; gap: 10px; }
    .ofx-modal { align-items: center; padding: 16px; }
    .ofx-modal-box { padding: 16px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); border-radius: 18px; }
    .ofx-grid-2 { grid-template-columns: 1fr; gap: 10px; }
    .ofx-stat { padding: 4px 10px; font-size: 0.74rem; }
}

@media (max-width: 400px) {
    .ofx-modal-actions { flex-direction: column-reverse; }
    .ofx-card-actions .ofx-act { font-size: 0.74rem; }
}

/* ---------- Tasa simbólica del catálogo (Control Web) ---------- */
.webctl-rate-card {
    background: #fff; border: 1px solid #fde68a; border-radius: 16px; padding: 16px; margin-bottom: 14px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.webctl-rate-info { display: flex; gap: 12px; align-items: flex-start; flex: 1 1 320px; }
.webctl-rate-icon { width: 44px; height: 44px; border-radius: 12px; background: #fef3c7; color: #d97706; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.webctl-rate-info strong { display: block; color: #0f172a; font-weight: 800; font-size: 0.98rem; }
.webctl-rate-info span { display: block; color: #64748b; font-size: 0.82rem; line-height: 1.45; margin-top: 2px; }
.webctl-rate-info small { display: block; color: #b45309; font-weight: 700; font-size: 0.76rem; margin-top: 4px; }
.webctl-rate-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.webctl-rate-input { display: flex; align-items: center; gap: 6px; background: #fffbeb; border: 1.5px solid #fcd34d; border-radius: 11px; padding: 0 10px; height: 44px; }
.webctl-rate-input span { font-weight: 800; color: #92400e; font-size: 0.85rem; white-space: nowrap; }
.webctl-rate-input input { width: 110px; border: 0; background: transparent; font-weight: 800; font-size: 1.05rem; color: #0f172a; outline: none; text-align: center; }
@media (max-width: 768px) {
    .webctl-rate-form { width: 100%; }
    .webctl-rate-input { flex: 1 1 100%; justify-content: center; }
    .webctl-rate-form .ofx-btn { flex: 1; }
}

/* ---------- Asistente de ofertas (3 pasos) ---------- */
.ofx-btn-lg { min-height: 48px; padding: 0 22px; font-size: 0.95rem; }
.ofw-box { max-width: 600px; }
.ofw-steps { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.ofw-steps span { font-size: 0.72rem; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: #f1f5f9; color: #94a3b8; }
.ofw-steps span.active { background: #ff7a00; color: #fff; }
.ofw-steps span.done { background: #ffedd5; color: #c2410c; }
.ofw-hint { margin: 0 0 12px; font-size: 0.92rem; font-weight: 700; color: #334155; }
.ofw-back { border: 0; background: none; color: #ea580c; font-weight: 800; font-size: 0.86rem; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; padding: 0; margin-bottom: 10px; font-family: inherit; }
.ofw-back i { font-size: 1.2rem; }

.ofw-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.ofw-game {
    border: 1.5px solid #e2e8f0; background: #fff; border-radius: 14px; padding: 12px 8px; cursor: pointer; font-family: inherit;
    display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; transition: border-color .15s ease, transform .15s ease;
}
.ofw-game:hover { border-color: #ff7a00; transform: translateY(-2px); }
.ofw-game img { width: 48px; height: 48px; border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid #f1f5f9; }
.ofw-game strong { font-size: 0.84rem; color: #0f172a; font-weight: 800; line-height: 1.2; }
.ofw-game span { font-size: 0.7rem; color: #64748b; font-weight: 600; }
.ofw-game span b { color: #ea580c; }

.ofw-pkg-tools { display: flex; gap: 8px; margin-bottom: 10px; }
.ofw-pkg-tools .ofx-search { flex: 1; }
.ofw-pkgs { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow-y: auto; padding-right: 2px; }
.ofw-pkg {
    display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; font-family: inherit;
    border: 1.5px solid #e2e8f0; background: #fff; border-radius: 12px; padding: 11px 12px; cursor: pointer; transition: border-color .12s ease, background .12s ease;
}
.ofw-pkg:hover { border-color: #fdba74; }
.ofw-pkg.is-sel { border-color: #ff7a00; background: #fff7ed; }
.ofw-pkg.is-off { opacity: .6; }
.ofw-check { width: 22px; height: 22px; border-radius: 7px; border: 2px solid #cbd5e1; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: transparent; font-size: 1rem; }
.ofw-pkg.is-sel .ofw-check { background: #ff7a00; border-color: #ff7a00; color: #fff; }
.ofw-pkg-name { flex: 1; min-width: 0; font-weight: 700; color: #0f172a; font-size: 0.9rem; }
.ofw-pkg-name em { font-style: normal; font-size: 0.68rem; font-weight: 800; padding: 1px 6px; border-radius: 99px; margin-left: 4px; white-space: nowrap; }
.ofw-tag-hot { background: #ffedd5; color: #c2410c; }
.ofw-tag-off { background: #f1f5f9; color: #64748b; }
.ofw-pkg-price { font-weight: 800; color: #475569; font-size: 0.86rem; white-space: nowrap; }

.ofw-footer { position: sticky; bottom: -20px; background: #fff; padding: 12px 0 2px; margin-top: 12px; border-top: 1px solid #f1f5f9; }
.ofw-footer .ofx-btn { width: 100%; min-height: 50px; font-size: 0.98rem; }
.ofw-footer .ofx-btn:disabled { background: #e2e8f0; color: #64748b; box-shadow: none; cursor: not-allowed; opacity: 1; }

.ofw-pcts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.ofw-pcts button {
    min-height: 50px; border-radius: 12px; border: 1.5px solid #fed7aa; background: #fff7ed; color: #c2410c;
    font-weight: 900; font-size: 1rem; cursor: pointer; font-family: inherit; transition: transform .12s ease;
}
.ofw-pcts button:hover { transform: translateY(-1px); }
.ofw-pcts button.active { background: linear-gradient(135deg, #ff7a00, #ff334b); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(255, 122, 0, .3); }
.ofw-custom { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ofw-custom label { font-size: 0.78rem; font-weight: 800; color: #64748b; }
.ofw-custom > input { width: 80px; height: 40px; border: 1px solid #cbd5e1; border-radius: 10px; text-align: center; font-weight: 800; font-size: 0.95rem; outline: none; background: #f8fafc; }
.ofw-exact { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ofw-exact-in { display: flex; align-items: center; gap: 4px; border: 1px solid #cbd5e1; background: #f8fafc; border-radius: 10px; padding: 0 10px; height: 40px; }
.ofw-exact-in span { font-weight: 800; color: #64748b; font-size: 0.85rem; }
.ofw-exact-in input { width: 90px; border: 0; background: transparent; outline: none; font-weight: 800; font-size: 0.95rem; }
.ofw-custom input:focus, .ofw-exact-in:focus-within { border-color: #ff7a00; box-shadow: 0 0 0 3px rgba(255, 122, 0, .12); }

.ofw-preview { margin-top: 14px; background: #0f172a; border-radius: 14px; padding: 12px 14px; max-height: 32vh; overflow-y: auto; }
.ofw-prev-title { font-size: 0.7rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; margin-bottom: 6px; }
.ofw-prev-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.ofw-prev-row:last-of-type { border-bottom: 0; }
.ofw-prev-name { color: #fff; font-weight: 700; font-size: 0.86rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ofw-prev-prices { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 0.84rem; }
.ofw-prev-prices s { color: #94a3b8; }
.ofw-prev-prices b { color: #ff7a00; font-size: 0.98rem; }
.ofw-prev-prices em { font-style: normal; background: #ef4444; color: #fff; font-weight: 800; font-size: 0.7rem; padding: 1px 6px; border-radius: 6px; }
.ofw-prev-row.is-bad b { color: #f87171; }
.ofw-more { margin-top: 12px; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 12px; }
.ofw-more summary { cursor: pointer; font-weight: 800; font-size: 0.86rem; color: #475569; display: flex; align-items: center; gap: 6px; list-style: none; }
.ofw-more summary::-webkit-details-marker { display: none; }
.chip-preset.is-on { background: #ff7a00; color: #fff; border-color: #ff7a00; }

@media (max-width: 768px) {
    .ofw-games { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .ofw-game { padding: 10px 4px; }
    .ofw-game img { width: 40px; height: 40px; }
    .ofw-pcts { grid-template-columns: repeat(3, 1fr); }
    .ofw-exact { margin-left: 0; width: 100%; }
    .ofw-exact-in { flex: 1; }
    .ofw-exact-in input { width: 100%; }
    .ofw-footer { bottom: -16px; }
    .ofw-pkgs { max-height: 50vh; }
}
