/* Tienda de CH Conecta. Tema del lanzamiento de Los Waraos: negro y rojo (tomado de la portada). */
:root {
  --bg: #030303;
  --panel: #0d0d0d;
  --line: #222;
  --ink: #f8f7f1;
  --muted: #aaa79d;
  --accent: #ff2d2d;
  --blue: #8bb7ff;
  --yellow: #ffd66b;
  --danger: #ff8a7a;
  --player-h: 84px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
  padding-bottom: calc(var(--player-h) + env(safe-area-inset-bottom) + 24px);
}
a { color: var(--blue); }
h1, h2 { line-height: 1.15; margin: 0; }
h2 { font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
[hidden] { display: none !important; } /* el atributo hidden debe ganar a cualquier display */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.top { display: flex; justify-content: space-between; align-items: center; padding: 18px max(16px, 4vw); }
.brand { color: var(--ink); text-decoration: none; letter-spacing: .28em; font-size: .8rem; font-weight: 600; }
.top-note { color: var(--muted); font-size: .8rem; }

main { max-width: 1040px; margin: 0 auto; padding: 0 max(16px, 4vw); }
section { margin-bottom: 40px; }

.banner { background: #1a0707; border: 1px solid var(--accent); color: var(--accent); padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; }
.banner.warn { background: #1a1208; border-color: var(--yellow); color: var(--yellow); }

.hero { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 36px; align-items: end; margin: 12px 0 40px; }
.cover { width: 100%; max-width: 420px; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--panel); }
.eyebrow { color: var(--accent); letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; margin: 0 0 8px; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); }
.release-note { color: var(--muted); margin: 12px 0 20px; max-width: 52ch; }
.buy { max-width: 52ch; }
.fineprint { color: var(--muted); font-size: .8rem; margin: 10px 0 0; }
.error { color: var(--danger); font-size: .9rem; margin: 8px 0 0; }
.member { color: var(--accent); font-weight: 600; }
.yt { display: inline-block; margin-top: 12px; font-size: .9rem; }

.btn {
  font: inherit; cursor: pointer; border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  padding: 12px 20px; border-radius: 999px; min-height: 44px;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; padding: 14px 28px; }
.btn.primary:hover { filter: brightness(1.06); }
.btn[disabled] { opacity: .6; cursor: progress; }

.cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; }
.tracks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.track {
  display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 12px; width: 100%;
  padding: 12px 8px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink);
  font: inherit; text-align: left; cursor: pointer; min-height: 52px;
}
.track:hover { background: var(--panel); }
.track .n { color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; }
.track .tag { color: var(--muted); font-size: .75rem; }
.track.playing { color: var(--accent); }
.track.playing .n { color: var(--accent); }

.lyrics { position: sticky; top: 16px; align-self: start; }
.lyrics-title { color: var(--ink); margin: 0 0 10px; font-weight: 600; }
.lyrics-body { white-space: pre-wrap; color: var(--ink); opacity: .9; margin: 0; max-height: 55vh; overflow: auto; }

.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.video-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.video-card h3 { font-size: .95rem; margin: 0 0 10px; }
.video-card video { width: 100%; border-radius: 8px; background: #000; }
.video-card.locked { color: var(--muted); display: grid; place-items: center; min-height: 140px; text-align: center; }

.recover-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 480px; }
.recover-form input { flex: 1 1 220px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; }
.foot { color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); padding: 20px 0; }

/* Barra de reproduccion fija */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr); align-items: center; gap: 16px;
  min-height: var(--player-h); padding: 10px max(16px, 3vw) calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 10, .96); border-top: 1px solid var(--line); backdrop-filter: blur(10px);
}
.now { display: flex; align-items: center; gap: 12px; min-width: 0; }
.now img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; background: var(--panel); flex: none; }
.now-text { display: flex; flex-direction: column; min-width: 0; }
.now-text strong, .now-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-text span { color: var(--muted); font-size: .8rem; }
.controls { display: flex; align-items: center; gap: 6px; }
.icon { background: none; border: 0; color: var(--ink); font-size: 1.2rem; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; }
.icon:hover { background: var(--panel); }
.icon.big { background: var(--accent); color: #fff; font-size: 1.1rem; }
.seek { display: flex; align-items: center; gap: 10px; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.seek input { flex: 1; accent-color: var(--accent); min-width: 0; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .cover { max-width: 240px; }
  .cols { grid-template-columns: 1fr; }
  .lyrics { position: static; }
  .player { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "now controls" "seek seek"; row-gap: 4px; }
  .now { grid-area: now; } .controls { grid-area: controls; } .seek { grid-area: seek; }
  :root { --player-h: 112px; }
}
/* Pagina de entrada con el enlace del correo */
body.gate { display: grid; place-items: center; min-height: 100vh; padding-bottom: 0; }
.gate-box { max-width: 420px; text-align: center; padding: 24px; }
.gate-box .release-note { margin-inline: auto; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
