/* Sorteos Pro frontend - RC2 limpio */
.sorteos-pro-public {
    --sp-primary: #14532d;
    --sp-primary-2: #16a34a;
    --sp-accent: #2563eb;
    --sp-dark: #111827;
    --sp-muted: #64748b;
    --sp-border: #e5e7eb;
    --sp-soft: #f8fafc;
    --sp-success: #16a34a;
    --sp-warning: #d97706;
    --sp-radius: 18px;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px;
    color: var(--sp-dark);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    
}
.sorteos-pro-public.sp-width-full { max-width: none; padding-left: 0; padding-right: 0; }
.sorteos-pro-public *,
.sorteos-pro-public *::before,
.sorteos-pro-public *::after { box-sizing: border-box; }
.sorteos-pro-public img,
.sorteos-pro-public video,
.sorteos-pro-public iframe { max-width: 100%; }

.sp-hero,
.sp-progress-card,
.sp-numbers-card,
.sp-summary-card,
.sp-media-section,
.sp-terms-section {
    width: 100%;
    margin: 0 0 18px;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}
.sp-progress-card,
.sp-numbers-card,
.sp-summary-card,
.sp-media-section,
.sp-terms-section { padding: 20px; }

/* Hero opcional */
.sp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: 24px;
    align-items: center;
    padding: 28px;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at top left, #22c55e 0, #14532d 34%, #0f172a 100%);
}
.sp-hero h1 { margin: 0 0 12px; color: #ffffff; font-size: clamp(32px, 5vw, 56px); line-height: 1; letter-spacing: -.045em; }
.sp-kicker { display: inline-flex; margin-bottom: 12px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.14); font-weight: 800; }
.sp-subtitle,
.sp-prize,
.sp-description { color: rgba(255,255,255,.94); }
.sp-prize { font-size: clamp(20px, 3vw, 30px); font-weight: 900; margin: 0 0 10px; }
.sp-description { font-size: 16px; line-height: 1.55; }
.sp-hero-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.sp-hero-meta div { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.12); border-radius: 14px; padding: 12px; }
.sp-hero-meta span { display:block; color: rgba(255,255,255,.78); font-size: 12px; }
.sp-hero-meta strong { display:block; color:#fff; font-size: 18px; }
.sp-hero-media img,
.sp-hero-placeholder { width: 100%; border-radius: 18px; min-height: 240px; object-fit: cover; background: rgba(255,255,255,.12); }
.sp-hero-placeholder { display:grid; place-items:center; padding: 18px; text-align:center; }
.sp-hero-placeholder span,
.sp-hero-placeholder strong { display:block; color:#fff; }

/* Encabezados */
.sp-section-head,
.sp-summary-head,
.sp-progress-top { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:16px; }
.sp-section-head h2,
.sp-summary-head h2 { margin:0 0 4px; color:var(--sp-dark); font-size: clamp(23px, 3vw, 30px); line-height:1.12; letter-spacing:-.035em; font-weight:900; }
.sp-section-head p,
.sp-summary-head p,
.sp-progress-top p { margin:0; color:var(--sp-muted); line-height:1.45; }

/* Progreso / estado */
.sp-progress-top strong { display:block; font-size:18px; color:var(--sp-dark); }
.sp-progress-percent { display:inline-flex; align-items:center; justify-content:center; min-width:56px; height:40px; border-radius:999px; color:#14532d; background:#dcfce7; font-weight:900; }
.sp-progress-bar { height: 14px; background: #eef2f7; border-radius: 999px; overflow:hidden; }
.sp-progress-bar span { display:block; height:100%; background: linear-gradient(90deg, var(--sp-primary-2), var(--sp-primary)); border-radius:inherit; }
.sp-progress-stats { display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; color:var(--sp-muted); font-size:14px; }
.sp-progress-stats-clean { justify-content:flex-start; }
.sp-progress-stats span { border:1px solid var(--sp-border); border-radius:999px; background:var(--sp-soft); padding:7px 10px; }
.sp-progress-stats strong { color:var(--sp-dark); }

/* Selector */
.sp-toolbar { display:grid; grid-template-columns:minmax(0, 1fr) 160px auto; gap:10px; margin-bottom:14px; }
.sp-toolbar input,
.sp-toolbar select,
.sp-form-grid input,
.sp-file-label input[type="file"] { width:100%; min-width:0; border:1px solid var(--sp-border); border-radius:12px; background:#fff; color:var(--sp-dark); padding:10px 12px; min-height:44px; font-size:15px; }
.sp-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; border:1px solid transparent; border-radius:12px; background:var(--sp-primary); color:#fff; padding:10px 16px; font-weight:850; cursor:pointer; text-decoration:none; transition: transform .14s ease, box-shadow .14s ease, opacity .14s ease; }
.sp-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(15,23,42,.12); }
.sp-button:disabled { opacity:.48; cursor:not-allowed; transform:none; box-shadow:none; }

.sp-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap:8px; min-height:140px; }
.sorteos-pro-public.sp-width-full .sp-grid { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); }
.sp-number { appearance:none; min-width:0; min-height:44px; border:1px solid var(--sp-border); border-radius:12px; background:#fff; color:var(--sp-dark); padding:9px 5px; font-size:14px; line-height:1; font-weight:900; cursor:default; }
.sp-status-available { cursor:pointer; border-color:#bbf7d0; background:#f0fdf4; }
.sp-status-available:hover { border-color:#22c55e; box-shadow:0 6px 16px rgba(34,197,94,.16); }
.sp-status-reserved,
.sp-status-pending,
.sp-status-pending_review,
.sp-status-pending_payment { background:#fef9c3; border-color:#fde68a; color:#854d0e; }
.sp-status-sold { background:#f3f4f6; color:#6b7280; text-decoration:line-through; }
.sp-status-blocked { background:#fee2e2; color:#991b1b; border-color:#fecaca; }
.sp-number.sp-selected { background:#2563eb; border-color:#1d4ed8; color:#fff; box-shadow:0 8px 18px rgba(37,99,235,.22); }
.sp-loading,
.sp-empty { grid-column:1 / -1; padding:18px; border:1px dashed var(--sp-border); border-radius:14px; color:var(--sp-muted); text-align:center; }
.sp-pagination { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:14px; }
.sp-page-info { color:var(--sp-muted); font-size:14px; text-align:center; }

/* Resumen */
.sp-summary-card { padding:20px; }
.sp-selected-row { display:grid; grid-template-columns:minmax(0, 1fr); gap:10px; justify-items:center; margin-bottom:14px; }
.sp-selected-list { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; width:100%; min-width:0; padding:12px; border:1px solid var(--sp-border); border-radius:14px; background:var(--sp-soft); color:var(--sp-muted); overflow-wrap:anywhere; }
.sp-selected-pill { display:inline-flex; align-items:center; justify-content:center; max-width:100%; border-radius:999px; background:#e0f2fe; color:#075985; padding:8px 11px; font-size:16px; line-height:1.2; font-weight:900; overflow-wrap:anywhere; }
.sp-clear-selection { min-height:44px; padding:9px 16px; background:#fff !important; color:#334155 !important; border-color:#cbd5e1 !important; box-shadow:none !important; font-size:16px; }
.sp-clear-selection:hover:not(:disabled) { background:#f8fafc !important; border-color:#334155 !important; }
.sp-promo-card { margin:0 0 14px; padding:12px 14px; border:1px solid #86efac; border-radius:14px; background:#f0fdf4; color:#166534; text-align:center; }
.sp-promo-card[hidden] { display:none !important; }
.sp-promo-card > span { display:block; margin-bottom:4px; font-size:16px; font-weight:800; }
.sp-promo-card strong { display:block; font-size:16px; line-height:1.4; overflow-wrap:anywhere; }
.sp-selected-saving, .sp-selected-promo { color:#166534 !important; font-weight:900; }
.sp-summary-actions { display:grid; grid-template-columns:1fr; }
.sp-buy-button { width:100%; min-height:52px; border-radius:15px; background:linear-gradient(135deg, #16a34a, #15803d); font-size:16px; }
.sp-buy-button span,
.sp-buy-button strong { display:inline-block; color:#fff; }
.sp-selection-message { min-height:0; margin-top:10px; color:var(--sp-muted); }
.sp-selection-message.is-ok { color:#166534; }
.sp-selection-message.is-error { color:#991b1b; }

/* Checkout */
.sp-checkout-panel { margin-top:16px; border:1px solid #bbf7d0; border-radius:18px; background:linear-gradient(135deg, #ecfdf5, #ffffff); padding:16px; }
.sp-payment-placeholder h3 { margin:0 0 6px; font-size:22px; color:var(--sp-dark); }
.sp-payment-placeholder p { margin:0 0 12px; color:var(--sp-muted); line-height:1.45; }
.sp-payment-methods { display:grid; grid-template-columns:repeat(auto-fit, minmax(180px, 1fr)); gap:10px; margin:14px 0; }
.sp-payment-methods-single { grid-template-columns:1fr; }
.sp-payment-method { appearance:none; width:100%; max-width:100%; border:1px solid #cbd5e1; border-radius:15px; background:#ffffff; color:#111827; padding:13px; text-align:left; cursor:default; box-shadow:none; }
.sp-payment-method strong { display:block; font-size:16px; color:var(--sp-dark); }
.sp-payment-method span { display:block; margin-top:3px; color:#475569; font-size:12px; line-height:1.35; }
.sp-payment-method.is-active, .sp-payment-method-fixed { border-color:#cbd5e1; background:#ffffff; color:#111827; box-shadow:0 6px 16px rgba(15,23,42,.05); }
.sp-payment-method:disabled { opacity:.55; cursor:not-allowed; }
.sp-form-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; }
.sp-form-grid label,
.sp-file-label { display:block; min-width:0; }
.sp-form-grid label span,
.sp-file-label span { display:block; margin-bottom:5px; color:#334155; font-size:13px; font-weight:800; }
.sp-bank-transfer-panel { margin:15px 0; }
.sp-bank-transfer-panel h4 { margin:0 0 6px; color:var(--sp-dark); font-size:18px; }
.sp-bank-box { display:grid; gap:8px; margin:10px 0; }
.sp-bank-box p { display:grid; grid-template-columns:90px minmax(0,1fr) auto; align-items:center; gap:8px; margin:0; padding:10px; border:1px solid var(--sp-border); border-radius:12px; background:#fff; }
.sp-bank-box span { color:var(--sp-muted); font-size:12px; font-weight:800; }
.sp-bank-box strong { min-width:0; color:var(--sp-dark); overflow-wrap:anywhere; }
.sp-copy-btn { border:1px solid #94a3b8; background:#fff; color:#0f172a; border-radius:999px; padding:6px 10px; font-size:12px; font-weight:800; cursor:pointer; }
.sp-file-label { margin-top:10px; }
.sp-file-label small { display:block; margin-top:5px; color:var(--sp-muted); font-size:12px; }
.sp-check { display:flex; align-items:flex-start; gap:8px; margin:10px 0; color:#334155; font-size:14px; line-height:1.4; }
.sp-check input { margin-top:3px; flex:0 0 auto; }
.sp-legal { margin:10px 0; border:1px solid var(--sp-border); border-radius:12px; background:#fff; padding:10px; }
.sp-submit-checkout { width:100%; margin-top:10px; background:var(--sp-primary); }
.sp-alert { border:1px solid var(--sp-border); border-radius:12px; background:#fff; padding:10px; color:var(--sp-dark); }
.sp-alert-warning { background:#fffbeb; border-color:#f59e0b; color:#78350f; }
.sp-alert-error { background:#fef2f2; border-color:#fecaca; color:#991b1b; }


/* Estabilidad responsive / producción */
.sorteos-pro-public,
.sorteos-pro-public section,
.sorteos-pro-public div,
.sorteos-pro-public form,
.sorteos-pro-public label,
.sorteos-pro-public input,
.sorteos-pro-public select,
.sorteos-pro-public textarea,
.sorteos-pro-public button { max-width:100%; }
.sorteos-pro-public input,
.sorteos-pro-public select,
.sorteos-pro-public textarea { width:100%; min-width:0; overflow-wrap:anywhere; }
.sorteos-pro-public button { min-width:0; white-space:normal; }
.sorteos-pro-public input[type="checkbox"],
.sorteos-pro-public input[type="radio"] { width:auto; }
.sorteos-pro-public input[type="file"] { display:block; width:100%; max-width:100%; min-width:0; padding:10px; border:1px solid var(--sp-border); border-radius:12px; background:#ffffff; color:#111827; font-size:14px; }
.sp-alert-ok { background:#ecfdf5; border-color:#bbf7d0; color:#166534; }
.sp-submit-checkout:disabled,
.sp-buy-button:disabled { opacity:.72; cursor:wait; }

/* Secciones secundarias */
.sp-gallery { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:10px; }
.sp-gallery img { width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:14px; }
.sp-video-box iframe,
.sp-video-box video { width:100%; aspect-ratio:16/9; border:0; border-radius:16px; background:#0f172a; }
.sp-terms-section details { width:100%; }
.sp-terms-section summary { cursor:pointer; font-weight:900; }

/* Mobile 390px audit */
@media (max-width: 720px) {
    .sorteos-pro-public { width:100%; max-width:100%; padding:10px;  }
    .sorteos-pro-public.sp-width-full { padding-left:0; padding-right:0; }
    .sp-hero,
    .sp-progress-card,
    .sp-numbers-card,
    .sp-summary-card,
    .sp-media-section,
    .sp-terms-section { border-radius:16px; margin-bottom:12px; }
    .sp-progress-card,
    .sp-numbers-card,
    .sp-summary-card,
    .sp-media-section,
    .sp-terms-section { padding:14px; }
    .sp-hero { grid-template-columns:1fr; padding:18px; }
    .sp-hero-meta { grid-template-columns:1fr; }
    .sp-section-head,
    .sp-summary-head,
    .sp-progress-top { display:grid; grid-template-columns:1fr; gap:8px; margin-bottom:12px; }
    .sp-toolbar { grid-template-columns:1fr; gap:8px; }
    .sp-toolbar input,
    .sp-toolbar select,
    .sp-toolbar button { width:100%; }
    .sp-grid,
    .sorteos-pro-public.sp-width-full .sp-grid { grid-template-columns:repeat(auto-fill, minmax(48px, 1fr)); gap:6px; }
    .sp-number { min-height:40px; padding:7px 3px; font-size:12px; border-radius:10px; }
    .sp-pagination { display:grid; grid-template-columns:1fr; gap:8px; }
    .sp-pagination .sp-button { width:100%; }
    .sp-clear-selection { width:100%; }
    .sp-buy-button { min-height:48px; flex-direction:column; gap:2px; font-size:15px; }
    .sp-checkout-panel { padding:12px; border-radius:16px; }
    .sp-payment-placeholder h3 { font-size:19px; }
    .sp-payment-placeholder p { font-size:13px; }
    .sp-payment-methods,
    .sp-form-grid { grid-template-columns:1fr; gap:8px; }
    .sp-payment-method { padding:11px; }
    .sp-payment-method strong { font-size:15px; }
    .sp-bank-box p { grid-template-columns:1fr; gap:5px; align-items:start; overflow:hidden; }
    .sp-copy-btn { width:100%; }
    .sp-file-label input[type="file"] { font-size:13px; padding:9px; }
    .sp-gallery { grid-template-columns:1fr; }
}

@media (max-width: 390px) {
    .sorteos-pro-public { padding:8px; }
    .sp-grid,
    .sorteos-pro-public.sp-width-full .sp-grid { grid-template-columns:repeat(auto-fill, minmax(44px, 1fr)); }
    .sp-number { font-size:11px; min-height:38px; }
}

/* Checkout success confirmation */
.sorteos-pro-public .sp-post-submit-confirmation,
.sorteos-pro-public .sp-confirmation-card {
    max-width: 100%;
    box-sizing: border-box;
}

.sorteos-pro-public .sp-confirmation-card {
    margin: 18px 0 0;
    padding: 24px;
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    outline: none;
}

.sorteos-pro-public .sp-confirmation-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 24px;
}

.sorteos-pro-public .sp-confirmation-card h3 {
    margin: 0 0 8px;
    color: #166534;
    font-size: clamp(1.35rem, 4vw, 2rem);
    line-height: 1.15;
}

.sorteos-pro-public .sp-confirmation-card p {
    margin: 0 0 10px;
    color: #374151;
    line-height: 1.55;
}

.sorteos-pro-public .sp-confirmation-lead {
    font-weight: 800;
    color: #1f2937 !important;
}

.sorteos-pro-public .sp-confirmation-summary {
    margin: 18px 0;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

.sorteos-pro-public .sp-confirmation-summary h4 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 1.05rem;
}

.sorteos-pro-public .sp-confirmation-summary dl {
    margin: 0;
    display: grid;
    gap: 10px;
}

.sorteos-pro-public .sp-confirmation-summary dl > div {
    display: grid;
    grid-template-columns: minmax(120px, 0.8fr) 1.2fr;
    gap: 10px;
    align-items: start;
}

.sorteos-pro-public .sp-confirmation-summary dt {
    color: #6b7280;
    font-weight: 700;
}

.sorteos-pro-public .sp-confirmation-summary dd {
    margin: 0;
    color: #111827;
    word-break: break-word;
}

.sorteos-pro-public .sp-confirmation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.sorteos-pro-public .sp-confirmation-actions .sp-button {
    flex: 1 1 180px;
    min-width: 0;
}

@media (max-width: 480px) {
    .sorteos-pro-public .sp-confirmation-card {
        padding: 18px;
        border-radius: 16px;
    }
    .sorteos-pro-public .sp-confirmation-summary {
        padding: 14px;
    }
    .sorteos-pro-public .sp-confirmation-summary dl > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }
    .sorteos-pro-public .sp-confirmation-actions {
        flex-direction: column;
    }
    .sorteos-pro-public .sp-confirmation-actions .sp-button {
        width: 100%;
    }
}

/* RC producción: comprobante, contraste de estados y estabilidad mobile */
.sorteos-pro-public {
    max-width: min(1180px, 100%) !important;
    
}
.sorteos-pro-public.sp-width-full {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    
}
.sorteos-pro-public .sp-progress-card,
.sorteos-pro-public .sp-numbers-card,
.sorteos-pro-public .sp-summary-card,
.sorteos-pro-public .sp-checkout-panel,
.sorteos-pro-public .sp-bank-transfer-panel,
.sorteos-pro-public .sp-payment-placeholder,
.sorteos-pro-public .sp-receipt-upload-card {
    max-width: 100% !important;
    overflow-wrap: anywhere;
}
.sorteos-pro-public input,
.sorteos-pro-public select,
.sorteos-pro-public textarea {
    font-size: 16px !important;
}
.sorteos-pro-public .sp-payment-methods-single {
    display: block !important;
    width: 100% !important;
}
.sorteos-pro-public .sp-payment-method,
.sorteos-pro-public .sp-payment-method.is-active,
.sorteos-pro-public .sp-payment-method-fixed {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    border: 1px solid #d1d5db !important;
    background: #ffffff !important;
    color: #111827 !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .06) !important;
    cursor: default !important;
}
.sorteos-pro-public .sp-payment-method strong {
    color: #111827 !important;
    font-size: 18px !important;
}
.sorteos-pro-public .sp-payment-method span {
    color: #475569 !important;
    font-size: 14px !important;
}
.sorteos-pro-public .sp-bank-transfer-panel {
    border: 1px solid #bbf7d0;
    border-radius: 18px;
    background: #f0fdf4;
    padding: 16px;
}
.sorteos-pro-public .sp-bank-transfer-panel h4,
.sorteos-pro-public .sp-bank-transfer-panel > p {
    text-align: center;
}
.sorteos-pro-public .sp-bank-box p {
    grid-template-columns: 110px minmax(0, 1fr) auto;
    align-items: center;
}
.sorteos-pro-public .sp-copy-btn {
    white-space: nowrap;
}
.sorteos-pro-public .sp-receipt-upload-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    margin-top: 16px;
    padding: 16px;
    border: 2px dashed #22c55e;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(22, 163, 74, .10);
}
.sorteos-pro-public .sp-receipt-upload-card.has-error {
    border-color: #ef4444;
    background: #fef2f2;
}
.sorteos-pro-public .sp-receipt-upload-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #dcfce7;
    font-size: 23px;
}
.sorteos-pro-public .sp-receipt-upload-copy h4 {
    margin: 0 0 5px !important;
    color: #111827 !important;
    font-size: 19px !important;
    line-height: 1.2;
}
.sorteos-pro-public .sp-receipt-upload-copy p {
    margin: 0 !important;
    color: #475569 !important;
    font-size: 14px !important;
}
.sorteos-pro-public .sp-file-label-card {
    grid-column: 1 / -1;
    margin-top: 2px;
}
.sorteos-pro-public .sp-file-label-card input[type="file"] {
    position: absolute;
    width: 1px !important;
    height: 1px;
    padding: 0 !important;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
.sorteos-pro-public .sp-file-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin: 0 0 8px !important;
    border-radius: 14px;
    background: #14532d;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    cursor: pointer;
}
.sorteos-pro-public .sp-file-name {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    font-size: 14px;
    word-break: break-word;
}
.sorteos-pro-public .sp-file-name.is-error {
    border-color: #fecaca;
    background: #fff1f2;
    color: #991b1b;
}
.sorteos-pro-public .sp-status-available { background: #f0fdf4 !important; color: #166534 !important; border-color: #86efac !important; }
.sorteos-pro-public .sp-status-reserved,
.sorteos-pro-public .sp-status-pending,
.sorteos-pro-public .sp-status-pending_review,
.sorteos-pro-public .sp-status-pending_payment { background: #fffbeb !important; color: #92400e !important; border-color: #fbbf24 !important; }
.sorteos-pro-public .sp-status-sold { background: #fee2e2 !important; color: #991b1b !important; border-color: #f87171 !important; text-decoration: line-through; }
.sorteos-pro-public .sp-status-blocked { background: #111827 !important; color: #ffffff !important; border-color: #020617 !important; }
.sorteos-pro-public .sp-selected-saving {
    color: #16a34a !important;
}
.sorteos-pro-public .sp-selected-list,
.sorteos-pro-public .sp-bank-box,
.sorteos-pro-public .sp-bank-box p,
.sorteos-pro-public .sp-pagination,
.sorteos-pro-public .sp-toolbar {
    min-width: 0 !important;
}

@media (max-width: 720px) {
    .sorteos-pro-public,
    .sorteos-pro-public.sp-width-full {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        
    }
    .sorteos-pro-public .sp-bank-transfer-panel,
    .sorteos-pro-public .sp-receipt-upload-card {
        padding: 12px;
        border-radius: 16px;
    }
    .sorteos-pro-public .sp-bank-box p {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    .sorteos-pro-public .sp-copy-btn {
        width: 100%;
        min-height: 40px;
    }
    .sorteos-pro-public .sp-receipt-upload-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .sorteos-pro-public .sp-receipt-upload-icon {
        margin: 0 auto;
    }
    .sorteos-pro-public .sp-file-button {
        min-height: 50px;
    }
    .sorteos-pro-public .sp-pagination {
        width: 100%;
    }
}

/* RC correctiva: ancho controlado y estado seleccionado restaurado */
.sorteos-pro-public,
.sorteos-pro-public.sp-width-full {
    width: 100% !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    
}
.sorteos-pro-public .sp-number.sp-status-available {
    background: #f0fdf4 !important;
    color: #166534 !important;
    border-color: #86efac !important;
    cursor: pointer !important;
}
.sorteos-pro-public .sp-number.sp-selected,
.sorteos-pro-public .sp-number.sp-status-available.sp-selected,
.sorteos-pro-public button.sp-number.sp-selected {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #1d4ed8 !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .25) !important;
    transform: translateY(-1px);
}
.sorteos-pro-public .sp-number.sp-status-sold {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border-color: #f87171 !important;
    text-decoration: line-through !important;
    cursor: not-allowed !important;
}
.sorteos-pro-public .sp-number.sp-status-reserved,
.sorteos-pro-public .sp-number.sp-status-pending,
.sorteos-pro-public .sp-number.sp-status-pending_review,
.sorteos-pro-public .sp-number.sp-status-pending_payment {
    background: #fffbeb !important;
    color: #92400e !important;
    border-color: #f59e0b !important;
    cursor: not-allowed !important;
}
.sorteos-pro-public .sp-number.sp-status-blocked {
    background: #111827 !important;
    color: #ffffff !important;
    border-color: #020617 !important;
    cursor: not-allowed !important;
}
@media (max-width: 720px) {
    .sorteos-pro-public,
    .sorteos-pro-public.sp-width-full {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        
    }
}


/* v1.6.9 estabilidad: contenedor controlado y estados visuales consistentes */
.sorteos-pro-public,
.sorteos-pro-public.sp-width-full {
    width: 100% !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
}
.sorteos-pro-public *,
.sorteos-pro-public *::before,
.sorteos-pro-public *::after {
    box-sizing: border-box !important;
}
.sorteos-pro-public section,
.sorteos-pro-public form,
.sorteos-pro-public .sp-grid,
.sorteos-pro-public .sp-toolbar,
.sorteos-pro-public .sp-form-grid,
.sorteos-pro-public .sp-bank-box,
.sorteos-pro-public .sp-bank-box p,
.sorteos-pro-public .sp-pagination,
.sorteos-pro-public .sp-selected-row {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.sorteos-pro-public input,
.sorteos-pro-public select,
.sorteos-pro-public textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 16px !important;
}
.sorteos-pro-public button {
    max-width: 100%;
    min-width: 0;
}
.sorteos-pro-public .sp-number.sp-status-available {
    background: #f0fdf4 !important;
    color: #166534 !important;
    border-color: #86efac !important;
    cursor: pointer !important;
}
.sorteos-pro-public .sp-number.sp-selected,
.sorteos-pro-public .sp-number.sp-status-available.sp-selected,
.sorteos-pro-public button.sp-number.sp-selected {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #1d4ed8 !important;
    box-shadow: 0 8px 18px rgba(37,99,235,.25) !important;
    transform: translateY(-1px);
}
.sorteos-pro-public .sp-number.sp-status-sold {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border-color: #f87171 !important;
    text-decoration: line-through !important;
    cursor: not-allowed !important;
}
.sorteos-pro-public .sp-number.sp-status-pending,
.sorteos-pro-public .sp-number.sp-status-pending_review,
.sorteos-pro-public .sp-number.sp-status-pending_payment,
.sorteos-pro-public .sp-number.sp-status-reserved {
    background: #fffbeb !important;
    color: #92400e !important;
    border-color: #f59e0b !important;
    cursor: not-allowed !important;
}
.sorteos-pro-public .sp-number.sp-status-blocked {
    background: #111827 !important;
    color: #ffffff !important;
    border-color: #020617 !important;
    cursor: not-allowed !important;
}
@media (max-width: 720px) {
    .sorteos-pro-public,
    .sorteos-pro-public.sp-width-full {
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .sorteos-pro-public .sp-grid {
        grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)) !important;
    }
    .sorteos-pro-public .sp-bank-box p {
        grid-template-columns: 1fr !important;
    }
}

/* v1.6.10 estabilización final: mobile sin overflow real, no solo oculto */
.sorteos-pro-public {
    overflow-wrap: anywhere;
    word-break: normal;
}
.sorteos-pro-public .sp-progress-card,
.sorteos-pro-public .sp-numbers-card,
.sorteos-pro-public .sp-summary-card,
.sorteos-pro-public .sp-media-section,
.sorteos-pro-public .sp-terms-section,
.sorteos-pro-public .sp-payment-placeholder,
.sorteos-pro-public .sp-bank-transfer-panel,
.sorteos-pro-public .sp-receipt-upload-card {
    max-width: 100%;
    min-width: 0;
}
.sorteos-pro-public .sp-bank-box strong,
.sorteos-pro-public .sp-selected-pill,
.sorteos-pro-public .sp-page-info,
.sorteos-pro-public .sp-alert,
.sorteos-pro-public .sp-confirmation-card {
    overflow-wrap: anywhere;
    word-break: break-word;
}
.sorteos-pro-public .sp-file-label-card,
.sorteos-pro-public .sp-file-button,
.sorteos-pro-public .sp-submit-checkout,
.sorteos-pro-public .sp-buy-button {
    width: 100%;
}
.sorteos-pro-public .sp-file-label input[type="file"] {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}
.sorteos-pro-public .sp-file-name.is-error,
.sorteos-pro-public .sp-receipt-upload-card.has-error .sp-file-button {
    color: #991b1b;
    border-color: #ef4444;
}
@media (max-width: 480px) {
    .sorteos-pro-public,
    .sorteos-pro-public.sp-width-full {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    .sorteos-pro-public .sp-progress-card,
    .sorteos-pro-public .sp-numbers-card,
    .sorteos-pro-public .sp-summary-card,
    .sorteos-pro-public .sp-terms-section {
        padding: 12px !important;
        border-radius: 14px !important;
    }
    .sorteos-pro-public .sp-section-head,
    .sorteos-pro-public .sp-summary-head,
    .sorteos-pro-public .sp-progress-top,
    .sorteos-pro-public .sp-selected-row,
    .sorteos-pro-public .sp-pagination {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        justify-items: stretch !important;
    }
    .sorteos-pro-public .sp-toolbar,
    .sorteos-pro-public .sp-form-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .sorteos-pro-public .sp-progress-stats {
        justify-content: flex-start !important;
    }
    .sorteos-pro-public .sp-prev,
    .sorteos-pro-public .sp-next,
    .sorteos-pro-public .sp-search-button,
    .sorteos-pro-public .sp-clear-selection {
        width: 100%;
    }
    .sorteos-pro-public .sp-grid {
        grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)) !important;
        gap: 6px !important;
    }
    .sorteos-pro-public .sp-number {
        min-height: 42px !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
        font-size: 13px !important;
    }
}

/* v1.7.0 Production Stable: contención real de ancho en mobile sin ocultar el bug globalmente */
.sorteos-pro-public,
.sorteos-pro-public * {
    box-sizing: border-box;
}
.sorteos-pro-public {
    inline-size: 100%;
    max-inline-size: 100%;
    min-inline-size: 0;
    margin-inline: auto;
    overflow-wrap: anywhere;
}
.sorteos-pro-public img,
.sorteos-pro-public video,
.sorteos-pro-public iframe,
.sorteos-pro-public table,
.sorteos-pro-public input,
.sorteos-pro-public select,
.sorteos-pro-public textarea,
.sorteos-pro-public button {
    max-inline-size: 100%;
}
.sorteos-pro-public .sp-toolbar,
.sorteos-pro-public .sp-form-grid,
.sorteos-pro-public .sp-progress-stats,
.sorteos-pro-public .sp-payment-methods,
.sorteos-pro-public .sp-confirmation-summary dl {
    min-inline-size: 0;
}
.sorteos-pro-public .sp-grid {
    inline-size: 100%;
    min-inline-size: 0;
}
.sorteos-pro-public .sp-number {
    touch-action: manipulation;
}
.sorteos-pro-public .sp-submit-checkout[disabled],
.sorteos-pro-public .sp-buy-button[disabled] {
    opacity: .65;
    cursor: not-allowed;
}
@media (max-width: 390px) {
    .sorteos-pro-public {
        padding-inline: 6px !important;
    }
    .sorteos-pro-public .sp-grid {
        grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)) !important;
    }
    .sorteos-pro-public .sp-number {
        min-height: 44px !important;
        font-size: 16px !important;
    }
}

/* v1.7.6: Progreso del sorteo porcentaje-only. No mostrar chips de vendidos/disponibles dentro del bloque de progreso. */
.sorteos-pro-public .sp-progress-percent-only-card .sp-progress-stats,
.sorteos-pro-public .sp-progress-top-percent-only .sp-progress-stats {
    display: none !important;
}
.sorteos-pro-public .sp-progress-top-percent-only {
    justify-content: flex-start;
}

/* v1.7.7: confirmación visual inequívoca al adjuntar el comprobante. */
.sorteos-pro-public .sp-receipt-upload-card.has-file {
    border-color: #16a34a;
    background: #f0fdf4;
    box-shadow: 0 10px 24px rgba(22, 163, 74, .16);
}
.sorteos-pro-public .sp-receipt-upload-card.has-file .sp-receipt-upload-icon {
    background: #bbf7d0;
}
.sorteos-pro-public .sp-file-name.is-loaded {
    border-color: #86efac;
    background: #dcfce7;
    color: #14532d;
    font-weight: 800;
}

/* 1.8.3: accessible, compact mobile purchase funnel. */
.sorteos-pro-public .sp-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.sorteos-pro-public :is(button, input, select, textarea, summary, a):focus-visible {
    outline: 3px solid #1d4ed8 !important;
    outline-offset: 3px !important;
}
.sorteos-pro-public .sp-receipt-upload-card:focus-within {
    outline: 3px solid #1d4ed8;
    outline-offset: 3px;
}
.sorteos-pro-public .sp-file-name {
    white-space: pre-line;
}
.sorteos-pro-public .sp-selected-saving,
.sorteos-pro-public .sp-selected-promo {
    color: #166534 !important;
}
.sorteos-pro-public .sp-numbers-card .sp-section-head {
    margin-bottom: 12px;
}
.sorteos-pro-public .sp-toolbar :is(input, select, button),
.sorteos-pro-public .sp-pagination button,
.sorteos-pro-public .sp-copy-btn,
.sorteos-pro-public .sp-submit-checkout,
.sorteos-pro-public .sp-buy-button {
    min-height: 44px;
    font-size: 16px;
}
.sorteos-pro-public .sp-form-grid label span,
.sorteos-pro-public .sp-payment-placeholder p,
.sorteos-pro-public .sp-payment-method span,
.sorteos-pro-public .sp-bank-transfer-panel > p,
.sorteos-pro-public .sp-bank-box span,
.sorteos-pro-public .sp-receipt-upload-copy p,
.sorteos-pro-public .sp-check,
.sorteos-pro-public .sp-file-label small,
.sorteos-pro-public .sp-file-name,
.sorteos-pro-public .sp-page-info,
.sorteos-pro-public .sp-selection-message {
    font-size: 16px !important;
    line-height: 1.45;
}
.sorteos-pro-public .sp-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 44px !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
    font-size: 16px !important;
    line-height: 1 !important;
}
@media (max-width: 720px) {
    .sorteos-pro-public .sp-summary-card,
    .sorteos-pro-public .sp-numbers-card {
        overflow-x: hidden;
    }
    .sorteos-pro-public .sp-clear-selection {
        width: auto;
        min-width: 160px;
    }
}

/* 1.8.6: grid return anchor after clearing the selection. */
.sorteos-pro-public .sp-pagination {
    scroll-margin-top: 88px;
}
.sorteos-pro-public .sp-pagination {
    display: grid !important;
    grid-template-columns: auto minmax(110px, 1fr) auto !important;
    align-items: center;
    gap: 8px !important;
    width: 100%;
    margin: 0 0 10px;
    padding: 8px;
    border: 1px solid var(--sp-border);
    border-radius: 12px;
    background: var(--sp-soft);
}
.sorteos-pro-public .sp-pagination .sp-button {
    width: auto !important;
    min-height: 40px;
    padding: 7px 11px;
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
    box-shadow: none;
    font-size: 14px;
    line-height: 1.2;
}
.sorteos-pro-public .sp-pagination .sp-button:hover:not(:disabled) {
    border-color: #93c5fd;
    background: #dbeafe;
    box-shadow: none;
    transform: none;
}
.sorteos-pro-public .sp-pagination .sp-page-info {
    color: #475569;
    font-size: 15px !important;
    font-weight: 800;
}
.sorteos-pro-public .sp-clear-selection {
    border-color: #93c5fd !important;
    background: #eff6ff !important;
    color: #1e3a8a !important;
}
.sorteos-pro-public .sp-clear-selection:hover:not(:disabled) {
    border-color: #60a5fa !important;
    background: #dbeafe !important;
    color: #1e3a8a !important;
}
.sorteos-pro-public .sp-clear-icon {
    flex: 0 0 auto;
    font-size: 19px;
    line-height: 1;
}
@media (max-width: 479px) {
    .sorteos-pro-public .sp-grid,
    .sorteos-pro-public.sp-width-full .sp-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
        gap: 3px !important;
    }
    .sorteos-pro-public .sp-number {
        min-height: 35px !important;
        min-width: 0 !important;
        width: 100% !important;
        padding: 1px !important;
        font-size: 13px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        text-align: center !important;
    }
    .sorteos-pro-public .sp-pagination {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .sorteos-pro-public .sp-pagination .sp-page-info {
        grid-column: 1 / -1;
        grid-row: 1;
    }
    .sorteos-pro-public .sp-pagination .sp-prev,
    .sorteos-pro-public .sp-pagination .sp-next {
        grid-row: 2;
        width: 100% !important;
    }
}
@media (max-width: 359px) {
    .sorteos-pro-public .sp-grid,
    .sorteos-pro-public.sp-width-full .sp-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    }
}
