/* LlegoPY — página de demo
   Recorrido con pantalla fija (sticky): los pasos suben a la izquierda y la laptop y el iPhone
   cambian de captura. Se apoya en los componentes de estilos.css (combo, laptop, iphone, hot)
   y en sus colores, los del verificador. */

/* Barra de avance de la página: scroll-driven donde hay animation-timeline; si no, --pagina */
.barra-progreso {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  height: 3px;
  background: var(--violeta);
  transform-origin: 0 50%;
  transform: scaleX(var(--pagina, 0));
}

@supports (animation-timeline: scroll()) {
  .barra-progreso {
    animation: crecer linear both;
    animation-timeline: scroll(root);
  }
}

@keyframes crecer {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Llegar a la demo: la portada sube y se va, la demo sube desde abajo y el iPhone (y en la
   computadora la laptop) viaja a su lugar (estilos.css, «De una página a la otra») */
::view-transition-old(root) { animation: pagina-sube .24s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: pagina-desde-abajo .55s var(--curva) .2s both; }

/* ---------- Portada ---------- */

.demo-hero { padding-top: calc(var(--nav-h) + 28px); }

.demo-hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.demo-hero .ctas { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin-top: 4px; }
.demo-hero .ctas .btn { padding-inline: 12px; }

.demo-nota { font-size: 14px; color: var(--gris); }

.demo-hero__stage { position: relative; isolation: isolate; max-width: 1060px; margin: 40px auto 0; }
.demo-hero__stage::before {
  content: "";
  position: absolute;
  inset: 8% -10% -6%;
  z-index: -1;
  background: radial-gradient(55% 60% at 50% 42%, var(--pervinca) 0%, var(--lavanda) 38%, rgba(255, 255, 255, 0) 72%);
}
.demo-hero__stage .combo { padding: 0 0 30% 0; }
.demo-hero__stage .laptop { width: 88%; }
.demo-hero__stage .combo .iphone { width: 34%; }

/* ---------- Probalo vos ----------
   El iPhone de la portada de la landing, pero se usa: la lista, la hoja de detalle, el ticket y
   el cambio de persona (js/probar.js). Las medidas de adentro van en cqw, como en la portada. */

.probar__grid { display: grid; gap: 24px; }
.probar__texto { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

/* En el celular se ve solo el paso que toca, con el avance; en la computadora, la lista entera */
.probar__avance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--violeta);
}
.probar__segs { display: flex; gap: 4px; }
.probar__segs i { width: 22px; height: 4px; border-radius: 4px; background: rgba(16, 21, 133, .16); transition: background-color .3s; }
.probar__segs i.is-on { background: var(--violeta); }

.probar__pasos { width: 100%; margin-top: -6px; list-style: none; counter-reset: paso; }
.probar__pasos li {
  display: none;
  align-items: center;
  gap: 12px;
  counter-increment: paso;
  font-size: 19px;
  font-weight: 640;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.probar__pasos li.is-actual { display: flex; }
/* El número va en «Paso n de 5»; el círculo, solo en la lista de la computadora */
.probar__pasos li::before {
  content: counter(paso);
  display: none;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--violeta);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background-color .3s;
}
.probar__pasos li.is-hecho::before {
  content: "";
  background: var(--lima) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23121214' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.probar__llega { width: 100%; min-height: 50px; font-size: 16px; }
.probar__rol { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--gris); }
/* Terminado: el avance deja lugar al cierre */
.probar--listo .probar__avance { display: none; }

.probar__fin {
  display: grid;
  gap: 14px;
  width: 100%;
  padding: 18px;
  border-radius: var(--r);
  background: var(--papel);
  box-shadow: var(--sombra-1);
}
.probar__fin[hidden] { display: none; }
.probar__fin p { color: var(--gris); }
.probar__fin strong { color: var(--tinta); }
.probar__fin .ctas .btn { flex: 1 1 auto; }

.probar__escena { position: relative; isolation: isolate; display: flex; justify-content: center; }
.probar__escena::before {
  content: "";
  position: absolute;
  inset: -6% -20%;
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, var(--pervinca) 0%, rgba(189, 201, 255, 0) 100%);
  pointer-events: none;
}
/* Que entren el iPhone y los botones de arriba en la pantalla del celular */
.probar__iphone { width: min(82vw, clamp(250px, calc((100svh - 250px) * .48), 300px)); }

.probar__audit {
  width: 100%;
  max-width: 440px;
  justify-self: center;
  padding: 16px 18px 8px;
  border-radius: var(--r);
  background: var(--papel);
  box-shadow: var(--sombra-2);
}
.probar__audit-t { font-size: 13px; font-weight: 600; color: var(--gris); }
.probar__audit-lista { list-style: none; }
.probar__audit-lista li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--linea);
  font-size: 14px;
  line-height: 1.4;
}
.probar__audit-lista li:first-child { border-top: 0; }
.probar__audit-lista time { font-weight: 600; font-variant-numeric: tabular-nums; }
.probar__audit-lista b { font-weight: 600; }
.probar__audit-lista .is-nueva { animation: fila-entra .6s var(--curva) both, audit-luz 2.4s ease-out both; }

@keyframes audit-luz {
  0%, 30% { background: #f3fcd9; }
  100% { background: transparent; }
}

/* Lo de adentro del iPhone */
[data-rol="cajera"] .solo-dueno,
[data-rol="dueno"] .solo-cajera { display: none; }

.probar .app__sub { overflow: hidden; text-overflow: ellipsis; }
[data-rol="dueno"] .app__avatar { background: var(--tinta); font-size: 3.1cqw; }

.probar .app__total { position: relative; }
/* La cajera no ve los montos: solo cuántas faltan revisar (el permiso «Ver totales») */
.app__total--caja { background: #fff; color: var(--tinta); box-shadow: 0 .3cqw 1cqw rgba(18, 18, 20, .04), 0 2cqw 5cqw rgba(18, 18, 20, .05); }
.app__total--caja .app__etq,
.app__total--caja .app__nota { color: var(--gris); }
.app__total--caja .app__etq::before { background: var(--violeta); }

.app__cierre {
  position: absolute;
  top: 3.4cqw;
  right: 3.4cqw;
  padding: 1.8cqw 3cqw;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font: 600 2.9cqw/1 var(--fuente);
  cursor: pointer;
}
.app__cierre:hover { background: rgba(255, 255, 255, .28); }

.probar .app__seg button {
  flex: 1;
  padding: 1.7cqw 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--gris);
  font: 600 3.1cqw/1.2 var(--fuente);
  cursor: pointer;
}
.probar .app__seg button[aria-pressed="true"] { background: #fff; color: var(--tinta); box-shadow: 0 .3cqw 1.6cqw rgba(0, 0, 0, .08); }

/* Cada fila es un botón que abre su detalle */
.probar .fila {
  width: 100%;
  border: 0;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s;
}
.probar .fila:hover { background: #f7f8fb; }
.probar .fila:focus-visible { outline: 2px solid var(--azul); outline-offset: -2px; border-radius: 0; }
.probar .app__lista li + li .fila { border-top: 1px solid #eef0f4; }
.app__vacio { padding: 7cqw 4cqw; font-size: 3.2cqw; text-align: center; color: var(--gris); }

/* Los avisos bajan desde arriba, para no tapar los botones de la hoja */
.probar .app__toast {
  top: calc(var(--barra-alto) + 1.5cqw);
  bottom: auto;
  z-index: 8;
  transform: translateY(-5cqw) scale(.96);
}
.probar .app__toast.is-on { transform: none; }

.app__velo {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(18, 18, 20, .38);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--curva-suave);
}
.app__velo.is-on { opacity: 1; pointer-events: auto; }

/* La hoja que sube desde abajo, como en el sistema */
.hoja {
  position: absolute;
  inset: auto 0 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  max-height: 86%;
  border-radius: 7cqw 7cqw 0 0;
  background: #fff;
  box-shadow: 0 -2cqw 8cqw rgba(0, 0, 0, .12);
  transform: translateY(102%);
  visibility: hidden;
  transition: transform .4s var(--curva), visibility 0s .4s;
}
.hoja.is-on { transform: none; visibility: visible; transition: transform .5s var(--curva); }
.hoja::before {
  content: "";
  align-self: center;
  width: 10cqw;
  height: 1.2cqw;
  margin-top: 2.4cqw;
  border-radius: 1cqw;
  background: #d6d6dd;
}
.hoja__head { display: flex; align-items: center; justify-content: space-between; gap: 3cqw; padding: 2cqw 5cqw 1.5cqw; }
.hoja__titulo { font-size: 4.8cqw; font-weight: 700; letter-spacing: -0.025em; }
.hoja__cerrar {
  display: grid;
  place-items: center;
  width: 8.5cqw;
  height: 8.5cqw;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: #eef0f4;
  color: var(--tinta);
  cursor: pointer;
}
.hoja__cerrar svg { width: 4cqw; height: 4cqw; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.hoja__cuerpo { overflow-y: auto; padding: 1cqw 5cqw 6cqw; scrollbar-width: none; }
.hoja__cuerpo::-webkit-scrollbar { display: none; }

.hoja__etq { font-size: 3cqw; font-weight: 600; color: var(--gris); }
.hoja__monto-fila { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; margin-top: .4cqw; }
.hoja__monto { font-size: 8.2cqw; font-weight: 700; line-height: 1.1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.hoja .estado { padding: 1.5cqw 2.6cqw; font-size: 2.8cqw; }
.hoja .estado--pend-chip::before { width: 1.6cqw; height: 1.6cqw; }

.hoja__datos { margin-top: 2.4cqw; }
.hoja__datos > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3cqw;
  padding: 2.6cqw 0;
  border-top: 1px solid #eef0f4;
  font-size: 3.2cqw;
}
.hoja__datos dt { flex: none; color: var(--gris); }
.hoja__datos dd { display: flex; align-items: center; gap: 1.6cqw; min-width: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.hoja__datos .banco { font-size: 2.7cqw; }

.hoja__aviso {
  margin-top: 2cqw;
  padding: 3cqw 3.4cqw;
  border-radius: 3.6cqw;
  background: #f3f5f9;
  font-size: 2.9cqw;
  line-height: 1.5;
  color: #45454c;
}
.hoja__aviso b { display: block; margin-bottom: .6cqw; font-weight: 600; color: var(--gris); }

.hoja__hecha { display: flex; align-items: center; gap: 1.6cqw; margin-top: 3.4cqw; font-size: 3.1cqw; font-weight: 600; color: var(--ok); }
.hoja__hecha svg { width: 3.6cqw; height: 3.6cqw; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.hoja__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2cqw;
  width: 100%;
  min-height: 11.5cqw;
  margin-top: 3.6cqw;
  border: 0;
  border-radius: 999px;
  background: var(--violeta);
  color: #fff;
  font: 600 3.6cqw/1 var(--fuente);
  cursor: pointer;
}
.hoja__btn--claro { background: #fff; color: var(--tinta); box-shadow: inset 0 0 0 1px var(--linea-2); }
.hoja__btn svg { width: 4.4cqw; height: 4.4cqw; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* El ticket sale de la térmica de a renglones */
.hoja .ticket { margin-top: 1cqw; }
.hoja .ticket pre {
  padding: 4cqw 4.4cqw 6cqw;
  font-size: 3.15cqw;
  box-shadow: 0 0 0 1px #eef0f4, 0 2cqw 6cqw rgba(18, 18, 20, .08);
}
.ticket--imprime pre { animation: imprimir 1.5s steps(15, end) both; }

@keyframes imprimir {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0); }
}

/* Dónde tocar ahora: un pulso en el botón o en la fila que sigue */
.probar-foco { animation: foco 1.8s var(--curva-suave) infinite; }
.fila.probar-foco,
.seg__btn.probar-foco { animation: foco-fondo 1.8s ease-in-out infinite; }
.fila--nueva.probar-foco { animation: fila-entra .8s var(--curva) both, foco-fondo 1.8s ease-in-out .8s infinite; }
.seg__btn.probar-foco { --foco-base: rgba(223, 249, 148, 0); }

@keyframes foco {
  0% { box-shadow: 0 0 0 0 rgba(22, 106, 234, .5); }
  70%, 100% { box-shadow: 0 0 0 12px rgba(22, 106, 234, 0); }
}
@keyframes foco-fondo {
  0%, 100% { background-color: var(--foco-base, #fff); }
  50% { background-color: #ecf8c4; }
}

/* ---------- Recorrido ---------- */

.tour { padding-top: 16px; }

.tour__grid { display: grid; grid-template-columns: 1fr; }

.tour__steps { padding-bottom: 12vh; }

.tour__stage {
  --tour-fijo: 340px;
  position: sticky;
  top: var(--nav-h);
  order: -1;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  height: calc(100vh - var(--nav-h));
  height: calc(100svh - var(--nav-h));
  margin-inline: calc(var(--gutter) * -1);
  padding: 12px var(--gutter) 16px;
  background: var(--papel);
}

.tstep {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  min-height: 72vh;
  min-height: 72svh;
  opacity: 0;
  pointer-events: none;
}

.tstep__n { font-size: 14px; font-weight: 600; color: var(--violeta); }

.tstep__title {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 680;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.tstep p { font-size: 18px; line-height: 1.6; color: var(--gris); }

.tstep__funcs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; list-style: none; }

.tstep__funcs li {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--papel);
  box-shadow: 0 0 0 1px var(--linea-2);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .45s var(--curva);
}
.tstep.is-active .tstep__funcs li { opacity: 1; transform: none; }
.tstep.is-active .tstep__funcs li:nth-child(2) { transition-delay: .06s; }
.tstep.is-active .tstep__funcs li:nth-child(3) { transition-delay: .12s; }
.tstep.is-active .tstep__funcs li:nth-child(4) { transition-delay: .18s; }
.tstep.is-active .tstep__funcs li:nth-child(5) { transition-delay: .24s; }
.tstep__funcs li:first-child { background: var(--lima); box-shadow: none; }

.tour__meta {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}

.tour__count { display: flex; align-items: baseline; gap: 4px; font-size: 21px; font-weight: 680; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tour__de { color: var(--gris-2); }
.tour__nombre { margin-left: 10px; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: var(--gris); }

.tour__dots { display: flex; gap: 6px; }

.tour__dot {
  position: relative;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--linea-2);
  cursor: pointer;
  transition: width .35s var(--curva), background-color .3s ease;
}
.tour__dot:hover { background: var(--gris-2); }
.tour__dot[aria-current="step"] { width: 28px; background: var(--violeta); }
/* Botones de 10 px con zona de toque de 24 px */
.tour__dot::after { content: ""; position: absolute; inset: -7px -2px; }

.tour__bar { display: none; position: relative; height: 2px; overflow: hidden; border-radius: 2px; background: var(--linea); }
.tour__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--violeta);
  transform-origin: 0 50%;
  transform: scaleX(var(--tour, 0));
}

/* Celular y tablet: la escena ocupa toda la pantalla y queda fija, como unas «historias»: el
   avance arriba, el dispositivo en el medio y la tarjeta con la función abajo. Los pasos de
   texto quedan invisibles detrás y solo marcan cuánto hay que bajar para pasar al siguiente. */
.tour__top { display: grid; gap: 10px; }

.tour__segs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.tour__segs i { position: relative; height: 3px; overflow: hidden; border-radius: 3px; background: var(--linea-2); }
.tour__segs i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--violeta);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}

.tour__top { position: relative; }
.tour__fila { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* El nombre del paso abre el índice para saltar a otro */
.tour__etq {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 36px;
  margin-left: -10px;
  padding: 0 8px 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--violeta);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.tour__etq span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tour__etq svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--curva); }
.tour__etq[aria-expanded="true"] { background: var(--segmento); }
.tour__etq[aria-expanded="true"] svg { transform: rotate(180deg); }

.tour__acciones { display: flex; align-items: center; gap: 8px; flex: none; }
.tour__wa {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--papel);
  box-shadow: 0 0 0 1px var(--linea-2);
}
.tour__wa .wa { width: 18px; height: 18px; color: var(--wa); }

.tour__indice {
  position: absolute;
  top: 100%;
  left: -6px;
  right: -6px;
  z-index: 20;
  max-height: 62svh;
  margin-top: 6px;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  border-radius: var(--r);
  background: var(--papel);
  box-shadow: var(--sombra-3);
}
.tour__indice[hidden] { display: none; }
.tour__indice button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-align: left;
  cursor: pointer;
}
.tour__indice button:hover,
.tour__indice button:active { background: var(--lienzo); }
.tour__indice button span { width: 22px; font-size: 13px; color: var(--gris-2); font-variant-numeric: tabular-nums; }
.tour__indice [aria-current="step"],
.tour__indice [aria-current="step"] span { color: var(--violeta); }

.tour__stage .combo { position: relative; display: flex; flex: 1; min-height: 0; align-items: center; justify-content: center; }

/* Tocar a los costados del dispositivo pasa de pantalla; las flechas avisan que se puede */
.tour__tap {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  padding: 0 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.tour__tap--ant { left: calc(var(--gutter) * -1); width: calc(35% + var(--gutter)); justify-content: flex-start; }
.tour__tap--sig { right: calc(var(--gutter) * -1); width: calc(65% + var(--gutter)); justify-content: flex-end; }
.tour__tap[hidden] { display: none; }
.tour__tap svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 0 0 1px var(--linea), 0 6px 16px -8px rgba(18, 18, 20, .35);
  fill: none;
  stroke: var(--tinta);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tour__tap:focus-visible { outline-offset: -4px; border-radius: 18px; }

.tour__consulta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  margin-left: auto;
  padding: 0 14px 0 11px;
  border-radius: 999px;
  background: var(--papel);
  box-shadow: 0 0 0 1px var(--linea-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.tour__consulta .wa { width: 16px; height: 16px; color: var(--wa); }
.tour__stage .combo .iphone { --cel-ancho: min(64vw, calc((100vh - var(--nav-h) - var(--tour-fijo)) * .48)); }
.tour__stage[data-vista="pc"] .laptop { width: 100%; }

.tour__vista { display: flex; justify-content: center; }

.tour__card { display: grid; align-content: start; gap: 8px; min-height: 176px; }
.tour__card-t { font-size: clamp(23px, 6.6vw, 28px); font-weight: 680; line-height: 1.15; letter-spacing: -0.03em; }
.tour__card-p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  font-size: 15px;
  line-height: 1.5;
  color: var(--gris);
}
.tour__card-f {
  display: flex;
  gap: 6px;
  margin: 4px calc(var(--gutter) * -1) 0;
  padding: 0 var(--gutter);
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}
.tour__card-f::-webkit-scrollbar { display: none; }
.tour__card-f li {
  flex: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--papel);
  box-shadow: 0 0 0 1px var(--linea-2);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.tour__card-f li:first-child { background: var(--lima); box-shadow: none; }

.tour__card.entra > * { animation: tarjeta-entra .45s var(--curva) both; }
.tour__card.entra > :nth-child(2) { animation-delay: .05s; }
.tour__card.entra > :nth-child(3) { animation-delay: .1s; }

@keyframes tarjeta-entra {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@supports (height: 100svh) {
  .tour__stage .combo .iphone { --cel-ancho: min(64vw, calc((100svh - var(--nav-h) - var(--tour-fijo)) * .48)); }
}

@media (max-width: 899px) and (max-height: 700px) {
  .tour__stage { --tour-fijo: 296px; }
  .tour__card { min-height: 0; }
  .tour__card-p { -webkit-line-clamp: 2; }
}

/* Celular acostado: no entra un iPhone parado, así que se muestra la computadora y solo el título */
@media (max-width: 899px) and (max-height: 500px) and (orientation: landscape) {
  .tour__stage { --tour-fijo: 150px; gap: 8px; padding-block: 8px; }
  .tour__stage.con-vista .iphone,
  .tour__vista,
  .tour__card-p,
  .tour__card-f { display: none; }
  .tour__stage.con-vista .laptop {
    display: block;
    width: min(100%, calc((100vh - var(--nav-h) - var(--tour-fijo)) * 1.5));
  }
  .tour__card { min-height: 0; text-align: center; }
  .tour__card-t { font-size: 20px; }
}

/* ---------- En el celular ---------- */

.bolsillo { overflow: hidden; background: linear-gradient(180deg, var(--papel) 0%, #e4e8f6 55%, var(--papel) 100%); }

.bolsillo__fila {
  display: flex;
  gap: 16px;
  margin-inline: calc(var(--gutter) * -1);
  padding: 8px var(--gutter) 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.bolsillo__fila::-webkit-scrollbar { display: none; }
.bolsillo__item { flex: 0 0 min(64vw, 260px); margin: 0; scroll-snap-align: center; }

.bolsillo__item figcaption { display: grid; gap: 4px; margin-top: 20px; font-size: 15px; color: var(--gris); }
.bolsillo__item figcaption strong { font-size: 18px; font-weight: 640; letter-spacing: -0.02em; color: var(--tinta); }

/* ---------- Tablet y computadora ---------- */

@media (min-width: 700px) {
  .demo-hero .ctas { display: flex; width: auto; }
  .demo-hero .ctas .btn { padding-inline: 24px; }
}

@media (min-width: 900px) {
  .demo-hero { padding-top: calc(var(--nav-h) + 64px); }
  .demo-hero .display { font-size: clamp(48px, 6vw, 80px); }
  .demo-hero__stage { margin-top: 72px; }
  .demo-hero__stage .combo { padding: 0 13% 6% 0; }
  .demo-hero__stage .laptop { width: auto; }
  .demo-hero__stage .combo .iphone { width: 22.5%; }

  /* Probalo vos: los pasos y la auditoría a la izquierda, el iPhone a la derecha */
  .probar__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "texto escena" "rol escena" "audit escena";
    grid-template-rows: auto auto 1fr;
    align-items: start;
    gap: 24px 64px;
  }
  .probar__texto { grid-area: texto; }
  .probar__escena { grid-area: escena; align-self: center; }
  .probar__rol { grid-area: rol; justify-content: flex-start; }
  .probar__audit { grid-area: audit; justify-self: start; }
  .probar__iphone { width: 340px; }
  .probar__avance { display: none; }
  .probar__pasos { display: grid; margin-top: 4px; }
  .probar__pasos li { display: flex; padding: 7px 0; font-size: 17px; font-weight: 500; color: var(--gris); }
  .probar__pasos li::before { display: grid; }
  .probar__pasos li.is-actual { color: var(--tinta); font-weight: 640; }
  .probar__pasos li:not(.is-actual):not(.is-hecho)::before {
    background: transparent;
    color: var(--violeta);
    box-shadow: inset 0 0 0 1.5px rgba(16, 21, 133, .3);
  }
  .probar__llega { width: auto; margin-top: 4px; }

  .tour { padding-top: 112px; }
  .tour__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
  .tour__stage {
    order: 0;
    justify-content: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    background: none;
  }
  .tour__top, .tour__vista, .tour__card, .tour__tap { display: none; }
  .tour__meta { display: flex; }
  .tour__bar { display: block; }
  .tour__stage .combo { display: block; flex: none; }

  .tstep { min-height: 92vh; min-height: 92svh; opacity: .22; pointer-events: auto; transition: opacity .45s ease; }
  .tstep.is-active { opacity: 1; }

  .bolsillo__fila {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 3vw, 40px);
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  .bolsillo__item:nth-child(even) { margin-top: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .barra-progreso { animation: none; }
  .tstep__funcs li { opacity: 1; transform: none; }
  /* Sin pulso: el lugar donde tocar queda marcado quieto */
  .probar-foco { box-shadow: 0 0 0 3px var(--lima); }
  .fila.probar-foco,
  .seg__btn.probar-foco { background-color: #ecf8c4; box-shadow: none; }
}
