/* DUROLOCOS: uva de Chincha, oro de moneda, ámbar de pisco. Pensado para el celular. */
@font-face {
  font-family: 'Outfit';
  src: url('fonts/outfit-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/jakarta-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --grape: #2b1038;
  --grape-2: #3d1752;
  --grape-3: #55206f;
  --gold: #ffc83d;
  --gold-deep: #e9a100;
  --pisco: #f5922f;
  --cream: #fff4e0;
  --cream-dim: #e6d3ee;
  --wa: #25d366;
  --wa-ink: #05361b;
  --display: 'Outfit', system-ui, sans-serif;
  --text: 'Plus Jakarta Sans', system-ui, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(120% 60% at 100% 0%, #6b2a7d 0%, transparent 55%),
    var(--grape);
  color: var(--cream);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.55;
  /* Espacio para la barra de WhatsApp fija abajo. */
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* --- Barra superior --- */
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--grape) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--gold);
}

.logo-bolt {
  font-size: 1.1rem;
}

.bar-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--wa);
  color: var(--wa-ink);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
}

/* --- Bienvenida --- */
.hero {
  padding: 28px 0 8px;
}

.place {
  margin: 0 0 10px;
  color: var(--pisco);
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lead {
  margin: 14px 0 0;
  max-width: 34rem;
  color: var(--cream-dim);
  font-size: 1.05rem;
}

h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

/* --- La carta de monedas (lo protagonista) --- */
.menu {
  padding: 28px 0 8px;
}

.hint {
  margin: 4px 0 14px;
  color: var(--cream-dim);
  font-size: 0.92rem;
}

.coins {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.pack {
  --size: 34px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 12px 16px 12px 10px;
  border-radius: 20px;
  background: var(--grape-2);
  border: 1px solid rgb(255 255 255 / 0.08);
  text-decoration: none;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease;
}

.pack:active {
  transform: scale(0.98);
}

@media (hover: hover) {
  .pack:hover {
    background: var(--grape-3);
  }
}

/* La moneda crece con el paquete. */
.coin {
  justify-self: center;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, #fff6c9 0 12%, transparent 13%),
    radial-gradient(
      circle at 50% 50%,
      var(--gold) 0 58%,
      var(--gold-deep) 59% 70%,
      var(--gold) 71%
    );
  box-shadow:
    0 0 0 2px rgb(0 0 0 / 0.15),
    0 6px 14px rgb(0 0 0 / 0.35);
}
.s1 {
  --size: 30px;
}
.s2 {
  --size: 36px;
}
.s3 {
  --size: 42px;
}
.s4 {
  --size: 48px;
}
.s5 {
  --size: 54px;
}
.s6 {
  --size: 60px;
}

.amount {
  display: grid;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.amount small {
  margin-top: 4px;
  font-family: var(--text);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0;
  color: var(--cream-dim);
}

.price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--gold);
  white-space: nowrap;
}

/* Los paquetes grandes van en oro. */
.pick {
  background: linear-gradient(135deg, var(--gold) 0%, var(--pisco) 100%);
  border-color: transparent;
  color: #2a1300;
}
.pick .amount small {
  color: #4a2300;
}
.pick .price {
  color: #2a1300;
}
@media (hover: hover) {
  .pick:hover {
    background: linear-gradient(135deg, #ffd466 0%, #f7a14d 100%);
  }
}

/* --- Pases del evento (vienen de la API) --- */
.offers {
  padding: 28px 0 8px;
}

.offer-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.offer {
  overflow: hidden;
  border-radius: 20px;
  background: var(--grape-2);
  border: 1px solid rgb(255 255 255 / 0.08);
}

.offer-img {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.offer-img img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.offer-body {
  display: grid;
  gap: 8px;
  padding: 14px 16px 16px;
}

.offer-tag {
  justify-self: start;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgb(255 200 61 / 0.15);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
}

.offer-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.offer-head h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.15;
}

.offer-price {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--gold);
  white-space: nowrap;
}

.offer-sub {
  margin: 0;
  color: var(--cream-dim);
}

.offer-details {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--cream-dim);
}

.offer-buy {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  margin-top: 4px;
  border-radius: 14px;
  background: var(--wa);
  color: var(--wa-ink);
  font-weight: 800;
  text-decoration: none;
}

/* --- Así compras (es una secuencia real: va numerada) --- */
.how {
  padding: 28px 0 8px;
}

.how ol {
  list-style: none;
  counter-reset: step;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.how li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 12px;
  align-items: start;
}

.how li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pisco);
  color: #2a1300;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.2rem;
}

.how strong {
  font-size: 1.05rem;
}

.how span {
  color: var(--cream-dim);
}

/* --- Frase de la casa --- */
.quote {
  margin: 32px 0 8px;
  padding: 18px 18px 16px;
  border-left: 4px solid var(--pisco);
  border-radius: 4px 16px 16px 4px;
  background: rgb(0 0 0 / 0.18);
}

.quote blockquote {
  margin: 0;
  font-size: 1.05rem;
  font-style: italic;
}

.quote figcaption {
  margin-top: 8px;
  color: var(--gold);
  font-weight: 700;
}

/* --- Pie --- */
.foot {
  max-width: 640px;
  margin: 24px auto 0;
  padding: 16px;
  color: var(--cream-dim);
  font-size: 0.9rem;
}

.foot p {
  margin: 0 0 8px;
}

.fine {
  font-size: 0.75rem;
  opacity: 0.75;
}

/* --- WhatsApp fijo abajo --- */
.cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  max-width: 480px;
  min-height: 56px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--wa);
  color: var(--wa-ink);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.45);
}

/* --- Afiche ampliado --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 16px;
  background: rgb(10 2 14 / 0.92);
}

.lightbox.active {
  display: grid;
}

.lightbox img {
  max-width: 100%;
  max-height: 88dvh;
  border-radius: 14px;
}

.lightbox-close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  right: 12px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--grape);
  font-size: 1.2rem;
  cursor: pointer;
}

@media (min-width: 720px) {
  .bar {
    padding: 12px 24px;
  }
  .hero {
    padding-top: 48px;
  }
  .offer-list {
    grid-template-columns: 1fr 1fr;
  }
}

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