:root {
  --bg: #0a0a0f;
  --bg-alt: #111018;
  --bg-card: #16151f;
  --red: #ee1b34;
  --red-dim: #a3142a;
  --cyan: #00e5ff;
  --magenta: #ff2e9a;
  --gold: #ffd23f;
  --white: #f6f6f9;
  --muted: #9a97a8;
  --border: rgba(255,255,255,0.08);
  --radius: 18px;
  --wsp: #25d366;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--red), #ff5a3c);
  color: white;
  box-shadow: 0 8px 24px rgba(238,27,52,0.35);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(238,27,52,0.5); }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  color: var(--white);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-wsp {
  background: var(--wsp); color: #fff;
  box-shadow: 0 8px 20px rgba(37,211,102,0.3);
}
.btn-wsp:hover { box-shadow: 0 10px 26px rgba(37,211,102,0.45); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; width: 100%; justify-content: center; }
.btn-lg { padding: 18px 38px; font-size: 1.1rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: background .3s ease, padding .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(12px);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.9rem; letter-spacing: 1px;
  display: flex; align-items: baseline; gap: 8px;
  color: var(--white);
}
.logo span { color: var(--red); }
.logo small {
  font-family: 'Poppins', sans-serif;
  font-size: 0.55rem; letter-spacing: 3px; color: var(--muted); font-weight: 600;
}
.main-nav { display: flex; gap: 28px; }
.main-nav a { font-size: 0.92rem; font-weight: 500; color: var(--muted); transition: color .2s; }
.main-nav a:hover { color: var(--white); }
.header-cta { padding: 10px 20px; font-size: 0.85rem; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

/* ---------- Hero (scroll-driven video) ---------- */
.scroll-video-hero {
  height: 210vh; /* más alto = efecto de scroll más lento */
  position: relative;
}
.scroll-video-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex; align-items: center;
  background: radial-gradient(circle at 50% 20%, #1a1024 0%, var(--bg) 65%);
}
/* Video de fondo: el mismo clip, cubriendo todo, muy desenfocado — da color y
   movimiento ambiental sin competir con el video nítido de encima. */
.hero-video-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(50px) saturate(1.4) brightness(0.55);
  transform: scale(1.2); /* evita el borde claro que deja el blur */
}
/* Video nítido: el clip es vertical (celular) — se muestra completo, centrado,
   como una "ventana" sobre el fondo difuminado. */
.hero-video-fg {
  position: absolute; inset: 0; z-index: 1;
  margin: auto;
  width: auto; height: 92%;
  max-width: 94%;
  object-fit: contain;
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.55), 0 0 80px rgba(0,229,255,0.12);
}
.hero-video-tint {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,8,12,0.35) 0%, rgba(8,8,12,0.05) 30%, rgba(8,8,12,0.35) 65%, rgba(8,8,12,0.82) 100%);
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 85%, black 0%, transparent 55%);
}
.hero-inner { position: relative; z-index: 5; padding-top: 90px; padding-bottom: 60px; text-align: center; width: 100%; }
.hero-kicker {
  color: var(--gold); font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  font-size: 0.8rem; margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 8vw, 6rem);
  line-height: 0.98;
  letter-spacing: 1px;
  margin: 0 0 24px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.55);
}
.glow-red { color: var(--red); text-shadow: 0 0 30px rgba(238,27,52,0.75); }
.glow-cyan { color: var(--cyan); text-shadow: 0 0 30px rgba(0,229,255,0.7); }
.hero-sub {
  max-width: 560px; margin: 0 auto 36px;
  color: #d8d6e0; font-size: 1.08rem; line-height: 1.6;
  text-shadow: 0 2px 14px rgba(0,0,0,0.6);
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 6; color: var(--muted); font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  animation: bob 2s ease-in-out infinite;
}
.scroll-hint span { font-size: 1rem; }
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* Barra de progreso del scroll */
.scroll-progress-bar {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 3px;
  background: rgba(255,255,255,0.12); z-index: 6;
}
.scroll-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transition: width 0.05s linear;
}

/* Móvil: el video se reproduce normal, sin scroll-scrub */
@media (max-width: 768px) {
  .scroll-video-hero { height: 100vh; }
  .scroll-video-sticky { position: relative; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-video-hero { height: 100vh; }
  .scroll-video-sticky { position: relative; }
}

/* ---------- Strip ---------- */
.strip { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 0; }
.strip-inner { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 24px; text-align: center; }
.strip-item strong { display: block; font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: var(--cyan); }
.strip-item span { color: var(--muted); font-size: 0.85rem; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.eyebrow {
  color: var(--red); font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  font-size: 0.78rem; margin: 0 0 10px;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: 0.5px; margin: 0 0 18px; line-height: 1.05;
}
.section-lead { color: var(--muted); max-width: 640px; font-size: 1.02rem; line-height: 1.6; margin-bottom: 50px; }

/* ---------- Cards ---------- */
.cards-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 28px;
}
.card {
  flex: 1 1 300px;
  max-width: 370px;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .1s ease, box-shadow .3s ease, border-color .3s ease;
  will-change: transform;
}
.card:hover { border-color: rgba(255,255,255,0.2); box-shadow: 0 20px 45px rgba(0,0,0,0.45); }
.card-highlight { border-color: rgba(0,229,255,0.4); box-shadow: 0 0 0 1px rgba(0,229,255,0.15); }
.card-media { aspect-ratio: 4/3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-media.portrait { aspect-ratio: 4/5; }

/* ---------- Pack cards (más anchas, para lucir los flyers) ---------- */
.pack-card { flex-basis: 340px; max-width: 400px; }
.pack-featured {
  border-color: rgba(255,210,63,0.5);
  box-shadow: 0 0 0 1px rgba(255,210,63,0.2), 0 20px 50px rgba(0,0,0,0.5);
}
.badge-gold {
  background: var(--gold); color: #2a1d00;
}
.price-quote { font-size: 1.5rem; }

/* ---------- Zoomable media: shine sweep + energy ring + cursor ---------- */
.zoomable {
  position: relative;
  cursor: zoom-in;
  isolation: isolate;
}
.zoomable::after {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.55) 50%, transparent 60%);
  transform: translateX(-120%);
  pointer-events: none;
  mix-blend-mode: overlay;
}
.zoomable:hover::after {
  transform: translateX(120%);
  transition: transform .85s ease;
}
.zoomable::before {
  content: '';
  position: absolute; inset: 0; z-index: 3;
  border-radius: inherit;
  box-shadow: inset 0 0 0 0 rgba(0,229,255,0);
  pointer-events: none;
  transition: box-shadow .4s ease;
}
.zoomable:hover::before {
  animation: energy-pulse 1.6s ease-in-out infinite;
}
@keyframes energy-pulse {
  0%, 100% { box-shadow: inset 0 0 0 2px rgba(0,229,255,0.75), inset 0 0 26px 4px rgba(0,229,255,0.35), inset 0 0 50px 10px rgba(255,46,154,0.2); }
  50% { box-shadow: inset 0 0 0 2px rgba(0,229,255,0.95), inset 0 0 40px 8px rgba(0,229,255,0.55), inset 0 0 70px 16px rgba(255,46,154,0.32); }
}
.zoomable:active { transform: scale(0.98); }
.card-body { padding: 24px; }
.card-body h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 0.5px; margin: 0 0 10px; }
.card-body p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; margin: 0 0 16px; }
.card-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.price { font-family: 'Bebas Neue', sans-serif; font-size: 2.1rem; color: var(--gold); letter-spacing: 0.5px; }
.price-old { font-size: 1.1rem; color: var(--muted); text-decoration: line-through; }
.price-unit { font-size: 0.8rem; color: var(--muted); }
.card-note { font-size: 0.78rem; color: var(--muted); margin: 0 0 16px; }
.precio-check { color: var(--cyan); }
.badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: var(--cyan); color: #06222a;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px;
  padding: 6px 12px; border-radius: 999px;
}
.badge-alt {
  display: inline-block; position: static;
  background: rgba(255,210,63,0.15); color: var(--gold);
  border: 1px solid rgba(255,210,63,0.4);
  margin-bottom: 18px;
}
.disclaimer { color: var(--muted); font-size: 0.8rem; margin-top: 36px; max-width: 800px; line-height: 1.6; }

/* ---------- Why ---------- */
.why { background: var(--bg-alt); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; margin-top: 10px; }
.why-num { font-family: 'Bebas Neue', sans-serif; font-size: 1rem; color: var(--red); }
.why-item h3 { font-size: 1.15rem; margin: 10px 0 10px; }
.why-item p { color: var(--muted); font-size: 0.92rem; line-height: 1.6; }

/* ---------- Fiesta 80 ---------- */
.fiesta80 { background: linear-gradient(135deg, #1b0f22, var(--bg)); }
.fiesta80-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.fiesta80-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.fiesta80-copy h2 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2rem,4vw,3rem); margin: 0 0 18px; }
.fiesta80-copy p { color: var(--muted); line-height: 1.65; margin-bottom: 20px; }
.fiesta80-list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; }
.fiesta80-list li { padding-left: 24px; position: relative; color: var(--white); font-size: 0.95rem; }
.fiesta80-list li::before { content: '✦'; position: absolute; left: 0; color: var(--gold); }
.fiesta80-copy .card-price { margin: 20px 0; }

/* ---------- Zona ---------- */
.zona-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.zona-chip {
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg-card); font-weight: 600; font-size: 0.95rem;
}
.zona-chip-muted { color: var(--muted); font-weight: 400; border-style: dashed; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.gallery-item { border-radius: 14px; overflow: hidden; aspect-ratio: 1/1; border: 1px solid var(--border); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.08); }

/* ---------- CTA final ---------- */
.cta-final {
  background: radial-gradient(circle at 50% 0%, rgba(238,27,52,0.18), transparent 60%), var(--bg-alt);
  text-align: center;
  border-top: 1px solid var(--border);
}
.cta-final h2 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2rem,4.5vw,3rem); margin: 0 0 14px; }
.cta-final p { color: var(--muted); margin-bottom: 32px; }

/* ---------- Footer ---------- */
.site-footer { background: #060608; padding: 70px 0 0; border-top: 1px solid var(--border); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { color: var(--muted); font-size: 0.88rem; margin-top: 14px; max-width: 320px; line-height: 1.6; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 0 0 14px; }
.footer-col p { margin: 0 0 8px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; text-align: center; }
.footer-bottom p { color: var(--muted); font-size: 0.78rem; margin: 0; }

/* ---------- Floating WhatsApp ---------- */
.floating-wsp {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wsp); color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.5);
  animation: pulse-wsp 2.4s ease-in-out infinite;
}
@keyframes pulse-wsp {
  0%,100% { box-shadow: 0 10px 30px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 10px 30px rgba(37,211,102,0.85), 0 0 0 10px rgba(37,211,102,0.08); }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .fiesta80-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .header-cta { display: none; }
  .section { padding: 70px 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .floating-wsp, .scroll-hint { animation: none; }
  .card, .card-media img, .gallery-item img { transition: none; }
}

/* ---------- Spark burst canvas ---------- */
#sparkBurstCanvas {
  position: fixed; inset: 0; z-index: 998;
  pointer-events: none;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  background: rgba(6,6,10,0.92);
  backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  padding: 40px 20px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(90vw, 900px);
  max-height: 78vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(0,229,255,0.15);
  transform: scale(0.92);
  transition: transform .35s cubic-bezier(.2,.9,.3,1.3);
}
.lightbox.open img { transform: scale(1); }
.lightbox-caption {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
  color: var(--white); font-size: 1.8rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.18); transform: rotate(90deg); }

@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox img, .lightbox-close { transition: none; }
  .zoomable:hover::before { animation: none; }
  .zoomable::after { display: none; }
}
