/* Bpass - Suscripciones y catálogo OTT */

.sx-header { background: #1A202C; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,.1); position: sticky; top: 0; z-index: 50; }
.sx-header-inner { max-width: 1200px; margin: 0 auto; padding: 0 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.sx-header .logo img { height: 35px; display: block; }
.sx-nav { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.sx-nav a { padding: .4rem .8rem; font-size: .9rem; text-decoration: none; border-radius: 6px; color: #fff; font-weight: 500; border: 1px solid transparent; transition: background .2s; }
.sx-nav a:hover { background: rgba(255,255,255,.1); }
.sx-nav a.sx-nav-outline { border-color: rgba(255,255,255,.3); }
.sx-nav a.sx-nav-primary { background: var(--bpass-red); border-color: var(--bpass-red); }
.sx-nav a.sx-nav-primary:hover { background: #B91C1C; }

.sx-container { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.sx-hero { text-align: center; padding: 2.2rem 1rem 1.2rem; }
.sx-hero h1 { font-size: 2rem; line-height: 1.15; margin-bottom: .5rem; }
.sx-hero p { color: var(--bpass-gray-dark); max-width: 640px; margin: 0 auto; }

.sx-alert { padding: .8rem 1rem; border-radius: 10px; margin: 1rem 0; font-size: .92rem; border: 1px solid transparent; }
.sx-alert-ok { background: #ECFDF5; color: #065F46; border-color: #A7F3D0; }
.sx-alert-error { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }
.sx-alert-warn { background: #FFFBEB; color: #92400E; border-color: #FDE68A; }

.sx-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.2rem; margin-top: 1.5rem; align-items: stretch; }
.sx-plan { background: #fff; border: 1px solid var(--bpass-gray-medium); border-radius: 16px; padding: 1.6rem 1.4rem; display: flex; flex-direction: column; position: relative; box-shadow: var(--shadow); }
.sx-plan.destacado { border: 2px solid var(--bpass-red); box-shadow: 0 10px 25px -8px rgba(220,38,38,.35); }
.sx-plan-ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--bpass-red); color: #fff; font-size: .72rem; font-weight: 700; padding: .25rem .8rem; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.sx-plan h2 { font-size: 1.25rem; margin-bottom: .25rem; }
.sx-plan-desc { color: var(--bpass-gray-dark); font-size: .9rem; min-height: 1.2em; }
.sx-price { margin: 1rem 0 .2rem; font-size: 2.3rem; font-weight: 800; line-height: 1; }
.sx-price small { font-size: .95rem; font-weight: 500; color: var(--bpass-gray-dark); }
.sx-price-note { font-size: .78rem; color: var(--bpass-gray-dark); margin-bottom: 1rem; }
.sx-benefits { list-style: none; margin: .4rem 0 1.4rem; padding: 0; flex: 1; }
.sx-benefits li { position: relative; padding: .3rem 0 .3rem 1.6rem; font-size: .9rem; }
.sx-benefits li::before { content: '✓'; position: absolute; left: 0; color: #059669; font-weight: 800; }

.sx-btn { display: inline-block; text-align: center; border: 1px solid var(--bpass-red); background: var(--bpass-red); color: #fff; padding: .7rem 1.2rem; border-radius: 10px; font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none; transition: background .2s, transform .05s; font-family: inherit; }
.sx-btn:hover { background: #B91C1C; border-color: #B91C1C; }
.sx-btn:active { transform: translateY(1px); }
.sx-btn-block { display: block; width: 100%; }
.sx-btn-outline { background: transparent; color: var(--bpass-red); }
.sx-btn-outline:hover { background: #FEF2F2; color: #B91C1C; }
.sx-btn-ghost { background: #fff; color: var(--bpass-black); border-color: var(--bpass-gray-medium); }
.sx-btn-ghost:hover { background: var(--bpass-gray-light); border-color: var(--bpass-gray); }
.sx-btn-sm { padding: .4rem .8rem; font-size: .82rem; border-radius: 8px; }
.sx-btn[disabled] { opacity: .55; cursor: not-allowed; }

.sx-card { background: #fff; border: 1px solid var(--bpass-gray-medium); border-radius: 14px; padding: 1.2rem 1.3rem; margin-bottom: 1rem; box-shadow: var(--shadow-sm); }
.sx-card h2 { font-size: 1.1rem; margin-bottom: .6rem; }
.sx-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.sx-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem 1.4rem; margin: .9rem 0; }
.sx-meta dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--bpass-gray-dark); }
.sx-meta dd { font-weight: 600; margin: 0; }
.sx-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .8rem; }

.sx-badge { display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.sx-badge-ok { background: #D1FAE5; color: #065F46; }
.sx-badge-warn { background: #FEF3C7; color: #92400E; }
.sx-badge-bad { background: #FEE2E2; color: #991B1B; }
.sx-badge-muted { background: #E5E7EB; color: #374151; }

.sx-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.sx-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--bpass-gray-dark); padding: .5rem .6rem; border-bottom: 1px solid var(--bpass-gray-medium); }
.sx-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--bpass-gray-light); vertical-align: top; }
.sx-table-wrap { overflow-x: auto; }

.sx-modal { position: fixed; inset: 0; background: rgba(17,24,39,.6); display: none; align-items: center; justify-content: center; z-index: 200; padding: 1rem; }
.sx-modal.open { display: flex; }
.sx-modal-box { background: #fff; border-radius: 14px; max-width: 460px; width: 100%; padding: 1.4rem; }
.sx-modal-box h3 { margin-bottom: .5rem; }
.sx-modal-box textarea { width: 100%; border: 1px solid var(--bpass-gray-medium); border-radius: 8px; padding: .55rem; font-family: inherit; margin: .6rem 0; }

.sx-result { max-width: 560px; margin: 2.5rem auto; text-align: center; background: #fff; border-radius: 16px; padding: 2.2rem 1.6rem; box-shadow: var(--shadow-lg); }
.sx-result-icon { font-size: 3rem; line-height: 1; margin-bottom: .6rem; }
.sx-result h1 { font-size: 1.5rem; margin-bottom: .5rem; }
.sx-result p { color: var(--bpass-gray-dark); margin-bottom: 1rem; }

.sx-legal { font-size: .78rem; color: var(--bpass-gray-dark); text-align: center; margin-top: 1.5rem; }

/* ---------- Catálogo OTT (tema oscuro) ---------- */
body.ott { background: #0B0F19; color: #E5E7EB; }
body.ott .sx-container { max-width: 1300px; }
.ott-hero { margin: 1rem 0 2rem; }
.ott-hero h1 { font-size: 1.7rem; color: #fff; }
.ott-hero p { color: #9CA3AF; }
.ott-row-title { display: flex; align-items: center; gap: .6rem; font-size: 1.2rem; color: #fff; margin: 2rem 0 .9rem; }
.ott-count { background: #1F2937; color: #9CA3AF; border-radius: 999px; padding: .05rem .6rem; font-size: .78rem; }
.ott-live-dot { width: 10px; height: 10px; border-radius: 50%; background: #EF4444; box-shadow: 0 0 0 0 rgba(239,68,68,.7); animation: ottPulse 1.6s infinite; }
@keyframes ottPulse { 70% { box-shadow: 0 0 0 10px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }
.ott-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.ott-grid.destacados { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.ott-card { background: #111827; border: 1px solid #1F2937; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, border-color .18s, box-shadow .18s; text-decoration: none; color: inherit; }
.ott-card:hover { transform: translateY(-3px); border-color: #374151; box-shadow: 0 12px 28px -10px rgba(0,0,0,.8); }
.ott-card.live { border-color: rgba(239,68,68,.55); }
.ott-thumb { position: relative; aspect-ratio: 16 / 9; background: #1F2937 center / cover no-repeat; }
.ott-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17,24,39,.85), transparent 55%); }
.ott-tag { position: absolute; top: .6rem; left: .6rem; z-index: 1; font-size: .7rem; font-weight: 800; letter-spacing: .05em; padding: .2rem .55rem; border-radius: 6px; text-transform: uppercase; }
.ott-tag.live { background: #EF4444; color: #fff; }
.ott-tag.soon { background: #F59E0B; color: #111827; }
.ott-tag.past { background: #374151; color: #E5E7EB; }
.ott-play { position: absolute; z-index: 1; right: .7rem; bottom: .7rem; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.92); color: #111827; display: flex; align-items: center; justify-content: center; font-size: 1rem; padding-left: 3px; }
.ott-card.live .ott-play { background: #EF4444; color: #fff; }
.ott-body { padding: .85rem .95rem 1rem; }
.ott-body h3 { font-size: 1rem; color: #fff; margin-bottom: .25rem; line-height: 1.25; }
.ott-date { font-size: .8rem; color: #9CA3AF; }
.ott-plans { font-size: .72rem; color: #6B7280; margin-top: .35rem; }
.ott-empty { background: #111827; border: 1px dashed #374151; border-radius: 12px; padding: 2rem 1rem; text-align: center; color: #9CA3AF; }
.ott-empty a { color: #F87171; }
body.ott .sx-alert-warn { background: #3B2F0B; color: #FCD34D; border-color: #78580F; }
body.ott .sx-alert-error { background: #3B1111; color: #FCA5A5; border-color: #7F1D1D; }

@media (max-width: 640px) {
    .sx-hero h1 { font-size: 1.55rem; }
    .sx-header-inner { flex-direction: column; align-items: stretch; }
    .sx-nav { justify-content: center; }
}
