/* AcronFlix TV — diseño oscuro, responsive (móvil → TV) */
:root {
  --bg: #07070c;
  --bg2: #0c0c15;
  --card: #11111b;
  --card2: #181826;
  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 255, 255, 0.14);
  --txt: #f5f5fa;
  --mut: #9c9cb6;
  --mut2: #6b6b85;
  --acc: #ff2d55;
  --acc2: #7c3aed;
  --acc3: #c026d3;
  --grad: linear-gradient(135deg, #ff2d55 0%, #c026d3 55%, #7c3aed 100%);
  --ok: #22c55e;
  --warn: #f59e0b;
  --err: #ef4444;
  --r: 16px;
  --r-sm: 11px;
  --top: 68px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--txt); font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
p a, .mut a { color: #ff7a93; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
[hidden] { display: none !important; }
.i { width: 20px; height: 20px; flex: none; }
.i.sm { width: 15px; height: 15px; }
.i.inl { width: 16px; height: 16px; vertical-align: -3px; }
.mut { color: var(--mut); }
.mono { font-family: ui-monospace, 'SF Mono', Consolas, monospace; letter-spacing: 0.04em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.grad-txt { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
::selection { background: rgba(255, 45, 85, 0.35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, 0.22); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* ---------- splash ---------- */
.splash { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; align-content: center; gap: 26px; transition: opacity 0.5s; }
.splash img { width: 84px; height: 84px; animation: pulse 1.4s ease-in-out infinite; filter: drop-shadow(0 10px 40px rgba(255, 45, 85, 0.5)); }
.splash-bar { width: 120px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.splash-bar i { display: block; height: 100%; width: 40%; background: var(--grad); animation: slide 1s ease-in-out infinite; }
.splash.out { opacity: 0; pointer-events: none; }
@keyframes pulse { 50% { transform: scale(0.92); } }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: 12px; font-weight: 700; font-size: 14.5px; white-space: nowrap; transition: transform 0.15s, background 0.2s, box-shadow 0.2s, opacity 0.2s;
  position: relative; user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn.lg { height: 54px; padding: 0 26px; font-size: 16px; border-radius: 15px; }
.btn.block { width: 100%; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(255, 45, 85, 0.6); }
.btn.primary:hover { box-shadow: 0 14px 36px -10px rgba(255, 45, 85, 0.85); filter: brightness(1.08); }
.btn.glass { background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn.glass:hover { background: rgba(255, 255, 255, 0.14); }
.btn.ghost { background: transparent; border: 1px solid var(--line2); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btn.danger { background: var(--err); color: #fff; }
.btn.danger-ghost { border: 1px solid rgba(239, 68, 68, 0.4); color: #fca5a5; height: 48px; border-radius: 13px; }
.btn.danger-ghost:hover { background: rgba(239, 68, 68, 0.1); }
.btn:disabled { opacity: 0.6; pointer-events: none; }
.btn.loading > * { opacity: 0; }
.btn.loading::after { content: ''; position: absolute; width: 20px; height: 20px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); transition: background 0.2s, color 0.2s; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.12); }
.icon-btn.on { color: #facc15; }
.icon-btn.on .i { fill: currentColor; }
.spinner { display: inline-block; width: 24px; height: 24px; border: 3px solid var(--line2); border-top-color: var(--acc); border-radius: 50%; animation: spin 0.8s linear infinite; }

/* ---------- barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--top); display: flex; align-items: center; gap: 22px; padding: 0 22px;
  background: rgba(7, 7, 12, 0.72); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.03em; flex: none; }
.brand.center { justify-content: center; margin-bottom: 22px; }
.brand-mark { width: 34px; height: 34px; filter: drop-shadow(0 6px 18px rgba(255, 45, 85, 0.45)); }
.topnav { display: flex; gap: 4px; flex: 1; }
.topnav a { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 11px; color: var(--mut); font-weight: 600; font-size: 14.5px; transition: 0.2s; }
.topnav a .i { width: 18px; height: 18px; }
.topnav a:hover { color: var(--txt); background: rgba(255, 255, 255, 0.05); }
.topnav a.on { color: var(--txt); background: rgba(255, 255, 255, 0.08); }
.topnav a.on .i { color: var(--acc); }
.top-r { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.plan-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.plan-chip .i { width: 15px; height: 15px; }
.plan-chip.ok { background: rgba(34, 197, 94, 0.12); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.25); }
.plan-chip.off { background: rgba(255, 45, 85, 0.12); color: #ff8fa6; border: 1px solid rgba(255, 45, 85, 0.3); }
.avatar { --h: 330; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; flex: none;
  background: linear-gradient(135deg, hsl(var(--h) 80% 55%), hsl(calc(var(--h) + 50) 70% 45%)); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--line2); }
.avatar.xl { width: 72px; height: 72px; font-size: 26px; }

/* ---------- navegación inferior (móvil) ---------- */
.bottomnav { display: none; }
@media (max-width: 860px) {
  :root { --top: 58px; }
  .topbar { padding: 0 14px; gap: 10px; }
  .topnav, .hide-sm { display: none !important; }
  .brand { font-size: 17px; }
  .brand-mark { width: 30px; height: 30px; }
  .bottomnav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 45; left: 0; right: 0; bottom: 0;
    padding: 6px 6px calc(6px + var(--safe-b)); background: rgba(10, 10, 17, 0.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--line);
  }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--mut2); padding: 6px 0; border-radius: 12px; }
  .bottomnav a.on { color: var(--txt); }
  .bottomnav a.on .i { color: var(--acc); }
  .bottomnav .bn-main i { display: grid; place-items: center; width: 46px; height: 46px; margin-top: -22px; border-radius: 16px; background: var(--grad); color: #fff; box-shadow: 0 10px 24px -8px rgba(255, 45, 85, 0.7); border: 3px solid var(--bg); }
  .bottomnav .bn-main.on .i { color: #fff; }
  .view { padding-bottom: calc(76px + var(--safe-b)); }
}

/* ---------- avisos (toasts) ---------- */
.toasts { position: fixed; z-index: 90; top: calc(var(--top) + 12px); right: 16px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: rgba(28, 28, 42, 0.94); border: 1px solid var(--line2); box-shadow: var(--shadow); backdrop-filter: blur(12px);
  font-weight: 600; font-size: 14px; transform: translateY(-10px) scale(0.98); opacity: 0; transition: 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2); max-width: 420px; }
.toast.in { transform: none; opacity: 1; }
.toast .i { color: #c4b5fd; }
.toast.ok .i { color: var(--ok); }
.toast.err { border-color: rgba(239, 68, 68, 0.4); }
.toast.err .i { color: var(--err); }
@media (max-width: 860px) { .toasts { left: 16px; right: 16px; align-items: center; } }

/* ---------- modales ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.2s; }
.modal-wrap.in { opacity: 1; }
.modal { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 40px); overflow: auto; background: linear-gradient(180deg, #1a1a29, #12121c); border: 1px solid var(--line2); border-radius: 22px; padding: 28px 26px 24px; box-shadow: var(--shadow); text-align: center; transform: translateY(12px) scale(0.97); transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.modal.lg { max-width: 640px; text-align: left; }
.modal-wrap.in .modal { transform: none; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--mut); }
.modal-x:hover { background: rgba(255, 255, 255, 0.08); color: var(--txt); }
.modal-ic { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center; background: rgba(124, 58, 237, 0.16); color: #c4b5fd; }
.modal-ic .i { width: 28px; height: 28px; }
.modal-ic.warn { background: rgba(245, 158, 11, 0.14); color: #fbbf24; }
.modal-ic.danger { background: rgba(239, 68, 68, 0.14); color: #f87171; }
.modal h3 { font-size: 20px; margin-bottom: 10px; }
.modal-body { color: #d4d4e2; }
.modal-body p { margin: 0 0 10px; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions .btn { flex: 1; }

/* ---------- formularios ---------- */
.form { display: grid; gap: 14px; text-align: left; }
.form label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; color: var(--mut); }
input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255, 255, 255, 0.04); color: var(--txt); font-size: 15px; transition: border 0.2s, background 0.2s, box-shadow 0.2s;
}
textarea { height: auto; padding: 12px 14px; min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(255, 45, 85, 0.6); background: rgba(255, 255, 255, 0.06); box-shadow: 0 0 0 4px rgba(255, 45, 85, 0.12); }
input::placeholder { color: var(--mut2); }
select option { background: #15151f; }
.pass { position: relative; }
.pass input { padding-right: 48px; }
.pass-eye { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: var(--mut); }
.pass-eye:hover { color: var(--txt); background: rgba(255, 255, 255, 0.06); }
.shake { animation: shake 0.45s; border-color: var(--err) !important; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- portada ---------- */
.hero { position: relative; min-height: min(86vh, 760px); display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.hero-wall { position: absolute; inset: -40px -10% -40px; z-index: -2; display: grid; gap: 18px; align-content: center; transform: rotate(-8deg) scale(1.15); opacity: 0.55; }
.wall-row { overflow: hidden; }
.wall-row > div { display: flex; gap: 18px; width: max-content; animation: marquee var(--d, 60s) linear infinite; }
.wall-row.rev > div { animation-direction: reverse; }
.wall-tile { width: 150px; height: 96px; flex: none; border-radius: 18px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); display: grid; place-items: center; padding: 18px; }
.wall-tile img { max-height: 100%; max-width: 100%; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4)); }
@keyframes marquee { to { transform: translateX(-50%); } }
.hero-shade { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(900px 500px at 15% 40%, rgba(7, 7, 12, 0.6), transparent 70%), linear-gradient(90deg, var(--bg) 8%, rgba(7, 7, 12, 0.88) 45%, rgba(7, 7, 12, 0.5) 100%), linear-gradient(0deg, var(--bg) 2%, transparent 40%),
    radial-gradient(700px 400px at 85% 10%, rgba(124, 58, 237, 0.35), transparent 70%), radial-gradient(600px 400px at 0% 100%, rgba(255, 45, 85, 0.28), transparent 70%); }
.hero-inner { max-width: 1240px; width: 100%; margin: 0 auto; padding: 60px 20px 80px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line2); font-size: 13px; font-weight: 700; color: #e9e9f3; backdrop-filter: blur(10px); }
.eyebrow .i { width: 16px; height: 16px; color: var(--acc); }
.dot-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.7); animation: live 1.6s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(255, 45, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 45, 85, 0); } }
.hero h1 { font-size: clamp(38px, 6.4vw, 76px); font-weight: 800; letter-spacing: -0.045em; margin: 22px 0 18px; max-width: 900px; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: #c9c9da; max-width: 600px; margin: 0 0 30px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-devices { display: flex; align-items: center; gap: 8px; margin-top: 36px; color: var(--mut); font-size: 14px; font-weight: 600; flex-wrap: wrap; }
.hero-devices .i { width: 18px; height: 18px; color: #c4b5fd; margin-left: 10px; }
.hero-devices .i:first-child { margin-left: 0; }

.section { padding: 70px 20px 10px; }
.sec-head { margin-bottom: 30px; }
.sec-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.sec-head p { color: var(--mut); margin: 8px 0 0; }
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -30px; position: relative; }
.feat { padding: 24px; border-radius: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line); }
.feat-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 16px; box-shadow: 0 10px 24px -10px rgba(255, 45, 85, 0.7); }
.feat h3 { font-size: 17px; margin-bottom: 6px; }
.feat p { color: var(--mut); margin: 0; font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 28px 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.step-n { position: absolute; right: 18px; top: 6px; font-size: 84px; font-weight: 800; line-height: 1; color: rgba(255, 255, 255, 0.04); }
.step-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 45, 85, 0.12); color: #ff7a93; margin-bottom: 18px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--mut); margin: 0; font-size: 14px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; padding: 30px 26px 26px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform 0.25s; }
.plan:hover { transform: translateY(-4px); }
.plan.hot { background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box; border: 2px solid transparent; box-shadow: 0 30px 80px -30px rgba(192, 38, 211, 0.55); }
.plan-tag { position: absolute; top: -13px; left: 26px; padding: 5px 12px; border-radius: 999px; background: var(--grad); font-size: 12px; font-weight: 800; letter-spacing: 0.02em; }
.plan:not(.hot) .plan-tag { background: #2a2a3d; }
.plan-days { display: flex; align-items: baseline; gap: 8px; }
.plan-days b { font-size: 58px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.plan-days span { font-size: 18px; color: var(--mut); font-weight: 700; }
.plan-per { color: var(--mut); margin-top: 6px; }
.plan-price { margin-top: 14px; font-size: 24px; font-weight: 800; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: #d6d6e4; }
.plan li .i { width: 18px; height: 18px; color: var(--ok); }

.app-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; padding: 44px; border-radius: 28px; overflow: hidden; position: relative;
  background: radial-gradient(600px 300px at 100% 0%, rgba(124, 58, 237, 0.45), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgba(255, 45, 85, 0.35), transparent 70%), var(--card); border: 1px solid var(--line2); }
.app-band h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; margin-bottom: 10px; }
.app-band p { color: #cfcfe0; margin: 0 0 24px; max-width: 480px; }
.dev-art { position: relative; height: 230px; }
.dev-tv { position: absolute; right: 30px; top: 10px; width: 320px; height: 190px; border-radius: 16px; background: #000; border: 6px solid #22222f; box-shadow: var(--shadow); }
.dev-tv::after { content: ''; position: absolute; left: 50%; bottom: -26px; width: 90px; height: 20px; transform: translateX(-50%); border-radius: 0 0 10px 10px; background: #22222f; }
.dev-screen { position: absolute; inset: 0; border-radius: 10px; background: linear-gradient(135deg, #ff2d55, #7c3aed); display: flex; align-items: flex-start; gap: 6px; padding: 12px; font-size: 11px; font-weight: 800; overflow: hidden; }
.dev-screen .dot-live { background: #fff; }
.dev-screen::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.25), transparent 50%); }
.dev-phone { position: absolute; right: 0; bottom: 0; width: 92px; height: 170px; border-radius: 18px; background: #000; border: 5px solid #2a2a38; box-shadow: var(--shadow); }
.dev-phone .dev-screen { border-radius: 12px; background: linear-gradient(160deg, #7c3aed, #ff2d55); }

.footer { margin-top: 80px; border-top: 1px solid var(--line); padding: 34px 0 40px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; color: var(--mut); font-weight: 600; font-size: 14px; }
.footer nav a:hover { color: var(--txt); }
.footer small { width: 100%; color: var(--mut2); }

@media (max-width: 1000px) {
  .feats { grid-template-columns: repeat(2, 1fr); }
  .plans, .steps { grid-template-columns: 1fr; max-width: 520px; }
  .app-band { grid-template-columns: 1fr; padding: 30px 24px; }
  .app-band-art { display: none; }
}
@media (max-width: 560px) {
  .hero { min-height: 640px; }
  .hero-inner { padding: 40px 18px 70px; }
  .feats { grid-template-columns: 1fr; margin-top: -10px; }
  .wall-tile { width: 110px; height: 72px; padding: 12px; border-radius: 14px; }
  .section { padding: 50px 16px 0; }
  .wrap { padding: 0 16px; }
  .hero .btn.lg { flex: 1; }
}

/* ---------- TV en vivo ---------- */
.live { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 22px; padding: 20px 22px 0; max-width: 1700px; margin: 0 auto; }
.live-stage { min-width: 0; }
.stage-sticky { position: relative; z-index: 5; }
.player-box { border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line); aspect-ratio: 16 / 9; }
.now { display: flex; align-items: center; gap: 16px; padding: 18px 4px 8px; }
.now-logo { --h: 300; width: 64px; height: 64px; border-radius: 16px; flex: none; display: grid; place-items: center; padding: 8px; font-weight: 800; background: rgba(255, 255, 255, 0.95); color: hsl(var(--h) 60% 40%); }
.now-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.now-info { flex: 1; min-width: 0; }
.now-info h2 { font-size: 24px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-live { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; color: #ff7a93; letter-spacing: 0.08em; margin-bottom: 4px; }
.now-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: #d4d4e4; }
.tag .i { width: 13px; height: 13px; }
.now-actions { display: flex; gap: 8px; }
.now-empty { display: flex; gap: 14px; align-items: center; color: var(--mut); }
.now-empty .i { width: 34px; height: 34px; color: var(--acc); }
.now-empty b { display: block; color: var(--txt); font-size: 18px; }
.rails { padding: 14px 0 30px; }
.rail { margin-top: 18px; }
.rail h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 12px; }
.rail h3 .i { width: 18px; height: 18px; color: var(--acc); }
.rail-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.rail-card { flex: none; width: 150px; text-align: left; scroll-snap-align: start; }
.rail-logo { --h: 300; position: relative; display: grid; place-items: center; height: 90px; border-radius: 14px; padding: 14px; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, hsl(var(--h) 60% 30% / 0.6), transparent 70%), var(--card2); border: 1px solid var(--line); transition: transform 0.2s, border-color 0.2s; }
.rail-logo img { position: relative; z-index: 1; max-height: 100%; max-width: 100%; object-fit: contain; }
.rail-logo em { position: absolute; font-style: normal; font-weight: 800; font-size: 22px; color: rgba(255, 255, 255, 0.5); }
.rail-logo img + em { display: none; }
.rail-card:hover .rail-logo { transform: translateY(-3px); border-color: rgba(255, 45, 85, 0.5); }
.rail-card b { display: block; margin-top: 8px; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #d4d4e4; }

.live-side { position: sticky; top: calc(var(--top) + 20px); height: calc(100vh - var(--top) - 40px); display: flex; flex-direction: column; border-radius: 20px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.side-top { padding: 14px 14px 4px; display: grid; gap: 10px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #151522, var(--card)); }
.search { position: relative; }
.search > .i { position: absolute; left: 14px; top: 14px; width: 18px; height: 18px; color: var(--mut); pointer-events: none; }
.search input { padding-left: 42px !important; padding-right: 40px !important; height: 46px !important; border-radius: 13px !important; }
.search input::-webkit-search-cancel-button { display: none; }
.search-x { position: absolute; right: 6px; top: 6px; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--mut); }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 13px; background: rgba(0, 0, 0, 0.3); }
.tabs button { display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--mut); transition: 0.2s; }
.tabs button .i { width: 15px; height: 15px; }
.tabs button.on { background: rgba(255, 255, 255, 0.1); color: var(--txt); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); }
.filters { display: grid; gap: 8px; padding-bottom: 8px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 13px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: #cfcfe0; transition: 0.2s; white-space: nowrap; }
.chip:hover { background: rgba(255, 255, 255, 0.1); }
.chip.on { background: var(--txt); color: #0b0b12; border-color: transparent; }
.select { position: relative; }
.select > .i { position: absolute; top: 12px; width: 17px; height: 17px; color: var(--mut); pointer-events: none; }
.select > .i:first-child { left: 13px; }
.select > .i:last-child { right: 12px; }
.select select { appearance: none; -webkit-appearance: none; height: 42px !important; padding: 0 36px 0 40px !important; font-size: 14px !important; cursor: pointer; }
.side-count { padding: 10px 16px 4px; font-size: 12px; font-weight: 700; color: var(--mut2); text-transform: uppercase; letter-spacing: 0.06em; }
.side-count:empty { display: none; }
.ch-list { flex: 1; overflow-y: auto; padding: 6px 8px 14px; overscroll-behavior: contain; }
.ch { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 13px; cursor: pointer; transition: background 0.15s; outline: none; }
.ch:hover, .ch:focus-visible { background: rgba(255, 255, 255, 0.05); }
.ch:focus-visible { box-shadow: inset 0 0 0 2px var(--acc); }
.ch.on { background: linear-gradient(90deg, rgba(255, 45, 85, 0.16), rgba(124, 58, 237, 0.08)); }
.ch.on::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--grad); }
.ch-logo { --h: 300; width: 52px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; padding: 5px; background: rgba(255, 255, 255, 0.92); font-weight: 800; font-size: 13px; color: hsl(var(--h) 55% 38%); overflow: hidden; }
.ch-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ch-logo.noimg, .ch-logo:not(:has(img)) { background: linear-gradient(135deg, hsl(var(--h) 60% 35%), hsl(calc(var(--h) + 40) 55% 25%)); color: #fff; }
.ch-meta { flex: 1; min-width: 0; display: grid; }
.ch-meta b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-meta small { font-size: 12px; color: var(--mut2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-q { flex: none; font-size: 10px; font-weight: 800; padding: 3px 6px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.2); color: #e4e4f0; letter-spacing: 0.04em; }
.ch-q.sd { opacity: 0.5; }
.ch-fav { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--mut2); opacity: 0; transition: 0.15s; }
.ch-fav .i { width: 17px; height: 17px; }
.ch:hover .ch-fav, .ch-fav.on, .is-touch-dev .ch-fav { opacity: 1; }
.ch-fav:hover { background: rgba(255, 255, 255, 0.08); color: var(--txt); }
.ch-fav.on { color: #facc15; }
.ch-fav.on .i { fill: currentColor; }
.ch-eq { display: none; gap: 2px; align-items: flex-end; height: 14px; flex: none; }
.ch.on .ch-eq { display: flex; }
.ch-eq i { width: 3px; background: var(--acc); border-radius: 2px; animation: eq 0.9s ease-in-out infinite; }
.ch-eq i:nth-child(2) { animation-delay: -0.3s; }
.ch-eq i:nth-child(3) { animation-delay: -0.6s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.ch.sk { pointer-events: none; }
.ch.sk .ch-logo, .ch.sk b, .ch.sk small { background: rgba(255, 255, 255, 0.06); border-radius: 6px; animation: shimmer 1.3s infinite; }
.ch.sk b { height: 12px; width: 70%; margin-bottom: 6px; }
.ch.sk small { height: 10px; width: 40%; }
@keyframes shimmer { 50% { opacity: 0.45; } }
.sentinel { display: grid; place-items: center; padding: 20px; }
.empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 50px 24px; color: var(--mut); }
.empty .i { width: 40px; height: 40px; color: var(--mut2); }
.empty p { margin: 0; max-width: 280px; }
.empty.wide { grid-column: 1 / -1; }

@media (max-width: 1100px) { .live { grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; padding: 16px 16px 0; } }
@media (max-width: 999px) {
  .live { display: block; padding: 0; }
  .stage-sticky { position: sticky; top: var(--top); margin: 0; }
  .player-box { border-radius: 0; box-shadow: none; }
  .now { padding: 14px 16px 6px; }
  .now-logo { width: 52px; height: 52px; border-radius: 13px; }
  .now-info h2 { font-size: 19px; }
  .hide-mobile { display: none !important; }
  .live-side { position: static; height: auto; border-radius: 0; border: 0; background: transparent; overflow: visible; }
  .side-top { position: sticky; top: calc(var(--top) + 56.25vw); z-index: 4; background: rgba(7, 7, 12, 0.94); backdrop-filter: blur(14px); padding: 10px 16px 2px; }
  .chips { margin: 0 -16px; padding: 0 16px; }
  .ch-list { padding: 4px 8px 20px; overflow: visible; }
  .ch-fav { opacity: 1; }
}
@media (max-width: 999px) and (orientation: landscape) and (max-height: 520px) {
  .side-top { position: static; }
}
@media (max-width: 999px) and (min-width: 600px) {
  .stage-sticky { position: static; }
  .side-top { top: var(--top); }
}

/* ---------- reproductor ---------- */
.afp { position: relative; width: 100%; height: 100%; background: #000; overflow: hidden; color: #fff; user-select: none; -webkit-user-select: none; outline: none; container-type: inline-size; }
.afp-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.afp-backdrop { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #1d1430, #050508 70%); transition: opacity 0.5s; }
.afp-backdrop img { width: 60%; height: 60%; object-fit: contain; filter: blur(50px) saturate(1.6); opacity: 0.45; }
.afp.is-playing .afp-backdrop, .afp.is-paused .afp-backdrop { opacity: 0; }
.afp-loading { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px; font-weight: 700; font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.afp.is-loading .afp-loading, .afp.is-buffering .afp-loading { display: flex; }
.afp.is-buffering .afp-loading span { display: none; }
.afp-ring { position: relative; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; }
.afp-ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.12); border-top-color: var(--acc); border-right-color: var(--acc3); animation: spin 0.9s linear infinite; }
.afp-ring img { width: 58px; height: 58px; object-fit: contain; border-radius: 12px; background: rgba(255, 255, 255, 0.92); padding: 6px; }
.afp.is-buffering .afp-ring img { display: none; }
.afp.is-buffering .afp-ring { width: 64px; height: 64px; }
.afp-msg { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; background: radial-gradient(circle at 50% 40%, rgba(40, 18, 60, 0.85), rgba(5, 5, 9, 0.94) 75%); }
.afp-msg-ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); color: #ff7a93; margin-bottom: 14px; }
.afp-msg-ic .i { width: 30px; height: 30px; }
.afp-msg-ic.warn { color: #fbbf24; }
.afp-msg h4 { font-size: clamp(17px, 2.4vw, 24px); font-weight: 800; }
.afp-msg p { color: rgba(255, 255, 255, 0.72); max-width: 440px; margin: 8px 0 0; font-size: 14.5px; }
.afp-msg-btns { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; justify-content: center; }
@container (max-width: 480px) {
  .afp-msg-ic { width: 44px; height: 44px; margin-bottom: 8px; border-radius: 14px; }
  .afp-msg-ic .i { width: 22px; height: 22px; }
  .afp-msg p { font-size: 13px; margin-top: 4px; }
  .afp-msg-btns { margin-top: 12px; }
  .afp-msg-btns .btn { height: 38px; font-size: 13px; padding: 0 14px; }
}
.afp-top, .afp-bar { position: absolute; left: 0; right: 0; z-index: 4; display: flex; align-items: center; padding: 14px 16px; transition: opacity 0.3s, transform 0.3s; }
.afp-top { top: 0; justify-content: space-between; gap: 12px; background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent); padding-bottom: 40px; }
.afp-bar { bottom: 0; justify-content: space-between; gap: 8px; background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent); padding-top: 50px; }
.afp.ui-hidden { cursor: none; }
.afp.ui-hidden .afp-top { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.afp.ui-hidden .afp-bar { opacity: 0; transform: translateY(10px); pointer-events: none; }
.afp.is-idle .afp-top, .afp.is-idle .afp-bar, .afp.has-msg .afp-bar, .afp.has-msg .afp-top { opacity: 0; pointer-events: none; }
.afp-ch { display: flex; align-items: center; gap: 10px; min-width: 0; }
.afp-ch-logo { width: 42px; height: 32px; border-radius: 8px; background: rgba(255, 255, 255, 0.92); display: grid; place-items: center; padding: 4px; flex: none; }
.afp-ch-logo:empty { display: none; }
.afp-ch-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.afp-ch b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.afp-ch small { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.afp-live { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 7px; background: var(--acc); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; flex: none; }
.afp-live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }
.afp.is-behind .afp-live { background: rgba(255, 255, 255, 0.2); }
@keyframes blink { 50% { opacity: 0.3; } }
.afp-l, .afp-r { display: flex; align-items: center; gap: 4px; }
.afp-bar button { height: 42px; min-width: 42px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: #fff; transition: background 0.15s, transform 0.15s; }
.afp-bar button:hover { background: rgba(255, 255, 255, 0.14); }
.afp-bar button:active { transform: scale(0.92); }
.afp-bar .i { width: 22px; height: 22px; }
.afp-play .i { width: 26px; height: 26px; }
.afp-qbtn { padding: 0 10px; }
.afp-qlabel { font-size: 11px; font-weight: 800; letter-spacing: 0.05em; padding: 2px 6px; border-radius: 5px; background: rgba(255, 255, 255, 0.16); }
.afp.is-hd .afp-qlabel { background: var(--acc); }
.afp-golive { padding: 0 12px; font-size: 12px; font-weight: 800; background: rgba(255, 45, 85, 0.9) !important; }
.afp-golive .i { width: 16px !important; height: 16px !important; }
.afp-vol { display: flex; align-items: center; }
.afp-vol input { --p: 100%; -webkit-appearance: none; appearance: none; width: 0; height: 4px; border-radius: 4px; opacity: 0; transition: width 0.25s, opacity 0.25s, margin 0.25s; cursor: pointer;
  background: linear-gradient(90deg, #fff var(--p), rgba(255, 255, 255, 0.3) var(--p)); }
.afp-vol:hover input, .afp-vol input:focus { width: 90px; opacity: 1; margin: 0 10px 0 4px; }
.afp-vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(0, 0, 0, 0.5); }
.afp-vol input::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
.afp-big { position: absolute; z-index: 3; left: 50%; top: 50%; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%; display: none; place-items: center; color: #fff;
  background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.25); transition: transform 0.2s, background 0.2s; }
.afp-big .i { width: 34px; height: 34px; margin-left: 4px; }
.afp-big:hover { transform: scale(1.08); background: var(--acc); }
.afp.is-paused:not(.has-msg) .afp-big { display: grid; }
.afp-unmute { position: absolute; z-index: 5; left: 16px; top: 70px; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.95); color: #111; font-weight: 700; font-size: 13.5px; box-shadow: var(--shadow); animation: pop 0.4s; }
.afp-unmute .i { width: 18px; height: 18px; }
@keyframes pop { from { transform: scale(0.8); opacity: 0; } }
.afp-osd { position: absolute; z-index: 5; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9); padding: 12px 20px; border-radius: 14px; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px); font-weight: 700; font-size: 16px; opacity: 0; pointer-events: none; transition: 0.2s; max-width: 80%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.afp-osd.show { opacity: 1; transform: translate(-50%, -50%); }
.afp-menu { position: absolute; z-index: 7; right: 14px; bottom: 66px; width: 240px; max-height: calc(100% - 90px); overflow-y: auto; padding: 8px; border-radius: 16px; background: rgba(18, 18, 28, 0.96); border: 1px solid var(--line2); box-shadow: var(--shadow); backdrop-filter: blur(16px); animation: pop 0.2s; }
.afp-menu-t { padding: 8px 10px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mut); }
.afp-menu button { width: 100%; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 10px; border-radius: 10px; font-weight: 600; font-size: 14px; text-align: left; }
.afp-menu button:hover { background: rgba(255, 255, 255, 0.08); }
.afp-menu button .i { width: 17px; height: 17px; opacity: 0; color: var(--acc); }
.afp-menu button.on .i { opacity: 1; }
.afp-menu button span { flex: 1; }
.afp-menu button small { color: var(--mut); font-size: 12px; }
.afp-menu-n { color: var(--mut); font-size: 13px; padding: 4px 10px 8px; margin: 0; }
.afp.is-fs { border-radius: 0; }
.afp.is-fs .afp-bar { padding: 60px 30px 28px; }
.afp.is-fs .afp-top { padding: 26px 30px 60px; }
@container (max-width: 560px) {
  .afp-top { padding: 10px 12px 30px; }
  .afp-bar { padding: 40px 6px 6px; gap: 2px; }
  .afp-bar button { height: 38px; min-width: 38px; }
  .afp-bar .i { width: 20px; height: 20px; }
  .afp-vol input { display: none; }
  .afp-ch b { font-size: 13.5px; }
  .afp-ch small { display: none; }
  .afp-ch-logo { width: 34px; height: 26px; }
  .afp-unmute { top: 54px; left: 10px; font-size: 12.5px; padding: 8px 11px; }
  .afp-menu { right: 8px; bottom: 52px; }
  .afp-ring { width: 70px; height: 70px; }
  .afp-ring img { width: 44px; height: 44px; }
}
@container (max-width: 380px) { .afp-bar [data-a="prev"], .afp-bar [data-a="pip"] { display: none; } }

/* ---------- páginas genéricas ---------- */
.page { padding-top: 40px; padding-bottom: 20px; }
.page.narrow { max-width: 1040px; }
.page-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 26px; }
.page-head h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.page-head p { color: var(--mut); margin: 8px 0 0; max-width: 640px; }
.page-ic { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--grad); flex: none; box-shadow: 0 14px 30px -12px rgba(255, 45, 85, 0.7); }
.page-ic .i { width: 28px; height: 28px; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(124, 58, 237, 0.1); border: 1px solid rgba(124, 58, 237, 0.25); color: #ddd6fe; font-size: 14px; margin: 20px 0; }
.notice .i { color: #a78bfa; margin-top: 1px; }
.notice.ok { background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.25); color: #bbf7d0; }
.notice.ok .i { color: var(--ok); }
.card { padding: 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.card.soft { background: linear-gradient(160deg, rgba(124, 58, 237, 0.12), rgba(255, 45, 85, 0.06)); }
.card h3 { display: flex; align-items: center; gap: 9px; font-size: 16.5px; margin-bottom: 12px; }
.card h3 .i { color: var(--acc); width: 19px; height: 19px; }
.card p { margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }

/* tiendas */
.stores-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.store-card { --c: #7c3aed; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.store-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.16); box-shadow: 0 30px 60px -30px var(--c); }
.store-cover { position: relative; display: block; aspect-ratio: 1.91 / 1; overflow: hidden;
  background: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--c) 70%, transparent), transparent 60%), radial-gradient(circle at 90% 90%, color-mix(in srgb, var(--c) 40%, #000), transparent 70%), #141420; }
.store-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.store-card:hover .store-cover img { transform: scale(1.05); }
.store-verified { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); font-size: 11.5px; font-weight: 700; color: #86efac; }
.store-verified .i { width: 14px; height: 14px; }
.store-body { position: relative; flex: 1; display: flex; flex-direction: column; padding: 40px 20px 20px; }
.store-icon { position: absolute; top: -30px; left: 20px; width: 60px; height: 60px; border-radius: 17px; display: grid; place-items: center; padding: 8px; background: #fff; color: #222; font-weight: 800; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.7), 0 0 0 4px var(--card); overflow: hidden; }
.store-icon img { width: 100%; height: 100%; object-fit: contain; }
.store-body h3 { font-size: 18px; }
.store-domain { display: inline-flex; align-items: center; gap: 5px; color: var(--mut); font-size: 13px; margin-top: 4px; }
.store-domain .i { width: 13px; height: 13px; }
.store-body p { color: #c3c3d6; font-size: 14px; margin: 12px 0 18px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.store-card.sk .store-cover, .store-card.sk .store-icon, .store-card.sk h3, .store-card.sk p { animation: shimmer 1.3s infinite; background: rgba(255, 255, 255, 0.06); }
.store-card.sk h3 { height: 18px; width: 60%; border-radius: 6px; }
.store-card.sk p { height: 40px; border-radius: 6px; }

/* canjear */
.redeem { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
.redeem-card { position: relative; overflow: hidden; padding: 40px 34px; border-radius: 26px; text-align: center;
  background: radial-gradient(500px 260px at 50% -10%, rgba(255, 45, 85, 0.25), transparent 70%), var(--card); border: 1px solid var(--line2); }
.redeem-art { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 22px; display: grid; place-items: center; background: var(--grad); box-shadow: 0 18px 40px -14px rgba(255, 45, 85, 0.8); transform: rotate(-8deg); }
.redeem-art .i { width: 38px; height: 38px; }
.redeem-card h1 { font-size: 32px; font-weight: 800; }
.redeem-card .mut { margin: 8px 0 26px; }
.redeem-card form { display: grid; gap: 14px; }
.pin-input { height: 66px !important; text-align: center; font: 700 clamp(18px, 4.2vw, 26px) / 1 ui-monospace, 'SF Mono', Consolas, monospace !important; letter-spacing: 0.12em; text-transform: uppercase; border-radius: 16px !important; background: rgba(0, 0, 0, 0.3) !important; }
.redeem-side { display: grid; gap: 16px; }
.plan-status.ok { background: linear-gradient(160deg, rgba(34, 197, 94, 0.12), var(--card) 60%); }
.ps-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ps-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(34, 197, 94, 0.15); color: #4ade80; font-weight: 700; font-size: 13px; }
.ps-badge .i { width: 15px; height: 15px; }
.ps-badge.off { background: rgba(255, 45, 85, 0.14); color: #ff8fa6; }
.ps-days { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; }
.ps-days small { font-size: 15px; color: var(--mut); font-weight: 700; letter-spacing: 0; }
.ps-bar { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-bottom: 12px; }
.ps-bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #22c55e, #4ade80); }
.success { animation: pop 0.4s; }
.success-ic { width: 70px; height: 70px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); box-shadow: 0 0 0 10px rgba(34, 197, 94, 0.15); }
.success-ic .i { width: 36px; height: 36px; stroke-width: 3; }
.success h3 { font-size: 22px; margin-bottom: 8px; }
.success p { color: #d4d4e4; margin: 0 0 20px; }
.confetti { position: fixed; inset: 0; z-index: 95; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { top: 105%; transform: translateX(60px) rotate(720deg); } }
@media (max-width: 860px) {
  .redeem { grid-template-columns: 1fr; }
  .redeem-card { padding: 30px 20px; }
  .page { padding-top: 24px; }
  .page-head { flex-direction: column; gap: 14px; }
}

/* app */
.app-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; padding: 20px 0 30px; }
.app-hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; margin: 18px 0 14px; letter-spacing: -0.04em; }
.plats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.plat { position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.plat.me { background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box; border: 2px solid transparent; }
.plat-me { position: absolute; top: 18px; right: 18px; padding: 4px 10px; border-radius: 999px; background: var(--grad); font-size: 11.5px; font-weight: 800; }
.plat-ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.07); margin-bottom: 16px; }
.plat-ic .i { width: 26px; height: 26px; color: #ff7a93; }
.plat h3 { font-size: 18px; margin-bottom: 10px; }
.plat-body { flex: 1; color: #c9c9da; font-size: 14px; margin-bottom: 16px; }
.plat-body ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
@media (max-width: 860px) { .app-hero { grid-template-columns: 1fr; } .app-hero-art { display: none; } }

/* cuenta */
.acc-head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.acc-head h1 { font-size: 28px; font-weight: 800; }
.acc-head > div { flex: 1; min-width: 200px; }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.acc-col { display: grid; gap: 16px; }
.history { display: grid; gap: 8px; }
.hist { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.hist b { color: #4ade80; }
.hist small { color: var(--mut2); grid-column: 1 / -1; }
.link-card { display: flex; align-items: center; gap: 14px; }
.link-card > div { flex: 1; }
.link-card b, .link-card small { display: block; }
.link-card small { color: var(--mut); }
.link-card .i { color: var(--acc); }
@media (max-width: 860px) { .acc-grid { grid-template-columns: 1fr; } }

/* acceso */
.auth { position: relative; min-height: calc(100vh - var(--top)); display: grid; place-items: center; padding: 30px 16px 60px; overflow: hidden; isolation: isolate; }
.auth .hero-shade { background: radial-gradient(600px 400px at 50% 40%, rgba(7, 7, 12, 0.6), rgba(7, 7, 12, 0.95) 80%), radial-gradient(700px 400px at 85% 10%, rgba(124, 58, 237, 0.35), transparent 70%), radial-gradient(600px 400px at 0% 100%, rgba(255, 45, 85, 0.28), transparent 70%); }
.auth-card { width: 100%; max-width: 430px; padding: 36px 30px 30px; border-radius: 26px; background: rgba(17, 17, 27, 0.82); border: 1px solid var(--line2); box-shadow: var(--shadow); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); text-align: center; }
.auth-card h1 { font-size: 26px; font-weight: 800; }
.auth-card > .mut { margin: 8px 0 24px; }
.auth-card .form { margin-top: 4px; }
.auth-card .form .btn { margin-top: 6px; }
.auth-alt { margin: 22px 0 0; color: var(--mut); font-size: 14px; }
.auth-alt a { color: #ff7a93; font-weight: 700; }
@media (max-width: 860px) { .auth { min-height: calc(100vh - var(--top) - 76px); } .auth-card { padding: 30px 20px 24px; } }

/* pantallas grandes / Smart TV */
@media (min-width: 1800px) {
  body { font-size: 17px; }
  .live { grid-template-columns: minmax(0, 1fr) 460px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
.wall-tile { opacity: 0; transition: opacity 0.6s; }
.wall-tile.ok { opacity: 1; }

/* iconos en chips, etiquetas y avisos del reproductor */
.chip { display: inline-flex; align-items: center; gap: 7px; }
.chip .i { width: 15px; height: 15px; color: var(--mut); transition: color 0.2s; }
.chip:hover .i { color: var(--txt); }
.chip.on .i { color: var(--acc); }
.tag .i { color: #ff7a93; }
.afp-osd { display: flex; align-items: center; gap: 10px; }
.afp-osd .i { width: 20px; height: 20px; flex: none; color: var(--acc); }
.afp-osd span { overflow: hidden; text-overflow: ellipsis; }
.afp-osd { top: 24%; }
.afp.is-loading .afp-osd { top: 20%; }

/* ================= v1.0.2: carruseles, hover y modo TV ================= */
/* carruseles horizontales (rueda del ratón, arrastre y flechas) */
.hs-wrap { position: relative; min-width: 0; --fl: 0px; --fr: 0px; }
.hs-wrap:not(.at-start) { --fl: 36px; }
.hs-wrap:not(.at-end) { --fr: 36px; }
.hs-wrap > .chips, .hs-wrap > .rail-row {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
}
.hs-btn {
  position: absolute; top: 50%; z-index: 3; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(24, 24, 38, 0.95); border: 1px solid var(--line2); color: var(--txt); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s, background 0.2s;
}
.hs-btn:hover { background: var(--acc); border-color: transparent; transform: scale(1.08); }
.hs-btn .i { width: 17px; height: 17px; }
.hs-btn.prev { left: -6px; }
.hs-btn.next { right: -6px; }
.hs-wrap > .rail-row ~ .hs-btn { margin-top: -30px; width: 40px; height: 40px; }
@media (hover: hover) and (pointer: fine) {
  .hs-wrap:hover:not(.at-start) .hs-btn.prev, .hs-wrap:hover:not(.at-end) .hs-btn.next { opacity: 1; pointer-events: auto; }
}
.chips, .rail-row { scrollbar-width: none; cursor: grab; }
.chips::-webkit-scrollbar, .rail-row::-webkit-scrollbar { display: none; }
.dragging { cursor: grabbing; scroll-snap-type: none !important; user-select: none; }
.dragging > * { pointer-events: none; }
.chips { margin: 0; padding: 2px 0; scroll-behavior: auto; }

/* lista de canales: icono de reproducir al pasar el ratón */
.ch-play { position: absolute; left: 10px; top: 50%; width: 52px; height: 40px; margin-top: -20px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(10, 10, 18, 0.62); color: #fff; opacity: 0; transition: opacity 0.15s; pointer-events: none; }
.ch-play .i { width: 18px; height: 18px; }
@media (hover: hover) { .ch:hover .ch-play { opacity: 1; } }
.ch.on .ch-play { opacity: 0 !important; }
.ch { min-height: 56px; }
.ch-meta b { letter-spacing: -0.01em; }

/* tarjetas de "Seguir viendo" / "Destacados" */
.rail-row { padding: 4px 2px 10px; gap: 14px; }
.rail-card { width: 168px; }
.rail-logo { height: 100px; border-radius: 16px; background: radial-gradient(circle at 30% 20%, hsl(var(--h) 60% 30% / 0.55), transparent 70%), linear-gradient(180deg, #1c1c2c, #14141f); }
.rail-logo img { filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45)); transition: transform 0.25s; }
.rail-play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: linear-gradient(0deg, rgba(10, 10, 18, 0.75), rgba(10, 10, 18, 0.2)); opacity: 0; transition: opacity 0.2s; }
.rail-play .i { width: 40px; height: 40px; padding: 11px; border-radius: 50%; background: var(--acc); box-shadow: 0 8px 20px rgba(255, 45, 85, 0.5); }
.rail-card:hover .rail-play, .rail-card:focus-visible .rail-play { opacity: 1; }
.rail-card:hover .rail-logo img { transform: scale(1.06); }
.rail-card:hover .rail-logo { box-shadow: 0 18px 40px -18px hsl(var(--h) 70% 50% / 0.7); }

/* reproductor: mientras no hay imagen se muestra el fondo del canal */
.afp.no-frame .afp-backdrop { opacity: 1 !important; }
.afp.is-paused.no-frame .afp-big { display: grid; }
.afp-loading span { max-width: 80%; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* tarjeta del canal actual */
.now { background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; margin-top: 16px; }
.now-empty { padding: 2px 0; }

/* móvil */
@media (max-width: 999px) {
  .now { margin: 0; border-radius: 0; border-width: 0 0 1px; padding: 14px 16px; background: none; }
  .now-tags { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .now-tags::-webkit-scrollbar { display: none; }
  .tag { flex: none; }
  .now-actions .icon-btn { width: 40px; height: 40px; }
  .ch { min-height: 60px; padding: 9px 10px; }
  .ch-play { display: none; }
  .side-top { box-shadow: 0 10px 20px -12px rgba(0, 0, 0, 0.8); }
}

/* móvil en horizontal viendo un canal: el reproductor ocupa toda la pantalla (modo TV) */
@media (max-width: 999px) and (orientation: landscape) and (max-height: 540px) {
  body.watching[data-route="live"] .stage-sticky { position: fixed; inset: 0; z-index: 70; background: #000; }
  body.watching[data-route="live"] .player-box { aspect-ratio: auto; height: 100%; border-radius: 0; }
  body.watching[data-route="live"] .bottomnav, body.watching[data-route="live"] .topbar { display: none; }
  body.watching[data-route="live"] { overflow: hidden; }
}

/* pantallas grandes: más aire */
@media (min-width: 1400px) {
  .live { gap: 26px; padding: 24px 28px 0; }
  .now-info h2 { font-size: 26px; }
}
