/* ─────────────────────────────────────────────────────────────────
   MemoRifas — styles.css
   Design: Emil Kowalski (animations.dev) + Impeccable principles
   ───────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }

/* ── DESIGN TOKENS ──────────────────────────────────────────────── */
:root {
  /* Brand palette — OKLCH for perceptual uniformity
     Fallbacks: orange=#FF6B00, orange-lt=#FF9A3C, gold=#C9A84C, gold-lt=#F5D675 */
  --orange:      oklch(62% 0.22 40);
  --orange-lt:   oklch(74% 0.19 46);
  --gold:        oklch(70% 0.11 82);
  --gold-lt:     oklch(84% 0.13 86);

  /* Surfaces — tinted toward brand hue (never pure black, chroma 0.015–0.02) */
  --black:       oklch(8%  0.015 44);
  --dark:        oklch(11% 0.018 44);
  --card:        oklch(14% 0.020 44);
  --card-hi:     oklch(18% 0.024 44);

  /* Text — warm neutrals */
  --white:       oklch(96% 0.005 44);
  --text-dim:    oklch(60% 0.010 44);
  --text-dimmer: oklch(40% 0.008 44);

  /* Borders */
  --border:        oklch(70% 0.11 82 / 0.18);
  --border-strong: oklch(70% 0.11 82 / 0.38);
  --border-hot:    oklch(62% 0.22 40 / 0.28);

  /* Custom easing curves — Emil Kowalski */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ── BASE ────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth }
body {
  background: var(--black);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* Ambient glow — subtle, purposeful depth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%,  oklch(62% 0.22 40 / 0.15) 0%, transparent 65%),
    radial-gradient(ellipse 45% 38% at 88% 72%,  oklch(70% 0.11 82 / 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── NAVIGATION ───────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 3rem;
  background: oklch(8% 0.015 44 / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
nav > a img { height: 82px !important; width: auto; object-fit: contain }

.nav-links { display: flex; gap: 2rem; list-style: none }
.nav-links a {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 180ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--gold) }
}

.nav-cta {
  background: linear-gradient(135deg, var(--orange), var(--orange-lt));
  color: var(--white);
  padding: 0.6rem 1.5rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
  box-shadow: 0 4px 20px oklch(62% 0.22 40 / 0.30);
}
@media (hover: hover) and (pointer: fine) {
  .nav-cta:hover { opacity: 0.9 }
}
.nav-cta:active { transform: scale(0.97) }

/* ── HERO ──────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Dot-grid texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(oklch(70% 0.11 82 / 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Background image — purposeful depth, not just decoration */
.hero-combo { position: relative }
.hero-combo::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(oklch(8% 0.015 44 / 0.74), oklch(8% 0.015 44 / 0.82)),
    url('images/hero_combo.jpg') center / cover no-repeat;
  z-index: 0;
}
.hero-combo > * { position: relative; z-index: 1 }

/* Logo — barely-noticeable float (2px), too subtle to annoy */
.hero-logo {
  height: clamp(300px, 42vw, 540px);
  width: auto;
  margin-bottom: 1.5rem;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px oklch(62% 0.22 40 / 0.22));
  animation: floatLogo 6s ease-in-out infinite;
}
@keyframes floatLogo {
  0%, 100% { transform: translateY(0) }
  50%       { transform: translateY(-6px) }
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 9vw, 7rem);
  line-height: 1;
  letter-spacing: 0.03em;
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
  color: var(--white);
}
.hero-title .accent { color: var(--orange-lt) }

.hero-subtitle {
  font-size: clamp(0.85rem, 2.2vw, 1.15rem);
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-bottom: 3rem;
  text-transform: uppercase;
}

.hero-note {
  font-size: 0.95rem;
  color: oklch(96% 0.005 44 / 0.72);
  max-width: 760px;
  line-height: 1.8;
  margin: -1.2rem auto 2.4rem;
}

/* Price block — distinctive brand element, keep clip-path */
.price-block {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, var(--orange), var(--orange-lt));
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  padding: 1.2rem 3rem;
  margin-bottom: 3rem;
  box-shadow: 0 8px 40px oklch(62% 0.22 40 / 0.35);
}
.price-label {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: oklch(96% 0.005 44 / 0.80);
  margin-bottom: 0.35rem;
}
.price-amount {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--white);
  line-height: 1;
  letter-spacing: 0.02em;
}
.price-sub {
  font-size: 0.65rem;
  font-weight: 700;
  color: oklch(96% 0.005 44 / 0.75);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Hero CTA */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 1rem 2.5rem;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 220ms var(--ease-out);
  position: relative;
  overflow: hidden;
}
/* Fill slides in from left — not from scale(0), which looks unreal */
.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .hero-cta:hover::before { transform: translateX(0) }
  .hero-cta:hover { color: var(--black) }
}
.hero-cta:active { transform: scale(0.97) }
.hero-cta span, .hero-cta svg { position: relative; z-index: 1 }

/* WhatsApp green CTA */
.hero-cta-wa {
  background: #25D366 !important;
  border-color: #25D366 !important;
  color: #fff !important;
}
.hero-cta-wa::before { background: #1ebe5d }
@media (hover: hover) and (pointer: fine) {
  .hero-cta-wa:hover { color: #fff !important }
}

/* ── STATS BAR ────────────────────────────────────────────────────── */
.stats-bar {
  display: flex;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: oklch(70% 0.11 82 / 0.025);
  position: relative;
  z-index: 1;
}
.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  border-right: 1px solid var(--border);
  transition: background 200ms var(--ease-out);
}
.stat-item:last-child { border-right: none }
@media (hover: hover) and (pointer: fine) {
  .stat-item:hover { background: oklch(62% 0.22 40 / 0.04) }
}
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--orange-lt);
  line-height: 1;
}
.stat-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  margin-top: 0.3rem;
  text-align: center;
}

/* ── SECTIONS ─────────────────────────────────────────────────────── */
.section-inner {
  padding: 6rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.section-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-tag::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--orange);
  flex-shrink: 0;
}
.section-h {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: 3rem;
}
.section-h em { color: var(--orange-lt); font-style: normal }

/* ── COMBO TRIO (premio grid) ───────────────────────────────────────── */
.combo-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.trio-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.trio-item img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
  aspect-ratio: 2/3;
  display: block;
  transition: transform 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .trio-item img:hover { transform: scale(1.03) }
}
.trio-label {
  text-align: center;
  margin-top: 1rem;
  padding: 0 0.25rem;
}
.trio-label strong {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.trio-label span {
  display: block;
  font-size: 0.78rem;
  color: oklch(96% 0.005 44 / 0.50);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

/* ── MODAL ─────────────────────────────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: oklch(4% 0.01 44 / 0.92);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.modal.open { display: flex }
.modal-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}
.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .modal-close:hover { opacity: 1 }
}
.modal-prev, .modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: oklch(62% 0.22 40 / 0.70);
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  padding: 0.8rem 1.1rem;
  cursor: pointer;
  transition: background 160ms var(--ease-out);
}
.modal-prev { left: 1rem }
.modal-next { right: 1rem }
@media (hover: hover) and (pointer: fine) {
  .modal-prev:hover,
  .modal-next:hover { background: var(--orange) }
}

/* ── ANTICIPADOS ─────────────────────────────────────────────────── */
.anticipados-intro {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 700;
  color: oklch(96% 0.005 44 / 0.82);
  text-align: center;
  line-height: 1.65;
  margin: 0 auto 2.5rem;
  max-width: 640px;
  letter-spacing: 0.01em;
}

.anticipados-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: stretch;
  max-width: 860px;
  margin: 0 auto;
}
.anticipo-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition:
    border-color 200ms var(--ease-out),
    box-shadow   200ms var(--ease-out),
    transform    200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .anticipo-card:hover {
    border-color: var(--orange);
    box-shadow: 0 0 28px oklch(62% 0.22 40 / 0.12);
    transform: translateY(-3px);
  }
}
.anticipo-card-first { justify-content: center }

.anticipo-eyebrow {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  line-height: 1.4;
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.anticipo-date {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 0.95;
  color: var(--gold-lt);
  margin-bottom: 0.15rem;
  letter-spacing: 0.03em;
}
.anticipo-status {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

/* Date pills */
.anticipo-dates-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.7rem auto 0;
  width: 100%;
}
.anticipo-dates-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.anticipo-date-pill {
  background: oklch(70% 0.11 82 / 0.12);
  border: 1px solid oklch(70% 0.11 82 / 0.38);
  color: var(--gold-lt);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  white-space: nowrap;
}
.anticipo-date-sep {
  color: oklch(70% 0.11 82 / 0.40);
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Final combo block */
.combo-final-block {
  margin-top: 2px;
  background: linear-gradient(135deg, oklch(62% 0.22 40 / 0.10), oklch(70% 0.11 82 / 0.07));
  border: 1px solid oklch(62% 0.22 40 / 0.28);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.consolacion-title {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-lt);
  text-align: center;
}
.consolacion-wrap { display: flex; gap: 1rem; flex-wrap: wrap }
.consolacion-box {
  min-width: 190px;
  text-align: center;
  background: oklch(96% 0.005 44 / 0.04);
  border: 1px solid oklch(70% 0.11 82 / 0.22);
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.consolacion-amount {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  color: var(--gold-lt);
  line-height: 1;
}
.consolacion-label {
  font-size: 0.84rem;
  color: oklch(96% 0.005 44 / 0.60);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.45;
  margin-top: 0.35rem;
}

/* ── STEPS ────────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.step {
  position: relative;
  text-align: center;
  padding: 1.5rem 1rem;
}
.step-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 5rem;
  line-height: 1;
  color: oklch(62% 0.22 40 / 0.08);
  margin-bottom: -2.5rem;
}

/* SVG icon container */
.step-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.25rem;
  color: var(--white);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-icon svg {
  width: 100%;
  height: 100%;
}

.step h4 {
  font-weight: 900;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--white);
}
.step p {
  font-size: 0.8rem;
  color: oklch(96% 0.005 44 / 0.45);
  line-height: 1.7;
}
.step p:empty { display: none }

.step-connector {
  position: absolute;
  top: 7rem;
  right: -1rem;
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
}
.step:last-child .step-connector { display: none }

/* ── SORTEO BANNER ────────────────────────────────────────────────── */
.sorteo-banner {
  background: linear-gradient(135deg, var(--orange) 0%, oklch(67% 0.22 42) 50%, var(--orange-lt) 100%);
  padding: 3.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.sorteo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, oklch(0% 0 0 / 0.05) 0px, oklch(0% 0 0 / 0.05) 1px, transparent 1px, transparent 12px);
}
.sorteo-item { position: relative; z-index: 1 }
.sorteo-label {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: oklch(8% 0.015 44 / 0.55);
  margin-bottom: 0.3rem;
}
.sorteo-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--black);
  line-height: 1;
  letter-spacing: 0.03em;
}

/* ── LEGAL ────────────────────────────────────────────────────────── */
.legal-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.legal-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: oklch(62% 0.22 40 / 0.06);
  border: 1px solid oklch(62% 0.22 40 / 0.20);
  padding: 1rem 1.5rem;
  margin-bottom: 1.2rem;
  width: 100%;
}
.legal-badge-logo img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  padding: 6px;
  border-radius: 4px;
}
.legal-badge-icon { font-size: 1.5rem; flex-shrink: 0 }
.legal-badge-text h4 {
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--orange-lt);
}
.legal-badge-text p {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}
.legal-details p {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.9;
  margin-bottom: 0.4rem;
}
.legal-details strong { color: oklch(96% 0.005 44 / 0.82) }

/* ── CTA FINAL ────────────────────────────────────────────────────── */
.cta-final {
  padding: 8rem 2.5rem;
  text-align: center;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, oklch(62% 0.22 40 / 0.07) 0%, transparent 70%);
  position: relative;
  z-index: 1;
}
.cta-final h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 0.95;
  margin-bottom: 1.5rem;
}
.cta-final h2 span { color: var(--orange-lt) }
.cta-final p {
  font-size: 0.9rem;
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--orange), var(--orange-lt));
  color: var(--white);
  padding: 1.1rem 3rem;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: box-shadow 200ms var(--ease-out), transform 160ms var(--ease-out);
  box-shadow: 0 8px 40px oklch(62% 0.22 40 / 0.35);
}
@media (hover: hover) and (pointer: fine) {
  .btn-whatsapp:hover { box-shadow: 0 14px 52px oklch(62% 0.22 40 / 0.55) }
}
.btn-whatsapp:active { transform: scale(0.97) }

.btn-wa-green {
  background: #25D366 !important;
  color: #fff !important;
  box-shadow: 0 8px 40px rgba(37, 211, 102, 0.30) !important;
}
@media (hover: hover) and (pointer: fine) {
  .btn-wa-green:hover { box-shadow: 0 14px 52px rgba(37, 211, 102, 0.50) !important }
}

/* ── FOOTER ───────────────────────────────────────────────────────── */
footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.72rem;
  color: var(--text-dimmer);
  position: relative;
  z-index: 1;
}

/* ── SCROLL ANIMATIONS ────────────────────────────────────────────── */
/* Start from scale(0.98) + opacity 0 — nothing enters from nothing */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.fade-up.visible { opacity: 1; transform: none }

/* Stagger: stat bar */
.stats-bar .stat-item.fade-up.visible:nth-child(1) { transition-delay:   0ms }
.stats-bar .stat-item.fade-up.visible:nth-child(2) { transition-delay:  50ms }
.stats-bar .stat-item.fade-up.visible:nth-child(3) { transition-delay: 100ms }
.stats-bar .stat-item.fade-up.visible:nth-child(4) { transition-delay: 150ms }
.stats-bar .stat-item.fade-up.visible:nth-child(5) { transition-delay: 200ms }

/* Stagger: steps */
.steps .step.fade-up.visible:nth-child(1) { transition-delay:   0ms }
.steps .step.fade-up.visible:nth-child(2) { transition-delay:  60ms }
.steps .step.fade-up.visible:nth-child(3) { transition-delay: 120ms }
.steps .step.fade-up.visible:nth-child(4) { transition-delay: 180ms }

/* Stagger: prize trio */
.combo-trio .trio-item.fade-up.visible:nth-child(1) { transition-delay:   0ms }
.combo-trio .trio-item.fade-up.visible:nth-child(2) { transition-delay:  80ms }
.combo-trio .trio-item.fade-up.visible:nth-child(3) { transition-delay: 160ms }

/* ── PREFERS-REDUCED-MOTION ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 0;
    transform: none;
    transition: opacity 300ms ease;
  }
  .hero-logo { animation: none }
  .anticipo-card,
  .trio-item img,
  .btn-whatsapp,
  .hero-cta,
  .nav-cta { transition-duration: 0ms }
}

/* ── GALLERY / SLIDESHOW ────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 6px; border-radius: 4px; overflow: hidden; margin-top: 3rem }
.gallery-main { position: relative; overflow: hidden; cursor: pointer }
.gallery-side { display: grid; grid-template-rows: 1fr 1fr; gap: 6px }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease-out) }
.gallery-main img { height: 400px }
.gallery-side img { height: 197px }
@media (hover: hover) and (pointer: fine) {
  .gallery img:hover { transform: scale(1.04) }
}
.gallery-badge { position: absolute; bottom: 1rem; right: 1rem; background: oklch(0% 0 0 / 0.70); color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; padding: 0.4rem 0.9rem; backdrop-filter: blur(8px) }

.galeria { position: relative; width: 100%; max-width: 860px; margin: 0 auto; border-radius: 4px; overflow: hidden; box-shadow: 0 16px 60px oklch(0% 0 0 / 0.50) }
.galeria-slides { position: relative; width: 100%; aspect-ratio: 3/2 }
.galeria-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 500ms var(--ease-in-out) }
.galeria-slide.active { opacity: 1 }
.galeria-slide img { width: 100%; height: 100%; object-fit: cover; display: block }
.galeria-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, oklch(0% 0 0 / 0.75)); color: var(--white); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; padding: 1.5rem 1.5rem 1rem; text-align: center }
.gal-btn { position: absolute; top: 50%; transform: translateY(-50%); background: oklch(0% 0 0 / 0.45); color: var(--white); border: none; font-size: 2rem; line-height: 1; width: 44px; height: 44px; cursor: pointer; z-index: 5; transition: background 160ms var(--ease-out); display: flex; align-items: center; justify-content: center }
@media (hover: hover) and (pointer: fine) {
  .gal-btn:hover { background: oklch(62% 0.22 40 / 0.70) }
}
.gal-prev { left: 0; border-radius: 0 4px 4px 0 }
.gal-next { right: 0; border-radius: 4px 0 0 4px }
.gal-dots { position: absolute; bottom: 0.6rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; z-index: 5 }
.gal-dot { width: 8px; height: 8px; border-radius: 50%; background: oklch(96% 0.005 44 / 0.40); cursor: pointer; transition: background 160ms var(--ease-out) }
.gal-dot.active { background: var(--orange) }

/* ── RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .legal-inner { grid-template-columns: 1fr }
}

@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem }
  .nav-links { display: none }
  .steps { grid-template-columns: 1fr 1fr }
  .step-connector { display: none }
  .sorteo-banner { gap: 2rem }
  footer { flex-direction: column; text-align: center }
}

@media (max-width: 700px) {
  .anticipados-2col { grid-template-columns: 1fr; gap: 1.2rem }
  .anticipo-eyebrow { min-height: auto }
  .consolacion-wrap { width: 100% }
  .consolacion-box { flex: 1 1 100% }
}

@media (max-width: 640px) {
  .combo-trio { grid-template-columns: 1fr; gap: 1.5rem }
  .trio-item img { aspect-ratio: 3/4; object-fit: cover; object-position: center top }
}

@media (min-width: 641px) and (max-width: 900px) {
  .combo-trio { grid-template-columns: repeat(3, 1fr); gap: 0.75rem }
  .trio-item img { aspect-ratio: 2/3 }
}

/* Stats bar mobile grid */
@media (max-width: 600px) {
  .stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    border-left: none;
    border-right: none;
  }
  .stat-item:nth-child(4) { grid-column: 1 / 2 }
  .stat-item:nth-child(5) { grid-column: 3 / 4 }
  .stat-item {
    padding: 1.2rem 0.4rem;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .stat-item:nth-child(3) { border-right: none }
  .stat-item:nth-child(5) { border-right: none; border-bottom: none }
  .stat-item:nth-child(4) { border-bottom: none }
  .stat-num { font-size: clamp(1.1rem, 4vw, 1.6rem) }
  .stat-label { font-size: 0.52rem; letter-spacing: 0.1em }
}

@media (max-width: 768px) {
  .gallery { grid-template-columns: 1fr }
  .gallery-side { grid-template-rows: auto; grid-template-columns: 1fr 1fr }
  .gallery-main img { height: 240px }
  .gallery-side img { height: 140px }
}
