/* =============================================================
   CAOS — landing parches de PR · Arquetipo 07 Brutalist Grid (versión oscura)
   ============================================================= */

/* 1. Tokens */
:root {
  --bg: #0a0a0a;
  --bg-2: #111;
  --ink: #f2efe9;
  --mute: #8a8780;
  --line: #2e2e2e;
  --red: #e0141b;
  --red-deep: #be0c0e;
  --t1: #c3c9d2;  /* plata */
  --t2: #c9a24a;  /* oro */
  --t3: #6fe6d4;  /* diamante */
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Consolas", monospace;
  --sans: "Inter", system-ui, "Segoe UI", sans-serif;
  --pad: clamp(1.1rem, 2.4vw, 2.2rem);
  --nav-h: 60px;
}

/* 2. Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
[hidden] { display: none !important; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; font-weight: 400; }
::selection { background: var(--red); color: var(--ink); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* 3. Utilities */
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--ink); color: var(--bg); z-index: 9999; }
.skip-link:focus { top: 1rem; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.small { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.red { color: var(--red); }

/* Rejilla brutalista: el hueco de 1px deja ver las líneas */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cell { background: var(--bg); padding: var(--pad); min-width: 0; }

/* 4. Typography */
.kicker {
  font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--red); margin-bottom: 1.2rem;
}
.kicker::before { content: "■ "; }
h2 {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(2.6rem, 6.5vw, 5.4rem); line-height: .92; letter-spacing: .005em;
}
h3 { font-family: var(--display); text-transform: uppercase; font-size: 1.7rem; line-height: 1; letter-spacing: .01em; }

/* 5. Components */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--mono); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: 1rem 1.4rem; border: 1px solid var(--ink); background: var(--bg); color: var(--ink);
  transition: none;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-full { width: 100%; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: stretch;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.nav > * { display: flex; align-items: center; }
.nav-brand { gap: .6rem; padding: 0 var(--pad); border-right: 1px solid var(--line); font-family: var(--display); font-size: 1.5rem; letter-spacing: .08em; }
.nav-links { display: none; flex: 1; }
.nav-links a { padding: 0 1.4rem; height: 100%; display: flex; align-items: center; font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; border-right: 1px solid var(--line); }
.nav-links a:hover { background: var(--ink); color: var(--bg); }
.nav-cta { margin-left: auto; padding: 0 var(--pad); background: var(--red); color: #fff; font-family: var(--mono); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.nav-cta:hover { background: var(--ink); color: var(--bg); }

/* 6. Sections */
/* Hero */
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding-block: clamp(2.5rem, 7vw, 6rem); }
.hero-title {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(4rem, 15vw, 11.5rem); line-height: .84; letter-spacing: -.005em;
  margin-bottom: 1.8rem;
}
.hero-title .line { display: block; }
.hero-lede { max-width: 34rem; font-size: 1.08rem; color: #cfccc5; margin-bottom: 2rem; }
.hero-lede strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-stage { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 520px; background: var(--bg-2); overflow: hidden; }
.hero-stage::before { /* cuadrícula técnica de fondo */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .45;
}
.stage-tag { position: relative; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; color: var(--mute); }
.stack { position: relative; flex: 1; min-height: 360px; }
.stack-item { position: absolute; width: min(46%, 250px); filter: drop-shadow(0 18px 24px rgba(0,0,0,.6)); will-change: transform; }
.s1 { left: 2%;  top: 2%; }
.s2 { left: 27%; top: 26%; z-index: 2; width: min(52%, 290px); }
.s3 { right: 2%; top: 56%; z-index: 3; }
.stage-price { position: relative; display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.stage-price .price { font-family: var(--display); font-size: 3rem; line-height: 1; color: var(--red); }

.hero-strip { grid-template-columns: repeat(2, 1fr); border-top: 0; }
.hero-strip .cell { display: flex; flex-direction: column; gap: .3rem; }
.hero-strip b { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; }

/* Marquee */
.marquee { overflow: hidden; background: var(--red); color: #fff; border-block: 1px solid var(--red); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee span, .marquee i { font-family: var(--display); font-style: normal; font-size: clamp(1.8rem, 4vw, 3rem); text-transform: uppercase; padding: .5rem 1.4rem; white-space: nowrap; }
.marquee i { color: var(--bg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Secciones genéricas */
.section { padding-top: clamp(3rem, 8vw, 6rem); }
.head .cell { padding-bottom: clamp(2rem, 4vw, 3rem); }
.head-aside { display: flex; flex-direction: column; justify-content: flex-end; gap: 1.4rem; color: #cfccc5; }
.t1 { color: var(--t1); } .t2 { color: var(--t2); } .t3 { color: var(--t3); }

.filters { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); width: fit-content; }
.filter { font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; padding: .7rem 1rem; border-right: 1px solid var(--line); }
.filter:last-child { border-right: 0; }
.filter:hover { background: var(--ink); color: var(--bg); }
.filter.is-on { background: var(--red); color: #fff; }

/* Catálogo */
.catalog { grid-template-columns: 1fr; border-top: 0; }
.card { display: flex; flex-direction: column; gap: 1.2rem; transition: background-color .15s; }
.card[hidden] { display: none; }
.card-top { display: flex; justify-content: space-between; gap: 1rem; color: var(--mute); }
.tier { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.card img { width: 72%; max-width: 280px; margin: .6rem auto; aspect-ratio: 1; object-fit: contain; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.card:hover { background: var(--bg-2); }
.card:hover img { transform: translateY(-8px) scale(1.04); }
.card-foot { display: flex; align-items: end; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: auto; }
.card-foot h3 { font-size: 1.35rem; }
.card-foot h3 b { display: block; font-weight: 400; font-size: 2.3rem; }
.buy { font-family: var(--mono); font-size: .82rem; font-weight: 700; padding: .7rem .9rem; border: 1px solid var(--ink); white-space: nowrap; }
.buy:hover { background: var(--red); border-color: var(--red); color: #fff; }


/* Pack Club */
.pack { border-top: 0; }
.pack .cell { background: var(--bg-2); }
.pack-copy { display: flex; flex-direction: column; justify-content: center; gap: 1rem; color: #cfccc5; }
.pack-copy .kicker { margin-bottom: 0; }
.pack-title { font-size: clamp(2.4rem, 4.5vw, 3.6rem); line-height: .92; color: var(--ink); }
.pack-art { display: flex; align-items: center; justify-content: center; }
.pack-art img { width: 34%; max-width: 130px; margin: 0 -3%; filter: drop-shadow(0 10px 16px rgba(0,0,0,.6)); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.pack-art img:nth-child(2) { position: relative; z-index: 1; width: 40%; max-width: 150px; }
.pack:hover .pack-art img:nth-child(1) { transform: translateX(-10px); }
.pack:hover .pack-art img:nth-child(3) { transform: translateX(10px); }
.pack-buy { display: flex; flex-direction: column; justify-content: center; gap: .5rem; color: var(--mute); }
.pack-price { font-family: var(--display); font-size: 3.4rem; line-height: 1; color: var(--red); }
.pack-free { color: var(--t3); margin-bottom: .8rem; }

/* Código */
.codigo .codigo-head { padding-block: clamp(2rem, 6vw, 5rem); }
.mega { font-family: var(--display); text-transform: uppercase; font-size: clamp(3rem, 10vw, 9rem); line-height: .88; }
.rule { display: flex; flex-direction: column; gap: .8rem; }
.rule-n { font-family: var(--mono); color: var(--red); font-size: .9rem; }
.rule p, .step p { color: #bdbab3; }
.rule:hover, .step:hover { background: var(--ink); color: var(--bg); }
.rule:hover p, .step:hover p { color: #333; }

/* Pasos */
.step { display: flex; flex-direction: column; gap: .8rem; min-height: 280px; }
.step-n { font-family: var(--display); font-size: clamp(4rem, 9vw, 7rem); line-height: .9; color: var(--red); }
.step:hover .step-n { color: var(--red-deep); }

/* Mascota */
.mascot-art { display: flex; align-items: end; justify-content: center; background: radial-gradient(60% 55% at 50% 60%, #2a0507 0%, var(--bg) 70%); padding-bottom: 0; }
.mascot-art img { width: min(80%, 380px); }
.mascot-copy { display: flex; flex-direction: column; justify-content: center; gap: 1.2rem; }
.mascot-copy p { max-width: 36rem; color: #cfccc5; }
.mascot-copy .btn { align-self: flex-start; margin-top: .6rem; }

/* Pedido */
.pedido .cell:first-child { padding-block: clamp(2rem, 6vw, 4.5rem); }
.pedido-pick { margin-top: 1.6rem; font-size: .85rem; color: var(--mute); }
.pedido-pick b { color: var(--ink); }
.pedido-pick.is-set b { color: var(--red); }
.pedido-box { display: flex; flex-direction: column; justify-content: center; gap: 1.2rem; background: var(--bg-2); }
.pedido-box ul { display: grid; gap: .4rem; color: #cfccc5; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 0; font-family: var(--mono); font-weight: 500; font-size: .95rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--red); }
.faq details p { padding: 0 0 1.3rem; color: #bdbab3; max-width: 44rem; }

/* Footer */
.footer { margin-top: clamp(3rem, 8vw, 6rem); }
.footer .cell { display: flex; flex-direction: column; gap: .5rem; }
.foot-big { font-family: var(--display); font-size: clamp(4rem, 12vw, 9rem); line-height: .85; letter-spacing: .04em; }
.foot-h { color: var(--red); margin-bottom: .4rem; }
.footer a:hover { color: var(--red); }
.foot-copy { margin-top: auto; padding-top: 1.4rem; color: var(--mute); }

/* Cursor con coordenadas */
.cursor-read {
  position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none;
  font-family: var(--mono); font-size: .68rem; color: var(--red); letter-spacing: .06em;
  opacity: 0; transition: opacity .2s;
}
.has-cursor .cursor-read { opacity: 1; }

/* 7. Effects — reveals (solo si JS está listo; sin JS todo se ve) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* 8. Responsive */
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(12, 1fr); }
  .grid > .cell { grid-column: span 12; }
  .grid > .span-3 { grid-column: span 6; }
  .grid > .span-4 { grid-column: span 4; }
  .grid > .span-5 { grid-column: span 5; }
  .grid > .span-6 { grid-column: span 6; }
  .grid > .span-7 { grid-column: span 7; }
  .grid > .span-8 { grid-column: span 8; }
  .hero-strip { grid-template-columns: repeat(4, 1fr); }
  .hero-strip > .cell { grid-column: auto; }
  .catalog { grid-template-columns: repeat(2, 1fr); }
  .catalog > .cell { grid-column: auto; }
  .nav-links { display: flex; }
}
@media (min-width: 1024px) {
  .hero > .grid:first-child { grid-template-columns: 7fr 5fr; }
  .hero > .grid:first-child > .cell { grid-column: auto; }
  .hero-stage { min-height: 640px; }
  .catalog { grid-template-columns: repeat(3, 1fr); }
  .grid > .span-3 { grid-column: span 3; }
}
@media (max-width: 719px) {
  .nav-cta { font-size: .7rem; }
  .step { min-height: 0; }
}

/* 9. Reduced-motion — solo lo intrusivo (bucle largo) */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 90s; }
}

/* Pack: reparto en tablet (en escritorio manda 5/4/3) */
@media (min-width: 720px) and (max-width: 1023px) {
  .grid.pack > .pack-copy { grid-column: span 7; }
  .grid.pack > .pack-art { grid-column: span 5; }
  .grid.pack > .pack-buy { grid-column: span 12; }
}


/* =============================================================
   Página privada de pago (/aprobado) y gracias
   ============================================================= */
.nav-note { margin-left: auto; padding: 0 var(--pad); color: var(--mute); }
.ap-hero .cell { padding-block: clamp(2rem, 6vw, 4.5rem); }
.ap-title { font-family: var(--display); text-transform: uppercase; font-size: clamp(3.6rem, 11vw, 8.5rem); line-height: .86; margin-bottom: 1.4rem; }
.ap-lede { max-width: 34rem; color: #cfccc5; font-size: 1.05rem; margin-bottom: 1.2rem; }
.ap-trust { display: flex; flex-direction: column; justify-content: center; gap: 1rem; background: var(--bg-2); }
.ap-trust p { color: var(--red); }
.ap-trust ul { display: grid; gap: .6rem; color: #cfccc5; font-size: .95rem; }
.ap-trust li::before { content: "✓ "; color: var(--t3); font-weight: 700; }

.picks { grid-template-columns: repeat(2, 1fr); border-top: 0; }
.picks > .cell { grid-column: auto; }
.pick { position: relative; display: flex; flex-direction: column; gap: .6rem; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick-top { display: flex; justify-content: space-between; gap: .5rem; color: var(--mute); }
.pick img { width: 70%; max-width: 200px; margin: .4rem auto; aspect-ratio: 1; object-fit: contain; transition: transform .25s; }
.pick-name { font-family: var(--display); text-transform: uppercase; font-size: 1.1rem; line-height: 1.1; }
.pick-name b { display: block; font-weight: 400; font-size: 1.8rem; }
.pick:hover { background: var(--bg-2); }
.pick:hover img { transform: translateY(-4px); }
.pick:has(input:checked) { background: var(--bg-2); box-shadow: inset 0 0 0 2px var(--red); }
.pick:has(input:checked) .pick-name { color: var(--red); }
.pick:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: -4px; }

.pack-sels { display: flex; flex-direction: column; gap: 1rem; color: #cfccc5; }
.pack-sel { display: flex; flex-direction: column; gap: .35rem; }
.pack-sel span { color: var(--mute); }
.pack-sel select { font: 500 .95rem var(--mono); color: var(--ink); background: var(--bg-2); border: 1px solid var(--line); padding: .85rem .9rem; border-radius: 0; }
.pack-sel select:focus { border-color: var(--red); outline: none; }
.pack-preview { display: flex; align-items: center; justify-content: center; background: var(--bg-2); }
.pack-preview img { width: 33%; max-width: 150px; margin: 0 -2%; filter: drop-shadow(0 10px 16px rgba(0,0,0,.6)); }
.pack-preview img:nth-child(2) { position: relative; z-index: 1; width: 38%; }

.ap-sum { color: var(--mute); margin-bottom: 1.4rem; }
.ap-sum b { color: var(--ink); }
.ap-lines { max-width: 30rem; border-top: 1px solid var(--line); }
.ap-lines p { display: flex; justify-content: space-between; padding: .7rem 0; border-bottom: 1px solid var(--line); color: #cfccc5; }
.ap-total { font-weight: 700; color: var(--ink) !important; font-size: 1.15rem; }
.ap-total span:last-child { color: var(--red); }
.ap-pay-box { display: flex; flex-direction: column; justify-content: center; gap: 1rem; background: var(--bg-2); color: #cfccc5; }
.ap-pay-box b { color: var(--ink); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.ap-pay-note { color: var(--mute); }
.gracias-art { display: flex; align-items: end; justify-content: center; background: radial-gradient(60% 55% at 50% 60%, #2a0507 0%, var(--bg) 70%); padding-bottom: 0; }
.gracias-art img { width: min(75%, 320px); }

@media (min-width: 720px) { .picks { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 719px) { .nav-note { display: none; } }
.picks.is-locked { grid-template-columns: 1fr !important; }
.picks.is-locked .pick { cursor: default; flex-direction: row; align-items: center; gap: 2rem; flex-wrap: wrap; }
.picks.is-locked .pick img { width: 180px; margin: 0; }
.picks.is-locked .pick-top { flex-direction: column; }
.pack-sel select:disabled { opacity: 1; color: var(--ink); cursor: default; }
