/* HaxStreamCodes — web pública. Diseño CLARO: gris claro, blanco y rojo de la marca (como el fondo plateado/rojo del logo) */
:root {
  --bg: #f1f2f4; --bg2: #e7e9ed; --white: #ffffff; --card: #ffffff; --line: #dcdfe4; --line2: #c9cdd4;
  --text: #1d2026; --muted: #646b76; --soft: #3b414b;
  --red: #d7141b; --red2: #ee2a31; --red-dark: #9e0b10; --red-soft: #fdecec;
  --silver: linear-gradient(180deg, #4a505a 0%, #22262d 48%, #5b626d 52%, #2c3038 100%);
  --radius: 16px; --max: 1180px;
  --shadow: 0 18px 50px rgba(30, 35, 45, .12);
  --shadow-sm: 0 4px 16px rgba(30, 35, 45, .07);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.chrome { background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.red { color: var(--red); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: linear-gradient(180deg, var(--red2), var(--red) 60%, var(--red-dark)); color: #fff; box-shadow: 0 10px 26px rgba(215, 20, 27, .28); }
.btn-red:hover { box-shadow: 0 14px 34px rgba(215, 20, 27, .4); }
.btn-ghost { border-color: var(--line2); color: var(--text); background: var(--white); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- cabecera ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(30, 35, 45, .05); }
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--red), transparent); opacity: .55; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: .2px; color: var(--text); }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand b { color: var(--red); }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a { color: var(--soft); font-weight: 600; font-size: 15px; }
.menu a:hover { color: var(--red); }
.menu a.btn-red, .menu a.btn-red:hover { color: #fff; }
.burger { display: none; background: none; border: 0; color: var(--text); font-size: 26px; cursor: pointer; padding: 6px; }

/* ---------- hero (fondo plateado y rojo de la marca) ---------- */
.hero { position: relative; padding: 90px 0 80px; overflow: hidden; background: #f7f7f8; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; background: url(../img/login-bg.jpg) center/cover no-repeat; opacity: .9; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 70% at 30% 50%, rgba(255, 255, 255, .92), rgba(255, 255, 255, .55) 60%, rgba(255, 255, 255, 0) 100%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--red-soft); border: 1px solid rgba(215, 20, 27, .3); color: var(--red); font-size: 13px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.07; margin: 18px 0 18px; font-weight: 900; letter-spacing: -1px; }
.hero p.lead { font-size: 19px; color: var(--soft); margin: 0 0 30px; max-width: 560px; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .checks { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; color: var(--soft); font-size: 14px; font-weight: 600; }
.hero .checks span::before { content: "✓"; color: var(--red); font-weight: 900; margin-right: 7px; }
.hero-logo { position: relative; justify-self: center; width: min(440px, 100%); }
.hero-logo img { width: 100%; filter: drop-shadow(0 24px 40px rgba(160, 10, 15, .28)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* ---------- secciones ---------- */
section { padding: 90px 0; scroll-margin-top: 70px; }
.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.head .kicker { color: var(--red); font-weight: 800; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; }
.head h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; margin: 10px 0 14px; font-weight: 900; letter-spacing: -.5px; color: var(--text); }
.head p { color: var(--muted); font-size: 17px; margin: 0; }

.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 28px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--red), var(--red2)); opacity: 0; transition: opacity .2s; }
.alt .card { background: #fafbfc; }
.card:hover { transform: translateY(-4px); border-color: rgba(215, 20, 27, .35); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 25px; margin-bottom: 18px; background: var(--red-soft); border: 1px solid rgba(215, 20, 27, .22); }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; padding: 32px 28px 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: s; content: counter(s); position: absolute; top: -18px; left: 26px; width: 38px; height: 38px; border-radius: 50%; color: #fff;
  display: grid; place-items: center; font-weight: 900; background: linear-gradient(180deg, var(--red2), var(--red-dark)); box-shadow: 0 8px 18px rgba(215, 20, 27, .35);
}
.step h3 { margin: 8px 0 8px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* esquema */
.arch { margin-top: 40px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.arch .box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.arch .box h4 { margin: 0 0 6px; font-size: 16px; }
.arch .box p { margin: 0; color: var(--muted); font-size: 14px; }
.arch .box.hl { border-color: rgba(215, 20, 27, .5); box-shadow: 0 0 0 3px rgba(215, 20, 27, .08), var(--shadow); }
.arch .arrow { color: var(--red); font-size: 28px; font-weight: 900; text-align: center; }

/* planes */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 34px 30px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); }
.plan.top { border: 2px solid var(--red); background: var(--white); box-shadow: 0 24px 60px rgba(215, 20, 27, .14); transform: translateY(-6px); }
.plan .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--red); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.plan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.plan-name { min-width: 0; }
.plan-pricebox { text-align: right; flex-shrink: 0; }
.plan h3 { margin: 0; font-size: 22px; }
.plan .per { color: var(--muted); font-size: 14px; margin-top: 2px; }
.plan .price { font-size: 34px; font-weight: 900; margin: 0; letter-spacing: -1px; color: var(--text); line-height: 1; white-space: nowrap; }
.plan.top .price { color: var(--red); }
.plan .price small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-top: 3px; }
.plan .eq { color: var(--red); font-size: 13px; font-weight: 600; min-height: 20px; margin-top: 6px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 28px; flex: 1; }
.plan li { padding: 7px 0 7px 28px; position: relative; color: var(--soft); font-size: 15px; border-bottom: 1px dashed var(--line); }
.plan li::before { content: "✓"; position: absolute; left: 4px; color: var(--red); font-weight: 900; }
.plan .btn { width: 100%; }
.note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 24px; }

/* legal */
.legal { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; padding: 34px; border-radius: 20px; background: linear-gradient(135deg, #fff 0%, var(--red-soft) 100%); border: 1px solid rgba(215, 20, 27, .3); box-shadow: var(--shadow-sm); }
.legal .big { font-size: 46px; }
.legal h3 { margin: 0 0 6px; font-size: 22px; color: var(--red-dark); }
.legal p { margin: 0; color: var(--soft); }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fafbfc; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; margin-bottom: 12px; }
.faq details[open] { border-color: rgba(215, 20, 27, .4); background: var(--white); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 19px 30px 19px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--red); font-size: 24px; font-weight: 900; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 19px; color: var(--muted); }

/* contacto */
.contact { text-align: center; background: linear-gradient(180deg, var(--bg) 0%, #e9ebef 100%); }
.contact .ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* pie */
footer { border-top: 3px solid var(--red); background: #24272e; padding: 40px 0; color: #b7bcc6; font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer .links { display: flex; gap: 22px; flex-wrap: wrap; }
footer a:hover { color: #fff; }

/* página legal */
.doc { max-width: 820px; margin: 40px auto 90px; padding: 44px 46px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.doc h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 10px; }
.doc h2 { font-size: 21px; margin: 38px 0 10px; color: var(--red-dark); }
.doc p, .doc li { color: var(--soft); }
.doc blockquote { margin: 18px 0; padding: 14px 18px; border-left: 4px solid var(--red); background: var(--red-soft); border-radius: 0 10px 10px 0; color: var(--red-dark); }
.doc blockquote p { margin: 4px 0; color: inherit; }
.doc code { background: var(--bg2); padding: 2px 6px; border-radius: 6px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.plan.top.reveal.in { transform: translateY(-6px); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero-logo img { animation: none; } }

/* ---------- móvil ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero::after { background: rgba(255, 255, 255, .78); }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero .ctas, .hero .checks { justify-content: center; }
  .hero-logo { width: min(300px, 80%); order: -1; }
  .g3, .steps, .plans { grid-template-columns: 1fr; }
  .plans { max-width: 460px; margin: 0 auto; }
  .plan.top, .plan.top.reveal.in { transform: none; }
  .arch { grid-template-columns: 1fr; }
  .arch .arrow { transform: rotate(90deg); }
  .legal { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 820px) {
  .burger { display: block; }
  .menu { position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; padding: 10px 0; }
  .menu.open { display: flex; }
  .menu a { padding: 13px 20px; width: 100%; text-align: center; }
  .menu a.btn-red { width: auto; margin: 8px auto; }
  section { padding: 70px 0; }
  .hero { padding: 50px 0 50px; }
  .doc { margin: 20px 12px 60px; padding: 28px 22px; }
}

/* ---------- formulario de denuncia / idioma ---------- */
.doc .fg2 { margin: 16px 0; }
.doc .fg2 label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--text); }
.doc .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.doc input, .doc select, .doc textarea { width: 100%; font: inherit; padding: 11px 13px; border: 1px solid var(--line2); border-radius: 10px; background: #fff; color: var(--text); }
.doc input:focus, .doc select:focus, .doc textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(215, 20, 27, .14); }
.doc textarea { resize: vertical; }
.doc .ck { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; font-size: 14px; color: var(--soft); cursor: pointer; }
.doc .ck input { width: auto; margin-top: 3px; accent-color: var(--red); }
.doc .err { color: var(--red-dark); font-weight: 600; margin: 10px 0; min-height: 20px; }
.doc #done h2 { color: var(--red-dark); }
.menu .lang { cursor: pointer; }
@media (max-width: 620px) { .doc .two { grid-template-columns: 1fr; } }

/* ---------- selector de idioma ---------- */
.langsel { position: relative; display: inline-block; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font: inherit; font-weight: 700; font-size: 14px; color: var(--soft); background: var(--white); border: 1px solid var(--line2); border-radius: 999px; padding: 7px 13px; }
.lang-btn:hover { border-color: var(--red); color: var(--red); }
.lang-btn .caret { font-size: 10px; opacity: .7; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: none; z-index: 60; }
.langsel.open .lang-menu { display: block; }
.lang-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; font: inherit; font-size: 14px; color: var(--text); padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.lang-menu button:hover { background: var(--red-soft); color: var(--red-dark); }
.doc .alert-note { background: var(--red-soft); border: 1px solid rgba(215, 20, 27, .3); color: var(--red-dark); padding: 12px 16px; border-radius: 10px; margin: 0 0 24px; font-weight: 600; }
@media (max-width: 820px) {
  .menu .langsel { width: 100%; text-align: center; padding: 8px 0; }
  .menu .lang-btn { margin: 0 auto; }
  .lang-menu { left: 50%; right: auto; transform: translateX(-50%); }
}

/* ---------- área de cliente ---------- */
.pa-login { max-width: 420px; margin: 10px auto; }
.pa-login h1 { font-size: 26px; margin: 0 0 10px; }
.pa-login .btn { width: 100%; justify-content: center; margin-top: 6px; }
.pa-ok { background: #e9f7ee; border: 1px solid rgba(21,128,61,.3); color: #14532d; padding: 12px 14px; border-radius: 10px; }
.pa-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.pa-top h1 { margin: 0; font-size: 24px; }
.pa-credits { color: var(--soft); font-weight: 600; }
.doc h2 { font-size: 20px; margin: 28px 0 12px; }
.pa-panels { display: grid; gap: 14px; }
.pa-panel { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: #fafbfc; box-shadow: var(--shadow-sm); }
.pa-ph { font-size: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pa-pm { color: var(--muted); font-size: 14px; margin: 6px 0; }
.pa-susp { color: var(--red-dark); background: var(--red-soft); border-radius: 8px; padding: 6px 10px; font-size: 13px; margin: 6px 0; }
.pa-pa { margin-top: 10px; }
.pa-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid; }
.pa-chip.active { color:#14532d; border-color:rgba(21,128,61,.4); background:#e9f7ee; }
.pa-chip.demo { color:#4a2bb5; border-color:rgba(109,75,216,.4); background:#f1edfd; }
.pa-chip.grace { color:#8a4b05; border-color:rgba(180,83,9,.4); background:#fdf3e6; }
.pa-chip.expired { color:#555; border-color:var(--line2); background:#f1f2f4; }
.pa-chip.suspended { color:var(--red-dark); border-color:rgba(215,20,27,.4); background:var(--red-soft); }
.pa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.pa-box { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.pa-box h3 { margin: 0 0 8px; font-size: 16px; }
.pa-box .ck { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 14px; color: var(--soft); cursor: pointer; }
.pa-box .ck input { accent-color: var(--red); }
.pa-saved { color: #14532d; font-size: 13px; margin-top: 6px; }
.pa-notices { width: 100%; border-collapse: collapse; }
.pa-notices td { padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.pa-notices td:first-child { color: var(--muted); white-space: nowrap; width: 110px; }
.doc .muted { color: var(--muted); }
@media (max-width: 620px) { .pa-grid { grid-template-columns: 1fr; } }
