:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.56);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --accent: #ff4d00;
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(255, 255, 255, 0.07);
  --radius: 16px;
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 24px 0;
  isolation: isolate;
  background-color: #05080c;
  --h1-fs: clamp(2.6rem, 7vw, 5.2rem);
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -3; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, rgba(0,0,0,0.40) 0%, rgba(0,0,0,0.12) 26%, rgba(0,0,0,0.0) 48%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 28%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.80) 78%, rgba(0,0,0,0.95) 92%, #000 100%);
}
.hero-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-bottom: 8vh; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg); font-weight: 600; padding: 7px 14px;
  border: 1px solid var(--line-strong); border-radius: 100px;
  backdrop-filter: blur(8px); margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

.hero h1 {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: var(--h1-fs); line-height: 0.98; letter-spacing: -0.02em;
  max-width: 18ch;
}
/* Icono como marca ENCIMA del título (no inline): así el título arranca siempre
   en el borde izquierdo, envuelva o no, y el subtítulo alinea con él sea corto o largo. */
.hero h1 .h1-icon {
  display: block;
  height: clamp(40px, 5vw, 58px); width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 0.22em;
}

.hero p.sub {
  margin-top: 20px;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,0.82); max-width: 48ch; line-height: 1.5;
}

.hero .scroll-cue {
  margin-top: 34px; display: inline-flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: 13px; letter-spacing: 0.04em; text-decoration: none;
  transition: color 0.2s ease;
}
.hero .scroll-cue:hover { color: var(--fg); }
.hero .scroll-cue svg { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ---------- EVENTS ---------- */
.events { max-width: var(--maxw); margin: 0 auto; padding: 64px 24px 96px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.01em; }
.section-head .count { color: var(--muted); font-size: 14px; }

.event-list { display: flex; flex-direction: column; gap: 10px; }

.event-row {
  display: grid; grid-template-columns: 96px 108px 1fr auto; align-items: center; gap: 20px;
  padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  text-decoration: none; color: inherit;
}
a.event-row { cursor: pointer; }
a.event-row:hover { background: var(--card-hover); border-color: var(--line-strong); transform: translateY(-2px); }
a.event-row:hover .btn-buy { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(255,77,0,0.45); }
a.event-row:hover .btn-buy svg { transform: translateX(3px); }
a.event-row:hover .event-thumb img { transform: scale(1.06); }

.day-header {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.05rem;
  letter-spacing: 0.01em; color: var(--fg); margin: 20px 4px 4px; text-transform: capitalize;
}
.event-list > .day-header:first-child { margin-top: 0; }

.event-thumb {
  width: 96px; height: 62px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, #14181f 0%, #05080c 100%); flex-shrink: 0;
}
.event-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s cubic-bezier(0.22,1,0.36,1); }
.event-thumb.is-empty { display: flex; align-items: center; justify-content: center; font-size: 18px; color: rgba(255,255,255,0.25); }

.venue-logo { display: flex; align-items: center; height: 34px; }
.venue-logo .wordmark {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--fg); white-space: nowrap;
}
.venue-logo .wordmark.is-output {
  font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 26px;
  line-height: 1; letter-spacing: 0.01em; text-transform: lowercase;
}

.event-info { min-width: 0; }
.event-name {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.15; letter-spacing: -0.01em;
}
.event-meta { margin-top: 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.badge-oferta {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: var(--accent);
  padding: 3px 9px; border-radius: 100px;
}

.btn-buy {
  display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 14px; padding: 11px 20px; border-radius: 100px;
  text-decoration: none; white-space: nowrap; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-buy svg { transition: transform 0.2s ease; }
.btn-soon { background: transparent; color: var(--muted); border: 1px solid var(--line-strong); cursor: default; }
.btn-soon:hover { transform: none; box-shadow: none; }

/* ---------- FOOTER ---------- */
footer {
  max-width: var(--maxw); margin: 0 auto; padding: 32px 24px 56px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--fg); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 680px) {
  .event-row {
    grid-template-columns: 72px 1fr;
    grid-template-areas: "thumb info" "venue venue" "buy buy";
    gap: 10px 14px;
  }
  .event-thumb { grid-area: thumb; width: 72px; height: 72px; }
  .event-info { grid-area: info; }
  .venue-logo { grid-area: venue; height: 26px; }
  .venue-logo .wordmark.is-output { font-size: 22px; }
  .btn-buy { grid-area: buy; justify-content: center; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
}
