:root {
  --honey: #FFD645;
  --honey-deep: #F0A21C;
  --cream: #FFF8E1;
  --ink: #1C1917;
  --ink-soft: #57534E;
  --paper: #FFFFFF;
  --silver: #C9D1DA;
  --gold: #F2C14E;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(28, 25, 23, 0.12);
  --hex: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
  font-family: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }

.container { width: min(1180px, 92%); margin: 0 auto; }
.narrow { width: min(760px, 92%); }
.muted { color: var(--ink-soft); }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper);
  padding: .6em 1em; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 248, 225, 0.92); backdrop-filter: blur(8px);
  border-bottom: 2px solid rgba(28, 25, 23, 0.08);
}
.nav { display: flex; align-items: center; gap: 1.5rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; text-decoration: none; font-size: 1.1rem; }
.nav-links { display: flex; gap: 1.2rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 700; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-block; background: var(--ink); color: var(--honey);
  font-weight: 800; text-decoration: none; padding: .85em 1.4em; border-radius: 999px;
  border: 3px solid var(--ink); transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(28, 25, 23, .25); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-small { padding: .55em 1.1em; font-size: .9rem; }
.lang-toggle {
  font: inherit; font-weight: 800; font-size: .85rem; cursor: pointer; padding: .45em .9em;
  border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
}
.lang-toggle:hover { background: var(--honey); }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .7), transparent 45%),
    linear-gradient(160deg, var(--honey) 0%, #FFE58A 55%, var(--cream) 100%);
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.eyebrow { font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; margin: 0 0 .8rem; }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); font-weight: 900; }
.hl { background: linear-gradient(transparent 62%, rgba(255, 255, 255, .8) 62%); }
.lead { font-size: 1.2rem; max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 2rem; }
.stats { display: grid; grid-template-columns: repeat(4, auto); gap: 1.5rem; margin: 0; justify-content: start; }
.stats div { min-width: 0; }
.stats dt { font-size: .8rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.stats dd { margin: 0; font-size: 1.6rem; font-weight: 900; }

.hero-cards { position: relative; height: clamp(300px, 38vw, 460px); }
.card-fan {
  position: absolute; width: 62%; border-radius: var(--radius); box-shadow: var(--shadow);
  border: 4px solid var(--ink); background: var(--paper);
}
.c1 { left: 0; top: 14%; transform: rotate(-10deg); }
.c2 { left: 19%; top: 4%; transform: rotate(-1deg); z-index: 1; }
.c3 { left: 38%; top: 12%; transform: rotate(9deg); z-index: 2; }

/* ---------- secciones ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--paper); }
.section-lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 60ch; margin-top: -.2rem; }

.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); padding: 1.6rem; box-shadow: 0 6px 0 var(--ink); }
.step-num {
  display: grid; place-items: center; width: 52px; height: 48px; margin-bottom: 1rem;
  background: var(--honey); clip-path: var(--hex); font-weight: 900; font-size: 1.3rem;
}
.step p { margin: 0; color: var(--ink-soft); }

.rarity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.rarity-card { border-radius: var(--radius); padding: 1.2rem; border: 3px solid var(--ink); background: var(--cream); text-align: center; }
.rarity-card img { border-radius: 12px; margin-bottom: 1rem; }
.rarity-card.rare { background: linear-gradient(160deg, #F4F7FA, #E2E8EF); }
.rarity-card.legendary { background: linear-gradient(160deg, #FFF6D6, #FFE08A); }
.rarity-card h3 { font-size: 1.4rem; margin-bottom: .2rem; }
.rarity-card .supply { font-size: 2rem; font-weight: 900; margin: .2rem 0; }
.rarity-card p { margin: 0; color: var(--ink-soft); }

/* ---------- álbum ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin: 1.8rem 0 1rem; }
.filter-group { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  font: inherit; font-weight: 700; padding: .45em 1em; border-radius: 999px; cursor: pointer;
  background: var(--paper); border: 2px solid var(--ink); color: var(--ink);
}
.chip[aria-checked="true"] { background: var(--ink); color: var(--honey); }
.search input {
  font: inherit; padding: .5em 1em; border-radius: 999px; border: 2px solid var(--ink);
  min-width: 220px; background: var(--paper);
}
.result-count { font-weight: 700; color: var(--ink-soft); margin: 0 0 1rem; }

.album-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.album-card {
  width: 100%; font: inherit; text-align: left; cursor: pointer; padding: 0; overflow: hidden;
  border-radius: 14px; border: 3px solid var(--ink); background: var(--paper);
  transition: transform .15s ease, box-shadow .15s ease;
}
.album-card:hover { transform: translateY(-3px); box-shadow: 0 6px 0 var(--ink); }
.album-card img { aspect-ratio: 1; width: 100%; object-fit: cover; }
.album-card .meta { padding: .55rem .7rem .7rem; }
.album-card .num { font-size: .75rem; font-weight: 800; color: var(--ink-soft); }
.album-card .name { font-weight: 800; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.album-card.locked { cursor: default; background: #F5F5F4; }
.album-card.locked:hover { transform: none; box-shadow: none; }
.locked-art {
  aspect-ratio: 1; display: grid; place-items: center; gap: .4rem; align-content: center;
  background: repeating-linear-gradient(45deg, #EDEAE4 0 12px, #F5F3EE 12px 24px);
}
.locked-flag { width: 64px; height: 58px; clip-path: var(--hex); background-size: cover; background-position: center; filter: grayscale(.3); opacity: .85; }
.locked-label { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }

/* ---------- temporadas y token ---------- */
.timeline { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.season { border: 3px solid var(--ink); border-radius: var(--radius); padding: 1.6rem; background: var(--cream); }
.season.live { background: linear-gradient(160deg, var(--honey), #FFE58A); }
.badge { display: inline-block; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: .3em .8em; border-radius: 999px; background: var(--ink); color: var(--honey); margin-bottom: .8rem; }
.season p { margin: .2rem 0; }

.token-box { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; background: var(--ink); color: var(--cream); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.6rem); }
.token-box p { color: #D6D3D1; max-width: 52ch; }
.token-id { text-align: right; }
.token-id code { display: block; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; color: var(--honey); }
.token-id a { color: var(--honey); font-weight: 700; }
.token-note { font-size: .85rem; color: #D6D3D1; margin-top: .4rem; }

/* ---------- FAQ ---------- */
details { border-bottom: 2px solid rgba(28, 25, 23, .1); padding: 1rem 0; }
summary { font-weight: 800; font-size: 1.1rem; cursor: pointer; }
details p { color: var(--ink-soft); margin: .7rem 0 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding: 2.5rem 0; }
.site-footer .muted { color: #A8A29E; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: start; }
.socials { list-style: none; display: flex; gap: 1rem; padding: 0; margin: 0; }
.socials a { font-weight: 800; text-decoration: none; color: var(--honey); }
.socials a[aria-disabled="true"] { color: #78716C; cursor: not-allowed; }
.credits { grid-column: 1 / -1; font-size: .85rem; margin: 0; }
.credits a { color: #D6D3D1; }

/* ---------- diálogo ---------- */
.card-dialog { border: 3px solid var(--ink); border-radius: var(--radius); padding: 1.6rem; width: min(900px, 94vw); background: var(--cream); color: var(--ink); }
.card-dialog::backdrop { background: rgba(28, 25, 23, .6); }
.dialog-close-form { position: absolute; right: .8rem; top: .6rem; }
.dialog-close { font-size: 2rem; line-height: 1; background: none; border: none; cursor: pointer; color: var(--ink); }
.dialog-variants { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1rem 0; }
.dialog-variants figure { margin: 0; }
.dialog-variants img { border-radius: 12px; border: 3px solid var(--ink); }
.dialog-variants figcaption { font-weight: 800; text-align: center; margin-top: .4rem; }
.outfit { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .4rem 1rem; margin: 0; }
.outfit dt { font-size: .75rem; font-weight: 800; text-transform: uppercase; color: var(--ink-soft); }
.outfit dd { margin: 0 0 .4rem; font-weight: 700; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .token-box, .footer-grid { grid-template-columns: 1fr; }
  .token-id { text-align: left; }
  .nav-links { display: none; }
  .lang-toggle { margin-left: auto; }
  .stats { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 700px) {
  .steps, .rarity-grid, .timeline, .dialog-variants { grid-template-columns: 1fr; }
  .album-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- compra de sobres ---------- */
.buy h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.buy h2 { font-size: 1.35rem; display: flex; align-items: center; gap: .6rem; margin-top: 2rem; }
.step-pill { display: inline-grid; place-items: center; width: 36px; height: 32px; background: var(--honey); clip-path: var(--hex); font-weight: 900; }
.buy-step { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); padding: 1.4rem 1.6rem 1.8rem; margin-top: 1.5rem; box-shadow: 0 6px 0 var(--ink); }
.buy-step > h2:first-child { margin-top: 0; }
.notice { border-radius: 12px; padding: .8rem 1rem; background: var(--cream); border: 2px solid var(--ink); font-weight: 700; }
.notice.warn { background: #FFF1C2; }
.notice.error { background: #FFE1E1; border-color: #B42318; color: #7A1A12; }
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; }
.tier { font: inherit; text-align: left; cursor: pointer; padding: 1rem; border-radius: 14px; border: 3px solid var(--ink); background: var(--cream); }
.tier[aria-checked="true"] { background: var(--honey); box-shadow: 0 4px 0 var(--ink); }
.tier[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.tier strong, .tier span { display: block; }
.tier strong { font-size: 1.1rem; }
.tier .price { font-size: 1.6rem; font-weight: 900; }
.tier .sub { font-size: .85rem; color: var(--ink-soft); }
.qty-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1rem; font-weight: 800; }
.qty { display: flex; align-items: center; gap: .4rem; }
.qty input { width: 4.2rem; text-align: center; font: inherit; font-weight: 800; padding: .4em; border-radius: 10px; border: 2px solid var(--ink); }
.total { margin: 0 0 0 auto; font-size: 1.3rem; font-weight: 900; }
.field { display: grid; gap: .4rem; font-weight: 700; }
.field input { font: inherit; padding: .7em 1em; border-radius: 12px; border: 2px solid var(--ink); background: var(--paper); max-width: 320px; }
.account-status { min-height: 1.5em; font-weight: 700; }
.account-status.ok { color: #14532D; }
.account-status.bad { color: #9A3412; }
.help { margin: .5rem 0 1rem; border: none; }
.buy .btn { margin-top: 1rem; cursor: pointer; font: inherit; font-weight: 800; }
.buy .btn[disabled] { opacity: .5; cursor: progress; transform: none; box-shadow: none; }
.pay-box { display: grid; gap: .8rem; margin: 1rem 0; }
.pay-box div { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: .6rem; }
.pay-box dt { font-weight: 800; color: var(--ink-soft); }
.pay-box dd { margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.pay-box code { font-size: 1.25rem; font-weight: 900; background: var(--cream); padding: .2em .5em; border-radius: 8px; }
.pay-box code.memo { color: #9A3412; letter-spacing: .04em; }
.copy { font: inherit; font-size: .85rem; font-weight: 800; cursor: pointer; padding: .3em .8em; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); }
.progress { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.progress li { padding: .35em .9em; border-radius: 999px; border: 2px solid var(--ink); font-weight: 800; font-size: .85rem; background: var(--paper); color: var(--ink-soft); }
.progress li.done { background: var(--ink); color: var(--honey); }
.progress li.current { background: var(--honey); color: var(--ink); }
.status-text { font-weight: 800; font-size: 1.1rem; }
.reveal-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.reveal-grid li { border-radius: 14px; border: 3px solid var(--ink); overflow: hidden; background: var(--paper); animation: pop .5s ease both; }
.reveal-grid li.rare { border-color: #7B8794; box-shadow: 0 0 0 4px var(--silver); }
.reveal-grid li.legendary { border-color: #B7791F; box-shadow: 0 0 0 4px var(--gold); }
.reveal-grid .meta { padding: .5rem .7rem; font-weight: 800; font-size: .85rem; }
.proof a { color: inherit; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .reveal-grid li { animation: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.85) rotate(-3deg); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  .pay-box div { grid-template-columns: 1fr; }
  .total { margin-left: 0; }
  .reveal-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .reveal-grid .meta { font-size: .75rem; padding: .4rem .5rem; }
}
