/* Page sections, top to bottom. */

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 32px 48px;
  padding: calc(var(--nav-h) + 20px) var(--gutter) 44px;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.12);
  transition: opacity 1.6s ease, transform 7s linear;
}
.hero__media img.is-on { opacity: 1; transform: scale(1); }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 13, 10, .9) 0%, rgba(11, 13, 10, .45) 55%, rgba(11, 13, 10, .08) 100%),
    linear-gradient(180deg, rgba(11, 13, 10, .55) 0%, transparent 30%, rgba(11, 13, 10, .95) 100%);
}
/* Floodlight beams sweeping from the top corners. */
.hero__beams { position: absolute; inset: 0; z-index: 1; mix-blend-mode: screen; pointer-events: none; }
.hero__beams::before, .hero__beams::after {
  content: ""; position: absolute; top: -20%; width: 46%; height: 150%;
  background: radial-gradient(42% 70% at 50% 0%, rgba(198, 255, 120, .16), rgba(198, 255, 120, .05) 55%, transparent 100%);
  animation: sweep 9s ease-in-out infinite alternate;
}
.hero__beams::before { left: -8%; transform-origin: 50% 0; transform: rotate(-24deg); }
.hero__beams::after { right: -8%; transform-origin: 50% 0; transform: rotate(24deg); animation-delay: -4s; }
@keyframes sweep { to { rotate: 10deg; } }

.hero__meta {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; gap: 16px;
  color: rgba(236, 232, 221, .6);
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.hero__body { align-self: end; grid-column: 1; }
.hero__title {
  font: 900 clamp(56px, min(8.6vw, 14.5vh), 168px)/.84 var(--f-display);
  text-transform: uppercase;
  letter-spacing: -.012em;
  margin-bottom: 28px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; white-space: nowrap; }
.hero__title .line > span { display: inline-block; }
.hero__title .flap { color: var(--lime); margin-top: .06em; }
.hero__title .flap { gap: .025em; }
.hero__title .flap .c { min-width: .44em; padding: 0 .02em; }
.hero__lead { max-width: 44ch; font-size: clamp(17px, 1.35vw, 20px); color: rgba(236, 232, 221, .82); margin-bottom: 30px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 18px; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--mute); font-size: 10px;
}
.hero__scroll span { width: 1px; height: 34px; background: linear-gradient(var(--lime), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Departures board */
.board {
  grid-column: 2; align-self: end;
  background: rgba(13, 16, 11, .82);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px 16px 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.board__head { display: flex; justify-content: space-between; color: var(--lime); padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.board__clock { color: var(--chalk); }
.board__cols, .board__rows li {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  gap: 10px; align-items: center;
}
.board__cols { color: var(--mute); font-size: 10px; padding: 0 0 6px; }
.board__cols span { min-width: 0; }
.board__rows li { padding: 7px 0; border-top: 1px dashed rgba(236, 232, 221, .07); min-height: 36px; }
.board__rows .flap { font: 500 13px/1.6 var(--f-mono); white-space: nowrap; overflow: hidden; }
.board__rows .flap .c { min-width: .78em; }
.board__rows .st-ULTIMOS { color: var(--signal); }
.board__rows .st-ABIERTO { color: var(--lime); }
.board__rows .st-PRONTO { color: var(--mute); }

/* ================= TICKER ================= */
.ticker { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; background: var(--ink); }
.ticker__row { display: flex; width: max-content; white-space: nowrap; will-change: transform; }
.ticker__row span {
  font: 800 clamp(40px, 6vw, 88px)/1.05 var(--f-display); text-transform: uppercase;
  display: inline-flex; align-items: center;
}
.ticker__row span::after { content: "/"; color: var(--lime); margin: 0 .4em; font-weight: 500; }
.ticker__row--alt span { color: transparent; -webkit-text-stroke: 1px rgba(236, 232, 221, .5); font-size: clamp(28px, 3.6vw, 52px); }
.ticker__row--alt span::after { -webkit-text-stroke: 0; color: var(--signal); }

/* ================= COUNTDOWN ================= */
.count {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
  padding-block: clamp(80px, 12vw, 180px);
}
.count__img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; }
.count__img img { width: 100%; height: 118%; object-fit: cover; object-position: 68% 50%; }
.count .muted { margin-bottom: 36px; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 36px; max-width: 560px; }
.countdown div { border: 1px solid var(--line); border-radius: 3px; padding: 14px 10px 12px; text-align: center; background: var(--ink-2); }
.countdown b { display: block; font: 800 clamp(44px, 5.4vw, 80px)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.countdown span { color: var(--mute); font-size: 10px; }

/* ================= EVENTS (horizontal) ================= */
.events { position: relative; background: var(--ink-2); border-top: 1px solid var(--line); }
.events__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 4vh, 40px); padding-block: calc(var(--nav-h) + 10px) 48px; overflow: hidden; }
.events__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.events__head .h2 { margin-bottom: 0; }
.events__progress { display: flex; align-items: center; gap: 8px; color: var(--mute); }
.events__progress span { color: var(--chalk); }
.events__progress i { display: block; width: 120px; height: 1px; background: var(--line); margin-left: 10px; }
.events__progress b { display: block; height: 100%; width: 10%; background: var(--lime); }
.events__track { display: flex; gap: 22px; padding-inline: var(--gutter); width: max-content; will-change: transform; }

.ticket {
  --notch: 12px;
  position: relative;
  width: clamp(250px, min(26vw, 44vh), 380px);
  display: flex; flex-direction: column;
  background: var(--chalk); color: var(--ink);
  border-radius: 6px;
  transition: transform .5s var(--ease);
}
.ticket:hover { transform: translateY(-8px) rotate(-.6deg); }
.ticket__img { margin: 10px 10px 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: var(--ink-3); }
.ticket__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); transition: filter .6s, transform .9s var(--ease); }
.ticket:hover .ticket__img img { filter: none; transform: scale(1.06); }
.ticket__body { padding: 18px 20px 20px; flex: 1; }
.ticket__code { color: #5d6656; font-size: 11px; margin-bottom: 8px; }
.ticket h3 { font: 800 38px/.92 var(--f-display); text-transform: uppercase; margin-bottom: 10px; }
.ticket__body p:last-child { font-size: 15px; color: #3b4136; }
.ticket__stub {
  position: relative;
  height: 58px; display: flex; justify-content: space-between; align-items: center;
  padding: 0 20px; border-top: 2px dashed rgba(11, 13, 10, .25); font-size: 11px; color: #5d6656;
}
/* Perforation notches: discs in the section colour, cheaper than a CSS mask. */
.ticket__stub::before, .ticket__stub::after {
  content: ""; position: absolute; top: calc(var(--notch) * -1 - 1px);
  width: calc(var(--notch) * 2); height: calc(var(--notch) * 2); border-radius: 50%;
  background: var(--ink-2);
}
.ticket__stub::before { left: calc(var(--notch) * -1); }
.ticket__stub::after { right: calc(var(--notch) * -1); }
.ticket__stub button { font: 600 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); padding: 8px 12px; background: var(--lime); border-radius: 2px; transition: background-color .25s; }
.ticket__stub button:hover { background: var(--ink); color: var(--lime); }
.ticket--more { background: var(--lime); justify-content: space-between; }
.ticket--more .ticket__body { display: flex; flex-direction: column; justify-content: end; padding-top: 60px; }
.ticket--more h3 { font-size: 64px; }
.ticket--more .ticket__stub button { background: var(--ink); color: var(--lime); }

/* ================= F1 ================= */
.f1 { position: relative; background: #050604; }
.f1__pin { position: relative; height: 100svh; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(20px, 5vh, 56px); padding-top: var(--nav-h); }
.f1__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: .3; }
.f1__pin::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, transparent 20%, #050604 80%); }
.f1__lights {
  position: relative; z-index: 2;
  display: inline-flex; gap: clamp(8px, 1.4vw, 18px); margin-bottom: 26px;
  padding: 12px clamp(10px, 1.4vw, 18px);
  background: #0d0d0d; border-radius: 10px; box-shadow: 0 0 0 1px #222, 0 20px 40px rgba(0, 0, 0, .6);
}
.f1__lights span {
  width: clamp(26px, min(4.2vw, 6.5vh), 58px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #3a1410, #1a0806 70%);
  box-shadow: inset 0 0 0 2px #000;
  transition: background .12s, box-shadow .12s;
}
.f1__lights span.on {
  background: radial-gradient(circle at 40% 35%, #ff8a70, #ff2a12 45%, #a10d00 80%);
  box-shadow: inset 0 0 0 2px #000, 0 0 30px 6px rgba(255, 42, 18, .55);
}
.f1__txt { position: relative; z-index: 2; text-align: center; padding-inline: var(--gutter); max-width: 1100px; }
.f1__txt .eyebrow { justify-content: center; }
.f1__title { position: relative; font: 900 clamp(52px, min(10vw, 13vh), 170px)/.86 var(--f-display); text-transform: uppercase; margin-bottom: 22px; height: 1.72em; }
.f1__title span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.f1__a { color: transparent; -webkit-text-stroke: 2px var(--chalk); }
.f1__b { color: var(--lime); }
.js-anim .f1__b, html:not(.js-anim) .f1__a { opacity: 0; }
.f1__lead { margin: 0 auto 26px; max-width: 52ch; color: rgba(236, 232, 221, .8); }
.f1__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.f1__chips li { border: 1px solid var(--line); padding: 8px 12px; border-radius: 2px; color: var(--mute); }

/* ================= ROUTE ================= */
.route {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 110px);
  padding-block: clamp(90px, 13vw, 200px);
}
.route__head { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }
.route__map { position: relative; padding-left: 64px; }
.route__line { position: absolute; left: 18px; top: 8px; bottom: 8px; width: 10px; height: calc(100% - 16px); overflow: visible; }
.route__line path { fill: none; stroke: var(--lime); stroke-width: 2; vector-effect: non-scaling-stroke; }
.route__map::before { content: ""; position: absolute; left: 22px; top: 8px; bottom: 8px; border-left: 2px dashed var(--line); }
.route__steps li { position: relative; padding: 0 0 clamp(48px, 7vw, 92px); }
.route__steps li:last-child { padding-bottom: 0; }
.route__steps i {
  position: absolute; left: -64px; top: 0;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--ink); border: 1px solid var(--line); border-radius: 50%;
  font-style: normal; color: var(--mute);
  transition: background-color .4s, color .4s, border-color .4s;
}
.route__steps li.is-on i { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.route__steps h3 { font: 800 clamp(34px, 3.6vw, 54px)/.95 var(--f-display); text-transform: uppercase; margin: 4px 0 10px; }
.route__steps p { color: var(--mute); max-width: 40ch; }

/* ================= SCOREBOARD ================= */
.score { border-block: 1px solid var(--line); background: var(--ink-2); }
.score__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.score__grid > div { padding: clamp(28px, 4vw, 56px) clamp(12px, 2vw, 28px); border-left: 1px solid var(--line); }
.score__grid > div:first-child { border-left: 0; }
.score__grid .flap { font: 800 clamp(52px, 6.4vw, 104px)/1.05 var(--f-display); color: var(--lime); margin-bottom: 14px; display: flex; }
.score__grid .flap .c { min-width: .56em; }
.score__grid > div > span { color: var(--mute); font-size: 11px; display: block; }

/* ================= INCENTIVOS ================= */
.inc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: center; padding-block: clamp(90px, 13vw, 200px); }
.inc__fig { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; clip-path: inset(0 0 0 0); }
.inc__fig img { width: 100%; height: 118%; object-fit: cover; object-position: 60% 50%; }
.inc__quote { font: 400 clamp(20px, 1.8vw, 26px)/1.4 var(--f-body); color: var(--chalk); border-left: 2px solid var(--lime); padding-left: 22px; margin: 6px 0 36px; max-width: 34ch; }
.inc__list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; margin-bottom: 30px; }
.inc__list li { border-top: 1px solid var(--line); padding-top: 14px; }
.inc__list b { display: block; font: 700 24px/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 6px; }
.inc__list span { font-size: 15px; color: var(--mute); }
.inc__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.inc__tags span { padding: 8px 12px; background: var(--ink-3); border-radius: 2px; color: var(--chalk); font-size: 11px; }

/* ================= URUGUAY ================= */
.uy { position: relative; padding-block: clamp(90px, 12vw, 180px); border-top: 1px solid var(--line); }
.uy__head { margin-bottom: 48px; }
.uy__list li {
  position: relative;
  display: grid; grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 20px;
  padding: 18px 0; border-top: 1px solid var(--line);
  cursor: default;
}
.uy__list li:last-child { border-bottom: 1px solid var(--line); }
.uy__list i { font-style: normal; color: var(--mute); }
.uy__list span { font: 800 clamp(40px, 5.6vw, 92px)/.95 var(--f-display); text-transform: uppercase; transition: color .3s, transform .5s var(--ease); }
.uy__list em { font-style: normal; color: var(--mute); text-align: right; transition: color .3s; }
.uy__list li:hover span { color: var(--lime); transform: translateX(16px); }
.uy__list li:hover em { color: var(--chalk); }
.uy__float {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: 300px; aspect-ratio: 5 / 3; overflow: hidden; border-radius: 3px;
  opacity: 0; scale: .7; transition: opacity .3s, scale .4s var(--ease);
}
.uy__float.is-on { opacity: 1; scale: 1; }
.uy__float img { width: 100%; height: 100%; object-fit: cover; }

/* ================= CTA ================= */
.cta { position: relative; overflow: hidden; padding-block: clamp(90px, 12vw, 170px) 0; isolation: isolate; }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .35; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--ink) 0%, rgba(11, 13, 10, .4) 40%, var(--ink) 100%); }
.cta__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; }
.cta__title { font: 900 clamp(64px, 11vw, 190px)/.84 var(--f-display); text-transform: uppercase; }

.quote {
  background: var(--chalk); color: var(--ink);
  border-radius: 6px; padding: 26px 24px 22px;
  display: grid; gap: 14px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .45);
  rotate: 1.5deg;
}
.quote__code { color: #5d6656; border-bottom: 2px dashed rgba(11, 13, 10, .2); padding-bottom: 12px; }
.quote label { display: grid; gap: 6px; }
.quote label > span { font-size: 10px; color: #5d6656; }
.quote input, .quote select {
  width: 100%; height: 48px; padding: 0 12px;
  background: #fff; color: var(--ink);
  border: 1px solid rgba(11, 13, 10, .15); border-radius: 2px;
  font-size: 16px;
}
.quote input:focus, .quote select:focus { outline: 2px solid var(--ink); outline-offset: 0; }
.quote__row { display: grid; grid-template-columns: .8fr 1.2fr; gap: 12px; }
.quote__err { color: #c2330a; font-size: 14px; min-height: 0; }
.quote__err:empty { display: none; }
.quote .btn--lime { background: var(--ink); color: var(--lime); }
.quote .btn--lime::before { background: var(--lime-deep); }
.quote .btn--lime:hover { color: var(--ink); }
.quote__note { text-align: center; color: #5d6656; font-size: 10px; }

.offices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(70px, 9vw, 130px); border-top: 1px solid var(--line); }
.offices div { padding: 24px 0 30px; border-left: 1px solid var(--line); padding-left: 20px; }
.offices div:first-child { border-left: 0; padding-left: 0; }
.offices b { display: block; font: 700 26px/1 var(--f-display); text-transform: uppercase; margin-bottom: 6px; }
.offices span { color: var(--mute); font-size: 11px; }

/* ================= FOOTER ================= */
.foot { position: relative; overflow: hidden; border-top: 1px solid var(--line); padding-top: 60px; }
.foot__grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.2fr; gap: 32px; }
.foot__grid p.mono { color: var(--lime); margin-bottom: 12px; }
.foot__grid a, .foot__grid span { display: block; color: rgba(236, 232, 221, .75); margin-bottom: 6px; font-size: 15px; }
.foot__grid a:hover { color: var(--lime); }
.foot__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--mute); margin-top: 56px; padding-block: 18px; border-top: 1px solid var(--line); font-size: 10px; }
.foot__mega {
  font: 900 34vw/.74 var(--f-display); text-align: center; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(163, 230, 53, .25);
  margin-bottom: -6vw; user-select: none;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto; }
  .hero__body, .board { grid-column: 1; }
  .board { max-width: 620px; }
  .hero__scroll { display: none; }
  .count, .inc, .route, .cta__inner { grid-template-columns: 1fr; }
  .route__head { position: static; }
  .count__img { aspect-ratio: 16 / 10; }
  .inc__fig { aspect-ratio: 16 / 11; }
  .score__grid { grid-template-columns: 1fr 1fr; }
  .score__grid > div:nth-child(3) { border-left: 0; }
  .score__grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero { padding-top: calc(var(--nav-h) + 12px); gap: 24px; }
  .hero__title { font-size: 15.4vw; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .board { padding: 12px 12px 6px; }
  .board__cols, .board__rows li { grid-template-columns: repeat(3, auto); gap: 6px; }
  .board__cols span:nth-child(2), .board__rows li .col-1 { display: none; }
  .board__rows li:nth-child(n+5) { display: none; }
  .board__rows .flap { font-size: 11px; }
  .events__pin { min-height: 0; padding-block: 80px 60px; }
  .events__head { flex-direction: column; align-items: start; }
  .events__progress { display: none; }
  .events__track {
    width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    padding-bottom: 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .events__track::-webkit-scrollbar { display: none; }
  .ticket { width: 80vw; flex-shrink: 0; scroll-snap-align: start; }
  .ticket:hover { transform: none; }
  .ticket__img img { filter: none; }
  .f1__chips li:nth-child(n+4) { display: none; }
  .route__map { padding-left: 56px; }
  .route__steps i { left: -56px; width: 40px; height: 40px; }
  .route__line { left: 15px; }
  .route__map::before { left: 19px; }
  .inc__list { grid-template-columns: 1fr; gap: 16px; }
  .uy__list li { grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; padding: 16px 0; }
  .uy__list em { grid-column: 2; text-align: left; font-size: 14px; }
  .uy__float { display: none; }
  .quote { rotate: 0deg; padding: 22px 18px 18px; }
  .offices { grid-template-columns: 1fr 1fr; }
  .offices div:nth-child(3) { border-left: 0; padding-left: 0; }
  .offices div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .foot__grid { grid-template-columns: 1fr; }
}
