:root {
  --bg: #050805;
  --bg-2: #0b120b;
  --card: #0f180f;
  --line: rgba(160, 255, 150, 0.14);
  --neon: #3dff3a;
  --neon-soft: rgba(61, 255, 58, 0.18);
  --text: #eaf6e7;
  --muted: #93a690;
  --silver: #c9d2cc;
  --navy: #22307a;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --osd: "VT323", ui-monospace, monospace;
  --r: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* Grano de cámara en toda la página */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: 0.07;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 700 14px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:active { transform: scale(0.97); }
.btn-neon { background: var(--neon); color: #041004; box-shadow: 0 0 0 0 var(--neon-soft); }
.btn-neon:hover { box-shadow: 0 0 28px 4px var(--neon-soft); }
.btn-ghost { border-color: rgba(234, 246, 231, 0.45); color: var(--text); background: rgba(5, 8, 5, 0.35); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--neon); color: var(--neon); }
.btn-dark { background: #041004; color: var(--neon); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 12px; }

/* Navegación */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: flex-end; gap: 16px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; min-height: calc(58px + env(safe-area-inset-top));
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(5, 8, 5, 0.85); backdrop-filter: blur(12px); border-color: var(--line); }
.nav-logo img { height: 40px; width: auto; }
.nav-links { position: absolute; left: 50%; top: calc(50% + env(safe-area-inset-top) / 2); transform: translate(-50%, -50%); display: flex; }
.nav-links a {
  text-decoration: none; color: var(--neon); white-space: nowrap;
  font: 400 19px/1 var(--osd); letter-spacing: 0.12em; text-transform: uppercase;
  text-shadow: 0 0 10px rgba(61, 255, 58, 0.45);
}
.nav-links a::before { content: "◆ "; font-size: 0.8em; opacity: 0.8; }
.nav-links a:hover { color: #fff; }
@media (max-width: 819px) {
  .nav-links a { width: 124px; white-space: normal; text-align: center; font-size: 15px; line-height: 1; letter-spacing: 0.06em; }
  .nav-links a::before { content: ""; }
  .nav-links a span { display: block; }
}
@media (min-width: 820px) { .nav { padding-inline: 32px; } .nav-links a { font-size: 22px; } }

/* Portada */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  overflow: hidden; isolation: isolate; text-align: center;
  padding: 96px 16px 72px;
}
.hero-bg {
  position: absolute; inset: -4%; z-index: -3;
  background-size: cover; background-position: center;
  filter: saturate(1.15) contrast(1.05);
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: scale(1.06) translate(-1%, -1%); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(5, 8, 5, 0.25), rgba(5, 8, 5, 0.55) 75%),
    linear-gradient(180deg, rgba(5, 8, 5, 0.35), rgba(5, 8, 5, 0) 35%, rgba(5, 8, 5, 0) 75%, var(--bg));
}
.hero::before { /* líneas de vídeo */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
.osd {
  position: absolute; inset: calc(15px + env(safe-area-inset-top)) 16px 20px;
  pointer-events: none; font-family: var(--osd); font-size: 22px; color: #f4fff2;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}
.osd > span { position: absolute; }
.osd-rec { top: 0; left: 0; display: flex; align-items: center; gap: 8px; }
.osd-rec i { width: 12px; height: 12px; border-radius: 50%; background: #ff3b30; animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.osd-bat { top: 0; right: 0; }
.osd-bat img { width: 44px; filter: drop-shadow(0 0 4px rgba(61, 255, 58, .6)); }
.osd-mode { bottom: 0; left: 0; }
.osd-date { bottom: 0; right: 0; }
@media (min-width: 820px) { .osd { inset: 17px 32px 32px; font-size: 26px; } }

.hero-inner { display: flex; flex-direction: column; align-items: center; max-width: 760px; }
.hero-logo {
  width: min(42vw, 260px); margin-bottom: 4px;
  animation: flicker 6s infinite;
}
@keyframes flicker { 0%, 92%, 100% { opacity: 1; } 93% { opacity: .55; } 94% { opacity: 1; } 96% { opacity: .7; } }
.hero-kicker {
  margin: 0 0 6px; font-family: var(--osd); font-size: 22px; color: var(--neon);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.hero-title { margin: 0; font: italic 400 clamp(22px, 6.4vw, 48px)/1.1 var(--serif); white-space: nowrap; }
.hero-meta { margin: 10px 0 24px; color: var(--silver); font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; }

.countdown {
  display: flex; align-items: flex-start; gap: 4px;
  font-family: var(--osd); margin-bottom: 22px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r);
  background: rgba(5, 8, 5, 0.55); backdrop-filter: blur(6px);
}
.countdown div { display: flex; flex-direction: column; align-items: center; min-width: 40px; }
.countdown b { font-weight: 400; font-size: clamp(28px, 7vw, 40px); line-height: 1; color: var(--neon); text-shadow: 0 0 14px rgba(61, 255, 58, 0.55); }
.countdown span { font-family: var(--sans); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.countdown em { font-style: normal; font-size: 26px; line-height: 1.15; color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Secciones */
.section { padding: 88px 0; position: relative; }
@media (max-width: 819px) { .section { padding: 60px 0; } }
.greeny-sec { padding-bottom: 24px; }
.greeny-sec .lead { margin-bottom: 0; }
.section-dark { background: var(--bg-2); border-block: 1px solid var(--line); }
.eyebrow { margin: 0 0 8px; font-family: var(--osd); font-size: 20px; color: var(--neon); letter-spacing: 0.14em; text-transform: uppercase; }
.h2 { margin: 0 0 16px; font: 400 clamp(38px, 7vw, 64px)/1.02 var(--serif); }
.h2 i { color: var(--neon); }
.lead { margin: 0 0 32px; max-width: 620px; color: var(--muted); font-size: 17px; }

/* Noches */
.nights { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 820px) { .nights { grid-template-columns: repeat(2, 1fr); } }
.night {
  position: relative; display: grid; grid-template-columns: 84px 1fr; gap: 20px; align-items: center;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card);
}
.night.featured { border-color: var(--neon); box-shadow: 0 0 0 1px var(--neon) inset, 0 0 40px -12px var(--neon-soft); }
.night-date { text-align: center; font-family: var(--osd); line-height: 1; }
.night-date small { display: block; font-size: 18px; color: var(--muted); text-transform: uppercase; }
.night-date b { display: block; font-weight: 400; font-size: 56px; color: var(--neon); }
.night-date span { display: block; font-size: 20px; text-transform: uppercase; }
.night h3 { margin: 0 0 4px; font: italic 400 30px/1.05 var(--serif); }
.night p { margin: 0 0 14px; color: var(--muted); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.night-tag {
  position: absolute; top: -11px; right: 16px; padding: 3px 10px; border-radius: 999px;
  background: var(--neon); color: #041004; font: 700 11px/1.4 var(--sans); letter-spacing: 0.1em; text-transform: uppercase;
}
.night-ctas { display: flex; gap: 8px; flex-wrap: wrap; }

/* Rituales */
.rituals { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 16px; }
@media (min-width: 820px) { .rituals { grid-template-columns: repeat(4, 1fr); } }
.ritual { position: relative; padding: 24px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; }
.ritual-n { font-family: var(--osd); font-size: 28px; color: var(--neon); }
.ritual h3 { margin: 6px 0 8px; font: italic 400 28px/1.1 var(--serif); }
.ritual p { margin: 0; color: var(--muted); font-size: 15px; }
.ritual-star { background: linear-gradient(160deg, rgba(61, 255, 58, 0.16), var(--card) 60%); border-color: rgba(61, 255, 58, 0.5); padding-bottom: 120px; }
.ritual-greeny { position: absolute; right: -6px; bottom: -14px; width: 110px; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-4deg); } }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }

/* Greeny */
.greeny-grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 820px) { .greeny-grid { grid-template-columns: 340px 1fr; gap: 64px; } }
.greeny-stage { position: relative; display: grid; justify-items: center; padding: 24px 0 8px; }
.greeny-big {
  width: min(46vw, 230px); margin-inline: auto; transform-origin: 50% 90%;
  filter: drop-shadow(0 0 2px #3dff3a) drop-shadow(0 0 6px #3dff3a) drop-shadow(0 0 22px rgba(61, 255, 58, 0.55));
  animation: greeny-flota 4.5s ease-in-out infinite, greeny-neon 2.6s ease-in-out infinite;
}
.greeny-sombra { width: 46%; height: 14px; margin-top: 10px; border-radius: 50%; background: radial-gradient(rgba(61, 255, 58, 0.45), transparent 70%); animation: greeny-sombra 4.5s ease-in-out infinite; }
@keyframes greeny-flota { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-16px) rotate(3deg); } }
@keyframes greeny-neon {
  0%, 100% { filter: drop-shadow(0 0 2px #3dff3a) drop-shadow(0 0 6px #3dff3a) drop-shadow(0 0 22px rgba(61, 255, 58, 0.55)); }
  50% { filter: drop-shadow(0 0 3px #8dff7a) drop-shadow(0 0 12px #3dff3a) drop-shadow(0 0 40px rgba(61, 255, 58, 0.8)); }
  53% { filter: drop-shadow(0 0 1px #3dff3a) drop-shadow(0 0 3px #3dff3a); }
  56% { filter: drop-shadow(0 0 3px #8dff7a) drop-shadow(0 0 12px #3dff3a) drop-shadow(0 0 40px rgba(61, 255, 58, 0.8)); }
}
@keyframes greeny-sombra { 0%, 100% { transform: scaleX(1); opacity: 0.9; } 50% { transform: scaleX(0.75); opacity: 0.5; } }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 32px; }
@media (min-width: 820px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .4s, filter .4s; filter: saturate(1.05); }
.gallery button:hover img { transform: scale(1.05); filter: saturate(1.25); }

/* Club en la portada */
.club-teaser { display: grid; gap: 24px; align-items: center; }
.club-teaser { text-align: center; justify-items: center; } .club-teaser .lead { margin-inline: auto; } .teaser-datos { justify-content: center; }
.teaser-datos { display: flex; gap: 28px; margin: -8px 0 28px; }
.teaser-datos b { display: block; font: 400 44px/1 var(--osd); color: var(--neon); }
.teaser-datos span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.teaser-greeny { width: min(50vw, 260px); margin-inline: auto; filter: drop-shadow(0 0 30px rgba(61, 255, 58, 0.35)); animation: bob 4s ease-in-out infinite; }

/* Comunidad */
.section-neon { background: var(--neon); color: #041004; padding: 64px 0; }
.community { display: grid; gap: 24px; align-items: center; }
@media (min-width: 820px) { .community { grid-template-columns: 1fr auto; } }
.eyebrow-dark { color: #0a3a09; }
.h2-dark i { color: #041004; }
.lead-dark { color: #0d3d0b; margin-bottom: 0; }

/* Info */
.info-grid { display: grid; gap: 12px; margin-top: 32px; }
@media (min-width: 620px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .info-grid { grid-template-columns: repeat(4, 1fr); } }
.info { padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.info-k { font-family: var(--osd); font-size: 18px; color: var(--neon); text-transform: uppercase; letter-spacing: 0.1em; }
.info b { display: block; font: italic 400 32px/1.1 var(--serif); margin: 4px 0 6px; }
.info p { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.info a { color: var(--neon); text-decoration: none; font-weight: 500; font-size: 14px; }

.final { padding-bottom: 120px; }
.final .hero-ctas { margin-top: 12px; }

/* Pie */
.footer { border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer-in { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-logo { height: 56px; width: auto; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--silver); text-decoration: none; }
.footer-links a:hover { color: var(--neon); }
.footer-legal { margin: 0; color: var(--muted); font-size: 13px; }

/* Instalar */
.install {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 12px;
  background: rgba(15, 24, 15, 0.96); border: 1px solid var(--neon); border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); max-width: 520px; margin-inline: auto;
}
.install[hidden] { display: none; }
.install img { width: 44px; height: 44px; border-radius: 10px; }
.install div { flex: 1; display: flex; flex-direction: column; font-size: 13px; color: var(--muted); line-height: 1.3; }
.install b { color: var(--text); font-size: 14px; }
.install-x { background: none; border: 0; color: var(--muted); font-size: 24px; cursor: pointer; padding: 0 4px; }

/* Pasos para instalar */
.sheet { position: fixed; inset: 0; z-index: 220; display: grid; align-items: end; justify-items: center; padding: 16px; background: rgba(0, 0, 0, 0.7); }
.sheet[hidden] { display: none; }
@media (min-width: 620px) { .sheet { align-items: center; } }
.sheet-caja { width: min(460px, 100%); padding: 24px 22px calc(22px + env(safe-area-inset-bottom)); border-radius: 22px; border: 1px solid var(--neon); background: var(--card); text-align: center; }
.sheet-icono { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 10px; }
.sheet-caja h3 { margin: 0 0 12px; font: italic 400 30px/1.1 var(--serif); }
.sheet-caja ol { text-align: left; margin: 0 0 18px; padding-left: 22px; color: var(--silver); font-size: 15px; display: grid; gap: 10px; }
.footer-links { flex-wrap: wrap; justify-content: center; }
.footer-links [hidden] { display: none; }

/* Visor */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, 0.92); display: grid; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; border-radius: 10px; }
.lightbox button { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 16px; background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Volver al inicio (club y fotos) */
.nav-volver { margin-right: auto; color: var(--silver); text-decoration: none; font: 400 20px/1 var(--osd); letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 4px; }
.nav-volver:hover { color: var(--neon); }

/* Vídeo de fondo en la portada */
.hero-video { inset: 0; width: 100%; height: 100%; object-fit: cover; animation: none; filter: saturate(1.15) contrast(1.05) brightness(1.25); }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } .hero { background: url("video/portada.jpg") center / cover; } }

/* Greeny en móvil: debajo del texto y más pequeño */
@media (max-width: 819px) {
  .greeny-grid .greeny-stage { order: 2; padding-top: 4px; }
  .greeny-grid .greeny-big { width: min(30vw, 120px); }
}
