@font-face { font-family: "Geist"; src: url("assets/fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/geist-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20CF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; src: url("assets/fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #140826;
  --body: #4B3D66;
  --muted: #6E5F88;
  --line: #ECE7F3;
  --brand: #7E22CE;
  --brand-deep: #581C87;
  --soft: #F6F1FB;
  --ok: #047857;
  --canvas: #FBFBFE;
  --shadow: 0 1px 2px rgba(20, 8, 38, .06), 0 14px 40px rgba(60, 30, 120, .12);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: clamp(20px, 4.5cm, 4.5cm); /* marco lateral del contenido */
  --nav-pad: clamp(20px, 3.5cm, 3.5cm); /* el header conserva su margen */
  --nav-h: 84px;
  --panel: min(600px, 44%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Geist", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* ---------- Fondo fijo (Isotipo y marca completa I'M + NOVA tras vidrio) ---------- */
.stage { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.frame { position: absolute; inset: 0; overflow: hidden; background: #F3F0FA; }
.stage-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vh 5vw;
}
.stage-mark::before {
  content: "";
  position: absolute;
  width: min(78vw, 1180px);
  height: min(62vh, 560px);
  background:
    radial-gradient(44% 52% at 32% 58%, rgba(0, 212, 255, .36), rgba(0, 212, 255, 0) 72%),
    radial-gradient(48% 54% at 62% 48%, rgba(126, 34, 206, .34), rgba(126, 34, 206, 0) 75%);
  filter: blur(36px);
}
.stage-logo-svg {
  position: relative;
  width: min(86vw, 1320px);
  max-height: 76vh;
  height: auto;
  filter: blur(9px);
  opacity: .78;
}
.frost {
  position: absolute; inset: 0;
  background:
    radial-gradient(62% 54% at 50% 0%, rgba(255,255,255,.68), rgba(255,255,255,0) 72%),
    radial-gradient(44% 62% at 0% 50%, rgba(255,255,255,.45), rgba(255,255,255,0) 70%),
    linear-gradient(rgba(250,249,255,.18), rgba(250,249,255,.18));
}
/* Capa de vidrio uniforme a pantalla completa (sin clip-path animado para evitar parpadeo en móvil) */
.glass {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.38), rgba(255,255,255,.28));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

/* ---------- Contenedor de scroll a pantalla completa ---------- */
.card {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  overscroll-behavior: contain;
}
.card::-webkit-scrollbar { display: none; }
.page { position: relative; padding: 0 var(--pad) 40px; }
.page.blurring { filter: url(#mblur); }

/* ---------- Animación de entrada (hero, acelerada por GPU sin blur para evitar parpadeos) ---------- */
.in {
  opacity: 0;
  animation: focusIn .55s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 14ms);
}
@keyframes focusIn {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: none; }
}
.nav .in { animation-name: focusInFlat; }
@keyframes focusInFlat { from { opacity: 0; } to { opacity: 1; } }
.from-right { animation-name: fromRight; animation-duration: .65s; }
@keyframes fromRight { from { opacity: 0; transform: translate3d(28px, 0, 0); } to { opacity: 1; transform: none; } }

/* Revelado al hacer scroll */
.rv { opacity: 0; transform: translate3d(0, 20px, 0); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.rv.from-left { transform: translate3d(-20px, 8px, 0); }
.rv.is-in { opacity: 1; transform: none; }

/* ---------- Blob (desactivado para no manchar ni distorsionar el isotipo de fondo) ---------- */
.blob {
  display: none !important;
}
.blob.paused { animation-play-state: paused; }
@keyframes blob {
  0% { transform: translate(18px, 0) rotate(0); }
  25% { transform: translate(0, 14px) rotate(90deg); }
  50% { transform: translate(-18px, 0) rotate(180deg); }
  75% { transform: translate(0, -14px) rotate(270deg); }
  100% { transform: translate(18px, 0) rotate(360deg); }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
  margin: 0 calc(-1 * var(--pad));
  padding: 0 var(--nav-pad);
  font-size: 14px;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.nav.scrolled {
  background: rgba(252, 251, 255, .9);
  border-bottom-color: rgba(20, 8, 38, .07);
  box-shadow: 0 6px 24px rgba(60, 30, 120, .06);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: .02em; }
.brand b { color: var(--brand); font-weight: 700; }
.links { display: flex; gap: 28px; margin-left: auto; font-weight: 500; }
.links a:hover, .text-link:hover { color: var(--brand); }
.nav-right { display: flex; align-items: center; gap: 22px; margin-left: 28px; }
.muted { color: var(--muted); }
.btn-outline { border: 1.5px solid var(--ink); border-radius: 9px; padding: 8px 14px; font-weight: 560; transition: background .2s, color .2s; }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  font: 560 15px/1 "Geist", sans-serif;
  padding: 14px 22px;
  border-radius: 10px;
  border: 0;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 8px 22px rgba(126, 34, 206, .28);
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn:hover { background: var(--brand-deep); }
.btn:active { transform: translateY(1px); }
.btn.fill { animation: focusIn .55s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 14ms); }
.text-link { font-weight: 560; font-size: 15px; transition: color .2s; }
.brand-c { color: var(--brand); display: inline-block; margin-top: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  column-gap: 48px;
  padding-bottom: clamp(28px, 5vh, 56px);
}
.hero-copy { grid-column: 1; grid-row: 1; }
.demo { grid-column: 2; grid-row: 1; position: relative; margin-right: -2%; }
.demo iframe { display: block; width: 100%; aspect-ratio: 1180 / 680; border: 0; background: transparent; }
.demo-link { position: absolute; right: 6%; bottom: 2%; font: 500 12px "Geist Mono", monospace; color: var(--muted); }
.demo-link:hover { color: var(--brand); }
.clients { grid-column: 1 / -1; grid-row: 2; }
h1 { font-weight: 640; font-size: clamp(38px, 3.7vw, 62px); line-height: 1.04; letter-spacing: -.038em; }
h1 span { display: block; }
.lead { max-width: 470px; margin-top: 22px; font-size: 17px; line-height: 1.55; color: var(--body); }
.cta-row { display: flex; align-items: center; gap: 26px; margin-top: 32px; }
.dots { position: absolute; right: calc(var(--panel) + 10px); top: 30%; overflow: visible; }
.dots circle { fill: var(--brand-deep); opacity: 0; animation: dot .3s ease forwards; }
@keyframes dot { to { opacity: .55; } }

.panel {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 12px;
}
.panel-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.sq { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.tabs { display: flex; gap: 22px; padding: 12px 20px 0; color: var(--muted); }
.tabs .on { color: var(--brand); font-weight: 600; border-bottom: 2px solid var(--brand); padding-bottom: 8px; }
.panel-cap { padding: 14px 20px 0; color: var(--muted); }
.chart { display: block; width: calc(100% - 40px); height: 92px; margin: 6px 20px 0; }
.chart line { stroke: var(--line); stroke-width: 1; }
.chart .stroke { fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 620; stroke-dashoffset: 620; animation: draw 1.3s cubic-bezier(.65,0,.35,1) 1.53s forwards; }
.chart .area { fill: rgba(126,34,206,.07); opacity: 0; animation: fade 1.3s ease 1.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.row { display: flex; justify-content: space-between; padding: 8px 20px; white-space: nowrap; opacity: 0; animation: fade .45s ease forwards; }
.row.r1 { animation-delay: 2s; } .row.r2 { animation-delay: 2.17s; }
.st { font: 500 11px "Geist Mono", monospace; color: var(--brand); }
.st.ok { color: var(--ok); }

.clients { text-align: center; }
.clients p { font-size: 13px; color: var(--muted); }
.clients ul { list-style: none; display: flex; justify-content: center; align-items: center; gap: clamp(22px, 4vw, 52px); margin-top: 22px; font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 18px; font-weight: 600; font-style: normal; letter-spacing: -0.015em; color: #3A3050; white-space: nowrap; flex-wrap: wrap; }
.clients ul li { font-family: inherit; font-size: inherit; font-weight: inherit; font-style: normal; letter-spacing: inherit; }
.clients ul li a { color: inherit; transition: color .2s var(--ease); }
.clients ul li a:hover { color: var(--brand); }

/* ---------- Secciones ---------- */
section + section { margin-top: 0; }
h2 { font-weight: 620; font-size: clamp(28px, 2.8vw, 38px); line-height: 1.08; letter-spacing: -.03em; }
h3 { font-weight: 600; letter-spacing: -.02em; }
p { font-size: 17px; line-height: 1.55; color: var(--body); }
.center { text-align: center; }
.narrow { max-width: 700px; margin: 40px auto 0; }
.mono { font: 500 13px "Geist Mono", monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }

.s2 { padding: 110px 0 60px; }
.s2 h2.rv { transition-duration: 1.1s; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 90px 0 70px; }
.cols article { border-top: 2px solid var(--line); padding-top: 22px; }
.cols article:first-child { border-color: var(--brand); }
.cols h3 { font-size: 21px; line-height: 1.2; margin: 14px 0 12px; }
.cols p { font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 96px 0; }
.split > * { justify-self: center; width: min(100%, 540px); }
.copy h2 + p { margin-top: 26px; max-width: 420px; }
.checks { list-style: none; margin-top: 34px; }
.checks li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 16px; }
.checks li::before { content: ""; flex: 0 0 20px; height: 20px; border-radius: 50%; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14 7.6' stroke='%237E22CE' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }

.stack { position: relative; height: 440px; width: min(100%, 440px) !important; }
.mini { position: absolute; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 18px; font-size: 14px; }
.mini.c1 { left: 0; top: 0; width: 280px; }
.mini.c2 { left: 158px; top: 150px; width: 260px; }
.mini.c3 { left: 0; top: 380px; }
.bubble { margin-top: 10px; background: var(--soft); border-radius: 10px; padding: 10px 12px; line-height: 1.4; }
.mini-head { display: flex; justify-content: space-between; font-weight: 600; }
.mini-head .mono { font-size: 12px; }
.li { font-size: 13px; color: var(--body); padding: 8px 0; border-bottom: 1px solid var(--line); }
.mini small { display: block; margin-top: 10px; font-size: 12px; color: var(--muted); }
.states { display: flex; gap: 16px; font-size: 13px; white-space: nowrap; }
.states span { display: flex; align-items: center; gap: 6px; }
.states i { width: 8px; height: 8px; border-radius: 4px; background: #D8CCE8; }
.states i.g { background: #059669; }

.s4 .copy { order: 0; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile { background: rgba(255,255,255,.78); border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px; font-size: 13px; }
.tile b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 12px; }
.tile small { display: block; margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--body); }
.ic { width: 48px; height: 48px; margin: 0; border-radius: 16px; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; transition: transform .25s var(--ease); }
.tile:hover .ic { transform: translateY(-3px); }
.ic svg { width: 28px; height: 28px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.t1 { left: 14%; top: 80px; } .t2 { left: 40%; top: 40px; } .t3 { left: 66%; top: 100px; }
.t4 { left: 3%; top: 230px; } .t5 { left: 31%; top: 200px; } .t6 { left: 57%; top: 260px; }
.t7 { left: 23%; top: 380px; }
.chip { position: absolute; font: 500 12px "Geist Mono", monospace; color: var(--body); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; white-space: nowrap; }
.k1 { left: 72%; top: 30px; } .k2 { left: 84%; top: 200px; } .k3 { left: 82%; top: 360px; } .k4 { left: -2%; top: 400px; } .k5 { left: 50%; top: 420px; }

.s5 { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.s5 .form { width: min(100%, 420px); }
.split h2 { font-size: clamp(26px, 2.6vw, 36px); white-space: nowrap; }
.s4 { grid-template-columns: 1fr 1fr; }
.s4 .tiles { width: min(100%, 620px); }
.form { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 26px; }
.form-head { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; margin-bottom: 20px; }
.form label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.form input { display: block; width: 100%; margin-top: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; font: 14px "Geist", sans-serif; color: var(--ink); background: #fff; transition: border-color .2s; }
.form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(126,34,206,.12); }
.btn.full { width: 100%; margin-top: 8px; }
.form-note { display: block; margin-top: 12px; font-size: 12px; color: var(--muted); text-align: center; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 132px)); gap: 18px; margin-top: 50px; }
.thumbs img { width: 100%; height: auto; aspect-ratio: 132 / 92; object-fit: cover; object-position: top left; border-radius: 10px; box-shadow: var(--shadow); }
.thumbs figcaption { font-size: 12px; color: var(--muted); margin-top: 10px; text-align: center; }

.s6 { padding: 96px 0 50px; }
.s6 > h2 { text-align: center; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1120px; margin: 56px auto 0; }
.item { display: flex; gap: 22px; align-items: center; padding: 18px; background: rgba(255,255,255,.78); border: 1px solid var(--line); border-radius: 16px; }
.item img { width: 180px; height: 116px; flex-shrink: 0; object-fit: cover; object-position: top left; border-radius: 10px; box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.item:hover img { transform: translateY(-3px); }
.item h3 { font-size: 17px; margin-bottom: 6px; }
.item p { font-size: 14px; }
.item span { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--brand); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; max-width: 1120px; margin: 110px auto 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot a:hover { color: var(--brand); }
.foot .top { color: var(--ink); font-weight: 560; }

/* ---------- Responsive ---------- */
.nav a { white-space: nowrap; }
@media (max-width: 1500px) {
  .nav-right .muted { display: none; }
  .links { gap: 22px; }
  .nav-right { margin-left: 22px; }
}
@media (max-width: 1100px) {
  .links { display: none; }
}
@media (max-width: 760px) {
  :root { --pad: 22px; --nav-pad: 22px; --nav-h: 68px; }
  .nav { height: 68px; }
  .nav-right .muted { display: none; }
  .nav-right { margin-left: auto; }
  .hero { display: block; min-height: 0; padding: 18px 0 40px; }
  .blob { left: -20%; width: 520px; height: 520px; }
  .dots { display: none; }
  .panel { position: relative; left: 0; right: auto; top: 0; width: 100%; margin-top: 44px; }
  .clients { margin-top: 50px; }
  .clients ul { font-size: 16px; gap: 14px 24px; }
  .s2 { padding: 70px 0; }
  .cols { grid-template-columns: 1fr; gap: 36px; margin: 50px 0; }
  .split h2 { white-space: normal; }
  .split, .s5 { grid-template-columns: 1fr; gap: 40px; padding: 70px 0; }
  .s3 .stack { order: 2; height: 420px; }
  .mini.c2 { left: auto; right: 0; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .demo { margin: 36px -8px 0; }
  .item img { width: 120px; height: 84px; }
  .grid { grid-template-columns: 1fr; gap: 36px; margin-top: 50px; }
  .foot { margin-top: 90px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .in, .rv, .row, .chart .area { opacity: 1 !important; filter: none !important; transform: none !important; }
  .chart .stroke { stroke-dashoffset: 0 !important; }
  .dots circle { opacity: .55 !important; }
  .btn.fill { background: var(--brand); color: #fff; }
}

/* ---------- Logo ---------- */
.brand img { width: 114px; height: auto; display: block; }
.links a.active-link { color: var(--brand); font-weight: 600; }

/* ---------- Galería horizontal ON-SCROLL de sistemas en video (derecha a izquierda al bajar) ---------- */
.vgal {
  position: relative;
  height: 470svh;
  margin: 20px calc(-1 * var(--pad)) 0;
}
.vgal-pin {
  position: sticky;
  top: var(--nav-h);
  height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  padding: 16px 0 16px;
}
.vgal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  width: 100%;
  max-width: calc(100vw - 2 * var(--pad));
  margin: 0 auto;
}
.vgal-title-wrap h2 {
  margin-top: 6px;
  font-size: clamp(26px, 2.7vw, 38px);
  line-height: 1.08;
}
.vgal-title-wrap p {
  margin-top: 6px;
  max-width: 560px;
  font-size: 14.5px;
  line-height: 1.45;
}
.vgal-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.vgal-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.vgal-pill {
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .82);
  font: 560 12.5px "Geist", sans-serif;
  color: var(--body);
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .2s;
}
.vgal-pill:hover { border-color: var(--brand); color: var(--ink); }
.vgal-pill.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.vgal-arrows { display: flex; gap: 6px; }
.vgal-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.vgal-arrow:hover { border-color: var(--brand); background: #fff; transform: translateY(-1px); }

.vgal-viewport {
  position: relative;
  width: 100%;
  margin-top: 16px;
}
.vgal-track {
  display: flex;
  align-items: stretch;
  gap: 36px;
  padding: 10px calc(50vw - min(380px, 38vw));
  will-change: transform;
}
.vgal-card {
  flex: 0 0 min(760px, 76vw);
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transform: scale(.92) translate3d(0, 6px, 0);
  opacity: 0;
  pointer-events: none;
  backface-visibility: hidden;
  transition: transform .48s var(--ease), opacity .42s var(--ease), box-shadow .42s var(--ease), border-color .35s;
  cursor: pointer;
}
.vgal-card.is-active {
  transform: scale(1) translate3d(0, 0, 0);
  opacity: 1;
  pointer-events: auto;
  border-color: rgba(126, 34, 206, .32);
  box-shadow: 0 22px 60px rgba(20, 8, 38, .15);
  cursor: default;
}
.vgal-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 44svh;
  width: 100%;
  background: #0d0917;
  overflow: hidden;
}
.vgal-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.vgal-status {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(20, 8, 38, .78);
  color: #fff;
  font: 500 11.5px "Geist Mono", monospace;
  pointer-events: none;
}
.vgal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ca3af;
}
.vgal-card.is-active .vgal-dot { background: #10b981; }
.vgal-expand {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 13px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(20, 8, 38, .82);
  color: #fff;
  font: 560 12px "Geist", sans-serif;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.vgal-expand:hover { background: var(--brand); border-color: var(--brand); transform: translateY(-1px); }
.vgal-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 16px 22px 18px;
}
.vgal-info { flex: 1 1 340px; }
.vgal-info h3 { font-size: 19px; margin: 4px 0 4px; letter-spacing: -.02em; }
.vgal-info p { font-size: 14px; line-height: 1.45; color: var(--body); max-width: 540px; }
.vgal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.link-btn { border: 0; background: none; padding: 0; cursor: pointer; font: 600 13.5px "Geist", sans-serif; color: var(--brand); }
.link-btn:hover { color: var(--brand-deep); text-decoration: underline; }
.btn-sm {
  display: inline-block;
  padding: 9px 15px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 560;
  transition: background .2s, transform .2s;
}
.btn-sm:hover { background: var(--brand); transform: translateY(-1px); }
.vgal-progress {
  width: min(420px, 76vw);
  height: 4px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: rgba(20, 8, 38, .09);
  overflow: hidden;
}
.vgal-bar {
  display: block;
  height: 100%;
  width: 25%;
  border-radius: 999px;
  background: var(--brand);
  transition: width .12s linear;
}

/* ---------- Modal de video ---------- */
.vmodal { width: min(1100px, 92vw); padding: 0; border: 0; border-radius: 16px; background: #0f0b18; color: #fff; box-shadow: 0 40px 120px rgba(10, 4, 24, .5); overflow: hidden; }
.vmodal::backdrop { background: rgba(14, 8, 28, .62); }
.vmodal[open] { animation: vmIn .35s var(--ease); }
@keyframes vmIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.vm-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; }
.vm-head h3 { font-size: 15px; font-weight: 600; }
.vm-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: transparent; color: #fff; cursor: pointer; font-size: 14px; }
.vm-close:hover { background: rgba(255,255,255,.1); }
.vmodal video { display: block; width: 100%; aspect-ratio: 16 / 10; background: #000; }
.vm-note { padding: 18px; font-size: 14px; color: #cfc6e0; }

/* ---------- Nosotros (Página dedicada nosotros.html) ---------- */
.about { padding: 110px 0 90px; max-width: 1240px; margin: 0 auto; }
.about-page { padding-top: 64px; }
.about-h1 { font-size: clamp(34px, 3.8vw, 52px); line-height: 1.06; letter-spacing: -.035em; font-weight: 620; margin-top: 12px; }
.about-top { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-top h2 { margin-top: 12px; }
.about-top p + p { margin-top: 16px; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.mv-card { padding: 28px; border-radius: 18px; background: rgba(255, 255, 255, .86); border: 1px solid var(--line); }
.mv-card h3 { font-size: 22px; margin: 12px 0 10px; }
.mv-card p { font-size: 15.5px; }
.values { margin-top: 56px; }
.values h3 { font-size: 22px; text-align: center; }
.values ol { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 28px; counter-reset: v; }
.values li { counter-increment: v; padding-top: 16px; border-top: 2px solid var(--line); }
.values li:first-child { border-color: var(--brand); }
.values li::before { content: "0" counter(v); display: block; font: 500 12px "Geist Mono", monospace; color: var(--brand); margin-bottom: 8px; }
.values b { display: block; font-size: 15px; font-weight: 600; }
.values span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--body); }

/* ---------- Footer completo en tonalidad blanca / vidrio claro ---------- */
.site-foot {
  position: relative;
  margin: 40px calc(-1 * var(--pad)) -40px;
  padding: 64px var(--nav-pad) 28px;
  background: rgba(255, 255, 255, .86);
  border-top: 1px solid var(--line);
  color: var(--body);
  overflow: hidden;
}
.sf-top { position: relative; z-index: 1; display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; }
.sf-brand img { width: 142px; height: auto; display: block; }
.sf-brand p { margin-top: 16px; max-width: 380px; font-size: 14.5px; line-height: 1.6; color: var(--body); }
.sf-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn-ghost { display: inline-block; padding: 13px 20px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 15px; font-weight: 560; color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.sf-col h4 { font: 500 12px "Geist Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.sf-col a { display: block; margin-bottom: 11px; font-size: 14px; line-height: 1.4; color: var(--body); }
.sf-col a:hover { color: var(--brand); }
.sf-bottom { position: relative; z-index: 3; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 44px; padding: 20px 0 4px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.sf-bottom .top { color: var(--ink); font-weight: 560; }
.sf-bottom .top:hover { color: var(--brand); }

@media (max-width: 1100px) {
  .sf-top { grid-template-columns: 1fr 1fr; }
  .sf-brand { grid-column: 1 / -1; }
  .values ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .mv, .about-top { grid-template-columns: 1fr; gap: 20px; }
  .about-top { gap: 12px; }
  .values ol { grid-template-columns: 1fr; }
  .vgal { height: 340svh; }
  .vgal-pin { justify-content: flex-start; padding: 10px 0 12px; }
  .vgal-head { gap: 8px 12px; }
  .vgal-title-wrap .mono { font-size: 10.5px; display: block; }
  .vgal-title-wrap h2 { font-size: clamp(20px, 5.2vw, 24px); line-height: 1.1; margin-top: 3px; }
  .vgal-title-wrap p { font-size: 12.5px; line-height: 1.35; margin-top: 4px; }
  .vgal-controls { width: 100%; flex-wrap: nowrap; gap: 8px; }
  .vgal-pills { flex: 1; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px 0; gap: 6px; }
  .vgal-pills::-webkit-scrollbar { display: none; }
  .vgal-pill { flex: 0 0 auto; white-space: nowrap; padding: 6px 11px; font-size: 11.5px; }
  .vgal-arrows { flex-shrink: 0; }
  .vgal-arrow { width: 30px; height: 30px; font-size: 13px; }
  .vgal-viewport { margin-top: 8px; }
  .vgal-card { flex: 0 0 86vw; border-radius: 16px; }
  .vgal-track { padding: 4px 7vw; gap: 14px; }
  .vgal-stage { max-height: 26svh; }
  .vgal-body { padding: 11px 14px 13px; gap: 8px 12px; }
  .vgal-info { flex: 1 1 100%; }
  .vgal-info .mono { font-size: 10.5px; }
  .vgal-info h3 { font-size: 15.5px; line-height: 1.2; margin: 2px 0; }
  .vgal-info p { font-size: 12.5px; line-height: 1.35; }
  .vgal-actions { width: 100%; justify-content: space-between; gap: 8px; }
  .btn-sm { padding: 7px 12px; font-size: 12px; }
  .link-btn { font-size: 12px; }
  .vgal-progress { margin-top: 8px; }
  .sf-top { grid-template-columns: 1fr; gap: 28px; }
  .site-foot { padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .vgal-card { transition: none; }
}

/* ---------- S3 · Del caos al sistema (Desorden que al hacer scroll se agrupa en el dashboard) ---------- */
.s3-caos {
  position: relative;
  height: 290svh;
  margin: 0 calc(-1 * var(--pad));
}
.caos__stage {
  position: sticky;
  top: var(--nav-h);
  height: calc(100svh - var(--nav-h));
  overflow: hidden;
  padding: 0 var(--pad);
}
.caos-intro {
  position: absolute;
  left: var(--pad);
  top: 9vh;
  z-index: 2;
  width: min(500px, 42vw);
  will-change: transform, opacity;
}
.caos-intro h2 {
  margin: 10px 0 14px;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.caos-intro p {
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--body);
  max-width: 44ch;
}
.caos-intro .checks { margin-top: 18px; }
.caos-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  font-size: 13px !important;
  color: var(--muted) !important;
  transition: opacity .35s;
}
.caos-hint svg { color: var(--brand); flex-shrink: 0; }
.caos-hint.is-done { opacity: .55; }

.order-copy {
  position: absolute;
  z-index: 2;
  left: max(var(--pad), calc(50% - 580px));
  right: max(var(--pad), calc(50% - 580px));
  top: 2.5vh;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.order-copy h2 {
  margin-top: 4px;
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.06;
  letter-spacing: -.03em;
}
.order-copy p {
  font-size: 14.5px;
  color: var(--body);
  max-width: 42ch;
}

.dash {
  position: absolute;
  z-index: 1;
  left: max(var(--pad), calc(50% - 580px));
  right: max(var(--pad), calc(50% - 580px));
  top: calc(2.5vh + 76px);
  bottom: 24px;
  display: grid;
  grid-template-columns: 176px 1fr;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(20, 8, 38, .14);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  overflow: hidden;
  font-size: 13px;
}
.dash__side {
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #faf8fe;
}
.dash__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .04em;
  color: var(--ink);
}
.dash__nav { display: flex; flex-direction: column; gap: 3px; }
.dash__nav span { position: relative; padding: 8px 10px; border-radius: 8px; color: var(--body); font-size: 13px; }
.dash__nav .is-on { background: var(--soft); color: var(--ink); font-weight: 600; }
.dash__nav .is-on::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--brand); }
.dash__demo { margin-top: auto; font-size: 11.5px; color: var(--muted); padding: 0 8px; }
.dash__main { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; min-width: 0; min-height: 0; }
.dash__top { display: flex; align-items: center; justify-content: space-between; }
.dash__top strong { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.dash__top .mono { margin-left: 10px; color: var(--muted); font-size: 11.5px; }
.dash__user { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--soft); color: var(--brand); font-size: 11px; font-weight: 600; }
.dash__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dpanel { position: relative; border: 1px solid var(--line); border-radius: 11px; background: #fff; min-width: 0; min-height: 0; overflow: hidden; }
.kpi { padding: 10px 13px; min-height: 76px; }
.kpi span { display: block; color: var(--muted); font-size: 12px; }
.kpi b { display: block; font-variant-numeric: tabular-nums; font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; margin: 2px 0 1px; white-space: nowrap; }
.kpi small { display: block; color: var(--body); font-size: 11.5px; white-space: nowrap; }
.slot { opacity: 0; transition: opacity .15s; }
.dash__grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.45fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; }
.dash__grid > .dpanel { padding: 10px 13px; display: flex; flex-direction: column; }
.dpanel__head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 12.5px; color: var(--ink); margin-bottom: 4px; }
.dpanel__head .mono { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.dchart__plot { position: relative; flex: 1; min-height: 0; margin: 4px 0; }
.dchart__plot svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.dchart__grid line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dchart__area { fill: var(--brand); opacity: .1; }
.dchart__line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.dchart__cover { position: absolute; inset: -4px -6px; background: #fff; transform-origin: 100% 50%; will-change: transform; }
.dchart__days { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.msgs .drow, .alerts .drow { min-height: 0; flex: 1; display: flex; align-items: center; border-top: 1px solid #f2eef9; }
.msgs .drow:first-of-type, .alerts .drow:first-of-type { border-top: 0; }
.drow .slot { display: flex; align-items: center; gap: 9px; width: 100%; min-width: 0; }
.drow i { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--soft); color: var(--brand); font-style: normal; font: 600 10px "Geist Mono", monospace; }
.drow p { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.28; }
.drow b { font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.drow p span { font-size: 11.5px; color: var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drow time { font-size: 11px; color: var(--muted); }
.tag-bar { flex: none; width: 3px; height: 24px; border-radius: 2px; background: #cbd5e1; }
.tag-bar--ok { background: var(--ok); }
.orders table { width: 100%; border-collapse: collapse; font-size: 12px; }
.orders th { text-align: left; font-weight: 500; color: var(--muted); font-size: 11px; padding: 3px 6px 5px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.orders td { padding: 5px 6px 5px 0; border-bottom: 1px solid #f4f1fa; white-space: nowrap; color: var(--ink); }
.orders tr:last-child td { border-bottom: 0; }
.orders .r { text-align: right; padding-right: 0; }

/* Objetos físicos del desorden (box-shadow acelerado por GPU en lugar de filter: drop-shadow para cero parpadeo) */
.objs { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.obj {
  position: absolute; left: 0; top: 0;
  font-size: 9.5px;
  pointer-events: auto; touch-action: none; cursor: grab;
  user-select: none; -webkit-user-select: none;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.obj.is-grab { cursor: grabbing; }
.paper, .sticky, .obj .bubble, .calc {
  box-shadow: 0 1px 2px rgba(20, 8, 38, .08), 0 10px 20px rgba(20, 8, 38, .12);
}
.obj.is-grab .paper, .obj.is-grab .sticky, .obj.is-grab .bubble, .obj.is-grab .calc {
  box-shadow: 0 4px 8px rgba(20, 8, 38, .14), 0 20px 28px rgba(20, 8, 38, .2);
}
.is-ordering .obj { pointer-events: none; }
.is-docked .objs { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.is-docked .slot { opacity: 1 !important; }

.paper { background: #fbfbf8; color: #262b2a; }
.receipt {
  width: 16em; padding: 1.4em 1.3em 2.2em;
  font-family: "Geist Mono", monospace; font-size: 1em; line-height: 1.5;
  background-image: linear-gradient(180deg, rgba(0,0,0,.03), transparent 18%, transparent 70%, rgba(0,0,0,.035));
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 1em 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 1em 100%;
}
.receipt--long { width: 17em; }
.receipt p { display: flex; justify-content: space-between; gap: .6em; font-size: 1.05em; white-space: nowrap; }
.receipt .rc-c { justify-content: center; }
.receipt .rc-sub { color: #59615f; padding-left: 1em; }
.receipt .rc-sep { border-top: 1px dashed #8f9895; margin: .5em 0; height: 0; }
.barcode {
  height: 3.2em; margin-top: .9em;
  background: repeating-linear-gradient(90deg, #262b2a 0 .12em, transparent .12em .3em, #262b2a .3em .36em, transparent .36em .62em, #262b2a .62em .86em, transparent .86em 1.04em);
}
.sticky {
  width: 14.5em; min-height: 13em; padding: 1.2em 1.3em;
  background: #f6e58d;
  background-image: linear-gradient(180deg, rgba(255,255,255,.28), rgba(0,0,0,.05));
  border-radius: .15em .15em 1.4em .25em / .15em .15em .45em .25em;
  font-style: italic; color: #2c2914;
}
.sticky p { font-size: 1.65em; line-height: 1.18; }
.sticky .st-title { font-size: 2.2em; font-weight: 700; margin-bottom: .15em; }
.sticky .mono { font-style: normal; font-size: .78em; }
.sticky .st-u { text-decoration: underline; margin-top: .2em; }
.sticky--b { background-color: #f2d965; }
.sticky--c { background-color: #f8eba8; width: 13.5em; min-height: 12em; }
.obj .bubble {
  display: flex; align-items: flex-end; gap: .8em;
  width: max-content; max-width: 24em;
  padding: .75em 1em .6em; margin: 0;
  border-radius: 1.1em; background: #fff; color: #111b21;
}
.obj .bubble p { font-size: 1.45em; line-height: 1.3; margin: 0; }
.obj .bubble span { flex: none; display: inline-flex; align-items: center; gap: .3em; font-size: 1.02em; color: #54656f; }
.obj .bubble span svg { color: #3d8ed8; width: 1.5em; height: auto; }
.obj .bubble--in { border-top-left-radius: .3em; }
.obj .bubble--out { background: #d9fdd3; border-top-right-radius: .3em; }
.sheet {
  width: 27em; background: #fff;
  clip-path: polygon(0 0, 100% 0, 97.5% 12%, 100% 24%, 96.5% 38%, 99% 52%, 95.5% 66%, 98.5% 80%, 94% 90%, 88% 97%, 76% 93%, 62% 100%, 48% 95%, 34% 100%, 20% 94%, 8% 99%, 0 95%);
  padding-bottom: 1.5em;
}
.sh-bar { display: flex; align-items: center; gap: .6em; padding: .55em .8em; background: #e8ece9; font-size: 1.1em; color: #2d3332; }
.sh-bar::before { content: ""; width: .9em; height: .9em; border-radius: .15em; background: #1f7a4d; }
.sh-grid { display: grid; grid-template-columns: 2.1em 1.25fr 1fr 1fr; font-size: 1.15em; }
.sh-grid span { padding: .3em .45em; border-right: 1px solid #dde2df; border-bottom: 1px solid #dde2df; white-space: nowrap; color: #252a29; }
.sh-grid .sh-h, .sh-grid .sh-n { background: #f2f4f3; color: #59615f; text-align: center; font-size: .9em; }
.sh-grid .sh-th { font-weight: 600; }
.sh-red, .sh-err { color: #b42318 !important; }
.invoice { width: 21em; padding: 1.5em 1.6em 1.8em; font-size: 1em; }
.iv-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: .2em solid #262b2a; padding-bottom: .45em; margin-bottom: .7em; }
.iv-head b { font-size: 1.5em; letter-spacing: .2em; }
.iv-head span { font-size: 1.05em; }
.iv-meta { font-size: 1.05em; color: #4a5250; }
.iv-rows { margin-top: .85em; }
.iv-rows p, .iv-tot p { display: flex; justify-content: space-between; gap: 1em; font-size: 1.1em; padding: .4em 0; border-bottom: 1px solid #eceeed; white-space: nowrap; }
.iv-tot { margin-top: .7em; }
.iv-tot p:last-child { border-bottom: 0; border-top: 1px solid #262b2a; font-size: 1.25em; }
.calc {
  width: 15em; padding: 1.2em; border-radius: 1.5em;
  background: #30373a;
  background-image: linear-gradient(160deg, rgba(255,255,255,.1), rgba(0,0,0,.12));
  box-shadow: inset 0 .1em 0 rgba(255,255,255,.12);
}
.calc__screen {
  background: #c3cfbf; color: #1b231f; text-align: right;
  font-size: 2.1em; padding: .32em .42em; border-radius: .2em; margin-bottom: .42em;
  box-shadow: inset 0 .08em .2em rgba(0,0,0,.3);
}
.calc__keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5em; }
.calc__keys span {
  display: grid; place-items: center; height: 2.2em; border-radius: .42em;
  background: #e4e7e5; color: #22282a; font-size: 1.15em; font-weight: 600;
  box-shadow: 0 .15em 0 #8f9794;
}
.calc__keys .op { background: #5b666c; color: #fff; box-shadow: 0 .15em 0 #2a3033; }

@media (max-width: 960px) {
  .dash { grid-template-columns: 1fr; }
  .dash__side { display: none; }
}
@media (max-width: 760px) {
  .s3-caos { height: 240svh; }
  .caos-intro { width: calc(100% - 44px); top: 12px; }
  .caos-intro h2 { font-size: clamp(23px, 6vw, 29px); margin: 4px 0 8px; line-height: 1.08; }
  .caos-intro p { font-size: 13.5px; line-height: 1.4; }
  .caos-intro .checks { margin-top: 10px; }
  .caos-intro .checks li { font-size: 13px; margin-bottom: 6px; gap: 8px; }
  .caos-intro .checks li::before { flex: 0 0 17px; height: 17px; background-size: 17px; }
  .caos-hint { margin-top: 8px; padding: 6px 11px; font-size: 11.5px !important; }
  .order-copy { top: 10px; gap: 4px 12px; flex-direction: column; align-items: flex-start; }
  .order-copy h2 { font-size: clamp(20px, 5.4vw, 25px); line-height: 1.08; margin-top: 2px; }
  .order-copy p { font-size: 12.5px; line-height: 1.35; max-width: 100%; }
  .dash { top: 96px; bottom: 12px; border-radius: 14px; }
  .dash__main { padding: 10px 12px; gap: 8px; overflow: hidden; }
  .dash__top { align-items: flex-start; gap: 8px; }
  .dash__top strong { display: block; font-size: 13px; line-height: 1.2; }
  .dash__top .mono { display: block; margin-left: 0; margin-top: 2px; font-size: 10px; }
  .dash__kpis { grid-template-columns: 1fr 1fr; gap: 6px; flex-shrink: 0; }
  .kpi { padding: 7px 10px; min-height: 0; }
  .kpi span { font-size: 11px; }
  .kpi b { font-size: 16px; margin: 1px 0; }
  .kpi small { font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; }
  .dash__grid { grid-template-columns: 1fr; grid-template-rows: auto auto; gap: 8px; align-content: start; }
  .dash__grid > .dpanel { padding: 8px 10px; }
  .dchart, .alerts { display: none !important; }
  .msgs .drow { flex: none; padding: 5px 0; }
  .orders th, .orders td { padding: 4px 4px 4px 0; font-size: 11.5px; }
  .obj { font-size: 6.5px; }
  .receipt { -webkit-mask: none; mask: none; border-radius: 4px; }
  .sheet { clip-path: none; border-radius: 4px; }
  .stage-mark::before, .stage-logo-svg { transform: translateZ(0); backface-visibility: hidden; }
  .hide-m { display: none; }
}

/* ---------- Legal, Privacidad y Banner de Consentimiento de Cookies ---------- */
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.consent-box {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(126, 34, 206, .05);
  border: 1px solid rgba(126, 34, 206, .18);
}
.sf-legal-links a { color: var(--body); font-weight: 500; transition: color .2s; }
.sf-legal-links a:hover { color: var(--brand); }

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate3d(-50%, 0, 0);
  width: min(980px, calc(100vw - 32px));
  z-index: 95;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 16px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(126, 34, 206, .18);
  box-shadow: 0 20px 48px rgba(17, 7, 38, .16), 0 2px 8px rgba(17, 7, 38, .06);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.cookie-banner[hidden] { display: none !important; }
.cookie-copy { flex: 1 1 460px; min-width: 240px; }
.cookie-copy strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.cookie-copy p { font-size: 13px; line-height: 1.45; color: var(--body); margin: 0; }
.cookie-copy a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cookie-btn {
  padding: 9px 15px;
  border-radius: 999px;
  font: 600 12.5px "Geist", sans-serif;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: background .2s, border-color .2s, transform .2s;
}
.cookie-btn:hover { border-color: var(--brand); transform: translateY(-1px); }
.cookie-btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.cookie-btn.primary:hover { background: var(--ink); border-color: var(--ink); }
@media (max-width: 760px) {
  .cookie-banner { bottom: 12px; padding: 14px 16px; }
  .cookie-actions { width: 100%; justify-content: flex-end; }
}
