/* Avanzza Ritmo */

/* hero con anillo 3D */
.i-hero { position: relative; height: 100dvh; min-height: 720px; overflow: hidden; background: var(--bg); }
.i-copy { position: relative; z-index: 2; width: min(100%, 1040px); margin-inline: auto; padding: calc(var(--nav-h) + 44px) var(--gutter) 0; text-align: center; }
.i-copy h1 { font-size: clamp(2.6rem, 5.6vw, 5.5rem); line-height: 1.02; }
.i-copy h1 .ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.i-copy h1 .ln > span { display: inline-block; }
.i-sub { max-width: 34em; margin: var(--s-4) auto var(--s-5); font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.38; color: var(--ink-2); text-wrap: balance; }
.js-anim [data-i-copy] { visibility: hidden; }

.ring-wrap { position: absolute; left: 0; right: 0; bottom: 0; height: 58%; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.ring-wrap.is-drag { cursor: grabbing; }
.ring { position: absolute; left: 50%; top: 56%; width: 0; height: 0; perspective: 900px; perspective-origin: 0 340px; transform-style: preserve-3d; }
.ad {
  position: absolute; left: -116px; top: -174px; width: 232px; height: 348px;
  border-radius: 20px; overflow: hidden; background: var(--navy); color: #fff;
  backface-visibility: hidden; will-change: transform;
}
.ad img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ad::after { content: ""; position: absolute; inset: 0 0 42%; background: linear-gradient(to bottom, rgb(8 18 26 / .62), transparent); }
.ad-copy { position: absolute; z-index: 1; left: 14px; right: 14px; top: 13px; }
.ad-copy small { display: block; margin-bottom: 3px; font-size: .6875rem; opacity: .9; }
.ad-copy b { display: block; font-size: 1.125rem; font-weight: 500; line-height: 1.12; letter-spacing: -.02em; }
.ad em { position: absolute; z-index: 1; left: 14px; bottom: 13px; padding: .34em .8em; border-radius: 999px; background: #fff; color: #1D1D1F; font-size: .75rem; font-style: normal; font-weight: 500; }
.ad-shade { position: absolute; inset: 0; z-index: 2; background: var(--bg); opacity: var(--dim, 0); pointer-events: none; }

/* título partido */
.i-film { overflow: clip; padding-block: clamp(5rem, 9vw, 8rem) clamp(3rem, 5vw, 5rem); background: var(--bg); }
.film { display: flex; align-items: center; justify-content: center; gap: clamp(.75rem, 2vw, 2rem); font-size: clamp(1.75rem, 6.2vw, 6.25rem); font-weight: 500; line-height: 1; letter-spacing: -.045em; white-space: nowrap; }
.film-a, .film-b { flex: 1 1 0; }
.film-a { text-align: right; }
.film-play { display: grid; place-items: center; flex: none; width: clamp(3rem, 7vw, 6.5rem); aspect-ratio: 1; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.film-play .ic { width: 42%; height: 42%; }

/* storyboard */
.i-story {
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: center; gap: clamp(1.5rem, 3.4vw, 3.5rem);
  min-height: 100dvh; padding: calc(var(--nav-h) + 36px) max(var(--gutter), calc((100vw - 1320px) / 2)) 32px;
  background: #0B0E10; color: #F3F4F3;
}
.story-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden; background: #000; }
.sf { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.js-anim .sf:not(:first-of-type) { visibility: hidden; }
.story-hud { position: absolute; z-index: 2; left: 16px; top: 16px; display: flex; gap: .4em; padding: .3em .8em; border-radius: 999px; background: rgb(0 0 0 / .5); font-size: .875rem; font-variant-numeric: tabular-nums; }
.story-hud span + span { opacity: .66; }
.story-hud span + span::before { content: "/ "; }
.story-sub {
  position: absolute; z-index: 2; left: 50%; bottom: 11%; translate: -50% 0; width: 86%; text-align: center;
  font-size: clamp(1.125rem, 2.3vw, 2.125rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; color: #fff; text-shadow: 0 2px 22px rgb(0 0 0 / .65);
}
.js-anim .story-sub:not(:nth-of-type(1)) { visibility: hidden; }
.story-offer { left: 72%; bottom: auto; top: 50%; translate: -50% -50%; width: 44%; text-align: left; color: #fff; }
.story-offer em { display: inline-block; margin-top: .6em; padding: .45em .95em; border-radius: 999px; background: #fff; color: #1D1D1F; font-size: .55em; font-style: normal; text-shadow: none; }
.story-bar { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 4px; background: rgb(255 255 255 / .22); }
.story-bar i { display: block; height: 100%; background: #4FD8CB; transform: scaleX(0); transform-origin: 0 50%; }
.story-note { margin-top: var(--s-3); font-size: .8125rem; color: #9AA5AB; }
.story-side h2 { font-size: clamp(1.875rem, 3vw, 3rem); }
.beats { margin-top: var(--s-5); display: grid; gap: .25rem; }
.beat { padding: .6rem 0 .6rem 1.1rem; box-shadow: inset 2px 0 0 rgb(255 255 255 / .16); color: rgb(255 255 255 / .46); transition: color .4s var(--out), box-shadow .4s var(--out); }
.beat b { font-size: 1.25rem; font-weight: 500; letter-spacing: -.015em; }
.beat p { max-height: 0; overflow: hidden; opacity: 0; color: #C4D0D6; font-size: 1rem; line-height: 1.35; transition: max-height .5s var(--spring), opacity .35s var(--out), margin .4s var(--spring); }
.beat.is-on { color: #fff; box-shadow: inset 2px 0 0 #4FD8CB; }
.beat.is-on p { max-height: 5em; margin-top: .2rem; opacity: 1; }

/* cinco frentes */
.i-pan { display: flex; flex-direction: column; justify-content: center; gap: var(--s-5); min-height: 100dvh; padding-block: calc(var(--nav-h) + 34px) 28px; background: var(--bg); overflow: hidden; }
.pan-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5); width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.pan-head h2 { font-size: clamp(2.1rem, 3.8vw, 3.5rem); }
.pan-chips { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, transparent); font-size: .875rem; }
.pan-chips li { padding: .42em .95em; border-radius: 999px; color: var(--ink-2); transition: background-color .3s var(--out), color .3s var(--out); }
.pan-chips li.is-on { background: var(--card); color: var(--ink); }
.pan-track { --pad: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); display: flex; gap: 20px; width: max-content; padding-inline: var(--pad); }
.pan-card { position: relative; flex: none; width: min(1040px, 76vw); height: min(64dvh, 640px); border-radius: var(--r-card); overflow: hidden; color: #fff; background: var(--navy); }
.pan-card > img { position: absolute; inset: 0 auto 0 -6%; width: 112%; max-width: none; height: 100%; object-fit: cover; }
.pan-scrim { position: absolute; inset: 40% 0 0; background: linear-gradient(to top, rgb(8 18 26 / .88) 10%, transparent); }
.pan-text { position: absolute; left: clamp(1.25rem, 2.8vw, 2.25rem); bottom: clamp(1.25rem, 2.8vw, 2.25rem); width: min(32em, 56%); }
.pan-text h3 { font-size: clamp(1.75rem, 3vw, 2.625rem); line-height: 1.08; letter-spacing: -.03em; }
.pan-text p { margin-top: var(--s-2); color: rgb(255 255 255 / .92); }
.pan-w { --ink: #1D1D1F; --ink-2: #5B6670; --card: #fff; --mist: #F1EFEB; --accent: #0B7676; --line: rgb(29 29 31 / .12); --on-accent: #fff; position: absolute; right: clamp(1rem, 2vw, 1.5rem); top: clamp(1rem, 2vw, 1.5rem); width: min(360px, 42%); color: var(--ink); transform: translateY(14px); opacity: 0; transition: transform .7s var(--spring), opacity .45s var(--out); }
.pan-card.is-on .pan-w { transform: none; opacity: 1; }
.ad-float { display: flex; align-items: center; gap: .7rem; padding: 11px 11px 11px 13px; border-radius: 20px; background: #fff; }
.ad-float > span:nth-child(2) { display: grid; min-width: 0; flex: 1; }
.ad-float small { font-size: .75rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-float b { font-weight: 500; line-height: 1.2; font-size: .9375rem; }
.ad-float em { flex: none; padding: .45em .9em; border-radius: 999px; background: var(--accent); color: #fff; font-size: .8125rem; font-style: normal; font-weight: 500; }
.pan-cal { padding: 14px 16px 16px; border-radius: var(--r-tile); background: #fff; }
.pan-cal b { display: block; margin-bottom: .5rem; font-weight: 500; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal i { aspect-ratio: 1; border-radius: 7px; background: var(--mist); transform: scale(.7); opacity: 0; transition: transform .45s var(--spring) var(--d, 0s), opacity .3s var(--out) var(--d, 0s); }
.pan-card.is-on .cal i { transform: none; opacity: 1; }
.cal i:nth-child(3n) { --d: .08s; } .cal i:nth-child(3n+1) { --d: .16s; } .cal i:nth-child(5n) { --d: .26s; }
.cal .a { background: var(--accent); } .cal .b { background: color-mix(in srgb, var(--accent) 42%, var(--mist)); } .cal .c { background: #1D1D1F; }
.pc-av { display: block; flex: none; width: 2.1em; height: 2.1em; border-radius: 50%; background: var(--accent); }
.inbox { padding: 2px 14px; border-radius: var(--r-tile); background: #fff; }
.inbox li { display: flex; align-items: center; gap: .6rem; padding-block: 10px; font-size: .875rem; }
.inbox li + li { border-top: 1px solid var(--line); }
.inbox li > span:last-child { display: grid; min-width: 0; }
.inbox b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox small { color: var(--ink-2); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search { display: grid; gap: 8px; }
.search-box { display: flex; align-items: center; gap: .5em; min-height: 44px; padding-inline: 1em; border-radius: 999px; background: #fff; font-size: .9063rem; }
.search-box .ic { color: var(--ink-2); }
.search-box span { min-height: 1.4em; }
.search-box span.is-typing::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 1px; background: var(--accent); vertical-align: -2px; }
.search-hit { padding: 12px 16px 14px; border-radius: var(--r-tile); background: #fff; }
.search-hit small { color: var(--ink-2); font-size: .75rem; }
.search-hit b { display: block; margin: 1px 0; font-weight: 500; color: var(--accent); line-height: 1.25; }
.search-hit p { color: var(--ink-2); font-size: .8125rem; }
.switches { padding: 4px 16px; border-radius: var(--r-tile); background: #fff; }
.switches li { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding-block: 9px; font-size: .875rem; }
.switches li + li { border-top: 1px solid var(--line); }
.switches i { position: relative; flex: none; width: 36px; height: 21px; border-radius: 999px; background: rgb(29 29 31 / .18); transition: background-color .3s var(--out) var(--d, 0s); }
.switches i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(14 37 51 / .3); transition: transform .34s var(--spring) var(--d, 0s); }
.pan-card.is-on .switches i { background: var(--accent); }
.pan-card.is-on .switches i::after { transform: translateX(15px); }
.switches li:nth-child(2) i { --d: .16s; } .switches li:nth-child(3) i { --d: .32s; } .switches li:nth-child(4) i { --d: .48s; } .switches li:nth-child(5) i { --d: .64s; }

/* ticket */
.i-ticket {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; gap: var(--s-7);
  padding: var(--sec) max(var(--gutter), calc((100vw - var(--wrap)) / 2)); background: var(--navy); color: #F3F4F3;
}
.tk-copy { position: sticky; top: calc(var(--nav-h) + 56px); }
.tk-copy .lead { color: #B9C6CC; }
.tk-printer { position: relative; width: min(420px, 100%); justify-self: end; }
.tk-slot { position: relative; z-index: 2; height: 20px; border-radius: 999px; background: #06141C; box-shadow: inset 0 2px 5px rgb(0 0 0 / .6), 0 1px 0 rgb(255 255 255 / .1); }
.tk-clip { margin: -10px 14px 0; overflow: hidden; padding-bottom: 2px; }
.tk-paper {
  padding: 34px 26px 44px; background: #FBFAF7; color: #1D1D1F;
  -webkit-mask: radial-gradient(9px at 50% 100%, transparent 98%, #000) 50% 100% / 22px 100% repeat-x;
  mask: radial-gradient(9px at 50% 100%, transparent 98%, #000) 50% 100% / 22px 100% repeat-x;
}
.tk-brand { font-size: 1.375rem; font-weight: 500; letter-spacing: -.02em; }
.tk-sub { color: #5B6670; font-size: .9375rem; }
.tk-paper ul { margin-block: 18px; border-block: 1.5px dashed rgb(29 29 31 / .22); padding-block: 8px; }
.tk-paper li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 8px; font-size: .9688rem; }
.tk-paper .ic { color: #0B7676; }
.tk-total { display: flex; justify-content: space-between; font-size: 1.125rem; }
.tk-total b { font-weight: 600; }
.tk-foot { margin-top: 4px; color: #5B6670; font-size: .8125rem; }
.tk-bars { height: 46px; margin-top: 20px; background: repeating-linear-gradient(90deg, #1D1D1F 0 2px, transparent 2px 5px, #1D1D1F 5px 6px, transparent 6px 9px, #1D1D1F 9px 13px, transparent 13px 15px); }

/* cierre */
.i-end { position: relative; display: grid; place-items: center; min-height: 100dvh; overflow: hidden; background: #071018; color: #fff; text-align: center; }
.i-end-img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; opacity: .72; }
.i-end::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 62% at 50% 50%, rgb(7 16 24 / .76), rgb(7 16 24 / .1)); }
.i-end-in { position: relative; z-index: 1; width: min(100%, 860px); padding: var(--s-9) var(--gutter); }
.i-end h2 { font-size: clamp(2.8rem, 6.4vw, 6rem); line-height: 1; letter-spacing: -.045em; }
.i-end .lead { margin: var(--s-4) auto var(--s-6); color: rgb(255 255 255 / .9); }
.i-end .capsule-msg { color: rgb(255 255 255 / .9); }
.i-end .capsule-msg button { color: #4FD8CB; }

@media (max-width: 1023px) {
  .i-story { grid-template-columns: 1fr; align-content: center; gap: var(--s-5); }
  .beats { display: grid; margin-top: var(--s-3); }
  .beat { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .3s var(--out), visibility .3s; }
  .beat.is-on { opacity: 1; visibility: visible; }
  .pan-head { flex-direction: column; align-items: flex-start; }
  .pan-chips { display: none; }
  .pan-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; }
  .pan-track::-webkit-scrollbar { display: none; }
  .pan-card { width: 86vw; height: 70dvh; scroll-snap-align: start; }
  .pan-text { width: auto; right: 1.25rem; }
  .pan-w { width: auto; left: 1rem; right: 1rem; opacity: 1; transform: none; }
  .i-ticket { grid-template-columns: 1fr; }
  .tk-copy { position: static; }
  .tk-printer { justify-self: center; }
}

@media (max-width: 767px) {
  .i-hero { min-height: 680px; }
  .i-copy { padding-top: calc(var(--nav-h) + 34px); }
  .ring-wrap { height: 46%; }
  .ring { top: 58%; }
  .film { font-size: 6.4vw; gap: .4rem; }
  .film-a, .film-b { flex: none; }
  .story-offer { left: 70%; width: 54%; }
  .i-pan { padding-top: calc(var(--nav-h) + 26px); }
}

/* sin motion */
html:not(.js-anim) .i-story { min-height: 0; }
html:not(.js-anim) .sf { position: relative; display: none; }
html:not(.js-anim) .sf:nth-of-type(3) { display: block; height: auto; }
html:not(.js-anim) .story-sub, html:not(.js-anim) .story-bar { display: none; }
html:not(.js-anim) .beat { opacity: 1; visibility: visible; grid-area: auto; color: #fff; }
html:not(.js-anim) .beat p { max-height: 5em; margin-top: .2rem; opacity: 1; }
html:not(.js-anim) .pan-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; }
html:not(.js-anim) .pan-w { opacity: 1; transform: none; }
html:not(.js-anim) .pan-card .switches i { background: var(--accent); }
html:not(.js-anim) .pan-card .switches i::after { transform: translateX(15px); }
html:not(.js-anim) .cal i { opacity: 1; transform: none; }
