/* Sa Comanda, web v2: dirección clara y luminosa (estilo Apple) con escenas animadas.
   Marca y neutros de la app (SaComanda/DESIGN.md). */

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  --brand-25: #f5f8ff;
  --brand-50: #ecf3ff;
  --brand-100: #dde9ff;
  --brand-300: #9cb9ff;
  --brand-400: #6f86ff;
  --brand-500: #465fff;
  --brand-600: #3641f5;
  --brand-700: #2a31d8;

  --bg: #ffffff;
  --bg-soft: #fbfbfd;
  --bg-alt: #f5f5f7;
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.13);
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #8e8e93;

  /* Modo claro de la app, para el TPV y el móvil */
  --app-bg: #fafaf8;
  --app-panel: #ffffff;
  --app-card: #ffffff;
  --app-soft: #f4f3f0;
  --app-line: #e9e7e2;
  --app-ink: #18181b;
  --app-ink-2: #52525b;
  --app-ink-3: #71717a;

  --success: #12b76a;
  --success-50: #ecfdf3;
  --success-700: #027a48;
  --warning: #f79009;
  --warning-50: #fffaeb;
  --warning-300: #fdb022;
  --warning-700: #b54708;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 24px 48px -28px rgba(20, 24, 60, 0.18);
  --shadow-float: 0 1px 2px rgba(0, 0, 0, 0.05), 0 40px 80px -36px rgba(20, 24, 60, 0.28);

  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1240px;
  --gutter: 24px;
  --font: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 100px;
  background: var(--bg);
  scrollbar-width: thin;
  scrollbar-color: var(--brand-500) transparent;
}

/* Barra de scroll fina en azul de marca (Safari y Chrome antiguos) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 99px;
  background: var(--brand-500) padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-600) padding-box;
}

body.v2 {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

:where(.v2) img {
  display: block;
  max-width: 100%;
  height: auto;
}

:where(.v2) :is(h1, h2, h3, p, dl, dd, ul, ol, figure) {
  margin: 0;
}

:where(.v2) :is(ul, ol) {
  padding: 0;
  list-style: none;
}

:where(.v2) a {
  color: inherit;
}

:where(.v2) button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.v2 :focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 8px;
}

::selection {
  background: var(--brand-100);
  color: var(--text);
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* Titulares con un leve degradado de tinta */
.grad,
.hero__title .mline > span,
.price__amount {
  background: linear-gradient(180deg, #1d1d1f 0%, #1d1d1f 50%, #55555d 115%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Botones y enlaces ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.2s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--brand-500);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 28px -10px rgba(70, 95, 255, 0.75);
}

.btn--primary:hover {
  background: var(--brand-600);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 14px 36px -10px rgba(70, 95, 255, 0.9);
}

.btn--glass {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn--glass:hover {
  border-color: rgba(0, 0, 0, 0.24);
  background: #fff;
}

.btn--sm {
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14.5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 16px -8px rgba(70, 95, 255, 0.7);
}

.btn--lg {
  height: 56px;
  padding: 0 28px;
  border-radius: 16px;
  font-size: 16.5px;
}

.link {
  color: var(--brand-600);
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: text-decoration-color 0.2s, color 0.2s;
}

.link:hover,
a:hover > .link,
a:hover .link {
  color: var(--brand-700);
  text-decoration-color: currentColor;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 20px -12px rgba(20, 24, 60, 0.2);
  animation: fade 1s 0.1s both;
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(18, 183, 106, 0.16);
}

/* ---------- Navegación ----------
   Arriba del todo va integrada en la página; al bajar se convierte en una pastilla flotante. */

.nav {
  --nav-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  padding: 0 var(--gutter);
  pointer-events: none;
  transition: top 0.8s var(--nav-ease);
}

.nav__bar,
.nav__menu {
  pointer-events: auto;
}

.nav__bar {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: calc(var(--wrap) + 24px);
  height: 80px;
  margin: 0 auto;
  padding: 0 12px;
  border-radius: 0;
  animation: navIn 1s 0.15s var(--ease-out) backwards;
  transition:
    max-width 0.9s var(--nav-ease),
    height 0.8s var(--nav-ease),
    padding 0.8s var(--nav-ease),
    border-radius 0.8s var(--nav-ease);
}

/* El cristal de la pastilla vive en una capa propia para poder aparecer con suavidad */
.nav__bar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 18px 40px -22px rgba(20, 24, 60, 0.3);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.6s var(--nav-ease), transform 0.8s var(--nav-ease);
}

.nav.is-open,
.nav.is-scrolled {
  top: 12px;
}

.nav.is-open .nav__bar,
.nav.is-scrolled .nav__bar {
  max-width: 1080px;
  height: 62px;
  padding: 0 9px 0 18px;
  border-radius: 20px;
}

.nav.is-open .nav__bar::before,
.nav.is-scrolled .nav__bar::before {
  opacity: 1;
  transform: none;
}

/* ---------- Liquid glass ----------
   Brillos especulares (todos los navegadores) y refracción real con filtro SVG (Chrome/Edge). */

.nav__svg {
  position: absolute;
  width: 0;
  height: 0;
}

.nav__bar::before {
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    inset 0 -1px 1px rgba(0, 0, 0, 0.05),
    inset 10px 10px 22px -18px rgba(255, 255, 255, 0.9),
    inset -12px -10px 24px -20px rgba(255, 255, 255, 0.75),
    0 1px 2px rgba(0, 0, 0, 0.03),
    0 18px 40px -22px rgba(20, 24, 60, 0.32);
}

/* Borde de luz: más brillante arriba a la izquierda y abajo a la derecha, como un cristal curvo */
.nav__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.25) 28%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.3) 72%,
    rgba(255, 255, 255, 0.9) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--nav-ease);
}

/* Reflejo que sigue al ratón */
.nav__shine {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--nav-ease);
}

.nav__shine::before {
  content: "";
  position: absolute;
  top: -60%;
  left: var(--mx, 30%);
  width: 340px;
  height: 220%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 70%);
  transform: translateX(-50%);
  transition: left 0.5s var(--nav-ease);
}

.nav.is-scrolled .nav__bar::after,
.nav.is-open .nav__bar::after,
.nav.is-scrolled .nav__shine,
.nav.is-open .nav__shine {
  opacity: 1;
}

/* Refracción real: el fondo se curva en los bordes como a través de una lente */
.has-liquid-glass .nav__bar::before {
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: url(#nav-glass) blur(8px) saturate(180%) brightness(1.04);
  -webkit-backdrop-filter: url(#nav-glass) blur(8px) saturate(180%) brightness(1.04);
}

/* La «gota» de cristal que se desliza entre enlaces */
.nav__glide {
  background: rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 6px 14px -8px rgba(20, 24, 60, 0.35);
}

/* Progreso de lectura en el borde inferior de la pastilla */
.nav__progress {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}

.nav__progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--brand-300), var(--brand-500));
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

.nav.is-scrolled .nav__progress {
  opacity: 1;
}

@keyframes navIn {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
}

.nav__logo {
  justify-self: start;
}

.nav__logo img {
  width: auto;
  height: 38px;
  transition: height 0.8s var(--nav-ease);
}

.nav.is-scrolled .nav__logo img {
  height: 32px;
}

.nav__links {
  position: relative;
  display: flex;
  gap: 2px;
}

.nav__links a,
.nav__login {
  position: relative;
  z-index: 1;
  padding: 8px 13px;
  border-radius: 10px;
  color: #3a3a3f;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s;
}

.nav__links a {
  animation: navItem 0.9s var(--ease-out) backwards;
}

.nav__links a:nth-child(2) { animation-delay: 0.3s; }
.nav__links a:nth-child(3) { animation-delay: 0.36s; }
.nav__links a:nth-child(4) { animation-delay: 0.42s; }
.nav__links a:nth-child(5) { animation-delay: 0.48s; }
.nav__links a:nth-child(6) { animation-delay: 0.54s; }

@keyframes navItem {
  from {
    opacity: 0;
    transform: translateY(-8px);
    filter: blur(4px);
  }
}

.nav__links a:hover,
.nav__login:hover {
  color: var(--text);
}

/* Resaltado que se desliza entre enlaces */
.nav__glide {
  position: absolute;
  top: 50%;
  left: 0;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.05);
  opacity: 0;
  pointer-events: none;
  transform: translate(var(--gx, 0), -50%);
  width: var(--gw, 0);
  transition:
    transform 0.45s var(--nav-ease),
    width 0.45s var(--nav-ease),
    opacity 0.25s;
}

.nav__links.is-hovering .nav__glide {
  opacity: 1;
}

.nav__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  animation: navItem 0.9s 0.5s var(--ease-out) backwards;
}

.nav__login:hover {
  background: rgba(0, 0, 0, 0.045);
}

.nav__toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.05);
}

.nav__toggle span {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s var(--ease);
}

.nav__toggle span:first-child {
  top: 17px;
}

.nav__toggle span:last-child {
  top: 23px;
}

.nav__toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.nav__menu {
  max-width: 1080px;
  margin: 8px auto 0;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-float);
  animation: menuIn 0.35s var(--ease-out) both;
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
}

.nav__menu > a {
  display: block;
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
}

.nav__menu > a:hover {
  background: var(--bg-alt);
}

.nav__menu-actions {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 6px 6px;
  border-top: 1px solid var(--line);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 168px 0 96px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 60%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 40% at 30% -4%, rgba(70, 95, 255, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 36% at 72% -2%, rgba(156, 120, 255, 0.13), transparent 70%),
    radial-gradient(ellipse 55% 26% at 50% 74%, rgba(70, 95, 255, 0.14), transparent 72%);
  /* Se desvanece abajo para que la sección no termine con un corte */
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 98%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 98%);
  animation: fade 1.6s both;
}

.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 60% 42% at 50% 0%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 42% at 50% 0%, #000 15%, transparent 75%);
}

.hero__copy {
  position: relative;
  text-align: center;
}

.hero__title {
  margin-top: 28px;
  font-size: clamp(46px, 9.4vw, 140px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.052em;
}

.mline {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.mline > span {
  display: inline-block;
  animation: lineUp 1.3s var(--ease-out) both;
}

.mline + .mline > span {
  animation-delay: 0.12s;
}

@keyframes lineUp {
  from {
    transform: translateY(108%);
  }
}

.hero__lead {
  max-width: 580px;
  margin: 30px auto 0;
  color: var(--text-2);
  font-size: 19px;
  line-height: 1.55;
  animation: rise 1.1s 0.45s var(--ease-out) both;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 38px;
  animation: rise 1.1s 0.55s var(--ease-out) both;
}

.hero__device {
  position: relative;
  margin-top: 96px;
  padding: 0 var(--gutter);
  perspective: 1800px;
  perspective-origin: 50% 0%;
  animation: deviceIn 1.6s 0.7s var(--ease-out) both;
}

@keyframes deviceIn {
  from {
    opacity: 0;
    transform: translateY(120px);
  }
}

.hero__tilt {
  --rx: 24deg;
  --s: 0.9;
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  transform: rotateX(var(--rx)) scale(var(--s));
  transform-origin: 50% 0%;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero__tilt::before {
  content: "";
  position: absolute;
  inset: 14% 6% -8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(70, 95, 255, 0.32), rgba(156, 120, 255, 0.1) 60%, transparent);
  filter: blur(50px);
}

.hero__hint {
  position: relative;
  max-width: 640px;
  margin: 44px auto 0;
  padding: 0 var(--gutter);
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.5;
  text-align: center;
}

.hero__hint strong {
  color: var(--text);
  font-weight: 600;
}

.hero__hint-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(70, 95, 255, 0.16);
  vertical-align: 2px;
}

/* El TPV del hero es una demostración que se reproduce sola */
.pos {
  pointer-events: none;
  user-select: none;
}

.receipt.is-leaving {
  opacity: 0;
  transform: rotate(2.5deg) translateY(16px);
  transition: opacity 0.5s, transform 0.5s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

/* ---------- TPV del hero: réplica de la pantalla de sala de la app (TpvSalaPage) ----------
   Una sola unidad (--u) hace de «rem» de la app: todo escala a la vez, como en el terminal. */

.pos {
  position: relative;
  padding: 12px;
  border-radius: 36px;
  background: linear-gradient(180deg, #2c2d33, #0e0e11);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 70px 110px -50px rgba(20, 24, 60, 0.55),
    0 30px 60px -30px rgba(0, 0, 0, 0.25);
}

.tpv {
  --u: 13px;
  --g50: #fafaf8;
  --g100: #f4f3f0;
  --g200: #e9e7e2;
  --g300: #dcdad4;
  --g400: #a1a1a8;
  --g500: #71717a;
  --g600: #52525b;
  --g700: #3a3a41;
  --g900: #18181b;
  --shadow-card: 0 1px 2px rgba(26, 24, 21, 0.04), 0 6px 20px -6px rgba(26, 24, 21, 0.08);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 0.625);
  height: calc(var(--u) * 50);
  padding: calc(var(--u) * 0.5) calc(var(--u) * 0.625) calc(var(--u) * 0.625);
  overflow: hidden;
  border-radius: 25px;
  background: var(--g50);
  color: var(--g900);
  font-size: var(--u);
  line-height: 1.4;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.tpv button {
  font: inherit;
  cursor: pointer;
}

.tpv button:active {
  scale: 0.97;
}

.tpv .ico {
  flex: none;
  width: calc(var(--u) * 1);
  height: calc(var(--u) * 1);
}

.tpv-h {
  font-size: calc(var(--u) * 0.9375);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--g900);
}

.tpv-h--sm {
  font-size: calc(var(--u) * 0.875);
}

.tpv-count {
  font-size: calc(var(--u) * 0.75);
  font-weight: 500;
  color: var(--g400);
}

.tpv-label {
  font-size: calc(var(--u) * 0.75);
  font-weight: 500;
  color: var(--g500);
}

/* Barra superior flotante */
.tpv-top {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 0.75);
  padding: calc(var(--u) * 0.375) calc(var(--u) * 0.75) calc(var(--u) * 0.375) calc(var(--u) * 0.5);
  border: 1px solid rgba(233, 231, 226, 0.7);
  border-radius: calc(var(--u) * 1.125);
  background: #fff;
  box-shadow: 0 1px 2px rgba(26, 24, 21, 0.04), 0 8px 24px -12px rgba(26, 24, 21, 0.12);
}

.tpv-top__logo {
  width: auto !important;
  height: calc(var(--u) * 2.25) !important;
  margin: 0 calc(var(--u) * 0.5);
}

.tpv-top__nav {
  display: flex;
  flex: 1;
  gap: calc(var(--u) * 0.375);
  min-width: 0;
}

.tpv-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(var(--u) * 0.2);
  height: calc(var(--u) * 2.75);
  min-width: calc(var(--u) * 4.75);
  padding: 0 calc(var(--u) * 0.5);
  border-radius: calc(var(--u) * 0.75);
  color: var(--g500);
  font-size: calc(var(--u) * 0.75);
  font-weight: 600;
  line-height: 1;
}

.tpv-tab .ico {
  color: var(--g400);
}

.tpv-tab.is-active {
  background: #465fff;
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(70, 95, 255, 0.9);
}

.tpv-tab.is-active .ico {
  color: #fff;
}

.tpv-top__end {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 0.75);
}

.tpv-local {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 0.5);
  height: calc(var(--u) * 2.75);
  padding: 0 calc(var(--u) * 0.75) 0 calc(var(--u) * 0.375);
  border-radius: calc(var(--u) * 0.75);
  font-size: calc(var(--u) * 0.8125);
  font-weight: 600;
}

.tpv-local__avatar {
  display: grid;
  place-items: center;
  width: calc(var(--u) * 2);
  height: calc(var(--u) * 2);
  border-radius: calc(var(--u) * 0.625);
  background: #465fff;
  color: #fff;
}

.tpv-online {
  width: calc(var(--u) * 0.5);
  height: calc(var(--u) * 0.5);
  border-radius: 50%;
  background: #12b76a;
  box-shadow: 0 0 0 calc(var(--u) * 0.25) rgba(18, 183, 106, 0.15);
}

/* Rejilla de tres columnas: Mesas | Carta | Comanda */
.tpv-grid {
  display: grid;
  grid-template-columns: calc(var(--u) * 13.75) minmax(0, 1fr) calc(var(--u) * 19.5);
  flex: 1;
  gap: calc(var(--u) * 0.75);
  min-height: 0;
}

.tpv-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(233, 231, 226, 0.7);
  border-radius: calc(var(--u) * 1.375);
  background: #fff;
  box-shadow: var(--shadow-card);
}

/* Mesas */
.tpv-tables {
  padding: calc(var(--u) * 0.875);
}

.tpv-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: calc(var(--u) * 0.75);
}

.tpv-seg {
  display: flex;
  gap: calc(var(--u) * 0.25);
  margin-bottom: calc(var(--u) * 0.75);
  padding: calc(var(--u) * 0.25);
  border-radius: calc(var(--u) * 0.75);
  background: var(--g100);
}

.tpv-seg span {
  display: grid;
  place-items: center;
  height: calc(var(--u) * 2.25);
  padding: 0 calc(var(--u) * 0.75);
  border-radius: calc(var(--u) * 0.5);
  color: var(--g600);
  font-size: calc(var(--u) * 0.8125);
  font-weight: 600;
}

.tpv-seg .is-active {
  background: #465fff;
  color: #fff;
  box-shadow: 0 4px 10px -4px rgba(70, 95, 255, 0.7);
}

.tpv-tables__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--u) * 0.625);
  align-content: start;
  overflow: hidden;
}

.tcard {
  display: flex;
  flex-direction: column;
  min-height: calc(var(--u) * 5.25);
  padding: calc(var(--u) * 0.625) calc(var(--u) * 0.75);
  border: 1px solid rgba(233, 231, 226, 0.8);
  border-radius: calc(var(--u) * 1.25);
  background: #fff;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.tcard--ocupada {
  border-color: rgba(254, 223, 137, 0.8);
  background: linear-gradient(180deg, #fff, rgba(255, 250, 235, 0.7));
}

.tcard.is-selected {
  border-color: #465fff;
  background: rgba(236, 243, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(70, 95, 255, 0.14);
}

.tcard__top {
  display: flex;
  justify-content: space-between;
  color: var(--g400);
  font-size: calc(var(--u) * 0.6875);
  font-weight: 500;
  line-height: calc(var(--u) * 1);
}

.tcard__pax {
  color: var(--g500);
}

.tcard__name {
  font-size: calc(var(--u) * 0.9375);
  font-weight: 600;
  line-height: calc(var(--u) * 1.25);
  letter-spacing: -0.01em;
}

.tcard__foot {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 0.375);
  margin-top: auto;
  padding-top: calc(var(--u) * 0.5);
}

.tcard__dot {
  width: calc(var(--u) * 0.375);
  height: calc(var(--u) * 0.375);
  border-radius: 50%;
  background: #12b76a;
}

.tcard--ocupada .tcard__dot {
  background: #f79009;
}

.tcard--reservada .tcard__dot {
  background: #465fff;
}

.tcard__amount {
  font-size: calc(var(--u) * 0.8125);
  font-weight: 600;
  line-height: 1;
}

.tcard__state {
  color: #027a48;
  font-size: calc(var(--u) * 0.6875);
  font-weight: 500;
  line-height: 1;
}

.tcard--ocupada .tcard__state {
  color: #b54708;
}

.tcard--reservada .tcard__state {
  color: #3641f5;
}

/* Carta */
.tpv-catalog {
  padding: calc(var(--u) * 1);
}

.tpv-catalog__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--u) * 0.5);
  min-height: calc(var(--u) * 2.75);
  margin-bottom: calc(var(--u) * 1);
}

.tpv-catalog__title {
  position: absolute;
  left: 50%;
  max-width: 40%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateX(-50%);
}

.tpv-tickets,
.tpv-quick,
.tpv-back {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  white-space: nowrap;
}

.tpv-tickets {
  gap: calc(var(--u) * 0.5);
  height: calc(var(--u) * 2.5);
  padding: 0 calc(var(--u) * 0.875);
  border: 1px solid var(--g200);
  border-radius: calc(var(--u) * 0.75);
  background: #fff;
  color: var(--g700);
  font-size: calc(var(--u) * 0.875);
  box-shadow: 0 1px 2px rgba(26, 24, 21, 0.05);
}

.tpv-tickets .ico {
  width: calc(var(--u) * 0.875);
  height: calc(var(--u) * 0.875);
}

.tpv-back {
  gap: calc(var(--u) * 0.375);
  height: calc(var(--u) * 2.25);
  padding: 0 calc(var(--u) * 0.75) 0 calc(var(--u) * 0.375);
  border: 1px solid #c2d6ff;
  border-radius: calc(var(--u) * 0.5);
  background: #ecf3ff;
  color: #2a31d8;
  font-size: calc(var(--u) * 0.875);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tpv-back:hover {
  border-color: #9cb9ff;
  background: #dde9ff;
}

.tpv-back__chev {
  display: grid;
  place-items: center;
  width: calc(var(--u) * 1.5);
  height: calc(var(--u) * 1.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
}

.tpv-quick {
  gap: calc(var(--u) * 0.25);
  height: calc(var(--u) * 2.5);
  padding: 0 calc(var(--u) * 0.875);
  border-radius: calc(var(--u) * 0.75);
  background: #465fff;
  color: #fff;
  font-size: calc(var(--u) * 0.875);
  box-shadow: 0 6px 16px -8px rgba(20, 19, 17, 0.6);
}

.tpv-scroll {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.tpv-cats,
.tpv-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(calc(var(--u) * 10.5), 1fr));
  grid-auto-rows: max-content;
  gap: calc(var(--u) * 0.625);
  align-content: start;
}

.tpv-cats {
  animation: tpvIn 0.25s ease both;
}

.tpv-products:not([hidden]) {
  animation: tpvIn 0.25s ease both;
}

@keyframes tpvIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.ctile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: calc(var(--u) * 8);
  padding: calc(var(--u) * 0.75);
  overflow: hidden;
  border: 0;
  border-radius: calc(var(--u) * 1.25);
  background: var(--g900);
  color: #fff;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.ctile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--img) center / cover no-repeat;
  transition: transform 0.5s ease;
}

.ctile:hover::before {
  transform: scale(1.05);
}

.ctile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3) 55%, rgba(0, 0, 0, 0.05));
}

.ctile--featured::before {
  background:
    radial-gradient(circle at 78% 30%, rgba(255, 255, 255, 0.22), transparent 40%),
    linear-gradient(140deg, #7592ff 0%, #3641f5 55%, #262e89 100%);
}

.ctile--featured::after {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.25), transparent 60%);
}

.ctile__count,
.ctile__name {
  position: relative;
  z-index: 1;
}

.ctile__count {
  position: absolute;
  top: calc(var(--u) * 0.625);
  right: calc(var(--u) * 0.625);
  padding: calc(var(--u) * 0.125) calc(var(--u) * 0.5);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  font-size: calc(var(--u) * 0.6875);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.ctile__name {
  font-size: calc(var(--u) * 1);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(var(--u) * 9);
  padding: calc(var(--u) * 0.625);
  overflow: hidden;
  border: 1px solid rgba(233, 231, 226, 0.8);
  border-radius: calc(var(--u) * 1.25);
  background: #fff;
  color: var(--g900);
  text-align: left;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.pcard:hover {
  border-color: var(--g300);
  box-shadow: 0 1px 2px rgba(26, 24, 21, 0.06), 0 1px 3px rgba(26, 24, 21, 0.04);
}

.pcard__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: calc(var(--u) * 0.5);
  border-radius: calc(var(--u) * 0.75);
  background: var(--g100) center / cover no-repeat;
}

.pcard__name {
  display: -webkit-box;
  width: 100%;
  min-height: 2.5em;
  padding: 0 calc(var(--u) * 0.125);
  overflow: hidden;
  font-size: calc(var(--u) * 0.8438);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pcard__foot {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--u) * 0.5);
  margin-top: calc(var(--u) * 0.5);
  padding: 0 calc(var(--u) * 0.125);
}

.pcard__price {
  font-size: calc(var(--u) * 0.875);
  font-weight: 600;
}

.pcard__plus {
  display: grid;
  place-items: center;
  width: calc(var(--u) * 2);
  height: calc(var(--u) * 2);
  border-radius: 50%;
  background: #465fff;
  color: #fff;
  box-shadow: 0 4px 10px -4px rgba(70, 95, 255, 0.8);
}

.pcard:hover .pcard__plus {
  background: #3641f5;
}

.pcard__plus .ico {
  width: calc(var(--u) * 0.875);
  height: calc(var(--u) * 0.875);
}

.pcard__check {
  position: absolute;
  top: calc(var(--u) * 0.5);
  right: calc(var(--u) * 0.5);
  display: grid;
  place-items: center;
  width: calc(var(--u) * 1.5);
  height: calc(var(--u) * 1.5);
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s, transform 0.2s;
}

.pcard.is-added {
  border-color: rgb(16, 185, 129);
  background: rgb(236, 253, 245);
}

.pcard.is-added .pcard__check {
  opacity: 1;
  transform: none;
}

/* Comanda */
.tpv-ticket {
  overflow: hidden;
}

.tpv-ticket__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: calc(var(--u) * 0.5) calc(var(--u) * 0.75);
  padding: calc(var(--u) * 1);
  border-bottom: 1px solid var(--g100);
}

.tpv-ticket__table,
.tpv-ticket__total {
  margin: calc(var(--u) * 0.125) 0 0;
  font-size: calc(var(--u) * 1.625);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.tpv-ticket__totalbox {
  text-align: right;
}

.tpv-ticket__total {
  color: #3641f5;
}

.tpv-pills {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--u) * 0.375);
}

.tpv-pill {
  padding: calc(var(--u) * 0.25) calc(var(--u) * 0.625);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: calc(var(--u) * 0.6875);
  font-weight: 600;
  line-height: 1.2;
}

.tpv-pill--ok {
  border-color: #75e0a7;
  background: #ecfdf3;
  color: #027a48;
}

.tpv-pill--warn {
  border-color: #fec84b;
  background: #fffaeb;
  color: #b54708;
}

.tpv-pill--brand {
  border-color: #9cb9ff;
  background: #ecf3ff;
  color: #2a31d8;
}

.tpv-pill--gray {
  background: var(--g100);
  color: var(--g600);
}

.tpv-waiter {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: calc(var(--u) * 0.25);
  padding: calc(var(--u) * 0.5) calc(var(--u) * 0.75);
  border-radius: calc(var(--u) * 1.25);
  background: var(--g50);
  box-shadow: inset 0 0 0 1px rgba(233, 231, 226, 0.7);
}

.tpv-waiter__name {
  color: #27272c;
  font-size: calc(var(--u) * 0.75);
  font-weight: 600;
}

.tpv-waiter__role {
  color: var(--g500);
  font-size: calc(var(--u) * 0.6875);
}

.tpv-iconbtn {
  display: grid;
  place-items: center;
  width: calc(var(--u) * 2.25);
  height: calc(var(--u) * 2.25);
  padding: 0;
  border: 1px solid var(--g300);
  border-radius: 50%;
  background: #fff;
  color: var(--g600);
}

.tpv-iconbtn--sq {
  border-color: var(--g200);
  border-radius: calc(var(--u) * 0.5);
}

.tpv-iconbtn--danger {
  border-color: #fda29b;
  background: #fef3f2;
  color: #d92d20;
}

.tpv-lines {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: calc(var(--u) * 0.75);
  background: rgba(250, 250, 248, 0.6);
}

.tpv-lines__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: calc(var(--u) * 0.5);
}

.tpv-lines__list {
  display: grid;
  align-content: start;
  gap: calc(var(--u) * 0.5);
  min-height: 0;
  padding-right: calc(var(--u) * 0.25);
  overflow-y: auto;
}

.oline {
  padding: calc(var(--u) * 0.625) calc(var(--u) * 0.75);
  border: 1px solid rgba(233, 231, 226, 0.8);
  border-radius: calc(var(--u) * 1.25);
  background: #fff;
  box-shadow: 0 1px 2px rgba(26, 24, 21, 0.04);
}

.oline.is-new {
  animation: tpvLine 0.9s ease;
}

@keyframes tpvLine {
  from {
    border-color: #9cb9ff;
    background: #f5f8ff;
  }
}

.oline__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: calc(var(--u) * 0.375);
}

.oline__chip {
  padding: calc(var(--u) * 0.125) calc(var(--u) * 0.375);
  border: 1px solid #fec84b;
  border-radius: 999px;
  background: #fffaeb;
  color: #b54708;
  font-size: calc(var(--u) * 0.5625);
  font-weight: 600;
  line-height: 1;
}

.oline__chip--sent {
  border-color: #9cb9ff;
  background: #ecf3ff;
  color: #2a31d8;
}

.oline__name {
  overflow: hidden;
  font-size: calc(var(--u) * 0.8438);
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oline__price {
  font-size: calc(var(--u) * 0.875);
  font-weight: 600;
  line-height: 1.2;
  text-align: right;
}

.oline__unit {
  display: block;
  color: var(--g500);
  font-size: calc(var(--u) * 0.625);
}

.oline__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--u) * 0.5);
  margin-top: calc(var(--u) * 0.5);
}

.tpv-stepper {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--u) * 0.25);
  padding: calc(var(--u) * 0.125);
  border-radius: 999px;
  background: var(--g100);
}

.tpv-stepper button {
  display: grid;
  place-items: center;
  width: calc(var(--u) * 2);
  height: calc(var(--u) * 2);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--g700);
  font-size: calc(var(--u) * 1);
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(26, 24, 21, 0.1);
}

.tpv-stepper span {
  min-width: calc(var(--u) * 1.75);
  font-size: calc(var(--u) * 0.875);
  font-weight: 600;
  text-align: center;
}

.oline__btns {
  display: flex;
  gap: calc(var(--u) * 0.5);
}

.tpv-empty {
  display: grid;
  justify-items: center;
  gap: calc(var(--u) * 0.25);
  padding: calc(var(--u) * 2) calc(var(--u) * 1);
  text-align: center;
}

.tpv-empty__icon {
  display: grid;
  place-items: center;
  width: calc(var(--u) * 3);
  height: calc(var(--u) * 3);
  margin-bottom: calc(var(--u) * 0.5);
  border-radius: calc(var(--u) * 1.25);
  background: #fff;
  color: #465fff;
  box-shadow: 0 1px 2px rgba(26, 24, 21, 0.06), 0 0 0 1px rgba(26, 24, 21, 0.05);
}

.tpv-empty strong {
  font-size: calc(var(--u) * 0.875);
  font-weight: 600;
}

.tpv-empty span {
  max-width: calc(var(--u) * 13);
  color: var(--g500);
  font-size: calc(var(--u) * 0.75);
}

.tpv-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--u) * 0.5);
  padding: calc(var(--u) * 0.75);
  border-top: 1px solid var(--g100);
  background: #fff;
}

.tpv-send,
.tpv-charge,
.tpv-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--u) * 0.375);
  padding: 0 calc(var(--u) * 0.75);
  border: 0;
  border-radius: calc(var(--u) * 1.25);
  font-size: calc(var(--u) * 0.875);
  font-weight: 600;
}

.tpv-send,
.tpv-charge {
  height: calc(var(--u) * 3.5);
  white-space: nowrap;
}

.tpv-send {
  background: #ecf3ff;
  color: #2a31d8;
  box-shadow: inset 0 0 0 1px rgba(194, 214, 255, 0.7);
}

.tpv-send:hover {
  background: #dde9ff;
}

.tpv-charge {
  background: linear-gradient(180deg, #465fff, #3641f5);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(70, 95, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.tpv-charge:hover {
  background: #3641f5;
}

.tpv-send:disabled,
.tpv-charge:disabled {
  opacity: 0.45;
  cursor: default;
  scale: 1;
}

.tpv-clear {
  grid-column: 1 / -1;
  height: calc(var(--u) * 2.75);
  background: transparent;
  color: #d92d20;
}

.tpv-clear:hover {
  background: #fef3f2;
}

/* Ventana de cobro */
.tpv-modal {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: calc(var(--u) * 0.75);
  background: rgba(15, 15, 17, 0.4);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fade 0.2s ease both;
}

.tpv-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, calc(var(--u) * 70));
  height: 100%;
  max-height: calc(var(--u) * 47.5);
  overflow: hidden;
  border-radius: calc(var(--u) * 1.75);
  background: #fff;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.05);
  animation: tpvPop 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes tpvPop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
}

.tpv-modal__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--u) * 1);
  padding: calc(var(--u) * 1) calc(var(--u) * 5.5) calc(var(--u) * 1) calc(var(--u) * 1.5);
  border-bottom: 1px solid var(--g100);
}

.tpv-modal__title {
  font-size: calc(var(--u) * 1.25);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tpv-modal__pending {
  text-align: right;
}

.tpv-modal__pendingval {
  color: #3641f5;
  font-size: calc(var(--u) * 1.375);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.tpv-modal__close {
  position: absolute;
  top: 50%;
  right: calc(var(--u) * 1);
  display: grid;
  place-items: center;
  width: calc(var(--u) * 2.75);
  height: calc(var(--u) * 2.75);
  margin-top: calc(var(--u) * -1.375);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--g100);
  color: var(--g500);
}

.tpv-modal__body {
  display: grid;
  grid-template-columns: calc(var(--u) * 13.75) minmax(0, 1fr);
  flex: 1;
  gap: calc(var(--u) * 0.75);
  min-height: 0;
  padding: calc(var(--u) * 0.75);
}

.tpv-pay-aside {
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 0.75);
  padding: calc(var(--u) * 0.75);
  border-radius: calc(var(--u) * 1.25);
  background: linear-gradient(180deg, #465fff, #2a31d8);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.tpv-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(var(--u) * 7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: calc(var(--u) * 1.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-align: center;
  transition: background-color 0.2s, color 0.2s;
}

.tpv-method:hover {
  background: rgba(255, 255, 255, 0.18);
}

.tpv-method.is-active {
  border-color: #fff;
  background: #fff;
  color: #2a31d8;
  box-shadow: 0 10px 24px -10px rgba(10, 10, 40, 0.5);
}

.tpv-method__ico {
  width: calc(var(--u) * 3);
  height: calc(var(--u) * 3);
}

.tpv-method__label {
  margin-top: calc(var(--u) * 0.5);
  font-size: calc(var(--u) * 0.75);
  font-weight: 700;
}

.tpv-method__detail {
  margin-top: calc(var(--u) * 0.125);
  font-size: calc(var(--u) * 0.625);
  font-weight: 500;
  opacity: 0.7;
}

.tpv-pay-totals {
  margin-top: auto;
  padding: calc(var(--u) * 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: calc(var(--u) * 0.75);
  background: rgba(255, 255, 255, 0.1);
  font-size: calc(var(--u) * 0.75);
}

.tpv-pay-totals p {
  display: flex;
  justify-content: space-between;
  padding: calc(var(--u) * 0.125) 0;
}

.tpv-pay-totals span {
  color: rgba(255, 255, 255, 0.7);
}

.tpv-pay-totals b {
  font-weight: 600;
}

.tpv-pay-totals__pending {
  align-items: baseline;
  margin-top: calc(var(--u) * 0.375);
  padding-top: calc(var(--u) * 0.5) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.tpv-pay-totals__pending b {
  font-size: calc(var(--u) * 1.125);
}

.tpv-pay-totals__tax {
  display: block !important;
  margin-top: calc(var(--u) * 0.375);
  color: rgba(255, 255, 255, 0.65);
  font-size: calc(var(--u) * 0.6875);
}

.tpv-pay-main {
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 0.75);
  min-height: 0;
  padding: calc(var(--u) * 0.5) calc(var(--u) * 0.5) 0;
  overflow: hidden;
}

.tpv-amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--u) * 1);
  padding: calc(var(--u) * 1);
  border-radius: calc(var(--u) * 1.25);
  background: var(--g50);
}

.tpv-amount__label {
  color: var(--g500);
  font-size: calc(var(--u) * 0.875);
}

.tpv-amount__value {
  margin-top: calc(var(--u) * 0.25);
  color: #0f0f11;
  font-size: calc(var(--u) * 2.5);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.tpv-amount__split {
  display: flex;
  margin: 0;
  border-radius: calc(var(--u) * 0.75);
  background: #fff;
  box-shadow: 0 1px 2px rgba(26, 24, 21, 0.05);
}

.tpv-amount__split > div {
  padding: calc(var(--u) * 0.5) calc(var(--u) * 1);
}

.tpv-amount__split > div + div {
  border-left: 1px solid var(--g200);
}

.tpv-amount__split dt {
  color: var(--g500);
  font-size: calc(var(--u) * 0.75);
}

.tpv-amount__split dd {
  margin: 0;
  font-size: calc(var(--u) * 1.125);
  font-weight: 600;
}

.tpv-amount__split .is-brand {
  color: #3641f5;
}

.tpv-subtitle {
  font-size: calc(var(--u) * 0.875);
  font-weight: 600;
}

.tpv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--u) * 0.5);
  margin-top: calc(var(--u) * -0.25);
}

.tpv-chips span {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--u) * 0.5);
  height: calc(var(--u) * 2.5);
  padding: 0 calc(var(--u) * 0.875);
  border-radius: calc(var(--u) * 0.75);
  background: var(--g100);
  color: var(--g700);
  font-size: calc(var(--u) * 0.8125);
  font-weight: 600;
}

.tpv-cash {
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(var(--u) * 11);
  gap: calc(var(--u) * 1);
  padding: calc(var(--u) * 1);
  border: 1px solid var(--g200);
  border-radius: calc(var(--u) * 1.25);
}

.tpv-field-label {
  margin-bottom: calc(var(--u) * 0.375);
  color: var(--g700);
  font-size: calc(var(--u) * 0.875);
  font-weight: 500;
}

.tpv-field-label span {
  color: var(--g400);
}

.tpv-input {
  display: flex;
  align-items: center;
  height: calc(var(--u) * 2.75);
  padding: 0 calc(var(--u) * 1);
  border: 1px solid var(--g200);
  border-radius: calc(var(--u) * 0.75);
  background: #fff;
  font-size: calc(var(--u) * 0.875);
}

.tpv-input--big {
  height: calc(var(--u) * 3.5);
  font-size: calc(var(--u) * 1.5);
  font-weight: 600;
}

.tpv-input--placeholder {
  color: var(--g400);
}

.tpv-quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--u) * 0.5);
  margin-top: calc(var(--u) * 0.625);
}

.tpv-quick-amounts button {
  height: calc(var(--u) * 2.5);
  padding: 0 calc(var(--u) * 0.75);
  border: 0;
  border-radius: calc(var(--u) * 0.5);
  background: var(--g100);
  color: var(--g700);
  font-size: calc(var(--u) * 0.875);
  font-weight: 600;
}

.tpv-quick-amounts button.is-active {
  background: #465fff;
  color: #fff;
}

.tpv-change {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--u) * 0.75) calc(var(--u) * 1);
  border-radius: calc(var(--u) * 0.75);
  background: #ecfdf3;
  color: #027a48;
}

.tpv-change p:first-child {
  font-size: calc(var(--u) * 0.875);
  font-weight: 500;
}

.tpv-change__value {
  margin-top: calc(var(--u) * 0.25);
  font-size: calc(var(--u) * 2);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.tpv-cardform {
  display: grid;
  gap: calc(var(--u) * 0.375);
  padding: calc(var(--u) * 1);
  border: 1px solid var(--g200);
  border-radius: calc(var(--u) * 1.25);
}

.tpv-confirm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--u) * 1);
  margin-top: calc(var(--u) * 0.5);
  padding: calc(var(--u) * 0.75) calc(var(--u) * 1);
  border-radius: calc(var(--u) * 0.75);
  background: #fffaeb;
  color: #b54708;
  font-size: calc(var(--u) * 0.8125);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.tpv-confirm.is-on {
  background: #ecfdf3;
  color: #027a48;
}

.tpv-switch {
  position: relative;
  flex: none;
  width: calc(var(--u) * 2.5);
  height: calc(var(--u) * 1.5);
  margin: 0;
  border-radius: 999px;
  background: var(--g300);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color 0.2s;
}

.tpv-switch::after {
  content: "";
  position: absolute;
  top: calc(var(--u) * 0.1875);
  left: calc(var(--u) * 0.1875);
  width: calc(var(--u) * 1.125);
  height: calc(var(--u) * 1.125);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.tpv-switch:checked {
  background: #465fff;
}

.tpv-switch:checked::after {
  transform: translateX(calc(var(--u) * 1));
}

.tpv-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: calc(var(--u) * 0.5);
  margin-top: auto;
  padding: calc(var(--u) * 0.75) 0;
  border-top: 1px solid var(--g100);
}

.tpv-btn-sec,
.tpv-btn-pay {
  display: inline-flex;
  align-items: center;
  height: calc(var(--u) * 3);
  border-radius: calc(var(--u) * 0.75);
  font-size: calc(var(--u) * 0.875);
  font-weight: 600;
  white-space: nowrap;
}

.tpv-btn-sec {
  padding: 0 calc(var(--u) * 1);
  border: 1px solid var(--g200);
  background: #fff;
  color: var(--g700);
}

.tpv-btn-pay {
  justify-content: space-between;
  gap: calc(var(--u) * 1.25);
  min-width: calc(var(--u) * 13);
  padding: 0 calc(var(--u) * 1.25);
  border: 0;
  background: #465fff;
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(70, 95, 255, 0.9);
}

.tpv-btn-pay:hover {
  background: #3641f5;
}

.tpv-btn-pay:disabled {
  opacity: 0.5;
  cursor: default;
}

.tpv-btn-pay__amount {
  color: rgba(255, 255, 255, 0.85);
}

/* Dedo virtual de la demo automática */
.pos__tap {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 8;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: rgba(24, 24, 27, 0.22);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.7s var(--ease), opacity 0.3s;
}

.pos__tap.is-on {
  opacity: 1;
}

.pos__tap.is-down::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--brand-500);
  animation: tapRing 0.5s ease-out;
}

@keyframes tapRing {
  to {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* ---------- Ticket impreso ---------- */

.receipt {
  position: absolute;
  top: 40px;
  right: -34px;
  z-index: 7;
  width: 276px;
  padding-top: 8px;
  filter: drop-shadow(0 30px 34px rgba(20, 24, 60, 0.22)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
  transform: rotate(2.5deg) translateZ(40px);
  transform-origin: top center;
  clip-path: inset(8px -80px -140px -80px);
}

.receipt__paper {
  padding: 26px 22px 34px;
  background: #fff;
  color: #27272c;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%;
}

.receipt.is-printing .receipt__paper {
  animation: print 1.8s cubic-bezier(0.45, 0.05, 0.3, 1) both;
}

@keyframes print {
  from {
    transform: translateY(-101%);
  }
}

.receipt__biz {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}

.receipt__meta {
  color: #52525b;
  text-align: center;
}

.receipt__lines {
  margin: 14px 0 10px;
  padding: 10px 0;
  border-top: 1px dashed #c4c4c8;
  border-bottom: 1px dashed #c4c4c8;
}

.receipt__lines li,
.receipt__sum p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.receipt__total {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
}

.receipt__qr {
  width: 96px;
  margin: 16px auto 8px;
}

.receipt__qr svg,
.qrmenu__code svg {
  display: block;
  width: 100%;
  height: auto;
}

.receipt__legal {
  color: #52525b;
  font-size: 10.5px;
  text-align: center;
}

/* ---------- Revelado al hacer scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Cabeceras de sección ---------- */

.section-head {
  max-width: 820px;
}

.section-head--center {
  margin: 0 auto;
  text-align: center;
}

.section-head h2,
.remote__copy h2,
.sectors h2 {
  font-size: clamp(40px, 5.6vw, 80px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
  padding-bottom: 0.06em;
}

.section-head p {
  max-width: 560px;
  margin-top: 24px;
  color: var(--text-2);
  font-size: 19px;
}

.section-head--center p {
  margin-inline: auto;
}

/* ---------- Manifiesto ---------- */

.manifesto {
  padding: 110px 0 150px;
}

.manifesto__text {
  max-width: 1120px;
  font-size: clamp(30px, 4.3vw, 62px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.manifesto__text .w {
  opacity: 0.14;
  transition: opacity 0.35s;
}

.manifesto__text .w.is-lit {
  opacity: 1;
}

/* «lo ves en tiempo real estés donde estés» se enciende en azul de marca */
.manifesto__text .w--accent {
  color: var(--brand-500);
}

/* Punto «en directo» que aparece al completar la frase */
.live-dot {
  position: relative;
  display: inline-block;
  width: 0.22em;
  height: 0.22em;
  margin-left: 0.2em;
  border-radius: 50%;
  background: var(--brand-500);
  vertical-align: 0.12em;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.4s, transform 0.5s var(--ease-out);
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--brand-500);
}

.is-complete .live-dot {
  opacity: 1;
  transform: none;
}

.is-complete .live-dot::after {
  animation: livePing 1.8s ease-out infinite;
}

@keyframes livePing {
  from {
    transform: scale(1);
    opacity: 0.6;
  }
  to {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* ---------- Recorrido de una comanda ---------- */

.story {
  padding: 120px 0 80px;
  border-top: 1px solid;
  border-image: linear-gradient(90deg, transparent, var(--line-2) 25%, var(--line-2) 75%, transparent) 1;
}

.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 88px;
  margin-top: 40px;
}

.story__stage {
  position: sticky;
  top: calc(50vh - 290px);
  height: 580px;
  margin-top: 16vh;
}

.stage {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: linear-gradient(180deg, #f7f7fa 0%, #eef0f6 100%);
  box-shadow: inset 0 1px 0 #fff, 0 50px 100px -50px rgba(20, 24, 60, 0.35);
}

.stage__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(70, 95, 255, 0.18), transparent);
  transform: translate(-50%, -50%);
  transition: background 0.8s, transform 0.8s var(--ease);
  pointer-events: none;
}

.stage[data-step="2"] .stage__glow {
  background: radial-gradient(closest-side, rgba(247, 144, 9, 0.18), transparent);
}

.stage[data-step="3"] .stage__glow {
  background: radial-gradient(closest-side, rgba(70, 95, 255, 0.26), transparent);
  transform: translate(-50%, -62%);
}

.stage[data-step="4"] .stage__glow {
  background: radial-gradient(closest-side, rgba(18, 183, 106, 0.16), transparent);
}

.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  transform: scale(0.95) translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease-out);
  pointer-events: none;
}

.scene.is-active {
  opacity: 1;
  transform: none;
}

/* Escena 1: comanda */
.ui {
  width: min(430px, 100%);
  padding: 22px;
  border: 1px solid var(--app-line);
  border-radius: 26px;
  background: #fff;
  color: var(--app-ink);
  box-shadow: var(--shadow-float);
}

.ui__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ui__head strong {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  vertical-align: 1px;
}

.chip--amber {
  background: var(--warning-50);
  color: var(--warning-700);
}

.chip--soft {
  margin-left: 6px;
  padding: 1px 8px;
  background: var(--app-soft);
  color: var(--app-ink-2);
  font-size: 11px;
}

.ui__lines li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--app-line);
  font-size: 15px;
  font-weight: 500;
}

.ui__lines em {
  color: var(--app-ink-3);
  font-style: normal;
}

.ui__lines .q {
  padding: 3px 7px;
  border-radius: 8px;
  background: var(--app-soft);
  font-size: 12.5px;
  font-weight: 600;
}

.scene--order.is-active .ui__lines li {
  animation: lineIn 0.6s calc(0.25s + var(--i) * 0.28s) var(--ease-out) both;
}

@keyframes lineIn {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
}

.ui__btn {
  display: grid;
  place-items: center;
  height: 50px;
  margin-top: 14px;
  border-radius: 14px;
  background: var(--brand-500);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 10px 24px -12px rgba(70, 95, 255, 0.9);
}

.scene--order.is-active .ui__btn {
  animation: pressed 0.5s 1.6s ease both;
}

@keyframes pressed {
  40% {
    transform: scale(0.96);
    box-shadow: 0 0 0 0 rgba(70, 95, 255, 0.5);
  }
  100% {
    transform: none;
    box-shadow: 0 0 0 18px rgba(70, 95, 255, 0);
  }
}

/* Escena 2: tickets de cocina y barra */
.scene--kitchen {
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  padding-top: 70px;
}

.kt {
  width: 214px;
  filter: drop-shadow(0 22px 26px rgba(20, 24, 60, 0.22));
  clip-path: inset(0 -60px -120px -60px);
}

.kt__slot {
  position: relative;
  z-index: 2;
  display: block;
  width: calc(100% + 24px);
  height: 12px;
  margin: 0 -12px;
  border-radius: 6px;
  background: linear-gradient(180deg, #2c2d33, #0e0e11);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.kt__paper {
  margin-top: -5px;
  padding: 18px 16px 26px;
  background: #fff;
  color: #18181b;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  transform: translateY(-102%);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%;
}

.kt__paper p {
  white-space: pre;
}

.kt__zone {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.kt__rule {
  margin: 6px 0;
  border-top: 1px dashed #b4b4ba;
}

.scene--kitchen.is-active .kt__paper {
  animation: printIn 1.5s 0.25s cubic-bezier(0.45, 0.05, 0.3, 1) both;
}

.scene--kitchen.is-active .kt--late .kt__paper {
  animation-delay: 0.85s;
}

@keyframes printIn {
  from {
    transform: translateY(-102%);
  }
  to {
    transform: none;
  }
}

/* Escena 3: stock */
.ring {
  position: relative;
  width: 260px;
  height: 260px;
}

.ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring circle {
  fill: none;
  stroke-width: 11;
}

.ring__track {
  stroke: rgba(0, 0, 0, 0.06);
}

.ring__bar {
  stroke: var(--warning);
  stroke-linecap: round;
  stroke-dasharray: 427.3;
  stroke-dashoffset: 171;
  transition: stroke-dashoffset 1.6s 0.35s var(--ease);
}

.scene--stock.is-active .ring__bar {
  stroke-dashoffset: 342;
}

.ring__label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ring__label strong {
  font-size: 76px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}

.ring__label span {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 14px;
}

.stock__alert {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 10px 16px;
  border: 1px solid rgba(247, 144, 9, 0.25);
  border-radius: 999px;
  background: var(--warning-50);
  color: var(--warning-700);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
}

.stock__alert span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warning);
}

.scene--stock.is-active .stock__alert {
  animation: rise 0.7s 1.7s var(--ease-out) both;
}

/* Escena 4: cobro */
.pay {
  position: relative;
  display: grid;
  place-items: center;
  width: 320px;
  height: 200px;
}

.pay__waves i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  border: 1.5px solid rgba(70, 95, 255, 0.4);
  border-radius: 50%;
  opacity: 0;
}

.scene--pay.is-active .pay__waves i {
  animation: ripple 2.4s 0.6s ease-out infinite;
}

.scene--pay.is-active .pay__waves i:nth-child(2) {
  animation-delay: 1.4s;
}

.scene--pay.is-active .pay__waves i:nth-child(3) {
  animation-delay: 2.2s;
}

@keyframes ripple {
  from {
    transform: scale(0.6);
    opacity: 0.9;
  }
  to {
    transform: scale(1.7);
    opacity: 0;
  }
}

.pay__card {
  position: relative;
  width: 300px;
  height: 188px;
  padding: 24px;
  border-radius: 20px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.3), transparent 50%),
    linear-gradient(135deg, #6f86ff 0%, #465fff 45%, #2a31d8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 34px 60px -24px rgba(42, 49, 216, 0.6);
}

.scene--pay.is-active .pay__card {
  animation: cardIn 1s 0.1s var(--ease-out) both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(60px) rotate(-10deg) scale(0.9);
  }
}

.pay__chip {
  position: absolute;
  top: 58px;
  left: 24px;
  width: 44px;
  height: 32px;
  border-radius: 7px;
  background: linear-gradient(135deg, #f5e6b8, #c9a64e);
}

.pay__num {
  position: absolute;
  left: 24px;
  bottom: 22px;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.12em;
}

.pay__amount {
  margin: 30px 0 14px;
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.pay__checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  opacity: 0;
}

.pay__checks li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--success)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 100% no-repeat;
}

.scene--pay.is-active .pay__checks li {
  animation: rise 0.6s calc(1s + var(--i) * 0.35s) var(--ease-out) both;
}

/* Escena 5: cifras */
.scene--numbers {
  align-items: stretch;
  padding: 56px;
}

.nums__label {
  color: var(--text-2);
  font-size: 15px;
}

.nums__big {
  margin: 6px 0 6px;
  font-size: 68px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-variant-numeric: proportional-nums;
}

.nums__up {
  color: var(--success-700);
  font-weight: 600;
}

.nums__chart {
  width: 100%;
  height: 170px;
  margin-top: 30px;
  overflow: visible;
}

.nums__line {
  fill: none;
  stroke: var(--brand-500);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  vector-effect: non-scaling-stroke;
}

.nums__area {
  opacity: 0;
  transition: opacity 1s 0.9s;
}

.scene--numbers.is-active .nums__line {
  animation: draw 1.8s 0.3s var(--ease) both;
}

.scene--numbers.is-active .nums__area {
  opacity: 0.55;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* Pasos */
.story__steps {
  border-left: 1px solid var(--line);
}

.story__step {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 78vh;
  padding-left: 36px;
  opacity: 0.25;
  transition: opacity 0.5s;
}

.story__step::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -1px;
  width: 2px;
  height: 0;
  background: linear-gradient(var(--brand-300), var(--brand-500));
  transform: translateY(-50%);
  transition: height 0.6s var(--ease-out);
}

.story__step.is-active {
  opacity: 1;
}

.story__step.is-active::before {
  height: 140px;
}

.story__step time {
  color: var(--brand-600);
  font-size: 15px;
  font-weight: 600;
}

.story__step h3 {
  margin: 10px 0 12px;
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.story__step p {
  max-width: 420px;
  color: var(--text-2);
  font-size: 18px;
}

/* ---------- Todo incluido (mosaico) ---------- */

.suite {
  padding: 140px 0 160px;
  /* Banda gris que entra y sale en degradado: sin cortes con las secciones blancas */
  background: linear-gradient(180deg, var(--bg) 0, var(--bg-alt) 180px, var(--bg-alt) calc(100% - 180px), var(--bg) 100%);
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin-top: 80px;
}

.tile {
  --x: 50%;
  --y: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding: 28px;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-card);
  isolation: isolate;
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1px;
  border-radius: inherit;
  background:
    radial-gradient(380px circle at var(--x) var(--y), rgba(70, 95, 255, 0.65), transparent 45%),
    linear-gradient(rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.04));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(480px circle at var(--x) var(--y), rgba(70, 95, 255, 0.06), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
}

.bento:hover .tile::after {
  opacity: 1;
}

.tile--floor {
  grid-column: span 7;
  min-height: 440px;
}

.tile--kds {
  grid-column: span 5;
  min-height: 440px;
}

.tile--qr,
.tile--stock,
.tile--vf,
.tile--chart {
  grid-column: span 4;
}

.tile--res {
  grid-column: span 5;
}

.tile--team {
  grid-column: span 3;
}

.tile__ui {
  position: relative;
  flex: 1;
  margin-bottom: 26px;
  color: var(--app-ink);
  font-size: 13px;
}

.tile__text h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tile__text p {
  max-width: 460px;
  margin-top: 6px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.5;
}

/* Plano de sala */
.floor {
  min-height: 250px;
}

.tb {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 20%;
  height: 38%;
  border: 1px solid var(--app-line);
  border-radius: 16px;
  background: var(--app-bg);
  color: var(--app-ink-3);
  font-size: 16px;
  font-weight: 600;
}

.tb small {
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 500;
}

.tb--round {
  width: auto;
  height: 40%;
  aspect-ratio: 1;
  border-radius: 50%;
}

.tb--wide {
  width: 32%;
}

.tb--busy {
  border-color: var(--brand-300);
  background: var(--brand-50);
  color: var(--brand-700);
}

.tb--busy small {
  color: var(--brand-600);
}

.tb--bill {
  border-color: var(--warning-300);
  background: var(--warning-50);
  color: var(--warning-700);
  animation: billPulse 2.4s ease-in-out infinite;
}

@keyframes billPulse {
  50% {
    box-shadow: 0 0 0 8px rgba(247, 144, 9, 0), 0 0 26px rgba(247, 144, 9, 0.35);
  }
}

.floor__bar {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 11%;
  border-radius: 16px;
  background: var(--app-soft);
  color: var(--app-ink-3);
  font-size: 12px;
  font-weight: 600;
  writing-mode: vertical-rl;
}

/* Cocina */
.kds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.kds__col {
  padding: 12px;
  border: 1px solid var(--app-line);
  border-radius: 16px;
  background: var(--app-bg);
}

.kds__col p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-weight: 600;
}

.kds__col p span {
  color: var(--warning-700);
  font-size: 11.5px;
}

.kds__col--done p span {
  color: var(--success-700);
}

.kds__col b {
  display: block;
  margin-top: 6px;
  padding: 9px 10px;
  border: 1px solid var(--app-line);
  border-radius: 10px;
  background: #fff;
  font-weight: 500;
}

.kds__col--done b {
  color: #a1a1a8;
  text-decoration: line-through;
}

/* Carta QR */
.qrmenu {
  display: flex;
  align-items: center;
  gap: 22px;
}

.qrmenu__code {
  flex: none;
  width: 116px;
  padding: 8px;
  border: 1px solid var(--app-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 30px -18px rgba(20, 24, 60, 0.35);
}

.qrmenu ul {
  flex: 1;
}

.qrmenu li {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--app-line);
  font-weight: 500;
}

.qrmenu li span {
  color: var(--app-ink-3);
}

/* Inventario */
.levels {
  display: grid;
  align-content: center;
  gap: 16px;
}

.levels p {
  display: grid;
  gap: 7px;
}

.levels span {
  color: var(--app-ink-2);
}

.levels i {
  position: relative;
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--app-soft);
}

.levels i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-400));
  transition: width 1.4s 0.3s var(--ease);
}

.levels i.is-low::after {
  background: linear-gradient(90deg, #dc6803, var(--warning-300));
}

.is-in .levels i::after,
:not(.js) .levels i::after {
  width: var(--v);
}

/* VeriFactu */
.vf {
  display: flex;
  align-items: center;
  gap: 26px;
}

.vf__shield {
  flex: none;
  width: 92px;
  filter: drop-shadow(0 12px 20px rgba(70, 95, 255, 0.3));
}

.vf__shield path:first-child {
  fill: var(--brand-50);
  stroke: var(--brand-500);
  stroke-width: 1.5;
}

.vf__tick {
  fill: none;
  stroke: var(--success);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  transition: stroke-dashoffset 0.9s 0.6s var(--ease);
}

.is-in .vf__tick {
  stroke-dashoffset: 0;
}

.vf li {
  padding: 6px 0 6px 22px;
  background: radial-gradient(circle at 5px 50%, var(--success) 3.5px, transparent 4.5px);
  font-size: 14.5px;
  font-weight: 500;
}

/* Reservas */
.res {
  display: grid;
  align-content: center;
  gap: 10px;
}

.res p {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.res time {
  color: var(--app-ink-3);
  font-weight: 500;
}

.res__b {
  display: flex;
  align-items: center;
  width: var(--w);
  height: 36px;
  padding: 0 12px;
  overflow: hidden;
  border-left: 3px solid var(--brand-500);
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 500;
  white-space: nowrap;
}

.res__b--alt {
  border-color: #7a5af8;
  background: #f4f3ff;
  color: #5925dc;
}

.res__b--free {
  border: 1px dashed #dcdad4;
  background: transparent;
  color: #a1a1a8;
}

/* Equipo */
.team {
  display: grid;
  align-content: center;
}

.team p {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--app-line);
  font-size: 15px;
  font-weight: 500;
}

.team small {
  margin-left: auto;
  color: var(--app-ink-3);
  font-size: 13px;
}

.av {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: hsl(var(--h) 85% 93%);
  color: hsl(var(--h) 55% 38%);
  font-size: 12px;
  font-weight: 600;
}

/* Analítica */
.chart__n {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: proportional-nums;
}

.chart__l {
  color: var(--app-ink-3);
}

.chart__bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 110px;
  margin-top: 18px;
}

.chart__bars i {
  flex: 1;
  height: var(--v);
  border-radius: 8px;
  background: #eceef3;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 1s var(--ease-out);
}

.chart__bars i:nth-child(6) {
  background: linear-gradient(var(--brand-400), var(--brand-600));
  box-shadow: 0 10px 20px -8px rgba(70, 95, 255, 0.6);
}

.chart__bars i:nth-child(2) { transition-delay: 0.06s; }
.chart__bars i:nth-child(3) { transition-delay: 0.12s; }
.chart__bars i:nth-child(4) { transition-delay: 0.18s; }
.chart__bars i:nth-child(5) { transition-delay: 0.24s; }
.chart__bars i:nth-child(6) { transition-delay: 0.3s; }
.chart__bars i:nth-child(7) { transition-delay: 0.36s; }

.is-in .chart__bars i,
:not(.js) .chart__bars i {
  transform: none;
}

.suite__more {
  margin-top: 44px;
  text-align: center;
}

/* ---------- Panel en el móvil ---------- */

.remote {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.remote__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 36% 50% at 72% 50%, rgba(70, 95, 255, 0.14), transparent 70%),
    radial-gradient(ellipse 24% 30% at 86% 30%, rgba(156, 120, 255, 0.12), transparent 70%);
}

.remote__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

.remote__copy p {
  max-width: 460px;
  margin-top: 24px;
  color: var(--text-2);
  font-size: 19px;
}

.remote__switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 40px;
  padding: 5px;
  border-radius: 999px;
  background: var(--bg-alt);
}

.remote__switch button {
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
}

.remote__switch button:hover {
  color: var(--text);
}

.remote__switch button[aria-selected="true"] {
  background: var(--brand-500);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(70, 95, 255, 0.8);
}

.remote__note {
  margin-top: 16px;
  color: var(--text-3);
  font-size: 13px;
}

.remote__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 720px;
}

.orbit__chip {
  position: absolute;
  z-index: 2;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-float);
  animation: bob 6s ease-in-out infinite;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.orbit__chip b {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.orbit__chip[data-orbit="alcudia"] {
  top: 12%;
  left: -2%;
}

.orbit__chip[data-orbit="palma"] {
  bottom: 14%;
  left: 2%;
  animation-delay: -2s;
}

.orbit__chip[data-orbit="inca"] {
  top: 36%;
  right: -2%;
  animation-delay: -4s;
}

.orbit__chip.is-on {
  border-color: var(--brand-300);
  box-shadow: 0 0 0 4px rgba(70, 95, 255, 0.14), var(--shadow-float);
}

@keyframes bob {
  50% {
    transform: translateY(-12px);
  }
}

.phone {
  position: relative;
  width: 350px;
  padding: 11px;
  border-radius: 56px;
  background: linear-gradient(160deg, #3a3b42, #0e0e11 45%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 60px 100px -40px rgba(20, 24, 60, 0.5);
}

.phone::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: 3;
  width: 98px;
  height: 29px;
  border-radius: 20px;
  background: #000;
  transform: translateX(-50%);
}

/* ---------- Panel de la app en el móvil (DashboardView + AppHeader) ----------
   --u hace de «rem» de la app: 16 px reales caben en 13,5 px de maqueta. */

.app {
  --u: 13.5px;
  --g50: #fafaf8;
  --g100: #f4f3f0;
  --g200: #e9e7e2;
  --g400: #a1a1a8;
  --g500: #71717a;
  --g600: #52525b;
  --g700: #3a3a41;
  --g800: #27272c;
  --g900: #18181b;
  position: relative;
  height: 690px;
  overflow: hidden;
  border-radius: 46px;
  background: var(--g50);
  color: var(--g900);
  font-size: var(--u);
  line-height: 1.4;
  text-align: left;
}

.app .ico {
  width: calc(var(--u) * 1);
  height: calc(var(--u) * 1);
  flex: none;
}

.app-status {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 6px 30px 0 34px;
  background: var(--g50);
  font-size: 13px;
  font-weight: 600;
}

.app-status__icons {
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.app-status__icons i {
  width: 3px;
  border-radius: 1px;
  background: var(--g900);
}

.app-status__icons i:nth-child(1) { height: 5px; }
.app-status__icons i:nth-child(2) { height: 7px; }
.app-status__icons i:nth-child(3) { height: 9px; }

.app-status__icons b {
  width: 20px;
  height: 10px;
  margin-left: 5px;
  border: 1.5px solid var(--g900);
  border-radius: 3px;
  box-shadow: inset -6px 0 0 #fff, inset 0 0 0 1.5px #fff;
  background: var(--g900);
}

/* Cabecera flotante */
.app-header {
  position: absolute;
  top: 46px;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0 calc(var(--u) * 0.75);
}

.app-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--u) * 3.5);
  padding: 0 calc(var(--u) * 0.375);
  border: 1px solid rgba(233, 231, 226, 0.7);
  border-radius: calc(var(--u) * 1.25);
  background: #fff;
  box-shadow: 0 12px 32px -12px rgba(20, 19, 17, 0.14), 0 1px 2px rgba(20, 19, 17, 0.04);
}

.app-iconbtn {
  display: grid;
  place-items: center;
  width: calc(var(--u) * 2.75);
  height: calc(var(--u) * 2.75);
  border-radius: calc(var(--u) * 0.75);
  color: var(--g600);
}

.app-iconbtn svg {
  width: calc(var(--u) * 1);
  height: calc(var(--u) * 1);
}

.app-bar__end .app-iconbtn svg {
  width: calc(var(--u) * 1.5);
  height: calc(var(--u) * 1.5);
}

.app-bar__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto !important;
  height: calc(var(--u) * 2.25) !important;
  transform: translate(-50%, -50%);
}

.app-bar__end {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 0.125);
}

.app-live {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(var(--u) * 2.75);
  height: calc(var(--u) * 2.75);
}

.app-live i,
.app-live b {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  background: #12b76a;
  transform: translate(-50%, -50%);
}

.app-live i {
  width: calc(var(--u) * 1.25);
  height: calc(var(--u) * 1.25);
  animation: appRing 2s ease-out infinite;
}

.app-live b {
  width: calc(var(--u) * 0.75);
  height: calc(var(--u) * 0.75);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes appRing {
  from {
    transform: translate(-50%, -50%) scale(0.28);
    opacity: 0.65;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

/* Menú ⋯ con el selector de local */
.app-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: calc(var(--u) * 0.75);
  left: calc(var(--u) * 0.75);
  display: grid;
  gap: calc(var(--u) * 0.5);
  padding: calc(var(--u) * 0.5);
  border: 1px solid rgba(233, 231, 226, 0.8);
  border-radius: calc(var(--u) * 1.25);
  background: #fff;
  box-shadow: 0 8px 24px rgba(26, 24, 21, 0.08), 0 2px 6px rgba(26, 24, 21, 0.04);
  animation: appMenu 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes appMenu {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}

.app-selector {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 0.75);
  min-height: calc(var(--u) * 3.25);
  padding: calc(var(--u) * 0.5);
  border: 1px solid rgba(233, 231, 226, 0.8);
  border-radius: calc(var(--u) * 1);
  background: #fff;
  box-shadow: 0 1px 2px rgba(26, 24, 21, 0.05);
}

.app-selector__avatar {
  display: grid;
  place-items: center;
  width: calc(var(--u) * 2.25);
  height: calc(var(--u) * 2.25);
  border-radius: calc(var(--u) * 0.75);
  background: linear-gradient(135deg, #7592ff, #3641f5);
  color: #fff;
  font-size: calc(var(--u) * 0.8125);
  font-weight: 600;
  box-shadow: 0 4px 12px -4px rgba(70, 95, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.app-selector__text {
  display: grid;
  flex: 1;
}

.app-selector__text b {
  font-size: calc(var(--u) * 0.875);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.app-selector__text small {
  color: var(--g500);
  font-size: calc(var(--u) * 0.75);
  line-height: 1.3;
}

.app-selector__chev {
  width: calc(var(--u) * 1);
  height: calc(var(--u) * 1);
  color: var(--g400);
}

.app-switch {
  padding: calc(var(--u) * 0.375);
  border-radius: calc(var(--u) * 1);
  background: #fff;
  box-shadow: 0 20px 40px -12px rgba(26, 24, 21, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.app-switch__title {
  padding: calc(var(--u) * 0.375) calc(var(--u) * 0.625) calc(var(--u) * 0.25);
  color: var(--g400);
  font-size: calc(var(--u) * 0.6875);
  font-weight: 500;
}

.app-switch li {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 0.625);
  padding: calc(var(--u) * 0.5);
  border-radius: calc(var(--u) * 0.75);
  color: var(--g800);
  font-size: calc(var(--u) * 0.8125);
  font-weight: 500;
  transition: background-color 0.2s;
}

.app-switch li span {
  display: grid;
  place-items: center;
  width: calc(var(--u) * 1.75);
  height: calc(var(--u) * 1.75);
  border-radius: calc(var(--u) * 0.5);
  background: var(--g100);
  color: var(--g600);
  font-size: calc(var(--u) * 0.6875);
  font-weight: 600;
}

.app-switch li.is-active {
  background: rgba(236, 243, 255, 0.7);
  font-weight: 600;
}

.app-switch li.is-active span {
  background: #465fff;
  color: #fff;
}

.app-switch li svg {
  width: calc(var(--u) * 1);
  height: calc(var(--u) * 1);
  margin-left: auto;
  color: #465fff;
}

/* Contenido que se desplaza solo */
.app-viewport {
  position: absolute;
  inset: 50px 0 0;
  overflow: hidden;
}

.app-content {
  display: grid;
  gap: calc(var(--u) * 1);
  padding: calc(var(--u) * 4.25) calc(var(--u) * 0.75) calc(var(--u) * 2);
  transition: transform 1.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.app-page-head {
  padding: 0 calc(var(--u) * 0.75) calc(var(--u) * 0.25);
}

.app-date {
  color: var(--g500);
  font-size: calc(var(--u) * 0.8125);
  font-weight: 500;
}

.app-hello {
  margin-top: calc(var(--u) * 0.25);
  overflow: hidden;
  font-size: calc(var(--u) * 1.625);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(var(--u) * 0.5);
  margin-top: calc(var(--u) * 1);
}

.app-cash {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--u) * 0.5);
  height: calc(var(--u) * 2.75);
  padding: 0 calc(var(--u) * 0.75) 0 0;
  color: var(--g600);
  font-size: calc(var(--u) * 0.8125);
  font-weight: 500;
}

.app-cash__dot {
  position: relative;
  width: calc(var(--u) * 0.5);
  height: calc(var(--u) * 0.5);
  border-radius: 50%;
  background: #12b76a;
}

.app-cash__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #12b76a;
  animation: appPing 1.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes appPing {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.app-btn {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--u) * 0.5);
  height: calc(var(--u) * 2.75);
  padding: 0 calc(var(--u) * 1);
  border: 1px solid var(--g200);
  border-radius: calc(var(--u) * 0.75);
  background: #fff;
  color: var(--g700);
  font-size: calc(var(--u) * 0.875);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(26, 24, 21, 0.05);
}

.app-btn--primary {
  padding: 0 calc(var(--u) * 1.25);
  border-color: transparent;
  background: #465fff;
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(70, 95, 255, 0.8);
}

.app-card {
  min-width: 0;
  padding: calc(var(--u) * 1.25);
  border: 1px solid rgba(233, 231, 226, 0.7);
  border-radius: calc(var(--u) * 1.375);
  background: #fff;
  box-shadow: 0 1px 2px rgba(26, 24, 21, 0.04), 0 6px 20px -6px rgba(26, 24, 21, 0.08);
}

.app-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: calc(var(--u) * 1);
  margin-bottom: calc(var(--u) * 1);
}

.app-card__title {
  font-size: calc(var(--u) * 0.9375);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.app-card__sub {
  margin-top: calc(var(--u) * 0.125);
  color: var(--g500);
  font-size: calc(var(--u) * 0.8125);
}

.app-card__link {
  padding: calc(var(--u) * 0.25) calc(var(--u) * 0.625);
  border-radius: 999px;
  color: var(--g500);
  font-size: calc(var(--u) * 0.8125);
  font-weight: 500;
}

.app-kpi__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: var(--g500);
  font-size: calc(var(--u) * 0.8125);
  font-weight: 500;
}

.app-kpi__top i {
  display: grid;
  place-items: center;
  width: calc(var(--u) * 2.25);
  height: calc(var(--u) * 2.25);
  margin: calc(var(--u) * -0.25) calc(var(--u) * -0.25) 0 0;
  border-radius: calc(var(--u) * 0.75);
  background: #ecf3ff;
  color: #465fff;
}

.app-kpi__value {
  margin-top: calc(var(--u) * 0.25);
  font-size: calc(var(--u) * 1.75);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}

.app-kpi__foot {
  min-height: calc(var(--u) * 1.125);
  margin-top: calc(var(--u) * 0.625);
  font-size: calc(var(--u) * 0.75);
}

.app-kpi__foot--muted {
  color: var(--g500);
}

.app-delta {
  color: #039855;
  font-weight: 600;
}

.app-delta.is-down {
  color: #d92d20;
}

.app-delta + span {
  margin-left: calc(var(--u) * 0.25);
  color: var(--g400);
}

/* Gráfico de barras (SaBarChart) */
.app-legend {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--u) * 0.875);
  margin: calc(var(--u) * -0.25) 0 calc(var(--u) * 0.75);
  color: var(--g600);
  font-size: calc(var(--u) * 0.75);
}

.app-legend span {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--u) * 0.375);
}

.app-legend i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #465fff;
}

.app-legend i.is-prev {
  background: #9cb9ff;
}

.app-bars {
  position: relative;
  height: calc(var(--u) * 11);
  padding-left: calc(var(--u) * 2.5);
}

.app-bars__grid {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
}

.app-bars__grid span {
  position: relative;
  border-top: 1px dashed rgba(128, 128, 140, 0.16);
  color: #8a8a93;
  font-size: calc(var(--u) * 0.6875);
  line-height: 0;
}

.app-bars__grid span em {
  position: absolute;
  left: 0;
  top: 0;
  font-style: normal;
}

.app-bars__plot {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: calc(var(--u) * 0.25);
  height: 100%;
}

.app-bars__pair {
  display: flex;
  flex: 1;
  align-items: flex-end;
  justify-content: center;
  gap: 1px;
  height: 100%;
}

.app-bars__pair i {
  width: 29%;
  border-radius: 3px 3px 0 0;
  background: #465fff;
  transition: height 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-bars__pair i.is-prev {
  background: #9cb9ff;
}

.app-bars__x {
  display: flex;
  justify-content: space-between;
  margin-top: calc(var(--u) * 0.5);
  padding-left: calc(var(--u) * 2.5);
  color: #8a8a93;
  font-size: calc(var(--u) * 0.6875);
}

/* Sala ahora */
.app-room {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: calc(var(--u) * 0.5);
}

.app-room span {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  height: calc(var(--u) * 3.25);
  padding: calc(var(--u) * 0.375) calc(var(--u) * 0.625);
  border-radius: calc(var(--u) * 0.75);
  background: var(--g50);
  color: var(--g500);
  box-shadow: inset 0 0 0 1px rgba(233, 231, 226, 0.8);
  font-size: calc(var(--u) * 0.6875);
}

.app-room span b {
  color: var(--g700);
  font-size: calc(var(--u) * 0.8125);
  font-weight: 600;
}

.app-room span.is-busy {
  background: linear-gradient(135deg, #465fff, #3641f5);
  color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 14px -8px rgba(70, 95, 255, 0.9);
}

.app-room span.is-busy b {
  color: #fff;
}

.app-room__foot {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--u) * 0.25) calc(var(--u) * 1.25);
  margin-top: calc(var(--u) * 1);
  padding-top: calc(var(--u) * 0.75);
  border-top: 1px solid var(--g100);
  color: var(--g500);
  font-size: calc(var(--u) * 0.75);
}

.app-room__foot b {
  color: var(--g800);
  font-weight: 600;
}

.app-room__foot b.is-warn {
  color: #b54708;
}

/* Donut de métodos de pago */
.app-donut {
  position: relative;
  width: calc(var(--u) * 10.5);
  margin: 0 auto;
}

.app-donut svg {
  display: block;
  width: 100%;
  height: auto;
  transform: rotate(-90deg);
}

.app-donut circle {
  fill: none;
  stroke-width: 15;
  transition: stroke-dasharray 0.8s cubic-bezier(0.16, 1, 0.3, 1), stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-donut__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.app-donut__center span {
  color: var(--g500);
  font-size: calc(var(--u) * 0.75);
}

.app-donut__center b {
  font-size: calc(var(--u) * 1.25);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.app-pays {
  margin-top: calc(var(--u) * 1);
}

.app-pays li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--u) * 0.625) 0;
  font-size: calc(var(--u) * 0.875);
}

.app-pays li + li {
  border-top: 1px solid var(--g100);
}

.app-pays li span {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--u) * 0.5);
  color: var(--g700);
}

.app-pays li span i {
  width: calc(var(--u) * 0.625);
  height: calc(var(--u) * 0.625);
  border-radius: 50%;
}

.app-pays li b {
  font-weight: 600;
}

.app-pays li small {
  display: inline-block;
  width: calc(var(--u) * 2.25);
  margin-left: calc(var(--u) * 0.5);
  color: var(--g400);
  font-size: calc(var(--u) * 0.75);
  text-align: right;
}

/* ---------- Cinta de sectores ---------- */

.marquee {
  padding: 70px 0;
  overflow: hidden;
  border-block: 1px solid;
  border-image: linear-gradient(90deg, transparent, var(--line-2) 25%, var(--line-2) 75%, transparent) 1;
}

.marquee__row {
  display: flex;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__row + .marquee__row {
  margin-top: 6px;
}

.marquee__track {
  display: flex;
  flex: none;
  align-items: center;
  animation: marquee 48s linear infinite;
}

.marquee__row--rev .marquee__track {
  animation-direction: reverse;
  animation-duration: 56s;
}

.marquee__track span {
  margin-right: 44px;
  color: var(--text);
  font-size: clamp(54px, 8.6vw, 132px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.marquee__track span.is-outline {
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(0, 0, 0, 0.28);
}

.marquee__track i {
  flex: none;
  width: 16px;
  height: 16px;
  margin-right: 44px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 6px 16px rgba(70, 95, 255, 0.45);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Sectores ----------
   La tarjeta hace de panel de fondo y el terminal, completo, sobresale por arriba. */

.sectors {
  padding: 160px 0;
}

.sectors__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 150px;
}

.sector {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 34px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 20%, rgba(70, 95, 255, 0.07), transparent 70%),
    linear-gradient(180deg, #f5f5f7 0%, #eff0f4 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04), inset 0 1px 0 #fff;
  color: var(--text);
  text-decoration: none;
  transition: box-shadow 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.sector:hover {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04), inset 0 1px 0 #fff, 0 30px 60px -36px rgba(20, 24, 60, 0.3);
}

.sector__img {
  position: relative;
  z-index: 1;
  margin: -120px 6% 0;
}

/* Sombra de contacto bajo la base del terminal */
.sector__img::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: -2%;
  z-index: -1;
  height: 9%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(20, 24, 60, 0.35), transparent);
  filter: blur(8px);
  transition: transform 0.8s var(--ease-out), opacity 0.8s;
}

.sector__img img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 34px 36px rgba(20, 24, 60, 0.22)) drop-shadow(0 8px 12px rgba(20, 24, 60, 0.1));
  transition: transform 0.8s var(--ease-out);
}

.sector:hover .sector__img img {
  transform: translateY(-12px);
}

.sector:hover .sector__img::after {
  opacity: 0.7;
  transform: scale(0.92);
}

.sector__text {
  padding: 18px 40px 40px;
}

.sector h3 {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.sector p {
  max-width: 460px;
  margin: 8px 0 16px;
  color: var(--text-2);
}

/* ---------- Precio ---------- */

.price {
  padding: 140px 0 160px;
  /* Banda gris que entra y sale en degradado: sin cortes con las secciones blancas */
  background: linear-gradient(180deg, var(--bg) 0, var(--bg-alt) 180px, var(--bg-alt) calc(100% - 180px), var(--bg) 100%);
}

.price__card {
  position: relative;
  padding: 1.5px;
  border-radius: 38px;
  background: conic-gradient(from var(--angle), rgba(0, 0, 0, 0.07) 0deg, rgba(0, 0, 0, 0.07) 200deg, var(--brand-500) 280deg, #a5b8ff 310deg, rgba(0, 0, 0, 0.07) 340deg);
  box-shadow: var(--shadow-float);
  animation: spin 7s linear infinite;
}

@keyframes spin {
  to {
    --angle: 360deg;
  }
}

.price__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  padding: 64px;
  border-radius: 36.5px;
  background:
    radial-gradient(ellipse 60% 70% at 0% 0%, rgba(70, 95, 255, 0.08), transparent 70%),
    #fff;
}

.price__kicker {
  color: var(--brand-600);
  font-size: 15px;
  font-weight: 600;
}

.price__amount {
  margin-top: 18px;
  font-size: clamp(96px, 12.5vw, 184px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.065em;
  font-variant-numeric: proportional-nums;
}

.price__amount small {
  display: block;
  margin-top: 22px;
  color: var(--text-2);
  -webkit-text-fill-color: var(--text-2);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.price__desc {
  margin: 10px 0 36px;
  color: var(--text-2);
  font-size: 18px;
}

.price__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
}

.price__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-self: center;
  column-gap: 28px;
}

.price__list li {
  position: relative;
  padding: 13px 0 13px 28px;
  border-top: 1px solid var(--line);
  color: #3a3a3f;
  font-size: 14.5px;
  line-height: 1.4;
}

.price__list li::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 0;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--brand-50)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%233641f5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 100% no-repeat;
}

/* Novedades incluidas */
.updates {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: -16px;
  padding: 22px 28px 22px 22px;
  border: 1px solid var(--brand-100);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 50% 120% at 100% 50%, rgba(70, 95, 255, 0.12), transparent 70%),
    linear-gradient(90deg, var(--brand-25), #fff);
}

.updates__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  box-shadow: 0 12px 24px -10px rgba(70, 95, 255, 0.8);
}

.updates__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--brand-400);
  animation: updatePing 2.6s ease-out infinite;
}

@keyframes updatePing {
  from {
    transform: scale(1);
    opacity: 0.7;
  }
  to {
    transform: scale(1.45);
    opacity: 0;
  }
}

.updates__icon svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.updates__title {
  color: var(--text);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.updates__text p:last-child {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 15.5px;
}

.updates__zero {
  display: grid;
  justify-items: end;
  padding-left: 24px;
  border-left: 1px solid var(--brand-100);
  text-align: right;
}

.updates__zero strong {
  color: var(--brand-600);
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: proportional-nums;
}

.updates__zero span {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}

.hardware {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  margin-top: 20px;
  padding: 18px 40px 18px 28px;
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.hardware img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(20, 24, 60, 0.18));
}

.hardware h3 {
  max-width: 560px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hardware p {
  max-width: 520px;
  margin-top: 12px;
  color: var(--text-2);
}

/* ---------- Cierre: tarjeta con luz suave y fragmentos de la app flotando ---------- */

.closing {
  padding: 120px 0 140px;
}

.closing__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 150px 40px 140px;
  border-radius: 44px;
  background: #fbfbfd;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05), 0 50px 100px -60px rgba(20, 24, 60, 0.35);
  text-align: center;
}

.closing__aurora {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.closing__aurora i {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  animation: aurora 18s ease-in-out infinite alternate;
}

.closing__aurora i:nth-child(1) {
  top: -30%;
  left: -10%;
  width: 60%;
  height: 90%;
  background: rgba(70, 95, 255, 0.32);
}

.closing__aurora i:nth-child(2) {
  top: -20%;
  right: -12%;
  width: 55%;
  height: 85%;
  background: rgba(156, 120, 255, 0.26);
  animation-delay: -6s;
  animation-duration: 22s;
}

.closing__aurora i:nth-child(3) {
  bottom: -45%;
  left: 25%;
  width: 55%;
  height: 80%;
  background: rgba(18, 183, 106, 0.14);
  animation-delay: -11s;
  animation-duration: 26s;
}

@keyframes aurora {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(6%, 8%) scale(1.12);
  }
}

.closing__lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 50% 50%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 60% at 50% 50%, #000, transparent 75%);
}

.closing__inner {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.closing h2 {
  font-size: clamp(48px, 7.6vw, 116px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.052em;
  padding-bottom: 0.06em;
}

.closing p {
  max-width: 540px;
  margin: 28px auto 0;
  color: var(--text-2);
  font-size: 19px;
}

.closing__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.closing .closing__note {
  margin-top: 22px;
  color: var(--text-3);
  font-size: 14px;
}

/* Fragmentos de la app en tarjetas de cristal */
.closing__floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cfloat {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--app-ink);
  font-size: 13px;
  line-height: 1.3;
  text-align: left;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 24px 48px -24px rgba(20, 24, 60, 0.35), 0 2px 6px rgba(20, 24, 60, 0.05);
  animation: bob 7s ease-in-out infinite;
}

.cfloat b {
  display: block;
  font-weight: 600;
}

.cfloat small {
  display: block;
  color: var(--app-ink-3);
  font-size: 12px;
}

.cfloat--a {
  top: 15%;
  left: 5%;
  transform: rotate(-3deg);
}

.cfloat--b {
  top: 19%;
  right: 5%;
  animation-delay: -2.5s;
}

.cfloat--c {
  bottom: 17%;
  left: 7%;
  gap: 16px;
  padding: 14px 16px;
  animation-delay: -4s;
}

.cfloat--d {
  right: 7%;
  bottom: 14%;
  animation-delay: -5.5s;
}

.cfloat__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

.cfloat__icon svg {
  width: 18px;
  height: 18px;
}

.cfloat__icon--ok {
  background: var(--success);
  color: #fff;
  box-shadow: 0 8px 16px -8px rgba(18, 183, 106, 0.8);
}

.cfloat__icon--brand {
  background: var(--brand-50);
  color: var(--brand-500);
}

.cfloat__big {
  margin-top: 2px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.cfloat__up {
  align-self: flex-end;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--success-50);
  color: var(--success-700);
  font-size: 12px;
  font-weight: 600;
}

/* ---------- Pie ---------- */

.footer {
  position: relative;
  overflow: hidden;
  padding: 96px 0 0;
  border-top: 1px solid;
  border-image: linear-gradient(90deg, transparent, var(--line-2) 25%, var(--line-2) 75%, transparent) 1;
  background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
  font-size: 15px;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
}

.footer__brand img {
  width: auto;
  height: 42px;
}

.footer__brand p {
  max-width: 320px;
  margin: 20px 0 28px;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.5;
}

.footer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.footer__wa {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 20px 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 24px -16px rgba(20, 24, 60, 0.35);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}

.footer__wa:hover {
  border-color: rgba(37, 211, 102, 0.6);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 14px 30px -16px rgba(37, 211, 102, 0.55);
  transform: translateY(-1px);
}

.footer__mail {
  color: var(--text-2);
  font-weight: 500;
  text-decoration: none;
}

.footer__mail:hover,
.footer__col a:hover,
.footer__legal a:hover {
  color: var(--text);
}

.footer__col h2 {
  margin-bottom: 16px;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
}

.footer__col a {
  display: block;
  width: fit-content;
  padding: 5px 0;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 80px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 14px;
}

.footer__legal {
  display: flex;
  gap: 22px;
}

.footer__legal a {
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s;
}

/* Marca gigante que remata la página */
.footer__mark {
  margin: 0 0 -0.16em;
  background: linear-gradient(180deg, rgba(29, 29, 31, 0.11) 0%, rgba(29, 29, 31, 0.02) 70%, rgba(29, 29, 31, 0) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(44px, 16.5vw, 270px);
  font-weight: 600;
  line-height: 0.85;
  letter-spacing: -0.06em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  /* Es decorativa: su caja se solapa con el pie y no debe tapar los enlaces */
  pointer-events: none;
}

/* ---------- WhatsApp ---------- */

.wa-ico {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  color: #25d366;
}

.btn--wa {
  gap: 10px;
}

.footer__wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}


.v2 .whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.55);
  transition: transform 0.2s var(--ease);
}

.v2 .whatsapp-float:hover {
  transform: scale(1.06);
}

/* =====================================================================
   PÁGINAS INTERIORES: componentes compartidos
   ===================================================================== */

/* Cabecera de página: misma luz y rejilla que el hero de la home */
.phero {
  position: relative;
  padding: 176px 0 104px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 70%);
}

.phero__inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.phero h1 {
  margin-top: 26px;
  font-size: clamp(44px, 7.2vw, 104px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.05em;
  padding-bottom: 0.06em;
  animation: rise 1.1s 0.1s var(--ease-out) both;
}

.phero__lead {
  max-width: 620px;
  margin: 26px auto 0;
  color: var(--text-2);
  font-size: 19px;
  line-height: 1.55;
  animation: rise 1.1s 0.3s var(--ease-out) both;
}

.phero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
  animation: rise 1.1s 0.4s var(--ease-out) both;
}

/* Variante con texto a la izquierda y visual a la derecha */
.phero--split .phero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  padding: 0 var(--gutter);
  text-align: left;
}

.phero--split .phero__lead {
  margin-left: 0;
}

.phero--split .phero__ctas {
  justify-content: flex-start;
}

.phero__visual {
  position: relative;
  animation: deviceIn 1.4s 0.35s var(--ease-out) both;
}

/* Precio justo después de una cabecera de página */
.phero + .price {
  padding-top: 8px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 40%, var(--bg-alt) calc(100% - 180px), var(--bg) 100%);
}

/* ---------- Presentación del terminal (página de precios) ---------- */
.terminal {
  position: relative;
  padding: 150px 0 140px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 55%, #fff 100%);
}

.terminal__glow {
  position: absolute;
  left: 50%;
  top: 38%;
  width: 1200px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(70, 95, 255, 0.16), rgba(156, 120, 255, 0.07) 55%, transparent);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.terminal__head {
  position: relative;
}

.terminal__head .badge {
  margin-bottom: 26px;
  animation: none;
}

.terminal__head h2 {
  font-size: clamp(44px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.terminal .hero__device {
  margin-top: 80px;
  animation: none;
}

/* Pie del terminal dibujado (cuello con la línea naranja y base) */
.pos-stand {
  position: relative;
  height: 170px;
  margin-top: -4px;
  transform-style: preserve-3d;
}

.pos-stand__neck {
  position: absolute;
  top: 0;
  left: 39%;
  width: 22%;
  height: 132px;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(90deg, #121316 0%, #34353c 38%, #1d1e22 62%, #0e0f12 100%);
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, 0.45);
}

.pos-stand__neck::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  top: 62%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #ff7a1a 20%, #ff7a1a 80%, transparent);
  opacity: 0.85;
}

.pos-stand__base {
  position: absolute;
  bottom: 0;
  left: 26%;
  width: 48%;
  height: 46px;
  border-radius: 50% / 60%;
  background: radial-gradient(ellipse at 50% 30%, #5a5b63 0%, #2a2b30 55%, #141518 100%);
  box-shadow: 0 34px 50px -16px rgba(20, 24, 60, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.12);
}

/* Franja de especificaciones */
.specs {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr));
  margin-top: 72px;
  border-radius: 28px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05), var(--shadow-card);
}

.specs li {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
}

.specs li + li {
  border-left: 1px solid var(--line);
}

.specs i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-500);
}

.specs i .ico {
  width: 20px;
  height: 20px;
}

.specs b {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.specs span {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.45;
}

.specs__price {
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 90% at 0% 0%, rgba(70, 95, 255, 0.12), transparent 70%);
  border-radius: 28px 0 0 28px;
}

.specs__price b {
  font-size: 54px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: proportional-nums;
  background: linear-gradient(180deg, #1d1d1f 40%, #55555d 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.specs__price span {
  margin-top: 8px;
}

@media (max-width: 1080px) {
  .specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .specs li + li {
    border-left: 0;
  }

  .specs li {
    border-top: 1px solid var(--line);
  }

  .specs__price {
    grid-column: 1 / -1;
    border-top: 0 !important;
    border-radius: 28px 28px 0 0;
  }

  .specs li:nth-child(odd):not(.specs__price) {
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .terminal {
    padding: 100px 0 90px;
  }

  .terminal .hero__device {
    margin-top: 48px;
  }

  .pos-stand {
    display: none;
  }

  .specs {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 48px;
  }

  .specs li:nth-child(odd):not(.specs__price) {
    border-left: 0;
  }
}

/* ---------- Precios: el terminal se enciende con la app real ---------- */
.hw {
  position: relative;
  max-width: 940px;
  margin: 90px auto 0;
}

.hw__device {
  position: relative;
  isolation: isolate;
}

.hw__device::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 10%;
  right: 10%;
  bottom: -2%;
  height: 10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(20, 24, 60, 0.28), transparent);
  filter: blur(16px);
}

.hw__photo {
  position: relative;
  width: 100%;
  height: auto;
}

/* Medido sobre la foto: x 48–1057, y 50–654 de 1100 × 986 */
.hw__screen {
  position: absolute;
  left: calc(4.364% - 1px);
  top: calc(5.071% - 1px);
  width: calc(91.82% + 2px);
  height: calc(61.36% + 2px);
  overflow: hidden;
  border-radius: 2px;
  background: #0b0c0f;
  container-type: inline-size;
}

.hw-state {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.hw-state.is-on {
  opacity: 1;
}

/* Arranque, igual que #sacomanda-boot-screen de la app (pantalla de 1280 px de ancho) */
.hw-state--boot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
}

.hw-state--boot img {
  width: auto;
  height: 5cqw;
}

.hw-boot__bar {
  position: relative;
  width: 11.25cqw;
  height: 0.32cqw;
  margin-top: 2.2cqw;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(17, 24, 39, 0.08);
}

.hw-boot__bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  border-radius: inherit;
  background: #465fff;
  animation: hwBoot 1.15s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes hwBoot {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(250%);
  }
}

.hw-state--boot p {
  margin-top: 1.1cqw;
  color: #667085;
  font-size: 1.1cqw;
  font-weight: 500;
}

/* TPV de sala real */
.hw-state--app img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hw-state--app.is-on img {
  animation: hwApp 1.2s var(--ease-out) both;
}

@keyframes hwApp {
  from {
    transform: scale(1.025);
    filter: blur(2px);
  }
}

/* Pantalla apagada: cristal negro con reflejo, se desvanece al encender */
.hw__off {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, transparent 38%, rgba(255, 255, 255, 0.07) 47%, rgba(255, 255, 255, 0.02) 55%, transparent 62%),
    radial-gradient(120% 90% at 20% 0%, #23252b, #0b0c0f 70%);
  transition: opacity 0.9s cubic-bezier(0.7, 0, 0.3, 1);
}

.hw.is-on .hw__off {
  opacity: 0;
}

/* Cristal: reflejo muy suave y sombra interior en los bordes, siempre encima */
.hw__glass {
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, transparent 40%, rgba(255, 255, 255, 0.1) 48%, transparent 58%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35), inset 0 0 18px rgba(0, 0, 0, 0.12);
  mix-blend-mode: screen;
  pointer-events: none;
}

@media (max-width: 720px) {
  .hw {
    margin-top: 48px;
  }
}

/* Secciones */
.section {
  padding: 140px 0;
}

.section--alt {
  /* Banda gris que entra y sale en degradado: sin cortes con las secciones blancas */
  background: linear-gradient(180deg, var(--bg) 0, var(--bg-alt) 180px, var(--bg-alt) calc(100% - 180px), var(--bg) 100%);
}

.section--tight {
  padding: 100px 0;
}

.section + .section:not(.section--alt) {
  border-top: 1px solid;
  border-image: linear-gradient(90deg, transparent, var(--line-2) 25%, var(--line-2) 75%, transparent) 1;
}

.section-head + * {
  margin-top: 64px;
}

/* Texto + visual */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 80px;
}

.split--rev > :first-child {
  order: 2;
}

.split__copy h2 {
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  padding-bottom: 0.06em;
}

.split__copy > p {
  max-width: 520px;
  margin-top: 22px;
  color: var(--text-2);
  font-size: 18px;
}

.split__copy .checklist {
  margin-top: 28px;
}

/* Escenario para fotos del terminal: tarjeta de fondo y el equipo sobresaliendo */
.device-stage {
  position: relative;
  padding: 0 6% 7%;
  margin-top: 90px;
  border-radius: 36px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 25%, rgba(70, 95, 255, 0.08), transparent 70%),
    linear-gradient(180deg, #f5f5f7 0%, #eff0f4 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04), inset 0 1px 0 #fff;
}

.device-stage img {
  position: relative;
  width: 100%;
  height: auto;
  margin-top: -90px;
  filter: drop-shadow(0 34px 36px rgba(20, 24, 60, 0.22)) drop-shadow(0 8px 12px rgba(20, 24, 60, 0.1));
}

/* Lista con checks azules */
.checklist li {
  position: relative;
  padding: 13px 0 13px 30px;
  border-top: 1px solid var(--line);
  color: #3a3a3f;
  font-size: 16px;
  line-height: 1.45;
}

.checklist li:last-child {
  border-bottom: 1px solid var(--line);
}

.checklist li::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-50)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%233641f5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 100% no-repeat;
}

.checklist--cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
}

.checklist--cols li:nth-last-child(2):nth-child(odd) {
  border-bottom: 1px solid var(--line);
}

/* Tarjetas de características */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cards--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  padding: 30px;
  border-radius: 28px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05), var(--shadow-card);
}

.section--alt .card {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03), var(--shadow-card);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--brand-50);
  color: var(--brand-500);
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.55;
}

/* Pasos (solo para contenido que de verdad es una secuencia) */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 30px;
  border-radius: 28px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05), var(--shadow-card);
}

.step__n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 10px 20px -10px rgba(70, 95, 255, 0.8);
}

.step h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.step p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 15.5px;
}

/* Preguntas frecuentes */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 80px;
  align-items: start;
}

.faq__intro {
  position: sticky;
  top: 120px;
}

.faq__intro h2 {
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  padding-bottom: 0.06em;
}

.faq__intro p {
  max-width: 380px;
  margin-top: 20px;
  color: var(--text-2);
  font-size: 17px;
}

.faq__intro .btn {
  margin-top: 26px;
}

.faq__list details {
  border-bottom: 1px solid var(--line);
}

.faq__list details:first-child {
  border-top: 1px solid var(--line);
}

.faq__list summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
}

.faq__list summary::-webkit-details-marker {
  display: none;
}

.faq__list summary::after {
  content: "";
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    linear-gradient(var(--text), var(--text)) center / 12px 1.6px no-repeat,
    linear-gradient(var(--text), var(--text)) center / 1.6px 12px no-repeat,
    var(--bg-alt);
  transition: transform 0.4s var(--ease-out), background-color 0.3s;
}

.faq__list details[open] summary::after {
  transform: rotate(135deg);
  background-color: var(--brand-50);
}

.faq__list summary:hover::after {
  background-color: #ebebef;
}

.faq__body {
  overflow: hidden;
}

.faq__body p {
  max-width: 640px;
  padding: 0 4px 28px;
  color: var(--text-2);
  font-size: 16.5px;
  line-height: 1.65;
}

/* Texto largo (legal) */
.prose {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.75;
}

.prose h2 {
  margin: 56px 0 14px;
  color: var(--text);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin: 32px 0 10px;
  color: var(--text);
  font-size: 19px;
  font-weight: 600;
}

.prose p + p,
.prose ul,
.prose ol {
  margin-top: 14px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
  list-style: disc;
}

.prose li + li {
  margin-top: 6px;
}

.prose a {
  color: var(--brand-600);
  text-underline-offset: 3px;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

/* Enlaces en cápsula (zonas, páginas relacionadas) */
.pill-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-links a {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 8px 20px -14px rgba(20, 24, 60, 0.3);
  transition: box-shadow 0.25s, transform 0.25s var(--ease);
}

.pill-links a:hover {
  box-shadow: inset 0 0 0 1px var(--brand-300), 0 12px 24px -14px rgba(70, 95, 255, 0.45);
  transform: translateY(-1px);
}

.pill-links a[aria-current="page"] {
  background: var(--brand-500);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(70, 95, 255, 0.8);
}

/* Cifras destacadas (solo datos reales) */
.statband {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.statband > div {
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.statband b {
  display: block;
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: proportional-nums;
}

.statband span {
  display: block;
  margin-top: 10px;
  color: var(--text-2);
  font-size: 15px;
}

@media (max-width: 1080px) {
  .cards,
  .cards--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .statband {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .phero--split .phero__inner,
  .split,
  .faq {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .split--rev > :first-child {
    order: 0;
  }

  .faq__intro {
    position: static;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .phero {
    padding: 132px 0 72px;
  }

  .phero__lead {
    font-size: 17px;
  }

  .phero__ctas .btn {
    flex: 1;
  }

  .section {
    padding: 96px 0;
  }

  .section--tight {
    padding: 72px 0;
  }

  .section-head + * {
    margin-top: 44px;
  }

  .cards,
  .cards--2,
  .cards--4,
  .checklist--cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .card,
  .step {
    padding: 24px;
    border-radius: 24px;
  }

  .device-stage {
    margin-top: 60px;
    border-radius: 28px;
  }

  .device-stage img {
    margin-top: -60px;
  }

  .faq__list summary {
    padding: 22px 2px;
    font-size: 17px;
  }

  .prose {
    font-size: 16px;
  }
}

/* ---------- Adaptación ---------- */

@media (max-width: 1180px) {
  .tpv {
    --u: 11.5px;
  }

  .receipt {
    right: -8px;
  }

  .story__grid {
    gap: 56px;
  }

  .tile--floor,
  .tile--kds {
    grid-column: span 6;
  }

  .tile--res {
    grid-column: span 7;
  }

  .tile--team {
    grid-column: span 5;
  }

  .tile--qr,
  .tile--stock,
  .tile--vf,
  .tile--chart {
    grid-column: span 6;
  }

  .orbit__chip[data-orbit="alcudia"],
  .orbit__chip[data-orbit="palma"] {
    left: -6%;
  }
}

@media (max-width: 1240px) {
  .closing__floats {
    display: none;
  }
}

@media (max-width: 960px) {
  .nav__links,
  .nav__login {
    display: none;
  }

  .nav__bar {
    grid-template-columns: 1fr auto;
  }

  .nav__toggle {
    display: block;
  }

  .hero {
    padding: 132px 0 72px;
  }

  .hero__device {
    margin-top: 64px;
  }

  .tpv {
    --u: 10px;
  }

  .receipt {
    position: relative;
    top: auto;
    right: auto;
    margin: -28px auto 0;
    transform: rotate(-1.5deg);
  }

  .story__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .story__stage {
    top: 76px;
    z-index: 3;
    height: 400px;
    margin-top: 0;
  }

  /* Móvil: la escena queda fija arriba y cada paso se lee entero justo debajo */
  .story__steps {
    padding-bottom: 28vh;
    border-left: 0;
  }

  .story__step {
    justify-content: flex-start;
    min-height: 34vh;
    padding-top: 22px;
    padding-left: 4px;
  }

  .story__step::before {
    display: none;
  }

  .remote__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .remote__visual {
    min-height: 0;
    padding: 20px 0;
  }

  .orbit {
    display: none;
  }

  .price__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding: 48px 36px;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 16px;
  }

  body.v2 {
    font-size: 16px;
  }

  .nav__bar {
    height: 66px;
    padding: 0 4px;
  }

  .nav.is-scrolled,
  .nav.is-open {
    top: 10px;
  }

  .nav.is-scrolled .nav__bar,
  .nav.is-open .nav__bar {
    height: 58px;
    padding: 0 8px 0 14px;
    border-radius: 18px;
  }

  .nav__logo img,
  .nav.is-scrolled .nav__logo img {
    height: 30px;
  }

  .hero__title {
    margin-top: 22px;
  }

  .hero__lead {
    font-size: 17px;
  }

  .hero__ctas .btn {
    flex: 1;
    padding: 0 16px;
  }

  .pos {
    padding: 8px;
    border-radius: 28px;
  }

  .tpv {
    --u: 12px;
    height: auto;
    border-radius: 21px;
  }

  .tpv-top__nav,
  .tpv-local,
  .tpv-tables,
  .tpv-quick,
  .tpv-tickets {
    display: none;
  }

  .tpv-top {
    justify-content: space-between;
  }

  .tpv-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tpv-catalog__head {
    justify-content: flex-start;
  }

  .tpv-catalog__title {
    position: static;
    max-width: none;
    margin-left: auto;
    transform: none;
  }

  .tpv-cats,
  .tpv-products {
    grid-template-columns: 1fr 1fr;
  }

  .tpv-lines__list {
    max-height: calc(var(--u) * 20);
  }

  .tpv-modal {
    align-items: start;
    padding: calc(var(--u) * 0.5);
  }

  .tpv-modal__panel {
    height: auto;
    max-height: none;
  }

  .tpv-modal__head {
    padding: calc(var(--u) * 0.875) calc(var(--u) * 4.25) calc(var(--u) * 0.875) calc(var(--u) * 1);
  }

  .tpv-modal__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .tpv-pay-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tpv-method {
    min-height: calc(var(--u) * 5.5);
  }

  .tpv-pay-totals,
  .tpv-subtitle,
  .tpv-chips,
  .tpv-amount__split,
  .tpv-modal__foot .tpv-btn-sec[aria-hidden] {
    display: none;
  }

  .tpv-cash {
    grid-template-columns: minmax(0, 1fr);
  }

  .tpv-btn-pay {
    flex: 1;
    min-width: 0;
  }

  .manifesto {
    padding: 90px 0 100px;
  }

  .story {
    padding: 80px 0 40px;
  }

  .story__stage {
    height: 340px;
  }

  .stage {
    border-radius: 28px;
  }

  .scene {
    padding: 20px;
  }

  .ui {
    padding: 16px;
  }

  .ui__lines li {
    padding: 10px 0;
    font-size: 13.5px;
  }

  .scene--kitchen {
    gap: 14px;
    padding-top: 36px;
  }

  .kt {
    width: 46%;
  }

  .kt__paper {
    padding: 14px 10px 22px;
    font-size: 10px;
  }

  .kt__zone {
    font-size: 12px;
  }

  .ring {
    width: 190px;
    height: 190px;
  }

  .ring__label strong {
    font-size: 56px;
  }

  .stock__alert {
    margin-top: 18px;
    font-size: 12.5px;
  }

  .pay {
    transform: scale(0.72);
    margin: -30px 0 -40px;
  }

  .pay__amount {
    margin-top: 10px;
    font-size: 36px;
  }

  .pay__checks li {
    font-size: 13.5px;
  }

  .scene--numbers {
    padding: 28px 22px;
  }

  .nums__big {
    font-size: 46px;
  }

  .nums__chart {
    height: 120px;
    margin-top: 18px;
  }

  .story__step h3 {
    font-size: 28px;
  }

  .story__step p {
    font-size: 16.5px;
  }

  .suite {
    padding: 100px 0 110px;
  }

  .bento {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 52px;
  }

  .bento .tile {
    grid-column: auto;
    min-height: 0;
    padding: 22px;
  }

  .floor {
    min-height: 220px;
  }

  .tile__ui {
    min-height: 160px;
  }

  .kds {
    gap: 6px;
  }

  .kds__col {
    padding: 8px;
  }

  .kds__col b {
    padding: 7px;
    font-size: 12px;
  }

  .remote {
    padding: 100px 0;
  }

  .phone {
    width: 100%;
    max-width: 340px;
  }

  .marquee {
    padding: 44px 0;
  }

  .sectors {
    padding: 110px 0;
  }

  .sectors__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 96px;
    margin-top: 100px;
  }

  .sector {
    border-radius: 28px;
  }

  .sector__img {
    margin: -72px 4% 0;
  }

  .sector__text {
    padding: 12px 24px 28px;
  }

  .sector h3 {
    font-size: 28px;
  }

  .price {
    padding: 100px 0 110px;
  }

  .price__card {
    border-radius: 30px;
  }

  .price__inner {
    padding: 36px 22px;
    border-radius: 28.5px;
  }

  .price__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .updates {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    margin-top: -8px;
    padding: 20px;
  }

  .updates__icon {
    align-self: start;
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .updates__title {
    font-size: 17px;
  }

  .updates__zero {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 10px;
    padding: 14px 0 0;
    border-top: 1px solid var(--brand-100);
    border-left: 0;
    text-align: left;
  }

  .updates__zero strong {
    font-size: 34px;
  }

  .hardware {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 16px 22px 28px;
    border-radius: 28px;
  }

  .hardware img {
    height: 200px;
  }

  .hardware h3 {
    font-size: 24px;
  }

  .closing {
    padding: 80px 0 90px;
  }

  .closing__card {
    padding: 88px 20px 80px;
    border-radius: 30px;
  }

  .closing p {
    font-size: 17px;
  }

  .closing__ctas .btn {
    width: 100%;
  }

  .footer {
    padding-top: 72px;
  }

  .footer__top {
    gap: 40px 24px;
  }

  .footer__bottom {
    flex-direction: column;
    margin-top: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .hero__tilt {
    --rx: 0deg !important;
    --s: 1 !important;
  }

  .marquee__track {
    animation: none;
  }
}

/* =====================================================================
   Mapa de zona (páginas de Mallorca, Baleares y provincias)
   ===================================================================== */
.zmap {
  position: relative;
  margin: 0;
}

/* Luz suave detrás del contorno, sin recuadro */
.zmap::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(70, 95, 255, 0.14), rgba(156, 120, 255, 0.06) 60%, transparent);
  filter: blur(10px);
  pointer-events: none;
}

.zmap__svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  overflow: visible;
  position: relative;
}

.zmap__land,
.zmap__dots {
  opacity: 0;
  animation: zmapFill 1.2s 1.1s var(--ease) forwards;
}

@keyframes zmapFill {
  to {
    opacity: 1;
  }
}

.zmap__coast {
  fill: none;
  stroke: #1d1d1f;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: zmapDraw 2.2s 0.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes zmapDraw {
  to {
    stroke-dashoffset: 0;
  }
}

.zmap__pin {
  opacity: 0;
  animation: zmapPin 0.6s calc(1.6s + var(--k) * 0.12s) var(--ease-out) forwards;
  cursor: default;
  outline: none;
}

@keyframes zmapPin {
  to {
    opacity: 1;
  }
}

.zmap__dot {
  fill: #465fff;
  stroke: #fff;
  stroke-width: 2;
}

.zmap__halo {
  fill: rgba(70, 95, 255, 0.18);
  transform-box: fill-box;
  transform-origin: center;
  animation: zmapHalo 2.8s calc(2.4s + var(--k) * 0.35s) ease-out infinite;
  opacity: 0;
}

@keyframes zmapHalo {
  0% {
    opacity: 0.9;
    transform: scale(0.4);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

.zmap__pin text {
  fill: #1d1d1f;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 4px;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity 0.25s;
}

.zmap__pin.has-label text,
.zmap__pin:hover text,
.zmap__pin:focus-visible text {
  opacity: 1;
}

.zmap__pin.is-main text {
  font-size: 15px;
  font-weight: 700;
}

.zmap__pin:focus-visible .zmap__dot {
  stroke: #1d1d1f;
}


@media (prefers-reduced-motion: reduce) {
  .zmap__land,
  .zmap__dots,
  .zmap__pin,
  .zmap__coast {
    animation: none;
    opacity: 1;
    stroke-dashoffset: 0;
  }

  .zmap__halo {
    animation: none;
  }
}

@media (max-width: 720px) {
  .zmap__pin text {
    font-size: 15px;
  }
}

/* El TPV del index dentro de las páginas de zona */
.zh-pos {
  padding: 40px 0 140px;
  overflow-x: clip;
}

.zh-pos .hero__device {
  margin-top: 56px;
  animation: none;
}

@media (max-width: 720px) {
  .zh-pos {
    padding: 20px 0 90px;
  }

  .zh-pos .hero__device {
    margin-top: 36px;
  }
}
