:root {
  --night: #0b1734;
  --deep: #16305f;
  --ice: #9bd3f2;
  --frost: #e4f2fb;
  --paper: #f6fafd;
  --ink: #12244a;
  --muted: #5d7396;
  --line: rgba(18, 36, 74, .14);
  --silver: #c9d8e8;
  --accent: #3b82d6;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 400 16px/1.65 var(--sans);
  background: var(--paper);
}
#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.hero, main, footer, .bar { position: relative; z-index: 1; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

h1, h2 { font-family: var(--serif); font-weight: 500; margin: 0; line-height: 1.05; }
h2 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: .35em; }
.kicker { font: 500 .72rem var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--accent); margin: 0 0 .7em; }

/* ---------- Hero ---------- */
.hero {
  color: #fff; text-align: center; padding: 72px 0 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(120, 190, 240, .35), transparent 70%),
    radial-gradient(ellipse 40% 35% at 15% 30%, rgba(140, 120, 230, .22), transparent 70%),
    linear-gradient(180deg, var(--night), var(--deep));
  overflow: hidden;
}
.hero::after {
  content: ""; display: block; height: 80px; margin-top: 56px;
  background: var(--paper);
  clip-path: polygon(0 100%, 0 60%, 8% 45%, 15% 62%, 24% 30%, 33% 58%, 42% 38%, 52% 64%, 61% 28%, 70% 55%, 79% 36%, 88% 60%, 95% 42%, 100% 58%, 100% 100%);
}
.flake { width: 64px; height: 64px; color: var(--ice); opacity: .9; margin-bottom: 18px; animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.eyebrow { font: 500 .75rem var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--ice); margin: 0 0 18px; }
h1 { font-size: clamp(3.6rem, 13vw, 8rem); font-weight: 500; letter-spacing: -.01em; }
h1 em { display: block; font-style: italic; font-weight: 400; font-size: .5em; color: var(--ice); margin-top: .05em; }
.lead { max-width: 480px; margin: 22px auto 30px; color: #cfe2f3; font-weight: 300; font-size: 1.1rem; }
.cta { display: flex; gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap; }
.link { color: #fff; text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 2px; }
.link:hover { border-color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: var(--night); text-decoration: none; border: 0; cursor: pointer;
  font: 500 .95rem var(--sans); letter-spacing: .04em;
  padding: 14px 30px; border-radius: 2px;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--ice); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

.facts {
  display: flex; justify-content: center; gap: clamp(20px, 6vw, 64px); flex-wrap: wrap;
  margin: 44px 0 0; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.18);
}
.facts dt { font: 500 .68rem var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--ice); }
.facts dd { margin: 2px 0 0; font: 500 1.5rem var(--serif); }

/* ---------- Premios ---------- */
main { padding-top: 40px; }
.premios { text-align: center; margin-bottom: 88px; }
.prizes { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); counter-reset: p; }
.prizes li {
  counter-increment: p; position: relative; text-align: center;
  padding: 44px 26px 32px; background: #fff; border: 1px solid var(--line);
}
.prizes li::before {
  content: counter(p, upper-roman); position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--night); color: var(--ice); font: italic 500 1.25rem var(--serif);
  box-shadow: 0 0 0 5px var(--paper);
}
.prizes li:first-child { border-color: var(--ice); box-shadow: 0 18px 50px -24px rgba(59, 130, 214, .55); }
.prizes .lugar { font: 500 .7rem var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.prizes .titulo { font: 500 1.75rem/1.15 var(--serif); margin: 0 0 8px; }
.prizes .detalle { color: var(--muted); font-size: .95rem; margin: 0; font-weight: 300; }

/* ---------- Números ---------- */
.board { text-align: center; margin-bottom: 88px; }
.sub { color: var(--muted); margin: 0 0 18px; font-weight: 300; }
.legend { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; font-size: .8rem; color: var(--muted); letter-spacing: .04em; margin-bottom: 26px; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; }
.dot.free { border: 1px solid var(--accent); }
.dot.sel { background: var(--night); }
.dot.taken { background: var(--silver); }
.dot.hold { border: 1px dashed var(--accent); background: var(--frost); }

.grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); max-width: 820px; margin: 0 auto; }
.num {
  aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--accent); background: transparent;
  color: var(--ink); font: 500 1rem var(--serif); cursor: pointer;
  transition: background .18s, color .18s, transform .18s, box-shadow .18s;
}
.num:hover:not(:disabled) { background: var(--frost); transform: scale(1.07); }
.num.sel { background: var(--night); border-color: var(--night); color: #fff; box-shadow: 0 6px 16px -4px rgba(11, 23, 52, .55); }
.num:disabled { border-color: var(--silver); background: #eef3f8; color: #aebccc; cursor: not-allowed; text-decoration: line-through; text-decoration-thickness: 1px; }
.num:focus-visible, input:focus-visible, .btn:focus-visible, .link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.gridmsg { min-height: 1.6em; margin: 18px 0 0; color: #b3261e; font-weight: 500; }

/* ---------- Razón ---------- */
.about { max-width: 640px; margin: 0 auto 140px; text-align: center; }
.about .big { font: italic 400 clamp(1.5rem, 4vw, 2rem)/1.3 var(--serif); color: var(--deep); margin: 0 0 22px; }
.about p { color: var(--muted); font-weight: 300; }

/* ---------- Barra de compra ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  background: rgba(11, 23, 52, .96); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(155, 211, 242, .35); color: #fff; padding: 14px 0 10px;
}
.bar[hidden] { display: none; }
.bar-in { display: flex; gap: 12px 24px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.bar-info { display: flex; flex-direction: column; line-height: 1.3; }
.bar-info strong { font: 500 1.15rem var(--serif); }
.bar-info span { color: var(--ice); font-size: .9rem; }
.bar form { display: flex; gap: 10px; flex: 1 1 360px; justify-content: flex-end; flex-wrap: wrap; }
input[type=email] {
  flex: 1 1 200px; padding: 13px 16px; font: 400 .95rem var(--sans); color: var(--ink);
  background: #fff; border: 0; border-radius: 2px;
}
.privacy { flex-basis: 100%; margin: 0; font-size: .72rem; letter-spacing: .04em; color: #9fb7d1; text-align: right; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

footer { text-align: center; padding: 28px 16px 110px; border-top: 1px solid var(--line); color: var(--muted); font: italic 1.05rem var(--serif); }
footer p { margin: 0; }

@media (max-width: 560px) {
  .hero { padding-top: 56px; }
  .privacy { text-align: center; }
  .bar form { justify-content: stretch; }
  .bar .btn { flex: 1 1 100%; }
  .grid { gap: 6px; grid-template-columns: repeat(7, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .flake { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Fotos ---------- */
.hero-grid { display: grid; gap: 32px 48px; align-items: center; grid-template-columns: 1fr; }
.hero-grid .facts { grid-column: 1 / -1; }
.arch { margin: 0; justify-self: center; width: min(78vw, 340px); padding: 8px; border: 1px solid rgba(155,211,242,.55); border-radius: 999px 999px 18px 18px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.55), 0 0 60px rgba(120,190,240,.25); }
.arch video { display: block; width: 100%; aspect-ratio: 9 / 14; object-fit: cover; object-position: 50% 40%; border-radius: 999px 999px 12px 12px; background: var(--night); }
.polas { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; margin-bottom: 38px; }
.polaroid.b { transform: rotate(1.8deg); }
.polaroid { margin: 0; width: min(86vw, 300px); padding: 10px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(18,36,74,.5); transform: rotate(-1.5deg); }
.polaroid img { display: block; width: 100%; height: auto; }
@media (min-width: 820px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .hero-text { text-align: left; }
  .hero-text .lead { margin-left: 0; }
  .hero-text .cta { justify-content: flex-start; }
  .arch { width: 100%; max-width: 360px; justify-self: end; }
}

.btn-wa { margin-top: 26px; background: var(--night); color: #fff; }
.btn-wa:hover { background: var(--accent); color: #fff; }

.ig { margin: 22px 0 0; font-size: .95rem; }
.ig a, footer a { color: var(--accent); font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; }
.ig a:hover, footer a:hover { color: var(--deep); }

.consent { flex: 1 1 100%; display: flex; gap: 10px; align-items: flex-start; font-size: .78rem; line-height: 1.4; color: #cfe2f3; text-align: left; cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--ice); width: 16px; height: 16px; flex: none; }
.consent a { color: #fff; }
footer a { color: var(--accent); }

/* ---------- Página de privacidad ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 56px 20px 80px; }
.legal h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); color: var(--ink); margin-bottom: .3em; }
.legal h2 { font-size: 1.6rem; margin: 1.8em 0 .4em; }
.legal p, .legal li { color: var(--muted); font-weight: 300; }
.legal li { margin-bottom: .4em; }
.legal a { color: var(--accent); }
.legal .back { display: inline-block; margin-bottom: 28px; font-size: .9rem; }
.legal .upd { font-size: .85rem; }

.num.hold:disabled { border: 1px dashed var(--accent); background: var(--frost); color: var(--muted); text-decoration: none; opacity: .85; }

.holdwrap { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: rgba(11, 23, 52, .82); backdrop-filter: blur(6px); }
.holdwrap[hidden] { display: none; }
.holdcard { width: min(100%, 420px); text-align: center; background: var(--paper); border: 1px solid #fff; padding: 36px 28px 28px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.holdcard h2 { font-size: 1.9rem; }
.hold-time { font: 500 3.4rem/1 var(--serif); color: var(--deep); margin: 8px 0 6px; font-variant-numeric: tabular-nums; }
.hold-sub { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.hold-nums { margin: 0 0 22px; }
.holdcard .btn { background: var(--night); color: #fff; }
.holdcard .btn:hover { background: var(--accent); }
.link2 { display: block; margin: 18px auto 0; background: none; border: 0; color: var(--muted); font: 400 .85rem var(--sans); text-decoration: underline; cursor: pointer; }
.link2:hover { color: var(--ink); }

/* ---------- Castillo ---------- */
.castillo { text-align: center; margin-bottom: 88px; padding: 56px 20px 40px; color: #fff; background: radial-gradient(ellipse 80% 55% at 50% 30%, rgba(120,190,240,.3), transparent 70%), linear-gradient(180deg, var(--night), var(--deep)); border: 1px solid rgba(155,211,242,.35); }
.castillo h2 { color: #fff; }
.castillo .kicker { color: var(--ice); }
.castillo .sub { color: #cfe2f3; max-width: 520px; margin: 0 auto 22px; }
.castle-wrap { width: min(100%, 440px); margin: 0 auto 20px; filter: drop-shadow(0 0 28px rgba(140,210,255,.45)); }
#castle { display: block; width: 100%; height: auto; overflow: visible; }
#castle .ghost use { fill: rgba(155,211,242,.08); stroke: rgba(155,211,242,.55); stroke-width: 1; stroke-dasharray: 3 4; }
#castle .sparkles { opacity: 0; transition: opacity 1s; filter: drop-shadow(0 0 3px #3b82d6); }
.castillo.done #castle .sparkles { opacity: 1; animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .35; } }
.progress { margin: 0 0 12px; font-size: 1.05rem; color: #dff0fc; }
.progress strong { font: 500 2rem var(--serif); color: #fff; }
.meter { height: 6px; max-width: 360px; margin: 0 auto; background: rgba(255,255,255,.16); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ice), #fff); border-radius: 99px; }
.cast-note { min-height: 1.5em; margin: 16px 0 0; color: var(--ice); font: italic 500 1.2rem var(--serif); }
@media (prefers-reduced-motion: reduce) { .castillo.done #castle .sparkles { animation: none; } }

.lucky { margin: 0 0 18px; }
.lucky .link2 { margin: 0 auto; font-size: .95rem; }
