/* Reventa Picks: negro con zonas grises. Se adapta a celular, tableta y computadora. */
:root {
  --bg: #000000;
  --surface: #121212;
  --surface-2: #1f1f1f;
  --line: #2b2b2b;
  --ink: #ffffff;
  --muted: #9e9e9e;
  --light: #d4d4d4;
  --on-light: #000000;
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 16px 16px 48px; }

header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 24px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.logo img { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); display: block; }
.brand { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.pill { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }

h1 { font-size: 34px; line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 16px; }
h2 { font-size: 20px; margin: 0 0 12px; letter-spacing: -0.01em; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 12px; }
.price strong { font-size: 44px; letter-spacing: -0.03em; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 54px; padding: 0 20px; border: 0; border-radius: 999px;
  background: var(--light); color: var(--on-light);
  font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; text-decoration: none;
}
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.secondary { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.btn + .btn { margin-top: 10px; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 12px; padding: 10px 0; }
.steps li::before {
  content: counter(s); flex: 0 0 30px; height: 30px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
input[type="text"] {
  width: 100%; min-height: 50px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); padding: 0 16px; font: inherit; margin-bottom: 10px;
}
input[type="text"]:focus { outline: 2px solid var(--light); outline-offset: 1px; }
.status { display: flex; align-items: center; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); flex: 0 0 10px; }
.dot.dim { background: var(--muted); }
.note { color: var(--muted); font-size: 13px; }
.error { color: var(--ink); font-size: 13px; font-weight: 600; }

/* Inicio: en celular todo en una columna (presentación, precio, cómo funciona, ya tengo pase);
   en pantallas grandes, presentación y cómo funciona a la izquierda, precio y ya tengo pase a la derecha */
.home { display: flex; flex-direction: column; gap: 16px; }
.home .col { display: contents; }
.home .hero { order: 1; padding: 8px 0; }
.home .price-card { order: 2; }
.home .how { order: 3; }
.home .code { order: 4; }

/* Pronósticos */
.feed { display: grid; gap: 16px; }
.posts { display: grid; gap: 12px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; break-inside: avoid; }
.post time { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.post .body { white-space: pre-wrap; word-wrap: break-word; }
.post img { display: block; width: 100%; height: auto; border-radius: 12px; margin-top: 12px; background: var(--surface-2); }
.empty { text-align: center; color: var(--muted); padding: 40px 12px; border: 1px dashed var(--line); border-radius: var(--radius); }
.narrow { max-width: 560px; margin: 0 auto; }

footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer a { color: var(--muted); }
.hidden { display: none !important; }

.gate {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.94); display: flex;
  align-items: center; justify-content: center; padding: 16px; z-index: 10;
}
.gate .card { max-width: 420px; width: 100%; }

.doc { max-width: 760px; }
.doc h1 { font-size: 30px; }
.doc h2 { font-size: 18px; margin-top: 28px; }

@media (min-width: 720px) {
  .wrap { padding: 24px 32px 64px; }
  h1 { font-size: 44px; }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

@media (min-width: 960px) {
  h1 { font-size: 56px; }
  .home { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 40px; align-items: start; }
  .home .col { display: flex; flex-direction: column; gap: 24px; }
  .home .hero { padding: 40px 0 0; }
  .feed { grid-template-columns: 320px minmax(0, 1fr); align-items: start; column-gap: 32px; }
  .feed .side { position: sticky; top: 24px; }
}

@media (min-width: 1200px) {
  .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
