/* =====================================================================
   Criadero Las Victorias · Rifas
   Negro profundo, dorado de trofeo y rojo cresta (tomados del cartel)
   ===================================================================== */
:root {
  --ink: #0b0907;
  --ink-2: #120e0a;
  --panel: #17120d;
  --panel-2: #1f1912;
  --line: #3a2d17;
  --gold: #e3b350;
  --gold-hi: #f6d98b;
  --gold-deep: #a97a22;
  --blood: #9a2016;
  --blood-hi: #c83a2a;
  --bone: #f2e8d0;
  --mute: #a89f8a;
  --ok: #5fbf7a;
  --warn: #e3b350;
  --bad: #e2574a;
  --info: #6fa8e8;
  --radius: 10px;
  --gold-grad: linear-gradient(180deg, #f6d98b 0%, #e3b350 45%, #a97a22 100%);
  --font-display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --font-body: 'Barlow', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 18px; /* Un punto más grande para mejor lectura en adultos mayores */
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 84px; /* Espacio para que la barra fija inferior no tape el pie de página */
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration-color: color-mix(in srgb, var(--gold) 40%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: .01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: 68ch; }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--mute); }
.center { text-align: center; }
.wrap { width: min(1160px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(560px, 100% - 2rem); margin-inline: auto; }
.mid { width: min(860px, 100% - 2rem); margin-inline: auto; }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; }
.eyebrow { display: block; font: 700 .9rem var(--font-body); color: var(--gold); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .3rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Botones ---------- */
.btn {
  --b: var(--gold-deep);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem;
  font: 700 1.05rem var(--font-body);
  letter-spacing: .02em;
  border: 2px solid var(--b);
  border-radius: 10px;
  background: rgba(18, 14, 10, 0.75);
  color: var(--gold-hi);
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s, transform .1s, border-color .15s, box-shadow .15s;
}
.btn:hover { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold-hi); border-color: var(--gold-hi); }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold-grad); color: #1a1205; border-color: #f6d98b; box-shadow: 0 6px 24px -6px rgba(227,179,80,.7); font-weight: 800; }
.btn-gold:hover { background: var(--gold-grad); color: #000; filter: brightness(1.08); transform: translateY(-1px); }
.btn-red { background: var(--blood); border-color: var(--blood-hi); color: #fff; }
.btn-red:hover { background: var(--blood-hi); color: #fff; }
.btn-sm { padding: .45rem .9rem; font-size: .95rem; }
.btn-lg { padding: .95rem 1.8rem; font-size: 1.15rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.btn-wa { background: #1fa855; border-color: #2ed06c; color: #fff; box-shadow: 0 6px 20px -6px rgba(31,168,85,.6); }
.btn-wa:hover { background: #25c364; color: #fff; }

/* Efecto pulso para atraer clics */
.pulse-btn { animation: pulseGold 2.2s infinite; }
@keyframes pulseGold {
  0% { box-shadow: 0 0 0 0 rgba(246, 217, 139, 0.7); }
  70% { box-shadow: 0 0 0 14px rgba(246, 217, 139, 0); }
  100% { box-shadow: 0 0 0 0 rgba(246, 217, 139, 0); }
}

/* ---------- Cabecera ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 94%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--gold-hi); }
.brand img { width: 52px; height: 52px; object-fit: contain; border-radius: 50%; }
.brand span { font: 800 1.15rem/1.05 var(--font-display); }
.brand small { display: block; font: 500 .72rem var(--font-body); color: var(--mute); letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: .3rem; }
.nav a, .nav button.linklike { color: var(--bone); text-decoration: none; padding: .5rem .8rem; border-radius: 6px; font-weight: 600; background: none; border: 0; font-size: 1rem; cursor: pointer; font-family: var(--font-body); }
.nav a:hover, .nav button.linklike:hover { color: var(--gold-hi); background: var(--panel); }
.nav a[aria-current="page"] { color: var(--gold-hi); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav form { margin: 0; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--gold-hi); padding: .45rem .7rem; border-radius: 8px; font-size: 1.1rem; cursor: pointer; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--ink-2); border-bottom: 1px solid var(--line); padding: .5rem 1rem 1rem; display: none; }
  .nav.open { display: flex; }
}

/* ---------- Avisos ---------- */
.flash { padding: .8rem 1rem; border-radius: 8px; border: 1px solid; margin: 1rem auto; width: min(1160px, 100% - 2rem); font-weight: 600; }
.flash.ok { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--ink)); color: #b9ecc8; }
.flash.bad { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, var(--ink)); color: #ffc9c3; }
.flash.info { border-color: var(--info); background: color-mix(in srgb, var(--info) 12%, var(--ink)); color: #cfe3fa; }
.aviso18 { background: var(--blood); color: #fff; text-align: center; font-size: .9rem; padding: .4rem 1rem; font-weight: 700; letter-spacing: .02em; }

/* ---------- HERO con carrusel ---------- */
.hero { position: relative; isolation: isolate; background: #000; overflow: hidden; }
.hero-stage { position: relative; height: clamp(440px, 76vh, 720px); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.slide.active { opacity: 1; z-index: 1; }
.slide img.bg { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transform: scale(1.02); }
.slide.active img.bg { animation: kenburns 14s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.2%, -1%); } }
.slide::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(11,9,7,.94) 0%, rgba(11,9,7,.65) 50%, rgba(11,9,7,.15) 100%),
  linear-gradient(0deg, var(--ink) 0%, transparent 28%); }
.slide-copy { position: absolute; z-index: 2; inset: 0; display: flex; align-items: center; }
.slide-copy .inner { max-width: 620px; }
.hero-badge { display: inline-block; background: rgba(227, 179, 80, 0.18); border: 1px solid var(--gold); color: var(--gold-hi); padding: .3rem .85rem; border-radius: 99px; font-weight: 700; font-size: .9rem; margin-bottom: .8rem; }
.slide-copy h1 { color: var(--gold-hi); text-shadow: 0 3px 24px rgba(0,0,0,.8); }
.slide-copy p { font-size: 1.2rem; color: var(--bone); text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.slide-copy .actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.5rem; }
.slide.active .inner > * { animation: rise .9s both; }
.slide.active .inner > *:nth-child(2) { animation-delay: .12s; }
.slide.active .inner > *:nth-child(3) { animation-delay: .24s; }
.slide.active .inner > *:nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-dots { position: absolute; z-index: 3; bottom: 1.4rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; }
.hero-dots button { width: 34px; height: 5px; border: 0; border-radius: 3px; background: rgba(255,255,255,.3); cursor: pointer; padding: 0; }
.hero-dots button[aria-current="true"] { background: var(--gold); }
.hero-nav { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.5); border: 1px solid var(--gold-deep); color: var(--gold-hi); width: 44px; height: 44px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.hero-nav:hover { background: rgba(0,0,0,.8); }
.hero-nav.prev { left: 1rem; } .hero-nav.next { right: 1rem; }
@media (max-width: 700px) {
  .hero-nav { display: none; }
  .slide::after { background: linear-gradient(0deg, var(--ink) 0%, rgba(11,9,7,.82) 58%, rgba(11,9,7,.35) 100%); }
  .slide-copy { align-items: flex-end; padding-bottom: 3.5rem; }
  .slide-copy .actions .btn { width: 100%; }
}

/* Cinta en movimiento */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--panel); }
.marquee-track { display: flex; width: max-content; animation: marq 38s linear infinite; }
.marquee span { padding: .7rem 2rem; font: 700 .95rem var(--font-display); color: var(--gold); white-space: nowrap; }
.marquee span::after { content: '✦'; margin-left: 4rem; color: var(--blood-hi); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Barra de confianza ---------- */
.trust-bar { background: var(--ink-2); border-bottom: 1px solid var(--line); padding: 1.3rem 0; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.trust-item { display: flex; align-items: center; gap: .9rem; background: var(--panel); padding: .9rem 1.1rem; border-radius: 12px; border: 1px solid var(--line); }
.trust-icon { font-size: 2rem; line-height: 1; }
.trust-item strong { display: block; color: var(--gold-hi); font-size: 1.05rem; }
.trust-item small { color: var(--mute); font-size: .9rem; line-height: 1.3; display: block; }

/* ---------- Podio Top Compradores ---------- */
.podio-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(227, 179, 80, 0.14), transparent 65%),
    linear-gradient(180deg, var(--ink-2) 0%, var(--panel) 50%, var(--ink) 100%);
  border-block: 1px solid var(--line);
}
.podio-head { text-align: center; margin-bottom: 3.2rem; }
.podio-head h2 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); margin-bottom: .5rem; }
.podio-head p { color: var(--bone); margin: 0 auto; font-size: 1.1rem; max-width: 58ch; }

.podio-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.4rem;
  min-height: 350px;
  max-width: 680px;
  margin: 0 auto;
}
.podio-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 200px;
  position: relative;
  animation: rise .8s both;
}
.podio-item.place-2 { animation-delay: .15s; }
.podio-item.place-1 { animation-delay: .3s; z-index: 3; }
.podio-item.place-3 { animation-delay: .45s; }

.podio-crown {
  background: var(--gold-grad);
  color: #1a1205;
  font: 800 .85rem var(--font-body);
  padding: .25rem .75rem;
  border-radius: 99px;
  margin-bottom: .6rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  box-shadow: 0 4px 14px rgba(227,179,80,.5);
}
.podio-medal {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--bone);
  font: 700 .82rem var(--font-body);
  padding: .2rem .65rem;
  border-radius: 99px;
  margin-bottom: .6rem;
}

.podio-avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 3px solid var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 1.7rem var(--font-display);
  color: var(--gold-hi);
  overflow: hidden;
  margin-bottom: .7rem;
  z-index: 2;
  box-shadow: 0 6px 18px rgba(0,0,0,0.7);
}
.podio-avatar img { width: 100%; height: 100%; object-fit: cover; }
.podio-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--bone);
  text-align: center;
  line-height: 1.15;
  margin-bottom: .25rem;
}
.podio-tickets {
  font-size: .95rem;
  color: var(--mute);
  margin-bottom: 1rem;
  text-align: center;
  background: rgba(0,0,0,0.45);
  padding: .25rem .7rem;
  border-radius: 99px;
  border: 1px solid var(--line);
}
.podio-tickets strong { color: var(--gold-hi); font-size: 1.05rem; }

.podio-step {
  width: 100%;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: .8rem;
  font: 800 3rem var(--font-display);
  color: #1a1205;
  box-shadow: inset 0 3px 8px rgba(255,255,255,0.35), 0 -6px 20px rgba(0,0,0,0.5);
  position: relative;
}
.podio-step::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 45%);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

/* Puesto 1 - Oro */
.place-1 .podio-step { height: 175px; background: var(--gold-grad); }
.place-1 .podio-avatar { width: 98px; height: 98px; font-size: 2.2rem; border-color: var(--gold-hi); border-width: 4px; box-shadow: 0 0 26px rgba(246, 217, 139, 0.45); }
.place-1 .podio-name { color: var(--gold-hi); font-size: 1.35rem; }

/* Puesto 2 - Plata */
.place-2 .podio-step { height: 125px; background: linear-gradient(180deg, #f1f5f9 0%, #94a3b8 100%); color: #0f172a; }
.place-2 .podio-avatar { border-color: #cbd5e1; color: #f1f5f9; }

/* Puesto 3 - Bronce */
.place-3 .podio-step { height: 90px; background: linear-gradient(180deg, #f59e0b 0%, #92400e 100%); color: #2a1205; }
.place-3 .podio-avatar { border-color: #d97706; color: #fde68a; }

.podio-cta {
  margin-top: 2.5rem;
  background: var(--panel-2);
  border: 1.5px solid var(--gold-deep);
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 680px;
  margin-inline: auto;
}
.podio-cta p { margin: 0 auto 1rem; font-size: 1.15rem; font-weight: 600; color: var(--bone); }

@media (max-width: 600px) {
  .podio-wrap { gap: .5rem; min-height: 300px; }
  .podio-avatar { width: 58px; height: 58px; font-size: 1.3rem; }
  .place-1 .podio-avatar { width: 76px; height: 76px; font-size: 1.7rem; }
  .podio-name { font-size: .95rem; }
  .place-1 .podio-name { font-size: 1.1rem; }
  .podio-tickets { font-size: .8rem; padding: .2rem .45rem; }
  .podio-crown, .podio-medal { font-size: .72rem; padding: .15rem .45rem; }
  .podio-step { font-size: 2.2rem; }
  .place-1 .podio-step { height: 140px; }
  .place-2 .podio-step { height: 100px; }
  .place-3 .podio-step { height: 70px; }
}

/* ---------- Tarjetas de rifa ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 14px 34px -10px rgba(0,0,0,.8); }
.card-img { aspect-ratio: 16/10; background: #000; position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 1.25rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .65rem; flex: 1; }
.card-body h3 { margin: 0; color: var(--gold-hi); font-size: 1.35rem; }
.card-body .premio { color: var(--bone); margin: 0; font-size: 1.05rem; }
.price { font: 800 1.65rem var(--font-display); color: var(--gold); }
.price small { font: 500 .9rem var(--font-body); color: var(--mute); margin-left: .3rem; }
.tag { position: absolute; top: .8rem; left: .8rem; background: var(--blood); color: #fff; padding: .25rem .8rem; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.tag.gold { background: var(--gold-grad); color: #1a1205; }
.progress { height: 10px; background: #000; border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.progress > i { display: block; height: 100%; background: var(--gold-grad); border-radius: 99px; }
.progress-note { display: flex; justify-content: space-between; font-size: .9rem; color: var(--mute); font-weight: 600; }
.card-body .btn { margin-top: auto; padding: .85rem 1.2rem; font-size: 1.1rem; }

/* ---------- Cómo funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; counter-reset: paso; }
.step { background: var(--panel); border: 1.5px solid var(--line); border-radius: 14px; padding: 1.5rem 1.3rem; counter-increment: paso; position: relative; }
.step::before { content: counter(paso); position: absolute; top: -15px; left: 1.2rem; width: 32px; height: 32px; border-radius: 50%; background: var(--gold-grad); color: #1a1205; font: 800 1.05rem/32px var(--font-display); text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,.5); }
.step-icon { font-size: 2rem; margin-bottom: .4rem; }
.step h3 { margin-top: .2rem; font-size: 1.15rem; color: var(--gold-hi); }
.step p { margin: 0; color: var(--bone); font-size: 1rem; }

/* Caja de ayuda por WhatsApp para personas mayores */
.help-banner {
  margin-top: 2rem;
  background: linear-gradient(135deg, var(--panel-2), #102416);
  border: 2px solid #2ed06c;
  border-radius: 16px;
  padding: 1.5rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.help-banner h3 { margin: 0 0 .3rem; color: #fff; font-size: 1.3rem; }
.help-banner p { margin: 0; color: #cfe8d6; font-size: 1.05rem; }

/* ---------- Carteles ---------- */
.carteles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.cartel-item { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #000; }
.cartel-item img { width: 100%; height: auto; }
.cartel-item figcaption { padding: .7rem 1rem; font-weight: 600; background: var(--panel); }

/* ---------- Medios de pago ---------- */
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.pay { border: 1.5px solid var(--gold-deep); border-radius: 14px; padding: 1.3rem 1.4rem; background: linear-gradient(160deg, var(--panel-2), var(--ink-2)); display: flex; flex-direction: column; }
.pay h3 { margin: 0 0 .3rem; font-size: 1.15rem; color: var(--gold-hi); }
.pay .num { font: 800 1.45rem var(--font-display); letter-spacing: .04em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; word-break: break-word; }
.pay p { margin: .4rem 0 0; font-size: .95rem; color: var(--bone); }
.copy { margin-top: 1rem; align-self: flex-start; }

/* ---------- Barra fija inferior de compra ("Sticky CTA") ---------- */
.sticky-buy-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  background: rgba(18, 14, 10, 0.96);
  backdrop-filter: blur(12px);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.85);
  padding: .7rem 0;
}
.sticky-buy-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.sticky-buy-info {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.sticky-live-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2ed06c;
  box-shadow: 0 0 12px #2ed06c;
  flex-shrink: 0;
  animation: blinkDot 1.4s infinite alternate;
}
@keyframes blinkDot { from { opacity: .4; transform: scale(.85); } to { opacity: 1; transform: scale(1.15); } }
.sticky-buy-info strong {
  display: block;
  color: var(--gold-hi);
  font-size: 1.05rem;
  line-height: 1.2;
}
.sticky-buy-info small {
  display: block;
  color: var(--bone);
  font-size: .88rem;
}
.sticky-buy-actions .btn {
  white-space: nowrap;
  padding: .75rem 1.5rem;
  font-size: 1.08rem;
}
@media (max-width: 760px) {
  .sticky-buy-info { display: none; }
  .sticky-buy-actions { width: 100%; }
  .sticky-buy-actions .btn { width: 100%; justify-content: center; font-size: 1.05rem; padding: .8rem 1rem; }
}

/* ---------- Detalle de rifa ---------- */
.rifa-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; align-items: start; }
@media (max-width: 980px) { .rifa-layout { grid-template-columns: 1fr; } }
.rifa-hero { display: grid; grid-template-columns: 280px 1fr; gap: 1.6rem; margin-bottom: 2rem; align-items: center; }
@media (max-width: 700px) { .rifa-hero { grid-template-columns: 1fr; } }
.rifa-hero img { border-radius: 14px; border: 2px solid var(--gold-deep); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.meta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.meta li { background: var(--panel); border: 1px solid var(--line); padding: .4rem .8rem; border-radius: 99px; font-size: .9rem; }
.meta b { color: var(--gold-hi); }

.leyenda { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .9rem; color: var(--mute); margin-bottom: 1rem; }
.leyenda i { display: inline-block; width: 16px; height: 16px; border-radius: 4px; vertical-align: -3px; margin-right: .4rem; border: 1px solid var(--gold-deep); }
.leyenda .l-libre { background: var(--panel); }
.leyenda .l-sel { background: var(--gold); }
.leyenda .l-res { background: repeating-linear-gradient(45deg, #3a2d17, #3a2d17 4px, #251c0e 4px, #251c0e 8px); }
.leyenda .l-ven { background: var(--blood); border-color: var(--blood-hi); }

.numeros { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: .5rem; }
.num { position: relative; }
.num input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.num span {
  display: grid; place-items: center; height: 52px;
  border: 1.5px solid var(--gold-deep); border-radius: 8px;
  background: var(--panel); color: var(--bone);
  font: 800 1.1rem var(--font-display);
  transition: background .12s, color .12s, transform .12s;
}
.num:hover span { background: var(--panel-2); border-color: var(--gold); }
.num input:checked + span { background: var(--gold-grad); color: #1a1205; border-color: var(--gold-hi); transform: scale(1.06); box-shadow: 0 4px 14px -4px rgba(227,179,80,.7); }
.num input:focus-visible + span { outline: 3px solid var(--gold-hi); outline-offset: 2px; }
.num.reservada span { background: repeating-linear-gradient(45deg, #3a2d17, #3a2d17 4px, #251c0e 4px, #251c0e 8px); color: #7a6a47; border-color: #3a2d17; }
.num.vendida span { background: var(--blood); color: #f0b4ac; border-color: var(--blood-hi); text-decoration: line-through; }
.num.reservada input, .num.vendida input { pointer-events: none; }

.resumen { position: sticky; top: 88px; background: var(--panel); border: 1.5px solid var(--gold-deep); border-radius: 14px; padding: 1.3rem; }
@media (max-width: 980px) { .resumen { position: static; } }
.resumen h3 { margin-top: 0; }
.resumen .lista { min-height: 2.4rem; display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; }
.chip { background: var(--gold-grad); color: #1a1205; font: 800 .9rem var(--font-display); padding: .15rem .6rem; border-radius: 99px; }
.resumen dl { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; margin: 0 0 1rem; }
.resumen dt { color: var(--mute); }
.resumen dd { margin: 0; text-align: right; font-weight: 700; }
.resumen .total { font: 800 1.6rem var(--font-display); color: var(--gold-hi); }
.azar { display: flex; gap: .5rem; margin-bottom: 1rem; }
.azar input { width: 70px; }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 1rem; }
.field label, .label { display: block; font-weight: 600; margin-bottom: .3rem; font-size: .95rem; }
.field small { color: var(--mute); display: block; margin-top: .25rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=datetime-local], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: .75rem .9rem; font: inherit; color: var(--bone);
  background: var(--ink-2); border: 1.5px solid var(--line); border-radius: 8px;
}
input[type=file] { width: 100%; padding: .6rem; background: var(--ink-2); border: 1.5px dashed var(--gold-deep); border-radius: 8px; color: var(--mute); }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(227,179,80,.25); }
textarea { min-height: 110px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .two { grid-template-columns: 1fr; } }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--gold); }
.error-msg { background: color-mix(in srgb, var(--bad) 14%, var(--ink)); border: 1px solid var(--bad); color: #ffc9c3; padding: .7rem 1rem; border-radius: 8px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.2rem, 3vw, 2rem); }
.preview { max-height: 220px; border-radius: 8px; border: 1px solid var(--line); margin-top: .6rem; }

/* ---------- Pedido ---------- */
.timer { font: 800 2rem var(--font-display); color: var(--gold-hi); }
.estado { display: inline-block; padding: .2rem .75rem; border-radius: 99px; font-size: .85rem; font-weight: 700; border: 1px solid; }
.estado.ok { color: var(--ok); border-color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.estado.warn { color: var(--warn); border-color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.estado.bad { color: var(--bad); border-color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); }
.estado.info { color: var(--info); border-color: var(--info); background: color-mix(in srgb, var(--info) 10%, transparent); }
.estado.muted { color: var(--mute); border-color: var(--line); }

/* ---------- Tablas ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: var(--panel-2); color: var(--gold); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--panel); }
td .inline { display: inline; margin: 0; }
.acciones { display: flex; gap: .4rem; flex-wrap: wrap; }

/* ---------- Edad ---------- */
.edad-page { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; position: relative; isolation: isolate; background: #000; }
.edad-page::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url('/img/banner.jpeg') center/cover; opacity: .35; filter: blur(3px); animation: kenburns 20s ease-out infinite alternate; }
.edad-page::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(11,9,7,.6), rgba(11,9,7,.96)); }
.edad-box { width: min(480px, 100%); text-align: center; background: color-mix(in srgb, var(--ink) 88%, transparent); border: 2px solid var(--gold-deep); border-radius: 18px; padding: 2rem 1.6rem; box-shadow: 0 30px 80px -20px #000; animation: rise .7s both; }
.edad-box img { width: 120px; height: 120px; margin: 0 auto 1rem; object-fit: contain; }
.edad-box h1 { font-size: 1.8rem; color: var(--gold-hi); }
.edad-box .btns { display: grid; gap: .7rem; margin-top: 1.4rem; }
.edad-box p { margin-inline: auto; }

/* ---------- Pie ---------- */
.footer { background: var(--ink-2); border-top: 1px solid var(--line); margin-top: 3rem; padding: 2.5rem 0 1.5rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: var(--gold); font-size: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer .legal { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1rem; color: var(--mute); font-size: .85rem; }

/* Botón flotante de WhatsApp elevado para no chocar con la barra fija de compra */
.wa-float { position: fixed; right: 1rem; bottom: 5.5rem; z-index: 60; background: #1fa855; color: #fff; padding: .8rem 1.2rem; border-radius: 99px; font-weight: 700; text-decoration: none; box-shadow: 0 10px 30px -6px rgba(0,0,0,.85); display: flex; align-items: center; gap: .5rem; border: 2px solid #2ed06c; }
.wa-float:hover { background: #25c364; color: #fff; transform: scale(1.04); }

/* ---------- Página de error ---------- */
.error-page { text-align: center; padding: 5rem 1rem; }
.error-page .code { font: 800 clamp(4rem, 14vw, 8rem) var(--font-display); line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- ADMIN ---------- */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: var(--ink-2); border-right: 1px solid var(--line); padding: 1.2rem 1rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .brand { margin-bottom: 1.5rem; }
.admin-side nav { display: grid; gap: .2rem; }
.admin-side nav a { display: flex; justify-content: space-between; align-items: center; padding: .6rem .8rem; border-radius: 8px; color: var(--bone); text-decoration: none; font-weight: 600; }
.admin-side nav a:hover { background: var(--panel); }
.admin-side nav a[aria-current="page"] { background: var(--panel-2); color: var(--gold-hi); box-shadow: inset 3px 0 0 var(--gold); }
.admin-side .sep { height: 1px; background: var(--line); margin: 1rem 0; }
.admin-main { padding: clamp(1rem, 3vw, 2rem); min-width: 0; }
.admin-main .flash { width: 100%; margin-top: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.admin-top h1 { font-size: 1.8rem; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.2rem; }
.stat b { display: block; font: 800 1.9rem var(--font-display); color: var(--gold-hi); }
.stat span { color: var(--mute); font-size: .9rem; }
.stat.alert { border-color: var(--blood-hi); }
.stat.alert b { color: #ff9b8f; }
.admin-m-btn { display: none; }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-side nav { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}
.thumb { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.inline-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; align-items: end; }
.comprobante { max-width: 100%; max-height: 620px; border-radius: 10px; border: 1px solid var(--line); }
.det { display: grid; grid-template-columns: 150px 1fr; gap: .4rem 1rem; margin: 0; }
.det dt { color: var(--mute); } .det dd { margin: 0; font-weight: 600; word-break: break-word; }

/* ---------- Cartel descargable ---------- */
.cartel-tools { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; padding: 1.2rem; }
.cartel-scroll { overflow-x: auto; padding: 0 1rem 2rem; }
.poster {
  width: 1000px; margin: 0 auto; padding: 36px 40px 30px; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(154,32,22,.5), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(154,32,22,.4), transparent 50%),
    #0b0907;
  border: 3px solid var(--gold-deep); outline: 1px solid var(--gold); outline-offset: -12px;
  font-family: var(--font-body); color: var(--bone);
}
.poster .p-head { display: flex; align-items: center; gap: 22px; }
.poster .p-head img { width: 130px; height: 130px; object-fit: contain; }
.poster .p-head h1 { font-size: 46px; margin: 0; color: var(--gold-hi); line-height: 1; }
.poster .p-head p { margin: 6px 0 0; color: var(--mute); font-size: 20px; }
.poster .p-title { text-align: center; margin: 22px 0 14px; }
.poster .p-title h2 { font-size: 40px; margin: 0; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.poster .p-title p { margin: 6px auto 0; font-size: 22px; }
.poster .p-mid { display: grid; grid-template-columns: 330px 1fr; gap: 24px; align-items: center; margin-bottom: 18px; }
.poster .p-mid img { width: 100%; border-radius: 12px; border: 2px solid var(--gold-deep); aspect-ratio: 4/3; object-fit: cover; }
.poster .p-price { font: 800 54px var(--font-display); color: var(--gold); line-height: 1; }
.poster .p-info { display: grid; gap: 6px; font-size: 21px; }
.poster .p-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin: 14px 0; }
.poster .p-grid.big { grid-template-columns: repeat(20, 1fr); gap: 3px; }
.poster .p-grid span { text-align: center; padding: 7px 0; border: 1.5px solid var(--gold-deep); border-radius: 6px; font: 800 19px var(--font-display); background: #15100a; }
.poster .p-grid.big span { font-size: 12px; padding: 4px 0; }
.poster .p-grid .x { background: var(--blood); border-color: var(--blood-hi); color: #f0b4ac; text-decoration: line-through; }
.poster .p-grid .r { color: #7a6a47; border-color: #3a2d17; }
.poster .p-pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.poster .p-pay div { border: 1.5px solid var(--gold-deep); border-radius: 10px; padding: 10px 12px; background: #15100a; font-size: 16px; }
.poster .p-pay b { display: block; color: var(--gold-hi); font-size: 17px; }
.poster .p-pay em { font: 800 20px var(--font-display); font-style: normal; color: var(--gold); }
.poster .p-foot { text-align: center; margin-top: 16px; color: var(--mute); font-size: 15px; border-top: 1px solid var(--line); padding-top: 12px; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .slide { transition: none !important; }
}

@media print {
  body { background: #fff; padding-bottom: 0; }
  .topbar, .footer, .wa-float, .sticky-buy-bar, .cartel-tools, .aviso18, .flash { display: none !important; }
  .cartel-scroll { padding: 0; overflow: visible; }
  .poster { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}