/* ============================================================
   UNDERTONE — sistema visual
   Paleta extraída del póster oficial (oliva + lima + oro atardecer)
   Tipos: Syncopate (display geométrica) + Jost (cuerpo, futura-like)
   ============================================================ */

:root {
  --night: #14180d;
  --moss-900: #1b2113;
  --moss-800: #242b17;
  --moss-700: #2f3820;
  --olive-600: #46512c;
  --olive-500: #5a6837;
  --olive-400: #7a8a4a;
  --lime: #c9e596;
  --lime-bright: #def5b2;
  --gold: #d9c47a;
  --amber: #b8945a;
  --sand: #ece5cd;
  --sand-dim: rgba(236, 229, 205, 0.62);
  --sand-faint: rgba(236, 229, 205, 0.38);
  --line: rgba(201, 229, 150, 0.18);
  --card: rgba(20, 24, 13, 0.55);
  --card-solid: #1d2314;
  --display: "Syncopate", sans-serif;
  --body: "Jost", sans-serif;
  --track: 0.32em;
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-weight: 300;
  background: var(--night);
  color: var(--sand);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--lime); color: var(--night); }

/* ---------- Fondo animado ---------- */
#ut-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  display: block;
}

body.subpage #ut-bg { filter: brightness(0.75); }

.veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 24, 13, 0.35) 0%, rgba(20, 24, 13, 0) 30%, rgba(20, 24, 13, 0.1) 70%, rgba(20, 24, 13, 0.65) 100%);
}

body.subpage .veil {
  background: linear-gradient(180deg, rgba(20, 24, 13, 0.55) 0%, rgba(20, 24, 13, 0.35) 40%, rgba(20, 24, 13, 0.8) 100%);
}

.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  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='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: no-preference) {
  .grain { animation: grain-shift 0.9s steps(4) infinite; }
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, -1%); }
}

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--track);
  line-height: 1.2;
}

.label {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5em;
  color: var(--gold);
}

.label.lime { color: var(--lime); }

h1, h2, h3 { font-weight: inherit; }

p { text-wrap: pretty; }

a { color: var(--lime); text-decoration: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(20, 24, 13, 0.72), rgba(20, 24, 13, 0));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--lime);
}

.nav-logo svg { width: 26px; height: auto; display: block; }

.nav-logo .word {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.42em;
  color: var(--lime);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  list-style: none;
}

.nav-links a {
  font-family: var(--body);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand-dim);
  transition: color 0.25s;
}

.nav-links a:hover { color: var(--lime-bright); }

.nav-links a[aria-current="page"] {
  color: var(--lime);
  border-bottom: 1px solid var(--lime);
  padding-bottom: 3px;
}

.nav-right { display: flex; align-items: center; gap: 18px; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 3px;
}

.lang-switch button {
  font-family: var(--body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  background: none;
  border: none;
  border-radius: 100px;
  color: var(--sand-faint);
  padding: 4px 11px;
  cursor: pointer;
  transition: all 0.25s;
}

.lang-switch button.on { background: var(--lime); color: var(--night); }

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.burger span { width: 22px; height: 1.5px; background: var(--lime); display: block; transition: transform 0.3s, opacity 0.3s; }

/* móvil */
@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(20, 24, 13, 0.96);
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: -1;
  }
  .nav-links a { font-size: 17px; }
  body.menu-open .nav-links { opacity: 1; pointer-events: auto; z-index: 49; }
  .burger { display: flex; }
  body.menu-open .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.menu-open .burger span:nth-child(2) { opacity: 0; }
  body.menu-open .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 16px 34px;
  border-radius: 100px;
  border: 1px solid var(--lime);
  cursor: pointer;
  transition: all 0.3s;
  min-height: 48px;
}

.btn-solid {
  background: var(--lime);
  color: var(--night);
}

.btn-solid:hover { background: var(--lime-bright); box-shadow: 0 0 34px rgba(201, 229, 150, 0.35); }

.btn-ghost { background: transparent; color: var(--lime); }

.btn-ghost:hover { background: rgba(201, 229, 150, 0.1); }

/* ---------- Layout ---------- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

.section { padding: clamp(72px, 11vh, 130px) 0; position: relative; }

.section-head { margin-bottom: clamp(36px, 6vh, 64px); }

.section-head h2 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: clamp(22px, 3.4vw, 38px);
  color: var(--sand);
  margin-top: 16px;
}

.rule {
  width: 44px;
  height: 1px;
  background: var(--gold);
  border: none;
  margin: 22px 0;
}

.rule.center { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: calc(var(--nav-h) + 20px) clamp(20px, 4vw, 48px) 48px;
}

.hero-inner { flex: 1; display: flex; flex-direction: column; }

.logo-mark { color: var(--lime); }

/* — Variante A · Cartel — */
.hero-a .hero-inner {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
}

.hero-a .logo-mark { width: clamp(78px, 11vw, 130px); filter: drop-shadow(0 0 38px rgba(201, 229, 150, 0.35)); }

.hero-wordmark {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: clamp(0.28em, 1.4vw, 0.5em);
  font-size: clamp(26px, 5.4vw, 64px);
  color: var(--lime);
  margin-top: clamp(22px, 4vh, 40px);
  margin-right: calc(clamp(0.28em, 1.4vw, 0.5em) * -1);
}

.hero-tagline {
  font-size: clamp(13px, 1.5vw, 16px);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 22px;
  font-weight: 400;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 26px;
  margin-top: clamp(28px, 5vh, 48px);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sand-dim);
}

.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: clamp(28px, 5vh, 46px); }

.hero-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--sand-faint);
  text-transform: uppercase;
  font-weight: 400;
}

/* chip de próximo evento (la marca primero; el evento, un dato) */
.next-strip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: clamp(26px, 4.5vh, 44px);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 12px 26px;
  background: rgba(20, 24, 13, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s;
}

.next-strip:hover { border-color: var(--lime); }

.ns-label {
  font-family: var(--display);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
}

.ns-info {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
  font-weight: 400;
}

/* — Variante B · Editorial — */
.hero-b .hero-inner { justify-content: flex-end; }

.hero-b .big-type {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(52px, 12.5vw, 168px);
  line-height: 0.98;
  color: var(--lime);
  margin-bottom: 4vh;
}

.hero-b .big-type .ghost {
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 229, 150, 0.55);
}

.hero-b .ed-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.hero-b .ed-meta { display: grid; gap: 6px; font-weight: 400; font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sand-dim); }

.hero-b .ed-meta strong { color: var(--sand); font-weight: 500; }

/* — Variante C · Horizonte — */
.hero-c .hero-inner { align-items: center; justify-content: space-between; text-align: center; }

.hero-c .logo-mark { width: 54px; margin-top: 4vh; }

.hero-c .countdown { display: flex; gap: clamp(18px, 5vw, 56px); align-items: baseline; justify-content: center; }

.hero-c .cd-cell { display: grid; gap: 10px; }

.hero-c .cd-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 8.5vw, 104px);
  color: var(--lime);
  letter-spacing: 0.04em;
  line-height: 1;
  text-shadow: 0 0 44px rgba(201, 229, 150, 0.3);
}

.hero-c .cd-lab { font-size: 11px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--gold); font-weight: 400; }

.hero-c .hor-bottom { display: grid; gap: 22px; justify-items: center; }

/* variantes: visibilidad */
body[data-hero="A"] .hero-b, body[data-hero="A"] .hero-c { display: none; }
body[data-hero="B"] .hero-a, body[data-hero="B"] .hero-c { display: none; }
body[data-hero="C"] .hero-a, body[data-hero="C"] .hero-b { display: none; }

/* ---------- Cabecera de página interior ---------- */
.page-head { padding: calc(var(--nav-h) + clamp(48px, 9vh, 96px)) 0 clamp(32px, 5vh, 56px); }

.page-head h1 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: clamp(24px, 4.4vw, 52px);
  color: var(--sand);
  margin-top: 16px;
}

.page-head .lede { max-width: 58ch; margin-top: 22px; color: var(--sand-dim); font-size: 18px; }

/* ---------- Tarjetas / bloques ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(26px, 4vw, 44px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- Releases ---------- */
.releases { display: grid; gap: 0; border-top: 1px solid var(--line); }

.release-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}

.release-row .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  color: var(--olive-400);
  width: 44px;
}

.release-row .name { font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; font-size: 14px; }

.release-row .price { font-family: var(--display); font-weight: 400; font-size: 17px; color: var(--sand); white-space: nowrap; }

.release-row.active .num { color: var(--lime); }

.release-row.soldout { opacity: 0.45; }

.release-row.soldout .price { text-decoration: line-through; }

.tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--sand-dim);
  white-space: nowrap;
}

.tag.on { border-color: var(--lime); color: var(--lime); }

.tag.off { border-color: rgba(217, 196, 122, 0.4); color: var(--gold); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(44px, 7vh, 72px) 0 36px;
  background: rgba(20, 24, 13, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 36px; align-items: flex-start; }

.footer .word { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.4em; color: var(--lime); text-transform: uppercase; }

.footer-links { display: grid; gap: 10px; }

.footer-links a { color: var(--sand-dim); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 400; transition: color 0.25s; }

.footer-links a:hover { color: var(--lime); }

.footer-base {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sand-faint);
  font-weight: 400;
}

/* ---------- Formularios ---------- */
.field { display: grid; gap: 8px; }

.field label { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); font-weight: 400; }

.field input, .field textarea, .field select {
  font-family: var(--body);
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--sand);
  background: rgba(20, 24, 13, 0.5);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.25s;
  width: 100%;
}

.field input:focus, .field textarea:focus { border-color: var(--lime); }

.newsletter-row { display: flex; gap: 12px; flex-wrap: wrap; }

.newsletter-row input { flex: 1; min-width: 220px; }

/* ---------- Reveal ---------- */
/* Visible por defecto; solo se oculta cuando JS confirma que puede revelar (html.reveal-armed) */
.reveal { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  html.reveal-armed .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
  html.reveal-armed .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Misc ---------- */
.coords { font-size: 12px; letter-spacing: 0.3em; color: var(--sand-faint); text-transform: uppercase; font-weight: 400; }

.scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, var(--lime), transparent);
  opacity: 0.6;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-hint { animation: hint 2.4s ease-in-out infinite; }
}

@keyframes hint {
  0%, 100% { transform: translateX(-50%) scaleY(0.4); transform-origin: top; opacity: 0.25; }
  50% { transform: translateX(-50%) scaleY(1); opacity: 0.7; }
}

image-slot { background: rgba(201, 229, 150, 0.05); border: 1px dashed rgba(201, 229, 150, 0.25); border-radius: 14px; }
