/* ═══════════════════════════════════════════════════════════
   POLLA MUNDIALISTA · MPJewelry · 2026
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg-0:  #030d05;
  --bg-1:  #071610;
  --bg-2:  #0d2418;
  --bg-3:  #122c1e;

  --yellow:  #fcd116;
  --gold:    #c49838;
  --gold-lo: #e8c97a;
  --gold-hi: #f5e19a;

  --text:     #eae6df;
  --text-dim: rgba(234,230,223,.50);
  --text-mid: rgba(234,230,223,.72);

  --border:    rgba(255,255,255,.10);
  --border-lo: rgba(255,255,255,.06);

  --glow-y: rgba(252,209,22,.18);
  --glow-g: rgba(196,152,56,.20);

  --px: clamp(20px, 5vw, 72px); /* horizontal page padding */
}

/* ─── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-1);
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.5px;
}
h1 { font-size: clamp(42px, 7.5vw, 92px); line-height: .88; }
h2 { font-size: clamp(40px, 6.5vw, 84px); line-height: .90; }
h3 { font-size: clamp(28px, 3.8vw, 46px); line-height: .92; }

h1 em, h2 em, h3 em { font-style: italic; color: var(--yellow); }

.tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
}
.tag--gold { color: var(--gold-lo); }

/* ─── BUTTONS / CTA ──────────────────────────────────────── */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  background: var(--yellow);
  color: #0d0b0a;
  font: inherit;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  transition: transform 130ms ease, box-shadow 130ms ease;
  box-shadow: 0 6px 24px var(--glow-y);
  white-space: nowrap;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 12px 36px var(--glow-y); }
.cta svg { flex-shrink: 0; }

.cta--gold {
  background: transparent;
  color: var(--gold-lo);
  border: 1.5px solid rgba(196,152,56,.45);
  box-shadow: none;
}
.cta--gold:hover {
  background: rgba(196,152,56,.1);
  border-color: var(--gold-lo);
  box-shadow: 0 8px 28px var(--glow-g);
}


/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background: var(--bg-0);
}

.hero__bg { position: absolute; inset: 0; }

.hero__bg-img {
  position: absolute; inset: 0;
  background:
    url("https://images.unsplash.com/photo-1519818553510-e8f219385d0d?w=1920&q=82&fit=crop&auto=format")
    center center / cover no-repeat;
}
.hero__bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(170deg, rgba(3,13,5,.97) 0%, rgba(3,13,5,.68) 48%, rgba(3,13,5,.90) 100%);
}
.hero__bg-stripes {
  position: absolute; inset: 0;
  background: linear-gradient(
    148deg,
    transparent 54%,
    rgba(252,209,22,.05) 54% 57%, transparent 57% 62%,
    rgba(0,48,135,.04)  62% 65%, transparent 65% 70%,
    rgba(206,17,38,.04) 70% 73%, transparent 73%
  );
}
.hero::after {
  content: "";
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(0deg, var(--bg-0), transparent);
  pointer-events: none; z-index: 1;
}

.nav, .hero__body, .hero__fixtures { position: relative; z-index: 2; }

/* — Nav — */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--px);
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-weight: 800; font-size: 14px; letter-spacing: .05em;
  color: var(--text);
}
.brand img {
  width: 30px; height: 30px;
  filter: brightness(0) invert(1); object-fit: contain;
}
.nav__pill {
  font-size: 10px; font-weight: 900; letter-spacing: 2px;
  text-transform: uppercase; color: var(--yellow);
  border: 1.5px solid rgba(252,209,22,.32);
  padding: 9px 16px;
  transition: border-color 150ms, background 150ms;
}
.nav__pill:hover { border-color: var(--yellow); background: rgba(252,209,22,.08); }

/* — Hero body — */
.hero__body {
  align-self: center;
  padding: 32px var(--px);
  max-width: min(860px, 100%);
}
.hero__lead {
  margin: 20px 0 32px;
  max-width: 460px;
  color: var(--text-mid);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.65;
}

/* — Fixtures strip — */
.hero__fixtures {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  border-top: 1px solid var(--border);
  background: rgba(3,13,5,.75);
  backdrop-filter: blur(12px);
}
.fixture {
  display: flex; align-items: center; gap: 12px;
  padding: 16px var(--px);
}
.fixture__flags {
  display: flex; flex-direction: column; gap: 3px; flex-shrink: 0;
}
.fixture__flags img {
  width: 26px; height: 17px;
  object-fit: cover; border: 1px solid var(--border-lo);
}
.fixture__info { display: flex; flex-direction: column; gap: 2px; }
.fixture__date {
  font-size: 9px; font-weight: 900; letter-spacing: 2px;
  text-transform: uppercase; color: var(--yellow);
}
.fixture__info strong {
  font-size: clamp(12px, 1.4vw, 14px); font-weight: 800; color: var(--text);
}
.fixture__venue { font-size: 10px; color: var(--text-dim); }
.fixture__sep { width: 1px; background: var(--border); margin: 8px 0; }


/* ═══════════════════════════════════════════════════════════
   STEPS
   ═══════════════════════════════════════════════════════════ */
.steps {
  background: var(--bg-0);
  border-top: 1px solid var(--border-lo);
  border-bottom: 1px solid var(--border-lo);
}
.steps__inner {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
}
.step {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 0 clamp(0px, 2vw, 28px);
}
.step__n {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(40px, 5vw, 52px);
  font-weight: 900; line-height: 1;
  color: var(--yellow); flex-shrink: 0; opacity: .9;
}
.step strong {
  display: block; font-size: 13px; font-weight: 800;
  color: var(--text); margin-bottom: 4px; letter-spacing: .02em;
}
.step p { font-size: 12px; color: var(--text-dim); line-height: 1.5; }
.step__line { width: 1px; height: 52px; background: var(--border); }

/* ═══════════════════════════════════════════════════════════
   PREDICTOR
   ═══════════════════════════════════════════════════════════ */
.predictor {
  position: relative;
  background: var(--bg-1);
  padding: clamp(56px, 8vw, 104px) 0;
  overflow: hidden;
}
.predictor__bg {
  position: absolute; inset: 0;
  background:
    url("https://images.unsplash.com/photo-1759156207340-b9acde1cb905?w=1600&q=45&fit=crop&auto=format")
    center / cover no-repeat;
  opacity: .04;
}
.predictor__inner {
  position: relative; z-index: 1;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display: grid; gap: 48px;
}
.section-head { text-align: center; }

/* ─── MATCH CARDS ────────────────────────────────────────── */
.matches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  background: var(--border-lo);
  border: 1px solid var(--border);
}
.match-card {
  background: var(--bg-2);
  display: grid; grid-template-rows: auto 1fr auto;
  transition: background 200ms;
}
.match-card:hover { background: var(--bg-3); }
.match-card--marquee { border-top: 2px solid var(--yellow); }

.match-card__top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px;
  background: rgba(0,0,0,.28);
  border-bottom: 1px solid var(--border-lo);
}
.match-card__date {
  font-size: 10px; font-weight: 900; letter-spacing: 2px;
  text-transform: uppercase; color: var(--yellow);
}
.match-card__badge {
  font-size: 9px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-dim);
  padding: 3px 7px; border: 1px solid var(--border-lo);
}

.match-card__board {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 8px;
  padding: 24px 14px 18px;
}
.team { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.team--away { flex-direction: column-reverse; }
.team__flag {
  width: 52px; height: 35px;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(0,0,0,.38);
}
.team__abbr {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 900; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-dim);
}

.score-ctrl { display: flex; flex-direction: column; align-items: center; }
.score-vs {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-dim);
  padding: 5px 0;
}
.score-row { display: flex; align-items: stretch; border: 1px solid var(--border); }
.score-btn {
  width: 34px; height: 50px;
  background: rgba(255,255,255,.05); border: 0;
  color: var(--text-dim); font-size: 20px; font-weight: 300;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 110ms, color 110ms; line-height: 1;
  -webkit-appearance: none; touch-action: manipulation;
}
.score-btn:hover  { background: rgba(252,209,22,.16); color: var(--yellow); }
.score-btn:active { background: rgba(252,209,22,.30); }
.score-num {
  width: 46px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px; font-weight: 900; color: #fff;
  background: rgba(0,0,0,.28);
  border-left: 1px solid var(--border-lo);
  border-right: 1px solid var(--border-lo);
  user-select: none;
}
.match-card__result {
  padding: 11px 18px;
  background: rgba(252,209,22,.06);
  border-top: 1px solid rgba(252,209,22,.13);
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px; font-weight: 900; letter-spacing: 1px;
  color: var(--yellow);
}

/* ─── SUMMARY ────────────────────────────────────────────── */
.summary {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px 16px; padding: 18px 24px;
  border: 1px solid rgba(252,209,22,.17);
  background: rgba(252,209,22,.04);
}
.summary__label {
  font-size: 10px; font-weight: 900; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--text-dim); flex-shrink: 0;
}
.summary__chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.schip {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px; font-weight: 900; color: var(--yellow); letter-spacing: .5px;
}
.schip__sep { color: var(--text-dim); font-size: 16px; }

/* ─── FORM ───────────────────────────────────────────────── */
.form {
  display: grid; gap: 22px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: clamp(24px, 4vw, 48px);
}
.form__head { margin-bottom: 2px; }
.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field { display: grid; gap: 7px; }
.field--full { grid-column: span 2; }
.field > span {
  font-size: 10px; font-weight: 900; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-dim);
}
input:not([type="checkbox"]) {
  width: 100%; min-height: 48px; padding: 0 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--text); font: inherit; font-size: 14px;
  border-radius: 0; -webkit-appearance: none;
  transition: border-color 140ms, background 140ms;
}
input:not([type="checkbox"])::placeholder { color: rgba(234,230,223,.2); }
input:not([type="checkbox"]):focus {
  outline: none;
  border-color: rgba(252,209,22,.45);
  background: rgba(255,255,255,.08);
}
.consent { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; }
.consent input[type="checkbox"] {
  width: 17px; min-height: 17px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--yellow);
}
.consent span { font-size: 12px; color: var(--text-dim); line-height: 1.55; }
.honeypot { position: absolute; left: -9999px; }

.submit-btn {
  display: flex; align-items: center; justify-content: center; gap: 11px;
  width: 100%; min-height: 56px; padding: 14px 24px;
  background: var(--yellow); color: #0d0b0a;
  font: inherit; font-weight: 900; font-size: 14px;
  letter-spacing: 1.5px; text-transform: uppercase;
  border: 0; cursor: pointer;
  transition: transform 130ms ease, box-shadow 130ms ease;
  box-shadow: 0 8px 28px var(--glow-y);
  touch-action: manipulation;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px var(--glow-y); }
.submit-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.form__msg { min-height: 18px; font-size: 13px; font-weight: 700; color: var(--text-dim); }
.form__msg.ok    { color: #4ade80; }
.form__msg.error { color: #f87171; }


/* ═══════════════════════════════════════════════════════════
   COLECCIÓN
   ═══════════════════════════════════════════════════════════ */
.collection {
  background: var(--bg-2);
  padding: clamp(64px, 9vw, 112px) 0;
  border-top: 1px solid var(--border-lo);
  overflow: hidden;
}
.collection__inner {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display: grid; gap: clamp(40px, 6vw, 64px);
  min-width: 0;
}

/* — Header row — */
.collection__head {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-width: 0;
}
.collection__title { display: grid; gap: 14px; align-content: start; min-width: 0; }
.collection__offer { display: grid; gap: 0; align-content: center; min-width: 0; padding-top: clamp(18px, 4vw, 46px); }
.collection__desc {
  font-size: 15px; color: var(--text-dim); line-height: 1.75;
}
.collection__desc strong { color: var(--gold-lo); font-weight: 800; }

/* Reward cards inside collection */
.collection__rewards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}
.collection-reward {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--border-lo);
  min-width: 0;
}
.collection-reward--gold {
  background: rgba(196,152,56,.08);
  border-color: rgba(196,152,56,.24);
}
.collection-reward__icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(196,152,56,.42);
  border-radius: 999px;
  color: var(--gold-hi);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}
.collection-reward strong {
  display: block;
  color: var(--gold-lo);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.collection-reward p {
  color: var(--text-mid);
  font-size: 13px;
  line-height: 1.65;
}
.collection-reward b {
  color: var(--text);
  font-weight: 900;
}

/* — Jewels grid — */
.jewels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.jewel {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border-lo);
  overflow: hidden;
  background: var(--bg-3);
  transition: border-color 250ms;
  cursor: pointer;
  min-width: 0;
}
.jewel:hover { border-color: rgba(196,152,56,.4); }

.jewel__img-wrap {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--bg-3);
}
.jewel__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 380ms ease, filter 320ms ease;
  filter: brightness(.88) saturate(.9);
  display: block;
}
.jewel:hover .jewel__img-wrap img {
  transform: scale(1.05);
  filter: brightness(.98) saturate(1.05);
}

.jewel__info {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border-lo);
  background: rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.jewel__cat {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-lo);
}
.jewel__name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text);
  letter-spacing: .3px;
  line-height: 1;
}

/* — Footer row — */
.collection__footer {
  display: flex; justify-content: center;
  padding-top: 8px;
  min-width: 0;
}
.collection__footer .cta {
  max-width: 100%;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border-lo);
  padding: 28px var(--px);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.footer__brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 13px; color: var(--text-dim);
}
.footer__brand img { filter: brightness(0) invert(1); opacity: .44; }
.footer__copy { font-size: 11px; color: rgba(234,230,223,.3); }
.footer__copy a { color: rgba(234,230,223,.44); }
.footer__copy a:hover { color: var(--yellow); }


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — de mayor a menor
   ═══════════════════════════════════════════════════════════ */

/* ── 1024px: desktop moderado ─ */
@media (max-width: 1024px) {
  .jewels { gap: 6px; }
}

/* ── 860px: tablet ─────────────────────────────────────────── */
@media (max-width: 860px) {

  /* Hero: fixtures en columna */
  .hero__fixtures {
    grid-template-columns: 1fr;
  }
  .fixture__sep { display: none; }
  .fixture {
    border-top: 1px solid var(--border-lo);
    padding: 13px var(--px);
  }
  .fixture:first-child { border-top: 0; }

  /* Match cards: apiladas full width */
  .matches {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  /* Collection head: una columna */
  .collection__head {
    grid-template-columns: 1fr;
    align-items: start;
  }
  /* Jewels: 2 columnas en tablet */
  .jewels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* ── 700px: tablet pequeño ─────────────────────────────────── */
@media (max-width: 700px) {

  /* Steps en columna */
  .steps__inner {
    grid-template-columns: 1fr;
    padding: 36px 0;
    gap: 24px;
  }
  .step__line { display: none; }
  .step { padding: 0; }

  /* Match cards full width (sin max-width) */
  .matches { max-width: 100%; }

  .collection__rewards {
    grid-template-columns: 1fr;
  }
  .collection-reward {
    grid-template-columns: 1fr;
  }
}

/* ── 560px: móvil ───────────────────────────────────────────── */
@media (max-width: 560px) {

  /* Hero: lead más compacto */
  .hero__lead { max-width: 100%; font-size: 15px; margin: 16px 0 26px; }

  /* Steps: icono más pequeño */
  .step__n { font-size: 36px; }

  /* Form: una columna */
  .form__grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .form { padding: clamp(20px, 5vw, 32px); }

  /* Match cards: scores más compactos */
  .match-card__board { padding: 18px 10px 14px; gap: 6px; }
  .team__flag { width: 44px; height: 30px; }
  .team__abbr { font-size: 11px; }
  .score-btn { width: 32px; height: 46px; font-size: 18px; }
  .score-num { width: 42px; height: 46px; font-size: 28px; }
  .match-card__top { padding: 10px 14px; }
  .match-card__result { font-size: 15px; padding: 10px 14px; }

  /* Summary */
  .summary { padding: 14px 18px; gap: 8px 12px; }
  .schip { font-size: 18px; }

  /* Collection head */
  .collection__inner { width: min(100% - 28px, 480px); }
  .collection__head { gap: 28px; }
  .collection__offer { padding-top: 0; }
  .collection__desc { font-size: 14px; }
  .collection__rewards { gap: 10px; }
  .collection-reward { padding: 16px; gap: 12px; }
  .collection-reward__icon { width: 42px; height: 42px; font-size: 22px; }
  .jewel__img-wrap { aspect-ratio: 1 / 1; }
  .jewel__info { padding: 12px; }
  .jewel__cat { letter-spacing: 1.6px; }
  .jewel__name { font-size: 16px; line-height: 1.05; }

  /* Footer */
  .footer { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ── 400px: móvil pequeño ───────────────────────────────────── */
@media (max-width: 400px) {

  h1 { font-size: 38px; }
  h2 { font-size: 36px; }
  h3 { font-size: 26px; }

  .score-btn { width: 30px; }
  .score-num { width: 38px; font-size: 26px; }

  .summary__chips { gap: 6px; }
  .schip { font-size: 16px; }

  /* Jewels: columna única en móvil pequeño */
  .jewels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
