/* SmarTV+ · sitio público (celular y PC) */
:root {
  --bg: #0e0e11; --surface: #17171c; --surface-2: #1f1f26; --line: #2a2a33; --line-2: #393944;
  --ink: #f4f4f5; --ink-2: #c9c9d1; --muted: #8d8d98;
  --accent: #ef9f27; --accent-ink: #18181b; --accent-soft: rgba(239, 159, 39, .13);
  --good: #22c55e; --info: #60a5fa; --warn: #facc15; --bad: #f87171;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font: 15.5px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }

/* ---------- Encabezado ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(14, 14, 17, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1040px; margin: 0 auto; padding: 0 16px; height: 64px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -.3px; }
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.brand circle { fill: var(--accent); } .brand path { fill: var(--accent-ink); }
.brand b { color: var(--accent); }
.nav { margin-left: auto; display: flex; gap: 2px; }
.nav a { padding: 7px 11px; border-radius: 9px; color: var(--ink-2); font-weight: 600; font-size: 14px; white-space: nowrap; }
.nav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav a.on { background: var(--accent-soft); color: var(--accent); }
.menu-btn { display: none; margin-left: auto; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: none; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; fill: none; }

.hero-note { background: linear-gradient(90deg, rgba(239, 159, 39, .14), rgba(239, 159, 39, 0)); border-bottom: 1px solid var(--line); }
.hero-note .wrap { padding-top: 9px; padding-bottom: 9px; font-size: 13.5px; color: var(--ink-2); }
.hero-note b { color: var(--accent); }

/* ---------- Página ---------- */
.page { padding-top: 32px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 20px; }
h1 { font-size: 32px; line-height: 1.15; font-weight: 800; letter-spacing: -.8px; }
h2 { font-size: 20px; font-weight: 700; letter-spacing: -.3px; margin-bottom: 10px; }
h3 { font-size: 16px; font-weight: 700; margin: 18px 0 6px; }
.lead { color: var(--ink-2); font-size: 17px; max-width: 720px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.card p + p { margin-top: 10px; }
.card ul, .card ol { padding-left: 22px; color: var(--ink-2); }
.card li { margin: 4px 0; }
.muted { color: var(--muted); font-size: 13.5px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }

/* Aviso destacado */
.notice { border-left: 4px solid var(--accent); background: var(--surface); border-radius: 12px; padding: 16px 20px; }
.notice.bad { border-left-color: var(--bad); }
.notice h2 { color: var(--accent); font-size: 17px; margin-bottom: 4px; }
.notice.bad h2 { color: var(--bad); }

/* Noticias */
.news-date { color: var(--muted); font-size: 13px; font-weight: 600; }
.news h2 { margin: 4px 0 10px; }
.news .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }

/* Plataformas (instrucciones) */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font-weight: 600; cursor: pointer; }
.tab.on { background: var(--accent-soft); border-color: rgba(239, 159, 39, .45); color: var(--accent); }
.steps { counter-reset: paso; list-style: none; padding: 0 !important; }
.steps li { counter-increment: paso; position: relative; padding: 2px 0 12px 44px; color: var(--ink-2); }
.steps li:before {
  content: counter(paso); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 14px;
}

/* Preguntas frecuentes */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details:last-child { border-bottom: 0; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary:after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
details[open] summary:after { content: "−"; }
details p { margin-top: 8px; color: var(--ink-2); }

/* ---------- Formularios ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.input, .select, textarea.input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 11px; background: var(--bg); border: 1px solid var(--line-2); outline: none;
}
textarea.input { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.input:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(239, 159, 39, .18); }
.input.code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 20px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 200px; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); align-self: flex-start; }
.seg button { height: 36px; padding: 0 16px; border-radius: 9px; border: 0; background: none; color: var(--ink-2); font-weight: 600; cursor: pointer; }
.seg button.on { background: var(--surface-2); color: var(--ink); box-shadow: 0 1px 0 var(--line-2); }
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px; border: 2px dashed var(--line-2); border-radius: 14px; text-align: center; color: var(--ink-2); cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop b { color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 11px; border: 1px solid transparent; font-weight: 700; cursor: pointer; white-space: nowrap; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #f5b048; }
.btn.ghost { background: transparent; border-color: var(--line-2); color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.danger { background: transparent; border-color: rgba(248, 113, 113, .4); color: #fca5a5; }
.btn.danger:hover { background: rgba(248, 113, 113, .1); }
.btn:disabled { opacity: .5; cursor: default; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

.msg { padding: 12px 16px; border-radius: 11px; font-size: 14.5px; }
.msg:empty { display: none; }
.msg.ok { background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .35); color: #86efac; }
.msg.err { background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .35); color: #fca5a5; }
.msg.info { background: rgba(96, 165, 250, .1); border: 1px solid rgba(96, 165, 250, .3); color: #bfdbfe; }

/* Estado de la licencia */
.status-box { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-2); }
.status-box .big { font-family: ui-monospace, Consolas, monospace; font-size: 22px; font-weight: 800; letter-spacing: 2px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-trial { color: #93c5fd; background: rgba(96, 165, 250, .13); }
.st-active { color: #86efac; background: rgba(34, 197, 94, .13); }
.st-expired { color: #fde047; background: rgba(250, 204, 21, .11); }
.st-blocked { color: #fca5a5; background: rgba(248, 113, 113, .13); }
.price { font-size: 36px; font-weight: 800; letter-spacing: -1px; }
.pay { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.pay .btn { height: 52px; }
.pay-paypal { background: #ffc439; color: #111; }
.pay-crypto { background: #1f1f26; border-color: var(--line-2) !important; color: var(--ink); }
.out { font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; word-break: break-all; padding: 12px 14px; border-radius: 11px; background: var(--bg); border: 1px solid var(--line-2); color: var(--accent); }

/* ---------- Pie ---------- */
.foot { border-top: 1px solid var(--line); }
.foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 24px; color: var(--muted); font-size: 13px; }

/* ---------- Celular ---------- */
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; padding: 8px 12px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
  .menu-open .nav { display: flex; }
  .nav a { padding: 11px 12px; font-size: 15px; }
  h1 { font-size: 26px; }
  .card { padding: 18px; }
  .pay { grid-template-columns: 1fr; }
}

/* Selector de idioma: English / Español (el actual en ámbar) */
.langs { display: flex; align-items: center; gap: 2px; margin-left: 10px; padding-left: 12px; border-left: 1px solid var(--line); font-size: 13.5px; white-space: nowrap; }
.langs a { padding: 4px 6px; border-radius: 7px; color: var(--muted); font-weight: 600; }
.langs a:hover { color: var(--ink); text-decoration: none; }
.langs a.on { color: var(--accent); font-weight: 800; }
.langs .sep { color: var(--line-2); }
@media (max-width: 860px) { .langs { margin-left: 8px; padding-left: 8px; } }
