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

:root {
  --red: #f03842;
  --green: #0d9647;
  --yellow: #fcd600;
  --blue: #2b70b8;
  --ink: #1e1e1e;
  --slate: #38474f;
  --slate-2: #556e7a;
  --grey-3: #bcc5ca;
  --grey-2: #e2e8ea;
  --grey-1: #f6f7f8;
  --white: #fff;
  --gold: linear-gradient(135deg, #f7e08b 0%, #cfa22e 35%, #f4c81c 70%, #f9e48f 100%);
  --pad: clamp(16px, 5vw, 64px);
  --max: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Overpass", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.4;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
strong { font-weight: 800; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border: 0; border-radius: 999px; cursor: pointer;
  padding: .85em 2.2em; font-weight: 800; font-size: 1rem; letter-spacing: .02em;
  transition: transform .35s var(--spring), box-shadow .3s var(--ease), background .2s;
}
.btn:active { transform: scale(.96); }
.btn--accent { background: var(--red); color: var(--white); box-shadow: 0 10px 24px -10px rgba(240, 56, 66, .7); }
.btn--accent:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -12px rgba(240, 56, 66, .85); }
.btn--big { font-size: clamp(1.4rem, 2.6vw, 2rem); padding: .4em 2.6em; text-transform: uppercase; font-weight: 900; }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { transform: translateY(-3px); }
.btn--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--white); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--pad);
  background: var(--ink);
  color: var(--white);
  transition: background .3s, padding .3s var(--ease);
}
.nav.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0,0,0,.6); }
.nav__logo img { height: clamp(34px, 4vw, 44px); width: auto; }
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 34px); margin-left: auto; font-size: .95rem; }
.nav__links a { position: relative; padding: 4px 0; opacity: .85; transition: opacity .2s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta {
  padding: .5em 1.4em; border-radius: 999px; font-weight: 800; font-size: .9rem; text-transform: uppercase;
  box-shadow: inset 0 0 0 1.5px var(--white); transition: background .25s, color .25s;
}
.nav__cta:hover { background: var(--white); color: var(--ink); }
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
}

/* ---------- Top ---------- */
.top {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(72px + clamp(28px, 5vh, 60px)) var(--pad) calc(clamp(36px, 5vw, 80px) + clamp(32px, 4.5vh, 56px));
  background: var(--grey-1);
  text-align: center;
}
.top__title {
  font-size: clamp(1.9rem, 4.4vw, 3.8rem); line-height: 1.08; font-weight: 400;
  color: var(--ink); margin-bottom: clamp(24px, 4vh, 44px);
}
.top__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.top__title .line > span { display: inline-block; transform: translateY(110%); animation: rise 1s var(--ease) forwards; animation-delay: .2s; }
.top__title .line--bold { font-weight: 900; }
.top__title .line--bold > span { animation-delay: .35s; }
@keyframes rise { to { transform: translateY(0); } }
@media (max-width: 700px) { .top { padding-top: calc(62px + 32px); } }

/* ---------- Countdown ---------- */
.countdown {
  width: min(100%, 780px, 110vh);
  background: var(--ink); color: var(--white);
  border-radius: clamp(10px, 1.4vw, 18px);
  padding: clamp(16px, 2.6vw, 30px) clamp(16px, 3.4vw, 44px) clamp(14px, 2vw, 22px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
}
.countdown__date {
  display: flex; justify-content: center; gap: clamp(14px, 3vw, 40px);
  font-weight: 900; font-size: clamp(1.6rem, min(4.6vw, 5.4vh), 3.4rem); letter-spacing: .32em;
  padding-bottom: clamp(10px, 1.6vw, 16px); margin-bottom: clamp(10px, 1.6vw, 16px);
  border-bottom: 1px solid rgba(255,255,255,.35);
}
.countdown__date span { margin-right: -.32em; }
.countdown__date i { font-style: normal; font-weight: 400; opacity: .9; }
.countdown__clock { display: flex; justify-content: space-between; align-items: flex-start; }
.unit { display: flex; flex-direction: column; align-items: center; flex: 1; }
.unit b {
  display: block; font-weight: 900; font-size: clamp(2.2rem, min(7.4vw, 8.6vh), 5.6rem); line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.unit b.tick { animation: tick .45s var(--spring); }
@keyframes tick { 0% { transform: translateY(-14%); opacity: .3; } 100% { transform: none; opacity: 1; } }
.unit small { margin-top: 6px; font-size: clamp(.62rem, 1.3vw, .95rem); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.colon { font-weight: 900; font-size: clamp(1.8rem, min(6vw, 7vh), 4.4rem); line-height: 1; opacity: .9; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }
.venue {
  margin-top: 14px; text-align: center; font-weight: 800; text-transform: uppercase;
  font-size: clamp(.78rem, 1.3vw, 1rem); letter-spacing: .04em;
}
.free {
  margin: 14px auto 0; width: fit-content; padding: .5em 1.15em; border-radius: 999px;
  background: var(--green); color: var(--white); font-weight: 900; text-transform: uppercase;
  font-size: clamp(.9rem, 1.5vw, 1.15rem); letter-spacing: .06em; line-height: 1;
}

/* ---------- Section titles ---------- */
.section-title {
  text-align: center; font-weight: 400; line-height: 1.15;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  padding-inline: var(--pad);
}
.section-title strong { font-weight: 800; }

/* ---------- Line-up ---------- */
.lineup {
  background: var(--grey-2);
  padding: clamp(30px, 5vw, 60px) 0 clamp(50px, 7vw, 90px);
  margin-top: -2px;
}
.carousel { position: relative; max-width: var(--max); margin: clamp(24px, 3vw, 40px) auto 0; padding-inline: clamp(16px, 5vw, 70px); }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * clamp(12px, 1.8vw, 24px)) / 4);
  gap: clamp(12px, 1.8vw, 24px);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 10px 2px 24px; cursor: grab;
  overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.card {
  margin: 0; scroll-snap-align: start; border-radius: 6px; overflow: hidden; background: var(--ink);
  box-shadow: 0 20px 40px -24px rgba(0,0,0,.6);
  transition: transform .5s var(--spring), box-shadow .4s var(--ease);
}
.card img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; pointer-events: none; user-select: none; }
.card:hover { transform: translateY(-10px) rotate(-1.2deg); box-shadow: 0 30px 50px -24px rgba(0,0,0,.7); }
.card:nth-child(even):hover { transform: translateY(-10px) rotate(1.2deg); }
.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-60%);
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; transition: background .2s, opacity .2s, transform .3s var(--spring);
}
.carousel__arrow svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 2; }
.carousel__arrow:hover { background: rgba(0,0,0,.06); }
.carousel__arrow--prev { left: 6px; }
.carousel__arrow--next { right: 6px; }
.carousel__arrow[disabled] { opacity: .2; cursor: default; }
.carousel:not(.has-overflow) .carousel__arrow { visibility: hidden; }
@media (max-width: 900px) {
  .carousel__track { grid-auto-columns: 44%; }
}
@media (max-width: 560px) {
  .carousel { padding-inline: 0; }
  .carousel__track { grid-auto-columns: 70%; padding-inline: 16px; scroll-padding-inline: 16px; }
  .carousel__arrow { display: none; }
}

/* ---------- Brands ---------- */
.brands { background: var(--ink); padding: clamp(26px, 3.4vw, 44px) 0; overflow: hidden; }
.brands__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.brands:hover .brands__track { animation-play-state: paused; }
.brands__set { display: flex; align-items: center; }
.brands__set img {
  height: clamp(28px, 3.4vw, 48px); width: auto; margin-inline: clamp(28px, 4vw, 56px);
  opacity: .92;
}
.brands__set img[alt="Samsung"], .brands__set img[alt="CorreosChile"] { height: clamp(16px, 1.9vw, 26px); }
.brands__set img[alt="Supremo"] { height: clamp(24px, 2.8vw, 40px); }
.brands__set img + img { position: relative; }
.brands__set img:not(:last-child) { border-right: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Entelin ---------- */
.feature {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(40px, 6vw, 90px) var(--pad);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: center;
  border-bottom: 1px solid var(--grey-3);
}
.feature__media { margin: 0; border-radius: 6px; overflow: hidden; background: var(--grey-1); }
.feature__media img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.feature__text h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 800; line-height: 1.08; }
.feature__text h2 strong { display: inline-block; color: var(--blue); font-weight: 900; }
.feature__text p { margin-top: 18px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 34ch; }
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; }
}

/* ---------- Tickets ---------- */
.tickets { position: relative; scroll-margin-top: 0; }
.tickets__panel { position: relative; background: var(--slate); color: var(--white); margin-top: -1px; }
.tickets__wave { position: absolute; left: 0; bottom: calc(100% - 1px); width: 100%; height: clamp(36px, 5vw, 80px); }
.tickets__wave path { fill: var(--slate); }
.tickets__inner {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) var(--pad) clamp(50px, 7vw, 90px);
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 6vw, 90px);
}
.tickets__intro h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 800; line-height: 1.05; }
.tickets__intro p { margin-top: 18px; font-size: clamp(1rem, 1.4vw, 1.2rem); max-width: 36ch; }
@media (max-width: 860px) { .tickets__inner { grid-template-columns: 1fr; } }

.drops__title { margin-top: clamp(28px, 4vw, 44px); font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 800; }
.drops { list-style: none; margin: 12px 0 0; padding: 0; max-width: 460px; }
.drops li {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 16px;
  padding: 14px 0; border-bottom: 1.5px solid rgba(255,255,255,.25);
}
.drops time { font-weight: 700; }
.drops span { grid-column: 1; grid-row: 2; opacity: .8; }
.drops strong { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 900; color: var(--yellow); }

.form { display: flex; flex-wrap: wrap; gap: 6px 24px; align-content: start; }
.field { position: relative; flex: 1 1 100%; border: 0; margin: 0; padding: 0; min-width: 0; }
.field--half { flex: 1 1 calc(50% - 12px); }
.field label, .field legend {
  display: block; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 14px 0 4px;
}
.field input, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1.5px solid rgba(255,255,255,.55);
  padding: 6px 0 10px; color: var(--white); font-size: 1.1rem; outline: none; border-radius: 0;
  transition: border-color .25s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; background-size: 20px;
}
.field select option { color: var(--ink); }
.field::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--yellow);
  bottom: 0; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.field:not(.field--qty):focus-within::after { transform: scaleX(1); }
.field__err { display: block; min-height: 1.1em; font-size: .82rem; color: #ffb3b7; font-weight: 600; padding-top: 4px; }
.field:has(.field__err:not(:empty))::after { transform: scaleX(1); background: var(--red); }
.field__err:empty { min-height: 0; padding: 0; }
.field input::-webkit-outer-spin-button, .field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field input[type=number] { -moz-appearance: textfield; }

.qty { display: flex; gap: 10px; padding-top: 6px; }
.qty label { flex: 1; padding: 0; cursor: pointer; }
.qty input { position: absolute; opacity: 0; pointer-events: none; }
.qty span {
  display: grid; place-items: center; height: 52px; border-radius: 12px;
  font-weight: 900; font-size: 1.4rem;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45);
  transition: background .25s, color .25s, transform .35s var(--spring), box-shadow .25s;
}
.qty label:hover span { box-shadow: inset 0 0 0 1.5px var(--white); }
.qty input:checked + span { background: var(--white); color: var(--slate); transform: scale(1.06); box-shadow: none; }
.qty--text span { font-size: 1.15rem; }
.qty input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }

.consent { display: flex; gap: 12px; align-items: flex-start; flex: 1 1 100%; margin-top: 18px; cursor: pointer; font-size: .95rem; }
.consent input {
  flex: none; width: 22px; height: 22px; margin: 0; border-radius: 6px; cursor: pointer;
  -webkit-appearance: none; appearance: none; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7);
  display: grid; place-items: center; transition: background .2s;
}
.consent input:checked { background: var(--white); }
.consent input:checked::after {
  content: ""; width: 10px; height: 6px; border-left: 2.5px solid var(--slate); border-bottom: 2.5px solid var(--slate);
  transform: translateY(-1px) rotate(-45deg);
}
.consent input:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

.form__submit { margin: 22px auto 0; min-width: 240px; font-size: 1.1rem; position: relative; }
.btn__spin {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.4); border-top-color: var(--white); animation: spin .7s linear infinite;
}
.form.is-sending .btn__spin { display: inline-block; }
.form.is-sending .form__submit { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Cómo llegar ---------- */
.arrive { display: grid; grid-template-columns: 1fr 1fr; background: var(--red); color: var(--white); scroll-margin-top: 60px; }
.arrive__map { position: relative; display: block; overflow: hidden; background: var(--grey-2); }
.arrive__map img { width: 100%; height: 100%; object-fit: contain; transition: transform 1s var(--ease); }
.arrive__map:hover img { transform: scale(1.03); }
.pin {
  position: absolute; left: 64.1%; top: 48.4%; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(240,56,66,.35); transform: translate(-50%, -50%);
  box-shadow: 0 0 0 0 rgba(240,56,66,.6); animation: pulse 2s ease-out infinite;
}
@keyframes pulse { to { box-shadow: 0 0 0 28px rgba(240,56,66,0); } }
.arrive__text {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 20px; padding: clamp(36px, 6vw, 80px) var(--pad);
}
.arrive__text h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; }
.arrive__text p { font-size: clamp(1rem, 1.5vw, 1.2rem); max-width: 40ch; }
.arrive__text p + p { margin-top: -8px; }
.arrive__addr { font-weight: 800; }
@media (max-width: 760px) { .arrive { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--white); text-align: center; padding-top: clamp(40px, 5vw, 64px); }
.footer__logo { width: clamp(220px, 28vw, 340px); height: auto; margin: 0 auto; }
.footer__links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px clamp(18px, 3vw, 40px);
  max-width: var(--max); margin: clamp(26px, 3vw, 40px) auto 0;
  padding: 22px var(--pad) clamp(26px, 3vw, 36px);
  border-top: 1px solid rgba(255,255,255,.3); font-size: .95rem;
  width: calc(100% - 2 * var(--pad));
}
.footer__links a { opacity: .85; transition: opacity .2s; }
.footer__links a:hover { opacity: 1; }
.footer__legal { background: #2c3a41; padding: 0 var(--pad); }
.footer__legal img { margin: 0 auto; width: 100%; max-width: 1000px; height: auto; }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background: rgba(10, 14, 18, .66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fade .25s ease;
}
.modal[hidden] { display: none; }
.modal__box {
  width: min(100%, 440px); background: var(--slate); color: var(--white); text-align: center;
  border-radius: 20px; padding: 34px 28px 28px;
  animation: popIn .5s var(--spring);
}
.modal__box h3 { font-size: 1.6rem; font-weight: 900; line-height: 1.15; }
.modal__box p { margin-top: 10px; opacity: .92; }
.modal__icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; }
.modal__icon svg { width: 32px; height: 32px; fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.modal__icon.ok { background: var(--green); }
.modal__icon.warn { background: #c99a12; }
.modal__icon.err { background: var(--red); }
.modal__actions { display: flex; gap: 10px; margin-top: 24px; }
.modal__actions .btn { flex: 1; padding-inline: 1em; }
@keyframes fade { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(20px) scale(.92); } }

/* ---------- Confetti ---------- */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 120; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .top__title .line > span { transform: none; }
  .brands__track { animation: none; }
}
