/* Evento 106 · landing de registro y acreditación personal. Primero el celular. */
:root {
  --e-bg: #141414;
  --e-panel: #1f1f1f;
  --e-panel-2: #262626;
  --e-input: #1f1f1f;
  --e-line: #2a2a2a;
  --e-line-2: #3a3a3c;
  --e-text: #f2f2f2;
  --e-soft: #d6d6d8;
  --e-mute: #b4b4b6;
  --e-mute-2: #8a8a8c;
  --e-orange: #ff5d05;
  --e-orange-2: #ff7a2e;
  --e-green: #00c363;
  --e-green-ink: #06140c;
  --e-violeta: #5944c5;
  --e-err: #ffb08a;
  --e-display: rigid-square, "Montserrat", system-ui, sans-serif;
  --e-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --e-gut: 20px;
  --e-pad: 15px;
  --e-max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--e-bg);
  color: var(--e-text);
  font: 400 16px/1.5 var(--e-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--e-orange-2); }
a:hover { color: #ff9a5c; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--e-orange); outline-offset: 2px; }
.tbxe-i { flex: none; }
.tbxe-oculto { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.tbxe-saltar { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 8px; background: var(--e-orange); color: #fff; font-weight: 700; text-decoration: none; }
.tbxe-saltar:focus { top: 12px; color: #fff; }

/* ───────── Textos ───────── */
.tbxe-kicker { color: var(--e-orange); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.tbxe-h1 { font-family: var(--e-display); font-weight: 600; font-size: clamp(38px, 11.4vw, 46px); line-height: .98; letter-spacing: -.01em; color: #fff; }
.tbxe-h1 span { color: var(--e-orange); }
.tbxe-h1--sm { font-size: clamp(30px, 9.4vw, 38px); line-height: 1; }
.tbxe-h1:focus { outline: none; }
.tbxe-h2 { font-family: var(--e-display); font-weight: 600; font-size: 32px; line-height: 1.05; color: #fff; }
.tbxe-h3 { font-family: var(--e-display); font-weight: 600; font-size: 27px; line-height: 1.05; color: #fff; }

/* ───────── Botones ───────── */
.tbxe-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  border: 0; border-radius: 12px;
  background: var(--e-orange); color: #fff;
  font: 700 16px/1.1 var(--e-body);
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
  -webkit-tap-highlight-color: transparent;
}
.tbxe-btn:hover { background: #ff6d1f; color: #fff; }
.tbxe-btn:active { transform: translateY(1px); }
.tbxe-btn--xl { min-height: 50px; font-family: var(--e-display); font-weight: 600; font-size: 18px; letter-spacing: .03em; text-transform: uppercase; }
.tbxe-btn--sm { min-height: 46px; font-size: 14px; font-weight: 600; }
.tbxe-btn--ghost { background: transparent; border: 1px solid var(--e-line-2); color: var(--e-text); font-weight: 600; }
.tbxe-btn--ghost:hover { background: rgba(255,255,255,.04); border-color: #555; color: #fff; }
.tbxe-btn--wa { background: var(--e-green); color: var(--e-green-ink); }
.tbxe-btn--wa:hover { background: #0bd56f; color: var(--e-green-ink); }
.tbxe-btn--verde { background: var(--e-green); color: var(--e-green-ink); }
.tbxe-btn--verde:hover { background: #0bd56f; color: var(--e-green-ink); }
.tbxe-btn--blanco { background: #fff; color: var(--e-bg); min-height: 52px; font-family: var(--e-display); font-weight: 600; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; }
.tbxe-btn--blanco:hover { background: #fff; color: var(--e-bg); }
.tbxe-btn--violeta { background: var(--e-violeta); color: #fff; }
.tbxe-btn--violeta:hover { background: #6853d6; color: #fff; }
.tbxe-btn[disabled], .tbxe-btn.is-cargando { opacity: .75; cursor: progress; }
.tbxe-spin { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: tbxe-gira .7s linear infinite; }
.is-cargando .tbxe-spin { display: inline-block; }
.is-cargando .tbxe-btn__txt { opacity: .85; }
@keyframes tbxe-gira { to { transform: rotate(360deg); } }
.tbxe-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; color: #d0d0d0; font-weight: 600; font-size: 15px; }
.tbxe-link:hover { color: #fff; }

/* ───────── Encabezado (página personal y pantallas de después del registro) ───────── */
.tbxe-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--e-gut); }
.tbxe-top__logo { display: inline-flex; line-height: 0; }
.tbxe-top__logo img { width: 62px; height: 40px; }

/* ───────── Landing · celular ───────── */
#tbxe-main { position: relative; }

/* Portada: foto a sangre arriba con el auto entero y el título debajo. En la compu la foto queda sola a la izquierda. */
.tbxe-portada { position: relative; --e-foto-h: min(84vw, 620px); }
.tbxe-portada__foto { position: absolute; top: 0; left: 0; right: 0; height: var(--e-foto-h); overflow: hidden; background: var(--e-panel); }
.tbxe-portada__marco { position: absolute; inset: 0; overflow: hidden; }
.tbxe-portada__marco picture { position: absolute; inset: 0; display: block; }
.tbxe-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.tbxe-portada__marco::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,20,.55) 0%, rgba(20,20,20,0) 16%, rgba(20,20,20,0) 86%, var(--e-bg) 100%); }
.tbxe-hero__logo { position: absolute; z-index: 3; top: max(15px, env(safe-area-inset-top)); left: 20px; line-height: 0; }
.tbxe-hero__logo img { width: 62px; height: 40px; }
.tbxe-hero { position: relative; z-index: 2; display: block; padding: calc(var(--e-foto-h) - 10px) 20px 20px; }
.tbxe-badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 6px; background: var(--e-orange); color: var(--e-bg); font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tbxe-hero .tbxe-h1 { margin-top: 12px; font-size: min(46px, 10.2vw); line-height: .96; letter-spacing: -.015em; text-shadow: 0 2px 16px rgba(0,0,0,.45); }
.tbxe-lead { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--e-soft); }

/* Ticket con la fecha */
.tbxe-lado { padding: 8px 16px 0; }
.tbxe-ticket { position: relative; border-radius: 20px; background: var(--e-panel); }
.tbxe-ticket__arriba { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px; }
.tbxe-ticket__dia { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 88px; padding: 10px 0; border-radius: 14px; background: #f2f2f2; color: var(--e-bg); }
.tbxe-ticket__dia span { font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .04em; }
.tbxe-ticket__dia span:first-child { color: var(--e-orange); }
.tbxe-ticket__dia b { margin: 2px 0 1px; font-family: var(--e-display); font-weight: 600; font-size: 40px; line-height: 1; }
.tbxe-ticket__fecha { font-size: 15px; line-height: 20px; font-weight: 700; color: #fff; }
.tbxe-ticket__dato { margin-top: 4px; font-size: 13.5px; line-height: 19px; color: var(--e-mute); }
.tbxe-ticket__dato a { color: inherit; text-decoration: none; }
.tbxe-ticket__dato a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tbxe-ticket__corte { position: relative; margin: 0 18px; border-top: 1.5px dashed var(--e-line-2); }
.tbxe-ticket__corte::before, .tbxe-ticket__corte::after { content: ""; position: absolute; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--e-bg); }
.tbxe-ticket__corte::before { left: -29px; }
.tbxe-ticket__corte::after { right: -29px; }
.tbxe-ticket__abajo { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; font-size: 12.5px; line-height: 1.45; color: var(--e-soft); }
.tbxe-ticket__abajo p { display: flex; gap: 8px; }
.tbxe-ticket__abajo p::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--e-orange); }
.tbxe-ticket__abajo .tbxe-ticket__vivo::before { background: var(--e-violeta); }

/* Registro en 3 pasos */
.tbxe-reg { margin-top: 28px; padding: 0 4px; scroll-margin-top: 16px; }
.tbxe-form { display: flex; flex-direction: column; gap: 16px; padding: 18px 20px 20px; border-radius: 16px; background: var(--e-panel); border: 1px solid var(--e-line); }
.tbxe-pasos { padding: 0; border: 0; border-radius: 0; background: none; }
.tbxe-pasos__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tbxe-reg .tbxe-h3 { font-size: 28px; line-height: 1; letter-spacing: -.01em; }
.tbxe-pasos__n { flex: none; font-size: 12px; line-height: 16px; color: var(--e-mute); font-variant-numeric: tabular-nums; }
.tbxe-pasos__barra { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tbxe-pasos__barra i { position: relative; height: 4px; border-radius: 2px; overflow: hidden; background: var(--e-line-2); }
.tbxe-pasos__barra i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--e-orange); transform: scaleX(0); transform-origin: left center; transition: transform .5s cubic-bezier(.16,.84,.3,1); }
.tbxe-pasos__barra i.is-on::after { transform: none; }
.tbxe-paso { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.tbxe-campo { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tbxe-campo > label { font-size: 15px; line-height: 20px; font-weight: 500; color: var(--e-soft); }
.tbxe-campo > label span { color: var(--e-mute-2); }
.tbxe-form input {
  width: 100%; height: 52px; margin: 0; padding: 0 15px;
  border-radius: 12px; border: 1px solid var(--e-line-2);
  background: var(--e-input); color: var(--e-text);
  font: 500 16px/1.2 var(--e-body);
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.tbxe-form input::placeholder { color: #7a7a7c; opacity: 1; }
.tbxe-form input:focus { outline: none; border-color: var(--e-orange); box-shadow: 0 0 0 3px rgba(255,93,5,.22); }
.tbxe-form input[aria-invalid="true"], .tbxe-pre:has(input[aria-invalid="true"]) { border-color: #ff8a5c; }
.tbxe-pre { display: flex; align-items: center; height: 52px; padding-left: 15px; border-radius: 12px; border: 1px solid var(--e-line-2); background: var(--e-input); transition: border-color .15s ease, box-shadow .15s ease; }
.tbxe-pre:focus-within { border-color: var(--e-orange); box-shadow: 0 0 0 3px rgba(255,93,5,.22); }
.tbxe-pre span { flex: none; font-size: 16px; line-height: 1; color: var(--e-mute-2); }
.tbxe-pre--tel span { color: #fff; }
.tbxe-form .tbxe-pre input { flex: 1 1 auto; min-width: 0; height: 50px; padding: 0 15px 0 6px; border: 0; border-radius: 0 12px 12px 0; background: transparent; box-shadow: none; }
.tbxe-form .tbxe-pre--tel input { padding-left: 5px; }
.tbxe-err { font-size: 13px; line-height: 1.4; color: var(--e-err); }
.tbxe-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tbxe-pasos__acc { display: flex; gap: 8px; margin-top: 4px; }
.tbxe-pasos__atras { flex: 0 0 52px; min-height: 50px; padding: 0; }
.tbxe-pasos__acc .tbxe-form__enviar { flex: 1 1 auto; }
.tbxe-legal { margin-top: -4px; font-size: 12px; line-height: 18px; color: var(--e-mute); text-align: center; }
.tbxe-msg { padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.5; background: rgba(255,138,92,.1); border: 1px solid rgba(255,138,92,.45); color: #ffd2bd; }
.tbxe-msg--ok { background: rgba(0,195,99,.1); border-color: rgba(0,195,99,.5); color: #c9f5dc; }
.tbxe-msg--aviso { background: rgba(232,180,0,.1); border-color: rgba(232,180,0,.55); color: #f5e3a6; }
.tbxe-form--cerrado { align-items: flex-start; }
.tbxe-cerrado__t { font-size: 18px; font-weight: 700; color: #fff; }
.tbxe-form--cerrado p:not(.tbxe-cerrado__t) { font-size: 15px; line-height: 1.5; color: var(--e-soft); }
.tbxe-form--cerrado .tbxe-btn { align-self: stretch; }

/* Registro listo / lista de espera, en el lugar del formulario */
.tbxe-listo { display: flex; flex-direction: column; animation: tbxe-aparece .35s ease both; }
.tbxe-listo .tbxe-msg { margin-top: 14px; }
.tbxe-listo .tbxe-pase { margin-top: 20px; }
.tbxe-listo .tbxe-lugar { margin-top: 18px; }
.tbxe-listo .tbxe-lugar__d strong { overflow-wrap: anywhere; }
.tbxe-listo__ig { margin-top: 12px; }
.tbxe-listo__otra { margin-top: 12px; }
.tbxe-listo .tbxe-pase + .tbxe-listo__otra { margin-top: 16px; }
@keyframes tbxe-aparece { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tbxe-listo { animation: none; } }

/* Vení y participá por premios: tarjetas que son solo la foto. En el celular se deslizan de costado. */
.tbxe-para { padding: 48px 20px 0; }
.tbxe-para .tbxe-h2 { margin-bottom: 12px; font-size: 40px; line-height: 40px; letter-spacing: -.01em; }
.tbxe-para__sub { margin-bottom: 20px; font-size: 15px; line-height: 1.5; color: var(--e-soft); }
.tbxe-para__lista {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px;
  margin: 0 -20px; padding: 0 20px 4px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 20px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tbxe-para__lista::-webkit-scrollbar { display: none; }
.tbxe-card { aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; background: var(--e-panel); scroll-snap-align: start; }
.tbxe-card__img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Bloque de compra: la foto del 106 que se funde en el violeta, con la cuenta regresiva al sorteo */
.tbxe-compra { position: relative; margin: 48px 16px 0; border-radius: 24px; overflow: hidden; background: var(--e-violeta); isolation: isolate; }
.tbxe-compra__foto { position: relative; height: 224px; overflow: hidden; }
.tbxe-compra__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 80%; }
.tbxe-compra__foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(89,68,197,0) 28%, rgba(89,68,197,.72) 70%, var(--e-violeta) 100%); }
.tbxe-compra__txt { position: relative; display: flex; flex-direction: column; margin-top: -64px; padding: 0 20px 22px; }
.tbxe-cuenta { margin-bottom: 22px; }
.tbxe-cuenta__t { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.tbxe-cuenta__n { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.tbxe-cuenta__n span { display: flex; flex-direction: column; align-items: center; padding: 11px 0 10px; border-radius: 12px; background: rgba(22,14,66,.42); border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); overflow: hidden; }
.tbxe-cuenta__n b { display: block; font-family: var(--e-display); font-weight: 600; font-size: 30px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.tbxe-cuenta__n small { margin-top: 6px; font-size: 11px; line-height: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #e2ddfc; }
.tbxe-compra__t { font-family: var(--e-display); font-weight: 600; font-size: 28px; line-height: 1.06; color: #fff; text-wrap: balance; }
.tbxe-compra__p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: #ebe8fc; }
.tbxe-compra__btn { position: relative; overflow: hidden; align-self: stretch; min-height: 54px; margin-top: 22px; padding: 0 26px; background: #fff; }
.tbxe-compra__btn .tbxe-i { transition: transform .25s ease; }
.tbxe-compra__btn:hover { background: #f1efff; }
.tbxe-compra__btn:hover .tbxe-i { transform: translateX(4px); }

/* Botón fijo de abajo (solo celular) */
.tbxe-fijo { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px max(16px, env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(20,20,20,0), var(--e-bg) 45%); transition: transform .25s ease, opacity .25s ease; }
.tbxe-fijo.is-oculto { transform: translateY(110%); opacity: 0; pointer-events: none; }
.tbxe-fijo .tbxe-btn { position: relative; overflow: hidden; width: 100%; box-shadow: 0 10px 30px rgba(255,93,5,.25); }
.tbxe--con-fijo .tbxe-pie { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) { .tbxe-fijo { transition: none; } }

/* ───────── Pie ───────── */
.tbxe-pie { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding: 14px 23px max(14px, env(safe-area-inset-bottom)) 20px; border-top: 1px solid #1f1f1f; }
.tbxe-pie__c { font-size: 12px; line-height: 18px; color: #8a8a8a; }
.tbxe-pie__logo { display: block; width: 47px; height: auto; }
.tbxe--acceso .tbxe-pie { margin-top: 40px; }

/* ───────── Cabecera con foto (registro listo, lista de espera, página personal) ───────── */
.tbxe-mini { position: relative; height: 236px; overflow: hidden; background: var(--e-panel); }
.tbxe-mini__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 42% 55%; }
.tbxe-mini::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,20,.55) 0%, rgba(20,20,20,.05) 32%, rgba(20,20,20,.4) 62%, var(--e-bg) 100%); }
.tbxe-mini__in { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; height: 100%; max-width: 480px; margin: 0 auto; padding: max(15px, env(safe-area-inset-top)) var(--e-gut) 14px; }
.tbxe-mini__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tbxe-mini__logo { display: inline-flex; line-height: 0; }
.tbxe-mini__logo img { width: 62px; height: 40px; }
.tbxe-mini .tbxe-h1 { margin: 0; }
.tbxe-mini .tbxe-estado { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background-color: rgba(10,30,20,.55); }
.tbxe-mini .tbxe-estado--ya { background-color: rgba(42,34,8,.6); }

/* ───────── Registro listo / acreditación ───────── */
.tbxe-exito { padding-top: 0; }
.tbxe-exito__in { width: 100%; max-width: 480px; margin: 0 auto; padding: 0 var(--e-gut) 8px; }
.tbxe--acceso .tbxe-exito__in { padding-top: 8px; }
.tbxe-exito .tbxe-exito__txt:first-child, .tbxe--con-foto .tbxe-exito__txt:first-child { margin-top: 6px; }
.tbxe-check { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin-top: 14px; border-radius: 999px; background: var(--e-green); color: var(--e-green-ink); }
.tbxe-check .tbxe-i { stroke-width: 2.6; }
.tbxe-exito .tbxe-h1 { margin-top: 18px; }
.tbxe--acceso .tbxe-h1 { margin-top: 14px; }
.tbxe-exito__txt { margin-top: 14px; font-size: 16px; line-height: 1.55; color: var(--e-soft); }
.tbxe-exito .tbxe-msg { margin-top: 16px; }
.tbxe-exito__nota { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--e-mute-2); text-align: center; }
.tbxe-estado { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(0,195,99,.14); border: 1px solid rgba(0,195,99,.45); color: #4be08f; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tbxe-estado--ya { background: rgba(232,180,0,.12); border-color: rgba(232,180,0,.5); color: #ffd34d; }

.tbxe-pase { position: relative; margin-top: 24px; border-radius: 20px; background: var(--e-panel); }
.tbxe-pase__top { padding: 20px 20px 22px; }
.tbxe-pase__nombre { margin-top: 8px; font-family: var(--e-display); font-weight: 600; font-size: 26px; line-height: 1.08; color: #fff; overflow-wrap: anywhere; }
.tbxe-pase__nombre:empty { display: none; }
.tbxe-pase__cuando { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; margin-top: 18px; }
.tbxe-pase__cuando .tbxe-ticket__dia { min-height: 72px; padding: 8px 0; border-radius: 12px; }
.tbxe-pase__cuando .tbxe-ticket__dia b { font-size: 32px; }
.tbxe-pase__cuando .tbxe-ticket__dia span { font-size: 10px; line-height: 12px; }
.tbxe-pase__corte { position: relative; margin: 0 18px; border-top: 1.5px dashed var(--e-line-2); }
.tbxe-pase__corte::before, .tbxe-pase__corte::after { content: ""; position: absolute; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--e-bg); }
.tbxe-pase__corte::before { left: -29px; }
.tbxe-pase__corte::after { right: -29px; }
.tbxe-pase__qr { display: flex; flex-direction: column; align-items: center; padding: 22px 20px; }
.tbxe-qr { width: min(264px, 100%); padding: 14px; border-radius: 16px; background: #fff; }
.tbxe-qr svg { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.tbxe-pase__codigo { margin-top: 14px; font-family: var(--e-display); font-size: 24px; font-weight: 600; line-height: 1; letter-spacing: .1em; color: #fff; }
.tbxe-pase__nota { margin-top: 4px; font-size: 12px; color: var(--e-mute); text-align: center; }
.tbxe-acciones { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.tbxe-acciones .tbxe-btn--wa { min-height: 56px; }

/* Modo acreditación dentro de la página personal (mismos colores que el escáner) */
.tbxe-staff { margin: 4px 0 26px; padding: 16px; border-radius: 20px; background: var(--e-panel); }
.tbxe-staff__k { margin-bottom: 12px; color: var(--e-orange); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.tbxe-res { padding: 18px; border-radius: 16px; background: var(--e-panel-2); }
.tbxe-res__t { font-family: var(--e-display); font-weight: 600; font-size: 32px; line-height: 1; letter-spacing: .01em; }
.tbxe-res__n { margin-top: 8px; font-size: 20px; line-height: 1.2; font-weight: 700; color: #fff; overflow-wrap: anywhere; }
.tbxe-res__d { margin-top: 4px; font-size: 14px; color: var(--e-soft); }
.tbxe-res .tbxe-btn { margin-top: 16px; width: 100%; }
.tbxe-res--ok { background: var(--e-green); }
.tbxe-res--ok .tbxe-res__t, .tbxe-res--ok .tbxe-res__n { color: var(--e-green-ink); }
.tbxe-res--ok .tbxe-res__d { color: rgba(6,20,12,.75); }
.tbxe-res--ya { background: #e8b400; }
.tbxe-res--ya .tbxe-res__t, .tbxe-res--ya .tbxe-res__n { color: #241c04; }
.tbxe-res--ya .tbxe-res__d { color: rgba(36,28,4,.75); }
.tbxe-res--no { background: #e5383b; }
.tbxe-res--no .tbxe-res__t, .tbxe-res--no .tbxe-res__n { color: #fff; }
.tbxe-res--no .tbxe-res__d { color: rgba(255,255,255,.85); }
.tbxe-res--listo .tbxe-res__n { margin-top: 0; }
.tbxe-staff .tbxe-link { margin-top: 6px; }
.tbxe-btn--verde .tbxe-spin { border-color: rgba(6,20,12,.3); border-top-color: var(--e-green-ink); }

/* ───────── Cupo completo · lista de espera ───────── */
.tbxe-kicker--ambar { color: #ffd34d; }
.tbxe-check--ambar { background: #e8b400; color: #2a2208; }
.tbxe-check--rojo { background: #e5383b; color: #fff; }
.tbxe-lugar { margin-top: 24px; padding: 20px; border-radius: 20px; background: var(--e-panel); }
.tbxe-lugar__n { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 10px; }
.tbxe-lugar__n span { font-family: var(--e-display); font-weight: 600; font-size: 52px; line-height: 1; color: #fff; }
.tbxe-lugar__n b { font-weight: 600; }
.tbxe-lugar__d { margin-top: 14px; font-size: 14px; line-height: 1.55; color: #cfcfcf; }
.tbxe-lugar__d strong { color: #fff; }

/* ───────── Página de gracias (después del registro) ─────────
   Queda la portada (foto, título y fecha), en el lugar del formulario el resultado, y debajo el resto de la landing. */
.tbxe--gracias .tbxe-saltar { display: none; }
.tbxe-listo .tbxe-check { align-self: flex-start; width: 44px; height: 44px; margin-top: 0; }
.tbxe-gracias__t { margin-top: 16px; font-family: var(--e-display); font-weight: 600; font-size: 30px; line-height: 1.06; color: #fff; }
.tbxe-gracias__t span { display: block; }
.tbxe-gracias__t:focus { outline: none; }
.tbxe-gracias__txt { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--e-soft); }
.tbxe-gracias__txt strong { color: #fff; font-weight: 700; overflow-wrap: anywhere; }
.tbxe-btn--ig { min-height: 56px; margin-top: 28px; font-weight: 700; }
.tbxe-btn--ig::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--e-violeta); }
.tbxe-gracias__nota { margin-top: 12px; padding: 0 4px; font-size: 14px; line-height: 1.5; color: var(--e-mute); }

/* ───────── QR no válido (invitado) ───────── */
.tbxe-estado--no { background: rgba(229,56,59,.14); border-color: rgba(229,56,59,.6); color: #ff8a8a; }
.tbxe--acceso .tbxe-check { margin-top: 6px; }
.tbxe--acceso .tbxe-invalido { padding-top: 80px; padding-bottom: 80px; }
.tbxe-resolver { margin-top: 22px; padding: 20px; border-radius: 20px; background: var(--e-panel); }
.tbxe-resolver .tbxe-kicker { margin-bottom: 12px; }
.tbxe-resolver ol { display: flex; flex-direction: column; gap: 12px; }
.tbxe-resolver li { display: flex; gap: 12px; align-items: flex-start; }
.tbxe-resolver span { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; height: 26px; border-radius: 999px; background: var(--e-panel-2); font-family: var(--e-display); font-weight: 600; font-size: 14px; color: var(--e-orange); }
.tbxe-resolver p { margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--e-soft); }
.tbxe-resolver strong { color: #fff; }

/* ─────────────────────────── Tablet ─────────────────────────── */
@media (min-width: 600px) {
  :root { --e-gut: 32px; }
  .tbxe-lado, .tbxe-para { max-width: 592px; margin-left: auto; margin-right: auto; }
  .tbxe-hero__txt { width: 100%; max-width: 552px; margin: 0 auto; }
  .tbxe-hero__logo { left: max(20px, calc((100% - 552px) / 2)); }
  .tbxe-hero .tbxe-h1 { font-size: 56px; }
  /* La tira llega hasta el borde de la pantalla; la primera tarjeta queda alineada con el título (columna de 552 px). */
  .tbxe-para__lista { grid-auto-columns: 248px; margin: 0 calc(276px - 50vw); padding: 0 calc(50vw - 276px) 4px; scroll-padding: 0 calc(50vw - 276px); }
  .tbxe-compra { max-width: 560px; margin-left: auto; margin-right: auto; }
  .tbxe-compra__foto { height: 260px; }
  .tbxe-cuenta__n b { font-size: 34px; }
  .tbxe-mini { height: 280px; }
}

/* ─────────────────────────── Escritorio ───────────────────────────
   Portada partida: la foto con el título a la izquierda y, a la derecha, la fecha y el
   registro. Abajo, "Es para vos si" en tres tarjetas con foto y el bloque de compra. */
@media (min-width: 960px) {
  :root { --e-gut: clamp(24px, 4vw, 48px); --e-ancho: 1280px; }

  /* La foto ocupa la columna izquierda entera y acompaña el scroll; el título, la fecha y el registro van a la derecha. */
  .tbxe-portada { --e-col: clamp(440px, 38vw, 620px); --e-lado-pad: clamp(32px, 4.4vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--e-col) + 2 * var(--e-lado-pad)); grid-template-rows: 1fr auto auto 1fr; min-height: 100vh; min-height: 100svh; }
  .tbxe-portada__foto { position: relative; grid-column: 1; grid-row: 1 / -1; top: auto; left: auto; right: auto; height: auto; overflow: visible; background: none; }
  .tbxe-portada__marco { position: sticky; top: 0; right: auto; bottom: auto; left: auto; height: 100vh; height: 100svh; background: var(--e-panel); container-type: size; }
  /* El auto ocupa el 83 % del ancho de la foto: se recorta como mucho un 12 % a lo ancho (30 % a la izquierda, 70 % a la derecha). */
  .tbxe-hero__img { object-position: 30% 70%; }
  /* Si la columna es angosta y alta, la foto no llena todo el alto: queda centrada y se funde arriba y abajo con el fondo. */
  @container (max-aspect-ratio: 877 / 1000) {
    .tbxe-portada__marco picture { top: 0; bottom: 0; height: 114cqw; margin: auto 0; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%); }
  }
  .tbxe-portada__marco::after { background: linear-gradient(180deg, rgba(20,20,20,.5) 0%, rgba(20,20,20,0) 16%, rgba(20,20,20,0) 88%, rgba(20,20,20,.4) 100%); }
  .tbxe-hero__logo { top: 32px; left: 48px; }
  .tbxe-hero { grid-column: 2; grid-row: 2; display: block; height: auto; padding: 56px var(--e-lado-pad) 0; }
  .tbxe-hero__txt { width: 100%; max-width: var(--e-col); margin: 0 auto; }
  .tbxe-badge { padding: 7px 12px; font-size: 12px; }
  .tbxe-hero .tbxe-h1 { margin-top: 18px; font-size: clamp(44px, 3.9vw, 66px); line-height: .95; letter-spacing: -.02em; text-shadow: none; }
  .tbxe-lead { max-width: 520px; margin-top: 16px; font-size: 17px; }

  .tbxe-lado { grid-column: 2; grid-row: 3; display: flex; flex-direction: column; gap: 32px; max-width: none; margin: 0; padding: 32px var(--e-lado-pad) 56px; }
  .tbxe-lado > * { width: 100%; max-width: var(--e-col); margin-left: auto; margin-right: auto; }
  .tbxe-ticket__arriba { grid-template-columns: 96px minmax(0, 1fr); gap: 20px; padding: 22px; }
  .tbxe-ticket__dia { min-height: 96px; }
  .tbxe-ticket__dia b { font-size: 44px; }
  .tbxe-ticket__fecha { font-size: 16px; }
  .tbxe-ticket__dato { font-size: 14px; }
  .tbxe-ticket__corte { margin: 0 20px; }
  .tbxe-ticket__corte::before { left: -31px; }
  .tbxe-ticket__corte::after { right: -31px; }
  .tbxe-ticket__abajo { gap: 8px; padding: 16px 22px 18px; font-size: 13px; }
  .tbxe-reg { margin-top: 0; padding: 0; }
  .tbxe-reg .tbxe-h3 { font-size: 32px; }
  .tbxe-paso[data-paso="3"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tbxe-legal { text-align: left; }

  .tbxe-para { width: 100%; max-width: var(--e-ancho); margin: 0 auto; padding: 80px 48px 0; }
  .tbxe-para .tbxe-h2 { margin-bottom: 14px; font-size: 44px; line-height: 44px; }
  .tbxe-para__sub { max-width: 640px; margin-bottom: 28px; font-size: 17px; }
  .tbxe-para__lista { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; overflow: visible; }
  .tbxe-card { border-radius: 24px; }
      
  .tbxe-compra { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); width: calc(100% - 96px); max-width: calc(var(--e-ancho) - 96px); min-height: 440px; margin: 72px auto 0; border-radius: 28px; }
  .tbxe-compra__foto { grid-column: 2; grid-row: 1; height: auto; }
  .tbxe-compra__img { object-position: 50% 42%; }
  .tbxe-compra__foto::after { background: linear-gradient(90deg, var(--e-violeta) 0%, rgba(89,68,197,.6) 20%, rgba(89,68,197,.08) 56%, rgba(89,68,197,0) 100%); }
  .tbxe-compra__txt { grid-column: 1; grid-row: 1; justify-content: center; margin: 0; padding: 52px 12px 52px 56px; }
  .tbxe-cuenta { margin-bottom: 28px; }
  .tbxe-cuenta__n { grid-template-columns: repeat(4, 84px); gap: 10px; }
  .tbxe-cuenta__n span { padding: 14px 0 12px; border-radius: 14px; }
  .tbxe-cuenta__n b { font-size: 40px; }
  .tbxe-compra__t { max-width: 560px; font-size: clamp(32px, 2.9vw, 42px); line-height: 1.04; }
  .tbxe-compra__p { max-width: 460px; margin-top: 14px; font-size: 16px; }
  .tbxe-compra__btn { align-self: flex-start; min-height: 56px; margin-top: 28px; padding: 0 30px; }

  .tbxe-fijo { display: none !important; }
  .tbxe--con-fijo .tbxe-pie { padding-bottom: 20px; }
  .tbxe--landing .tbxe-pie { width: calc(100% - 96px); max-width: calc(var(--e-ancho) - 96px); margin: 40px auto 0; padding: 16px 0 20px; }
  .tbxe--landing #tbxe-main[hidden] ~ .tbxe-pie { width: auto; max-width: 520px; margin-top: 32px; padding: 16px var(--e-gut) 20px; }

  .tbxe-exito { padding-top: 0; }
  .tbxe-exito__in { max-width: 520px; }
  .tbxe-mini { height: 320px; }
  .tbxe-mini__in { max-width: 520px; padding-top: 28px; padding-bottom: 18px; }
  .tbxe-mini .tbxe-h1 { font-size: 44px; }
  .tbxe-top--simple { max-width: 520px; margin: 0 auto; padding-left: var(--e-gut); padding-right: var(--e-gut); }
  .tbxe-espera { padding-top: 0; }
}

/* ─────────────────────────── Movimiento ───────────────────────────
   Solo con "sin preferencia" de movimiento reducido. Sin JS (o con movimiento reducido) todo se ve quieto y completo. */
@keyframes tbxe-acerca { from { transform: scale(1.1); } to { transform: none; } }
@keyframes tbxe-sube { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes tbxe-entra { from { opacity: 0; } to { opacity: 1; } }
@keyframes tbxe-paso { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes tbxe-pulso { 0% { box-shadow: 0 0 0 0 rgba(125,106,240,.75); } 70%, 100% { box-shadow: 0 0 0 7px rgba(125,106,240,0); } }
@keyframes tbxe-brillo { 0%, 55% { transform: translateX(-160%) skewX(-20deg); } 100% { transform: translateX(380%) skewX(-20deg); } }
@keyframes tbxe-respira { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes tbxe-tic { from { opacity: .15; transform: translateY(-40%); } to { opacity: 1; transform: none; } }
@keyframes tbxe-zoom-scroll { to { transform: scale(1.03); } }

@media (prefers-reduced-motion: no-preference) {
  /* Entrada de la portada: la foto se acerca y los textos suben en cascada */
  .tbxe--landing .tbxe-hero__img { animation: tbxe-acerca 1.8s cubic-bezier(.16,.84,.3,1) both; }
  .tbxe--landing .tbxe-hero__logo { animation: tbxe-entra .6s .1s ease both; }
  .tbxe--landing .tbxe-hero__txt > *, .tbxe--landing .tbxe-lado > * { animation: tbxe-sube .8s cubic-bezier(.16,.84,.3,1) both; }
  .tbxe--landing .tbxe-hero__txt > :nth-child(2) { animation-delay: .08s; }
  .tbxe--landing .tbxe-hero__txt > :nth-child(3) { animation-delay: .16s; }
  .tbxe--landing .tbxe-lado > :nth-child(1) { animation-delay: .24s; }
  .tbxe--landing .tbxe-lado > :nth-child(2) { animation-delay: .32s; }

  /* "En vivo": el punto late */
  .tbxe-ticket__abajo .tbxe-ticket__vivo::before { animation: tbxe-pulso 2s ease-out infinite; }

  /* Registro: cada paso entra de costado */
  .tbxe--landing .tbxe-paso { animation: tbxe-paso .45s cubic-bezier(.16,.84,.3,1) both; }
  .tbxe-listo .tbxe-pase, .tbxe-listo .tbxe-lugar { animation: tbxe-sube .6s .12s cubic-bezier(.16,.84,.3,1) both; }

  /* Lo que está más abajo aparece al llegar (el JS marca .is-rev solo lo que todavía no está en pantalla) */
  .tbxe-rev.is-rev { opacity: 0; transform: translateY(32px); transition: opacity .8s cubic-bezier(.16,.84,.3,1), transform .8s cubic-bezier(.16,.84,.3,1); transition-delay: var(--tbxe-d, 0s); }
  .tbxe-rev.is-rev.is-in { opacity: 1; transform: none; }
  .tbxe-card.tbxe-rev:nth-child(2) { --tbxe-d: .1s; }
  .tbxe-card.tbxe-rev:nth-child(3) { --tbxe-d: .2s; }

  /* Compra: la foto respira, el botón tiene un brillo que pasa y los números de la cuenta caen al cambiar */
  .tbxe-compra__img { animation: tbxe-respira 16s ease-in-out infinite alternate; }
  .tbxe-compra__btn::after, .tbxe-fijo .tbxe-btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 36%; pointer-events: none; transform: translateX(-160%) skewX(-20deg); }
  .tbxe-compra__btn::after { background: linear-gradient(100deg, rgba(89,68,197,0), rgba(89,68,197,.2), rgba(89,68,197,0)); animation: tbxe-brillo 3.8s ease-in-out 1.5s infinite; }
  .tbxe-fijo .tbxe-btn::after { background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.32), rgba(255,255,255,0)); animation: tbxe-brillo 4.2s ease-in-out 2s infinite; }
  .tbxe-cuenta__n b.is-tic { animation: tbxe-tic .42s cubic-bezier(.16,.84,.3,1); }

  /* Tarjetas: la foto se acerca al pasar el mouse */
  @media (hover: hover) {
    .tbxe-card__img { transition: transform .8s cubic-bezier(.16,.84,.3,1); }
    .tbxe-card:hover .tbxe-card__img { transform: scale(1.06); }
    .tbxe-form__enviar { transition: background-color .15s ease, box-shadow .25s ease, transform .1s ease; }
    .tbxe-form__enviar:hover { box-shadow: 0 10px 28px rgba(255,93,5,.3); }
  }

  /* Compu: la foto de la portada se acerca despacio mientras se baja (donde el navegador lo permite) */
  @supports (animation-timeline: scroll()) {
    @media (min-width: 960px) {
      .tbxe--landing .tbxe-portada__marco picture { transform-origin: 50% 60%; animation: tbxe-zoom-scroll linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .tbxe-pasos__barra i::after { transition: none; }
}
