/* ============================================================
   SECRET PARTY - landing evento
   Tema: oscuro + neón rosa (glow intencional, pedido en el brief)
   Un solo acento (rosa). Radios: tarjetas 16px, botones pill.
   ============================================================ */

@font-face {
  font-family: "Gilroy";
  src: url("assets/fonts/Gilroy-Bold.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #07070c;
  --bg-2: #0b0b13;
  --panel: #101019;
  --ink: #f6f3fa;
  --muted: #9b94ab;
  --muted-2: #6f6880;
  --accent: #ff2d8f;
  --accent-soft: #ff7ac0;
  --accent-blue: #19e3ff;
  --accent-blue-soft: #7ae0ff;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --r-card: 16px;
  --r-pill: 999px;
  --maxw: 1180px;
  --glow: 0 0 24px rgba(255, 45, 143, 0.55), 0 0 64px rgba(255, 45, 143, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Gilroy", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Resplandores de fondo que se mueven lento */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(40% 35% at 18% 12%, rgba(255, 45, 143, 0.22), transparent 60%),
    radial-gradient(45% 40% at 85% 22%, rgba(25, 150, 255, 0.20), transparent 62%),
    radial-gradient(40% 38% at 70% 70%, rgba(25, 227, 255, 0.12), transparent 62%),
    radial-gradient(50% 45% at 50% 100%, rgba(255, 45, 143, 0.14), transparent 65%);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.08); }
}

/* Grano sutil fijo */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#sparks {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ---------- utilidades ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.wrap--narrow { max-width: 760px; }
.section { padding: clamp(64px, 12vw, 140px) 0; }
.center { text-align: center; }
.muted { color: var(--muted); }

.h2 {
  font-family: "Gilroy", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.h2 em { color: var(--accent); font-style: italic; }
.h2 .hl { color: var(--accent); }
.h2.center { margin-inline: auto; }

.lead { color: var(--muted); font-size: 1.06rem; max-width: 48ch; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Gilroy", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border-radius: var(--r-pill);
  padding: 14px 28px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, background 0.25s;
  white-space: nowrap;
}
.btn--solid {
  background: var(--accent);
  color: #14000a;
  box-shadow: var(--glow);
}
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(255, 45, 143, 0.75), 0 0 80px rgba(255, 45, 143, 0.35); }
.btn--solid:active { transform: translateY(0) scale(0.98); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-soft); }
.btn--block { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 22px;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(7, 7, 12, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.nav__mark {
  font-family: "Gilroy", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: 0 0 16px rgba(255, 45, 143, 0.4);
}
.nav__name { font-family: "Gilroy", sans-serif; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; }
.nav__cta { padding: 9px 20px; font-size: 0.9rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 90px 22px 40px;
}
.hero__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; max-width: 760px; }
.hero__eyebrow {
  font-family: "Gilroy", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.42em;
  color: var(--accent-soft);
  text-indent: 0.42em;
}
.hero__title {
  font-family: "Gilroy", sans-serif;
  font-weight: 800;
  font-size: clamp(3.4rem, 15vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.35),
    -2px 0 14px rgba(255, 45, 143, 0.9),
    2px 0 14px rgba(25, 227, 255, 0.7),
    0 0 48px rgba(255, 45, 143, 0.5),
    0 0 90px rgba(255, 45, 143, 0.3);
  animation: flicker 6s linear infinite, glitch 8s steps(1, end) infinite;
}
@keyframes flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.72; }
  94% { opacity: 1; }
  96% { opacity: 0.85; }
  97% { opacity: 1; }
}
@keyframes glitch {
  0%, 86%, 100% {
    transform: translate(0, 0);
    text-shadow:
      0 0 8px rgba(255, 255, 255, 0.35),
      -2px 0 14px rgba(255, 45, 143, 0.9),
      2px 0 14px rgba(25, 227, 255, 0.7),
      0 0 48px rgba(255, 45, 143, 0.5),
      0 0 90px rgba(255, 45, 143, 0.3);
  }
  88% {
    transform: translate(-3px, 1px);
    text-shadow:
      -4px 0 14px rgba(25, 227, 255, 0.95),
      4px 0 14px rgba(255, 45, 143, 0.9),
      0 0 60px rgba(25, 227, 255, 0.4);
  }
  90% {
    transform: translate(3px, -1px);
    text-shadow:
      4px 0 16px rgba(25, 227, 255, 0.95),
      -4px 0 16px rgba(255, 45, 143, 0.9),
      0 0 60px rgba(255, 45, 143, 0.4);
  }
  92% { transform: translate(-2px, 0); }
  94% { transform: translate(0, 0); }
}
.hero__invite {
  font-size: 0.92rem;
  color: var(--accent-soft);
  letter-spacing: 0.02em;
  padding: 9px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: rgba(255, 45, 143, 0.07);
}
.hero__sub { color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.22rem); max-width: 38ch; }
.hero__cta { margin-top: 6px; padding: 16px 36px; font-size: 1.05rem; }

.hero__logo-wrap { margin: 0; line-height: 0; display: flex; justify-content: center; width: 100%; }
.hero__logo {
  display: block;
  width: min(86vw, 680px);
  height: auto;
  filter:
    drop-shadow(0 0 7px rgba(255, 45, 143, 0.5))
    drop-shadow(0 0 22px rgba(255, 45, 143, 0.18))
    drop-shadow(-1px 0 2px rgba(255, 45, 143, 0.45))
    drop-shadow(2px 0 2px rgba(0, 224, 241, 0.4));
  animation: flicker 6s linear infinite, glitch 8s steps(1, end) infinite;
}
.nav__logo { height: 26px; width: auto; display: block; filter: drop-shadow(0 0 8px rgba(255, 45, 143, 0.6)); }

.hero__fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

/* ---------- cuenta atrás ---------- */
.count { display: flex; gap: clamp(10px, 3vw, 26px); }
.count__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  padding: 14px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.count__num {
  font-family: "Gilroy", sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.count__lab { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); margin-top: 6px; }

/* ---------- evento ---------- */
.evento__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.evento__lead .lead { margin-top: 20px; }
.evento__facts { list-style: none; display: grid; gap: 0; }
.evento__facts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.evento__facts li:last-child { border-bottom: 1px solid var(--line); }
.fact__k { color: var(--muted); font-size: 0.92rem; letter-spacing: 0.02em; }
.fact__v { font-weight: 600; text-align: right; }

/* ---------- entradas ---------- */
.entradas .muted { margin-top: 10px; margin-bottom: 44px; }
.ticket {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  max-width: 880px;
  margin: 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  overflow: hidden;
  background: linear-gradient(160deg, var(--panel), var(--bg-2));
  box-shadow: 0 0 0 1px rgba(255, 45, 143, 0.05), 0 30px 80px rgba(0, 0, 0, 0.5);
}
.ticket__main { padding: clamp(28px, 4vw, 44px); border-right: 1px solid var(--line); }
.ticket__type { font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-soft); }
.ticket__price {
  font-family: "Gilroy", sans-serif;
  font-weight: 800;
  font-size: clamp(3.4rem, 9vw, 5rem);
  line-height: 1;
  margin: 10px 0 22px;
}
.ticket__cur { font-size: 0.45em; vertical-align: super; color: var(--muted); margin-right: 2px; }
.ticket__list { list-style: none; display: grid; gap: 12px; }
.ticket__list li { position: relative; padding-left: 26px; color: var(--ink); font-size: 0.98rem; }
.ticket__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 45, 143, 0.7);
}
.ticket__buy { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }

.aforo { display: grid; gap: 10px; }
.aforo__row { display: flex; justify-content: space-between; align-items: baseline; }
.aforo__txt { font-weight: 600; font-size: 0.96rem; }
.aforo__pct { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.aforo__bar { height: 8px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.aforo__fill {
  display: block; height: 100%; width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  box-shadow: 0 0 14px rgba(255, 45, 143, 0.6);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.aforo.is-out .aforo__fill { background: var(--muted-2); box-shadow: none; }
.ticket__note { font-size: 0.88rem; color: var(--muted); }
.ticket__note a { color: var(--accent-soft); }
.contact { margin-top: 30px; }
.contact a { color: var(--accent-soft); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

/* ---------- galería ---------- */
.ambiente .h2 { margin-bottom: 36px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 14px; }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--r-card); border: 1px solid var(--line); margin: 0; }
.gallery__item--big { grid-row: span 2; grid-column: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.1) contrast(1.05); transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(255, 45, 143, 0.18)), rgba(7, 7, 12, 0.25);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.gallery__item:hover img { transform: scale(1.06); }

/* ---------- faq ---------- */
.faq .h2 { margin-bottom: 28px; }
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__q {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  font-weight: 600;
  font-size: 1.06rem;
  position: relative;
}
.acc__q::-webkit-details-marker { display: none; }
.acc__q::after {
  content: "+";
  position: absolute; right: 4px; top: 18px;
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.25s;
}
.acc__item[open] .acc__q::after { transform: rotate(45deg); }
.acc__a { padding: 0 40px 22px 0; color: var(--muted); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0; }
.foot__inner { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.foot__brand { font-family: "Gilroy", sans-serif; font-weight: 800; letter-spacing: 0.06em; }
.foot__links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot__links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.foot__links a:hover { color: var(--accent-soft); }
.foot__copy { color: var(--muted-2); font-size: 0.85rem; }

/* ---------- reveal scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- perks / la noche ---------- */
.perks .h2 { margin-bottom: 36px; }
.perks__grid { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.perk {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
  transition: border-color 0.3s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.perk:hover { border-color: rgba(255, 45, 143, 0.4); transform: translateY(-3px); }
.perk__big {
  font-family: "Gilroy", sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1;
  color: var(--accent-soft);
}
.perk:nth-child(even) .perk__big { color: var(--accent-blue-soft); }
.perk:nth-child(even):hover { border-color: rgba(25, 227, 255, 0.4); }
.perk__t { color: var(--muted); font-size: 0.92rem; line-height: 1.4; }

/* ---------- escasez (aforo sin número) ---------- */
.scarce { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.scarce__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 45, 143, 0.85);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.7); } }
.scarce.is-out { color: var(--muted-2); }
.scarce.is-out .scarce__dot { background: var(--muted-2); box-shadow: none; animation: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .evento__grid { grid-template-columns: 1fr; }
  .ticket { grid-template-columns: 1fr; }
  .ticket__main { border-right: none; border-bottom: 1px solid var(--line); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery__item--big { grid-row: span 2; grid-column: span 2; }
  .gallery__item--wide { grid-column: span 2; }
  .perks__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .nav__name { display: none; }
  .count__cell { min-width: 0; flex: 1; }
  .count { width: 100%; }
  .perks__grid { grid-template-columns: 1fr; }
}

/* ---------- accesibilidad: menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before, .hero__logo, .scarce__dot { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  #sparks { display: none; }
}
