/* ============================================
   EILA 2026 · Ticketing Landing
   Brand-accurate palette (Manual de Marca 2026)
   Navy #02205B · Purple #530782 · Magenta #F760F8
   Typography: Instrument Sans (brand-approved Elementor equivalent of Neue Kabel)
   ============================================ */

:root {
  --navy: #02205b;
  --navy-deep: #001339;
  --purple: #530782;
  --purple-soft: #7a1cb4;
  --magenta: #f760f8;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --line: rgba(255, 255, 255, 0.14);

  --grad-brand: linear-gradient(135deg, #530782 0%, #8a2fbd 45%, #f760f8 100%);
  --grad-brand-soft: linear-gradient(135deg, #7a1cb4 0%, #f760f8 100%);
  --grad-bg: radial-gradient(
    ellipse at top right,
    #102d80 0%,
    #02205b 45%,
    #01143a 100%
  );
  --grad-strip: linear-gradient(90deg, #02205b 0%, #530782 50%, #f760f8 100%);

  --r-md: 18px;
  --r-lg: 28px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--navy-deep);
  color: var(--white);
  font-family:
    'Instrument Sans',
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  font-feature-settings: 'ss01', 'cv01';
}

.eila {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding-top: 64px;
}

/* ---------- Shared ---------- */
.eventrid-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: 0.75rem clamp(1.25rem, 5vw, 4rem);
  background: linear-gradient(90deg, #18214c 0%, #3b487a 50%, #18214c 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.eventrid-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.eventrid-header__brand {
  display: inline-flex;
  align-items: center;
}

.eventrid-header__logo {
  width: clamp(130px, 17vw, 170px);
  height: auto;
  display: block;
}

.eventrid-header__cta {
  color: var(--white);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 0;
  background: transparent;
  padding: 0;
}

.eventrid-header__cta:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--magenta);
  margin: 0 0 1rem;
}

.section-title {
  font-size: clamp(1.7rem, 2.4vw + 0.5rem, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  text-transform: none;
}
.section-title span {
  background: var(--grad-brand-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-title.centered {
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    filter 0.25s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}
.btn--primary {
  background: var(--grad-brand);
  color: var(--white);
  border-color: transparent;
  background-clip: padding-box;
  transform: translateZ(0);
  box-shadow: 0 14px 34px -12px rgba(247, 96, 248, 0.55);
}
.btn--primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
}
.btn--lg {
  padding: 1.15rem 2.4rem;
  font-size: 1.05rem;
}

/* Brand gradient strip (matches brand book footer treatment) */
.brand-strip {
  height: 6px;
  background: var(--grad-strip);
  width: 100%;
  display: block;
}

/* ---------- Stars background ---------- */
.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      1px 1px at 12% 22%,
      rgba(255, 255, 255, 0.8),
      transparent 50%
    ),
    radial-gradient(
      1.2px 1.2px at 28% 68%,
      rgba(255, 255, 255, 0.7),
      transparent 50%
    ),
    radial-gradient(
      1px 1px at 44% 14%,
      rgba(255, 255, 255, 0.6),
      transparent 50%
    ),
    radial-gradient(
      1.3px 1.3px at 62% 52%,
      rgba(255, 255, 255, 0.8),
      transparent 50%
    ),
    radial-gradient(
      1px 1px at 78% 32%,
      rgba(255, 255, 255, 0.55),
      transparent 50%
    ),
    radial-gradient(
      1.4px 1.4px at 88% 78%,
      rgba(255, 255, 255, 0.85),
      transparent 50%
    ),
    radial-gradient(
      1px 1px at 18% 88%,
      rgba(255, 255, 255, 0.5),
      transparent 50%
    ),
    radial-gradient(
      1.2px 1.2px at 58% 84%,
      rgba(255, 255, 255, 0.7),
      transparent 50%
    ),
    radial-gradient(
      1px 1px at 72% 10%,
      rgba(255, 255, 255, 0.45),
      transparent 50%
    ),
    radial-gradient(
      1.1px 1.1px at 34% 44%,
      rgba(255, 255, 255, 0.6),
      transparent 50%
    );
  opacity: 0.9;
  pointer-events: none;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 4rem);
  background: var(--grad-bg);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(
    ellipse at center,
    rgba(247, 96, 248, 0.22) 0%,
    transparent 60%
  );
  z-index: 0;
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
}
.hero__logo {
  display: block;
  width: clamp(240px, 40vw, 460px);
  height: auto;
  margin: 0 0 2rem;
}
.hero__headline {
  font-size: clamp(2.2rem, 4vw + 0.5rem, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  max-width: 18ch;
}
.hero__headline span {
  background: var(--grad-brand-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__tagline {
  font-size: clamp(1.05rem, 1vw + 0.6rem, 1.3rem);
  font-weight: 400;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 1.8rem;
}
.hero__meta {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 500;
}
.hero__meta li {
  position: relative;
  padding-right: 1.4rem;
}
.hero__meta li::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--magenta);
}
.hero__meta li:last-child {
  padding-right: 0;
}
.hero__meta li:last-child::after {
  display: none;
}
.hero__meta strong {
  font-weight: 700;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ---------- TICKETS SHOWCASE ---------- */
.tickets-showcase {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem);
  max-width: 1200px;
  margin: 0 auto;
  background: var(--navy-deep);
}
.tickets-showcase__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.tickets-showcase__lead {
  font-size: clamp(1rem, 0.4vw + 0.9rem, 1.15rem);
  color: var(--muted);
  margin: 0.75rem 0 0;
}
.tickets-showcase__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
.tickets-showcase__note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 2.5rem auto 0;
  max-width: 60ch;
}

.ticket {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    background 0.35s var(--ease);
}
.ticket:hover {
  transform: translateY(-4px);
  border-color: rgba(247, 96, 248, 0.4);
  background: rgba(247, 96, 248, 0.05);
}

/* Featured (Early Bird) variant */
.ticket--featured {
  background: linear-gradient(
    180deg,
    rgba(247, 96, 248, 0.1) 0%,
    rgba(83, 7, 130, 0.15) 100%
  );
  border-color: rgba(247, 96, 248, 0.45);
  box-shadow: 0 20px 50px -20px rgba(247, 96, 248, 0.35);
}
.ticket--featured::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  padding: 1px;
  background: var(--grad-brand);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.ticket__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.4rem 0.9rem;
  background: var(--grad-brand);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 8px 20px -8px rgba(247, 96, 248, 0.6);
  white-space: nowrap;
}

.ticket__tier {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--magenta);
  margin: 0 0 1.25rem;
}

.ticket__price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.ticket__currency {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.ticket__amount {
  font-size: clamp(2rem, 1.5vw + 1rem, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--white);
}

.ticket__window {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  flex: 1;
}

.ticket__cta {
  width: 100%;
}
.ticket__cta--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Shared inclusions block */
.tickets-includes {
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 2rem 2.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.tickets-includes__title {
  text-align: center;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--magenta);
  margin: 0 0 1.5rem;
}
.tickets-includes__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 2rem;
}
.tickets-includes__list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.95rem;
  color: var(--white);
  line-height: 1.4;
}
.tickets-includes__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F760F8' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- AUDIENCE ---------- */
.audience {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem);
  max-width: 1100px;
  margin: 0 auto;
  background: var(--navy-deep);
}
.audience__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.audience__card {
  position: relative;
  padding: 2rem 1.75rem;
  border-radius: var(--r-lg);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid var(--line);
  overflow: hidden;
}
.audience__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-brand);
}
.audience__card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  background: var(--grad-brand-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.audience__card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- TRAILER ---------- */
.trailer {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem);
  max-width: 1100px;
  margin: 0 auto;
  background: var(--navy-deep);
}
.trailer__content {
  text-align: center;
}
.trailer__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 2rem auto 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;
  box-shadow:
    0 30px 70px -30px rgba(247, 96, 248, 0.45),
    0 0 0 1px var(--line);
}
.trailer__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- VENUE ---------- */
.venue {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem);
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.venue__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.venue__content p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 60ch;
  margin: 1rem auto 0;
}
.venue__map {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  margin: 2.5rem auto 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;
  box-shadow:
    0 20px 50px -20px rgba(2, 32, 91, 0.6),
    0 0 0 1px var(--line);
}
.venue__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.9) brightness(0.95);
}

/* ---------- ORG FOOTER ---------- */
.org {
  padding: 2.5rem clamp(1.25rem, 5vw, 4rem);
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  border-top: 1px solid var(--line);
}
.org__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
}
.org__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 500;
}
.org__logo {
  height: 140px;
  width: auto;
  display: block;
  object-fit: contain;
}
.org__logo--mg {
  height: 120px;
}
.org__divider {
  width: 1px;
  height: 160px;
  background: var(--line);
}

body.modal-open {
  overflow: hidden;
}

.ticket-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.ticket-modal[hidden] {
  display: none;
}

.ticket-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 20, 58, 0.82);
  backdrop-filter: blur(2px);
}

.ticket-modal__content {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--navy-deep);
  overflow: hidden;
  box-shadow:
    0 24px 65px -30px rgba(247, 96, 248, 0.5),
    0 0 0 1px rgba(247, 96, 248, 0.2);
}

.ticket-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.ticket-modal__header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.ticket-modal__close {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.ticket-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.ticket-modal__iframe-wrap {
  position: relative;
  width: 100%;
}

.ticket-modal__loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: rgba(1, 20, 58, 0.86);
  color: var(--white);
  font-size: 0.92rem;
  z-index: 2;
}

.ticket-modal__loader[hidden] {
  display: none;
}

.ticket-modal__spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: var(--magenta);
  animation: ticket-spin 0.8s linear infinite;
}

.ticket-modal__iframe {
  display: block;
  width: 100%;
  height: min(760px, calc(100vh - 6.8rem));
  border: 0;
  background: #fff;
}

.ticket-modal__iframe.is-loading {
  opacity: 0;
}

@keyframes ticket-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .tickets-showcase__grid,
  .audience__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ticket--featured {
    order: -1;
  }
}

@media (max-width: 640px) {
  .eila {
    padding-top: 58px;
  }
  .eventrid-header {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }
  .eventrid-header__cta {
    font-size: 0.78rem;
  }
  .hero__logo {
    width: clamp(200px, 60vw, 280px);
  }
  .hero__headline {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }
  .tickets-includes {
    padding: 1.75rem 1.5rem;
  }
  .tickets-includes__list {
    grid-template-columns: 1fr;
  }
  .tickets-showcase__grid,
  .audience__grid {
    grid-template-columns: 1fr;
  }
  .hero__cta .btn {
    width: 100%;
  }
  .hero__meta {
    flex-direction: column;
    gap: 0.4rem;
  }
  .hero__meta li {
    padding-right: 0;
  }
  .hero__meta li::after {
    display: none;
  }
  .org {
    flex-direction: column;
    gap: 1.25rem;
  }
  .org__divider {
    width: 36px;
    height: 1px;
  }
  .ticket-modal {
    padding: 0.6rem;
  }
  .ticket-modal__header h2 {
    font-size: 0.92rem;
  }
  .ticket-modal__iframe {
    height: calc(100vh - 6rem);
  }
}

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