@font-face { font-family: "Cinzel"; font-weight: 500; font-display: swap; src: url(fonts/cinzel-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 700; font-display: swap; src: url(fonts/cinzel-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url(fonts/manrope-latin-wght-normal.woff2) format("woff2"); }

:root {
  --bg: #0b0806; --bg2: #14100b; --gold: #c28d46; --gold-l: #e8c27a; --cream: #f3e6c8;
  --blue: #3a4bd1; --lime: #e4e9a6; --ember: #ff9a3c;
  --display: "Cinzel", "Times New Roman", serif; --body: "Manrope", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--cream); font-family: var(--body); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--gold); color: var(--bg); }
.display { font-family: var(--display); }
.eyebrow { font-size: .75rem; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); }
h2 { font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin-top: 1rem; }
.center { text-align: center; }
.wrap { max-width: 72rem; margin: 0 auto; }
section { padding: 7rem 1.5rem; position: relative; }

.shimmer { background: linear-gradient(100deg, var(--gold) 0%, var(--gold-l) 35%, var(--lime) 55%, var(--gold-l) 70%, var(--gold) 100%); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 7s linear infinite; }
@keyframes shimmer { to { background-position: -220% center; } }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding: 6rem 1.5rem; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.16) translate(-1.5%, -1%); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(11,8,6,.55), rgba(11,8,6,.15) 45%, var(--bg)), radial-gradient(ellipse at center, transparent 40%, var(--bg) 100%); }
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; max-width: 56rem; }
.logos { display: flex; align-items: center; gap: 1.5rem; }
.logos .x { font-family: var(--display); font-size: 1.5rem; color: var(--gold); }
.logo-capibar { width: clamp(8rem, 18vw, 11rem); }
.logo-jinx { width: clamp(11rem, 28vw, 18rem); }
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-9px); } }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 10vw, 6.5rem); line-height: 1.05; margin-top: 2.5rem; }
.date { margin-top: 1.5rem; letter-spacing: .35em; text-transform: uppercase; font-size: clamp(.8rem, 2vw, 1rem); }
.date b { color: var(--gold); font-weight: 400; margin: 0 .5rem; }
.tagline { font-family: var(--display); font-style: italic; font-size: clamp(1.2rem, 3vw, 1.6rem); margin-top: 2rem; max-width: 34rem; color: rgba(243,230,200,.9); }

.in { opacity: 0; animation: up 1.1s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
.logo-in { opacity: 0; animation: logoin 1.6s ease-out forwards; animation-delay: var(--d, 0s); }
@keyframes up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes logoin { from { opacity: 0; filter: blur(8px); transform: scale(.96); } to { opacity: 1; filter: none; transform: none; } }

.btn { display: inline-block; border-radius: 999px; padding: 1rem 2.25rem; font-size: .8rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; text-decoration: none; color: var(--bg); background: linear-gradient(90deg, var(--gold), var(--gold-l), var(--gold)); transition: filter .3s; animation: ring 2.2s ease-out infinite; border: 0; cursor: pointer; font-family: inherit; }
.btn:hover { filter: brightness(1.1); }
@keyframes ring { from { box-shadow: 0 0 0 0 rgba(232,194,122,.55); } to { box-shadow: 0 0 0 16px rgba(232,194,122,0); } }
.cue { position: absolute; z-index: 2; bottom: 2rem; left: 50%; width: 1.5rem; height: 2.5rem; margin-left: -.75rem; border: 1px solid rgba(243,230,200,.4); border-radius: 999px; }
.cue::after { content: ""; position: absolute; top: .5rem; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--gold-l); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

/* Chispas (se crean con JS) */
.embers { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.ember { position: absolute; bottom: -12px; border-radius: 50%; opacity: 0; background: radial-gradient(circle, #fff3c4, var(--ember) 45%, transparent 72%); box-shadow: 0 0 10px 2px rgba(255,154,60,.55); animation: rise linear infinite; }
@keyframes rise { 0% { transform: translate(0,0) scale(1); opacity: 0; } 12% { opacity: .9; } 100% { transform: translate(var(--x), -105vh) scale(.3); opacity: 0; } }

/* Franja */
.marquee { overflow: hidden; border-block: 1px solid rgba(194,141,70,.3); background: var(--bg2); padding: 1rem 0; }
.track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.track span { font-family: var(--display); font-size: .85rem; letter-spacing: .3em; color: rgba(232,194,122,.8); padding: 0 2rem; white-space: nowrap; }
.track i { font-style: normal; color: var(--blue); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Revelado al scroll */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.rv.logo { transform: none; filter: blur(8px); transition: opacity 1.6s ease, filter 1.6s ease; transition-delay: var(--d, 0s); }
.rv.show { opacity: 1; transform: none; filter: none; }
.no-js .rv { opacity: 1; transform: none; filter: none; }

.intro { max-width: 48rem; margin: 0 auto; text-align: center; }
.intro .logo-jinx { margin: 0 auto; width: 14rem; opacity: .9; }
.intro .lead { font-family: var(--display); font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.3; margin-top: 2.5rem; }
.intro p.t { margin-top: 1.5rem; font-size: 1.1rem; color: rgba(243,230,200,.75); }

.band { background: linear-gradient(to bottom, transparent, var(--bg2), transparent); }
.grid { display: grid; gap: 1.5rem; margin-top: 3.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.card { height: 100%; border: 1px solid rgba(243,230,200,.1); background: rgba(255,255,255,.03); border-radius: 1.5rem; padding: 1.75rem; transition: transform .5s cubic-bezier(.2,.7,.2,1), border-color .5s; }
.card:hover { transform: translateY(-6px); border-color: rgba(232,194,122,.55); }
.card .ic { font-family: var(--display); font-size: 2.2rem; }
.card h3 { font-family: var(--display); font-weight: 500; font-size: 1.15rem; color: var(--gold-l); margin-top: 1.25rem; }
.card p { margin-top: .75rem; font-size: .9rem; color: rgba(243,230,200,.65); }

.show-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 64rem) { .show-grid { grid-template-columns: 1fr 1fr; } }
.photo { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 2rem; border: 1px solid rgba(194,141,70,.4); box-shadow: 0 0 80px -20px rgba(255,154,60,.6); }
.photo img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 24s ease-in-out infinite alternate; }
.show-grid h2 { font-weight: 700; font-size: clamp(2.8rem, 7vw, 4rem); }
.show-grid p.t { margin-top: 1.5rem; font-size: 1.1rem; color: rgba(243,230,200,.75); }

.promo { max-width: 56rem; margin: 0 auto; text-align: center; border: 1px solid rgba(194,141,70,.5); border-radius: 2rem; padding: 3rem 2rem; background: linear-gradient(90deg, rgba(194,141,70,.2), rgba(58,75,209,.15), rgba(194,141,70,.2)); }
.promo .big { font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 8vw, 4rem); margin-top: .75rem; }
.promo p { color: rgba(243,230,200,.8); font-size: 1.1rem; }

dl { max-width: 48rem; margin: 3rem auto 0; border-block: 1px solid rgba(243,230,200,.1); }
dl > div { display: grid; gap: .25rem 1.5rem; padding: 1.25rem 0; border-top: 1px solid rgba(243,230,200,.1); }
dl > div:first-child { border-top: 0; }
@media (min-width: 40rem) { dl > div { grid-template-columns: 10rem 1fr; } }
dt { font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); padding-top: .2rem; }
dd { color: rgba(243,230,200,.85); }

/* Flyer oficial */
.flyer-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 64rem) { .flyer-grid { grid-template-columns: 22rem 1fr; justify-content: center; gap: 5rem; } }
.flyer-frame { max-width: 22rem; margin: 0 auto; border-radius: 1.5rem; overflow: hidden; border: 1px solid rgba(194,141,70,.5); box-shadow: 0 30px 90px -25px rgba(232,194,122,.45); }
.flyer-frame video { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: #e9dcb3; }
.flyer-grid .t { margin-top: 1.5rem; font-size: 1.1rem; color: rgba(243,230,200,.75); }
.flyer-grid h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
@media (prefers-reduced-motion: reduce) { .flyer-frame video { animation: none; } }

/* Compra con Pix */
dialog { margin: auto; width: min(26rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow-y: auto; padding: 2rem 1.75rem; border: 1px solid rgba(194,141,70,.6); border-radius: 1.5rem; background: var(--bg2); color: var(--cream); }
dialog::backdrop { background: rgba(0,0,0,.75); backdrop-filter: blur(4px); }
.x-close { position: absolute; top: .75rem; right: 1rem; background: none; border: 0; color: var(--cream); font-size: 1.8rem; line-height: 1; cursor: pointer; opacity: .7; }
.x-close:hover { opacity: 1; }
.buy-body { display: flex; flex-direction: column; gap: 1rem; text-align: center; }
.buy-body h3 { font-family: var(--display); font-weight: 500; font-size: 1.6rem; color: var(--gold-l); }
.stepper { display: flex; align-items: center; justify-content: center; gap: 1.5rem; }
.stepper button { width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--gold); background: none; color: var(--gold-l); font-size: 1.5rem; cursor: pointer; }
.stepper button:hover { background: rgba(194,141,70,.2); }
.stepper output { font-family: var(--display); font-size: 2.5rem; min-width: 3rem; }
.hint { font-size: .85rem; color: rgba(243,230,200,.6); }
.sum { margin: 0; border: 0; text-align: left; }
.sum > div { display: flex; justify-content: space-between; padding: .5rem 0; border-top: 1px solid rgba(243,230,200,.1); }
.sum dt, .sum dd { padding: 0; font-size: .95rem; letter-spacing: 0; text-transform: none; color: var(--cream); }
.sum .tot dt, .sum .tot dd { font-size: 1.25rem; font-weight: 700; color: var(--gold-l); }
.warn { color: var(--gold-l); border: 1px solid rgba(194,141,70,.5); border-radius: 1rem; padding: 1rem; font-size: .9rem; }
.qr { background: #fff; padding: .5rem; border-radius: 1rem; width: min(15rem, 100%); margin: 0 auto; }
.qr svg { display: block; width: 100%; height: auto; }
.payee { font-size: .9rem; color: rgba(243,230,200,.8); }
.code-l { font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); text-align: left; }
textarea { width: 100%; resize: none; border-radius: .75rem; border: 1px solid rgba(243,230,200,.2); background: rgba(255,255,255,.04); color: var(--cream); font: .75rem/1.4 ui-monospace, monospace; padding: .75rem; word-break: break-all; }
.buy-body .btn { width: 100%; }
.btn.ghost { background: none; color: var(--gold-l); border: 1px solid var(--gold); animation: none; text-align: center; }

#reg { display: flex; flex-direction: column; gap: .9rem; text-align: left; }
#reg label { display: flex; flex-direction: column; gap: .35rem; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); }
#reg input:not([type=checkbox]) { font: 1rem var(--body); letter-spacing: 0; text-transform: none; color: var(--cream); background: rgba(255,255,255,.05); border: 1px solid rgba(243,230,200,.25); border-radius: .75rem; padding: .8rem .9rem; width: 100%; }
#reg input:focus { outline: 2px solid var(--gold-l); outline-offset: 1px; }
#reg .sub { font-size: .85rem; color: rgba(243,230,200,.7); margin-top: .25rem; }
#reg .check { flex-direction: row; align-items: flex-start; gap: .7rem; text-transform: none; letter-spacing: 0; font-size: .8rem; color: rgba(243,230,200,.75); }
#reg .check input { margin-top: .25rem; accent-color: var(--gold); width: 1.1rem; height: 1.1rem; flex: none; }
.iscas { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.link { background: none; border: 0; color: rgba(243,230,200,.6); font: .85rem var(--body); cursor: pointer; padding: .25rem; }
.link:hover { color: var(--gold-l); }
.btn:disabled { opacity: .6; cursor: progress; animation: none; }

/* Lotes */
.lotes { display: grid; gap: 1.5rem; margin-top: 3.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.lote { display: flex; flex-direction: column; height: 100%; border: 1px solid rgba(243,230,200,.1); background: rgba(255,255,255,.03); border-radius: 1.5rem; padding: 1.75rem; transition: transform .5s cubic-bezier(.2,.7,.2,1), border-color .5s; }
.lote:hover { transform: translateY(-6px); border-color: rgba(232,194,122,.55); }
.lote.on { border-color: rgba(194,141,70,.7); background: linear-gradient(to bottom, rgba(194,141,70,.15), transparent); }
.badge { align-self: flex-start; border-radius: 999px; padding: .25rem .75rem; font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; border: 1px solid rgba(243,230,200,.2); color: rgba(243,230,200,.6); }
.on .badge { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.lote h3 { font-family: var(--display); font-weight: 500; font-size: 1.5rem; margin-top: 1.5rem; color: rgba(243,230,200,.8); }
.on h3 { color: var(--gold-l); }
.preco { font-size: 2.3rem; font-weight: 700; margin-top: .75rem; color: rgba(243,230,200,.5); }
.on .preco { color: var(--cream); }
.por { font-size: .85rem; color: rgba(243,230,200,.5); }
.nota { margin: 1.5rem 0; flex: 1; font-size: .9rem; color: rgba(243,230,200,.6); }
.lote .btn { text-align: center; }
.lote .off { border: 1px solid rgba(243,230,200,.15); border-radius: 999px; padding: .9rem 1.5rem; text-align: center; font-size: .8rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: rgba(243,230,200,.35); cursor: not-allowed; background: none; font-family: inherit; }
.chip { display: inline-block; border: 1px solid rgba(194,141,70,.4); border-radius: 999px; padding: .75rem 1.5rem; font-size: .9rem; color: var(--gold-l); }

footer { border-top: 1px solid rgba(194,141,70,.2); padding: 3rem 1.5rem; text-align: center; }
footer .logos { justify-content: center; }
footer small { display: block; margin-top: 1.5rem; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(243,230,200,.4); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .in, .logo-in, .rv { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; transition: none !important; }
  .hero-bg, .photo img, .track, .float, .btn, .cue::after, .shimmer { animation: none !important; }
  .embers { display: none; }
}
