/* pagaenlamesa.com · landing v2
   Signature: el ticket térmico que se imprime, congela el monto en Bs y se sella como PAGADO. */

:root {
  --ink: #06100e;
  --pine: #0b211d;
  --pine-2: #12312b;
  --teal: #00a884;
  --teal-deep: #007a62;
  --mint: #bfeede;
  --yellow: #ffc531;
  --coral: #ff6b4a;
  --paper: #f6f3ea;
  --bg: #f4f7f4;
  --tint: #e7efea;
  --white: #fff;
  --text: #0c1a17;
  --muted: #536660;
  --line: #d6e0da;
  --on-dark: rgba(255, 255, 255, 0.72);
  --line-dark: rgba(255, 255, 255, 0.12);

  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, "Courier New", monospace;

  --radius: 18px;
  --max: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  border-radius: 8px;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; overflow-wrap: break-word; }
h1 { font-size: clamp(2.7rem, 5.6vw, 5rem); line-height: 0.98; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 3.8vw, 3.4rem); line-height: 1.02; letter-spacing: -0.03em; }
h3 { font-size: 1.3rem; line-height: 1.15; }

.eyebrow {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.dark .eyebrow, .hero .eyebrow { color: var(--yellow); }

.muted { color: var(--muted); }
.dark .muted, .hero .muted { color: var(--on-dark); }
.big { font-size: 1.15rem; }

/* ---------- layout ---------- */
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section.tint { background: var(--tint); }
.section.dark { background: var(--ink); color: #fff; }
.heading { max-width: 780px; margin-bottom: clamp(32px, 4vw, 56px); }
.heading .muted { margin-top: 18px; max-width: 640px; }
section[id] { scroll-margin-top: 28px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 220ms var(--ease), background 220ms, box-shadow 220ms, border-color 220ms;
}
.btn svg { width: 18px; height: 18px; transition: transform 220ms var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 10px 30px rgba(255, 197, 49, 0.28); }
.btn-yellow:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(255, 197, 49, 0.4); }
.btn-line { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.btn-line:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn.full { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(calc(100% - 28px), var(--max));
  padding: 8px 10px 8px 12px;
  color: #fff;
  background: rgba(6, 16, 14, 0.72);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  transform: translateX(-50%);
  transition: background 240ms, box-shadow 240ms;
}
.site-header.is-scrolled { background: rgba(6, 16, 14, 0.9); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { flex: none; width: 48px; height: 48px; filter: drop-shadow(0 4px 14px rgba(255, 197, 49, 0.28)); }
.brand-word { font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1; color: #fff; }
.brand-word i { font-style: normal; color: var(--yellow); }

.nav { display: flex; flex: 1; justify-content: center; gap: 0; font-size: 0.92rem; font-weight: 600; }
.nav a { white-space: nowrap; padding: 9px 12px; border-radius: 999px; color: var(--on-dark); transition: color 180ms, background 180ms; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav a.is-active { color: var(--ink); background: var(--yellow); }
.nav-cta { display: none; }

.header-cta { padding: 11px 20px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: 0.94rem; transition: transform 200ms var(--ease); }
.header-cta:hover { transform: translateY(-1px); }

.nav-toggle { display: none; width: 44px; height: 44px; margin-left: auto; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 5px auto; background: currentColor; border-radius: 2px; transition: transform 200ms; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 96px;
  color: #fff;
  background:
    radial-gradient(900px 520px at 82% 38%, rgba(0, 168, 132, 0.28), transparent 62%),
    radial-gradient(600px 400px at 8% 100%, rgba(255, 197, 49, 0.1), transparent 60%),
    var(--ink);
}
/* patrón de píxeles QR, ambiental */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1.4px, transparent 1.6px);
  background-size: 26px 26px;
  mask-image: linear-gradient(100deg, transparent 30%, #000 100%);
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 100%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--on-dark);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--teal); animation: pulse 2s ease-out infinite; }
@keyframes pulse { to { transform: scale(3.2); opacity: 0; } }

.hero h1 { text-wrap: balance; }
.hero h1 em {
  display: block;
  width: fit-content;
  margin-top: 0.06em;
  font-style: normal;
  color: var(--yellow);
  background: linear-gradient(transparent 82%, rgba(255, 197, 49, 0.28) 82% 94%, transparent 94%);
}
.lead { max-width: 540px; margin-top: 26px; font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--on-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.proof { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line-dark); }
.proof dt { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.proof dd { margin-top: 6px; font-size: 0.86rem; color: var(--on-dark); }

/* ---------- ticket (signature) ---------- */
.hero-stage { position: relative; display: grid; justify-items: center; padding: 10px 0 190px; }

.ticket { position: relative; width: min(100%, 360px); transform: rotate(2.2deg); filter: drop-shadow(0 34px 46px rgba(0, 0, 0, 0.5)); }
.paper {
  position: relative;
  padding: 26px 24px 34px;
  color: #17201d;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.4;
  -webkit-mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 18px 10px repeat-x,
    linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat;
  mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 18px 10px repeat-x,
    linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat;
}
.paper-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.paper-head b { font-size: 0.9rem; letter-spacing: 0.04em; }
.paper-head span { color: #5b6862; font-size: 0.7rem; }
.rule { height: 1px; margin: 14px 0; background: repeating-linear-gradient(90deg, #46524d 0 6px, transparent 6px 10px); }

.items { display: grid; gap: 7px; }
.items li { display: flex; align-items: baseline; gap: 6px; }
.items li i { flex: 1; border-bottom: 1px dotted #9aa59f; transform: translateY(-3px); }
.items b { font-weight: 500; }

.sums { display: grid; gap: 4px; color: #4a5853; }
.sums div { display: flex; justify-content: space-between; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; font-weight: 700; }
.total b { font-size: 1.15rem; }
.total small { display: block; margin-top: 2px; color: #5b6862; font-size: 0.64rem; font-weight: 400; }
.total.bs { margin-top: 10px; padding: 10px 12px; border-radius: 6px; background: var(--ink); color: #fff; }
.total.bs small { color: var(--on-dark); }
.total.bs b { font-size: 1.45rem; color: var(--yellow); font-variant-numeric: tabular-nums; }

.stamp {
  position: absolute;
  right: 12px;
  top: 56%;
  padding: 6px 16px 4px;
  border: 4px solid var(--teal);
  border-radius: 10px;
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(246, 243, 234, 0.82);
  transform: rotate(-12deg);
  box-shadow: inset 0 0 0 2px rgba(0, 168, 132, 0.22);
}

/* animación por etapas: data-stage 0..4 (sin JS queda en 4 = estado final) */
.items li, .sums div, .total { transition: opacity 320ms, transform 320ms var(--ease); transition-delay: calc(var(--i, 0) * 130ms); }
.stamp { transition: opacity 180ms, transform 380ms cubic-bezier(0.3, 1.6, 0.5, 1); }
.ticket[data-stage="0"] :is(.items li, .sums div, .total) { opacity: 0; transform: translateY(-8px); transition-delay: 0s; }
.ticket:not([data-stage="4"]) .stamp { opacity: 0; transform: rotate(-12deg) scale(1.8); }

.status {
  position: absolute;
  left: 2%;
  bottom: 0;
  display: grid;
  gap: 2px;
  width: 270px;
  padding: 14px;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  background: rgba(11, 33, 29, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}
.status li { display: grid; grid-template-columns: 18px 1fr; column-gap: 10px; padding: 6px 4px; opacity: 0.38; transition: opacity 300ms; }
.status li b { font-size: 0.86rem; line-height: 1.2; }
.status li em { grid-column: 2; font-family: var(--font-mono); font-size: 0.7rem; font-style: normal; color: var(--on-dark); }
.status .mark { grid-row: span 2; align-self: start; width: 14px; height: 14px; margin-top: 3px; border: 2px solid var(--on-dark); border-radius: 50%; transition: background 250ms, border-color 250ms; }
.status li.is-done, .status li.is-now { opacity: 1; }
.status li.is-done .mark { background: var(--teal); border-color: var(--teal); }
.status li.is-now .mark { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 197, 49, 0.2); }
.status li.is-now:last-child .mark { background: var(--teal); border-color: var(--teal); box-shadow: none; }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; background: var(--yellow); color: var(--ink); border-block: 2px solid var(--ink); }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 14px 0 14px 28px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker span::after { content: "✦"; font-size: 0.9rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- problem ---------- */
.problem-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(40px, 7vw, 100px); align-items: center; }
.problem .big { margin-top: 24px; }
.pains { display: grid; gap: 14px; margin-top: 30px; }
.pains li { position: relative; padding-left: 26px; color: var(--muted); }
.pains li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 10px; height: 10px; border-radius: 3px; background: var(--coral); }
.pains b { color: var(--text); }

.sim { display: grid; gap: 22px; padding: 30px; border-radius: 26px; background: var(--ink); color: #fff; box-shadow: 0 30px 60px rgba(6, 16, 14, 0.2); }
.sim-title { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow); }
.sim-field { display: grid; gap: 12px; }
.sim-field label { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-size: 0.95rem; font-weight: 600; color: var(--on-dark); }
.sim-field output { flex: none; font-family: var(--font-mono); font-weight: 700; color: #fff; padding: 2px 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); }

.sim input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --p: 50%; }
.sim input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--yellow) var(--p), rgba(255, 255, 255, 0.14) var(--p)); }
.sim input[type="range"]::-moz-range-track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.14); }
.sim input[type="range"]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--yellow); }
.sim input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border: 4px solid var(--ink); border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2px var(--yellow), 0 6px 14px rgba(0, 0, 0, 0.4); transition: transform 160ms var(--ease); }
.sim input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 4px solid var(--ink); border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2px var(--yellow); }
.sim input[type="range"]:hover::-webkit-slider-thumb, .sim input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }

.sim-bars { display: grid; gap: 10px; padding-top: 6px; }
.sim-bar { display: grid; grid-template-columns: 54px 1fr 64px; gap: 12px; align-items: center; font-size: 0.86rem; }
.sim-bar > div { height: 18px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.sim-bar i { display: block; height: 100%; width: 60%; border-radius: inherit; background: repeating-linear-gradient(135deg, var(--coral) 0 10px, #e85a3a 10px 20px); transition: width 450ms var(--ease); }
.sim-bar.new i { width: 5%; min-width: 10px; background: var(--teal); }
.sim-bar b { font-family: var(--font-mono); font-size: 0.82rem; text-align: right; }
.sim-bar.new b { color: var(--teal); }

.sim-result { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sim-result div { padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-dark); }
.sim-result b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--yellow); font-variant-numeric: tabular-nums; }
.sim-result span { display: block; margin-top: 8px; font-size: 0.84rem; line-height: 1.35; color: var(--on-dark); }
.sim-note { font-size: 0.8rem; line-height: 1.5; color: var(--on-dark); opacity: 0.8; }

/* ---------- flow ---------- */
.flow { background: radial-gradient(700px 500px at 85% 50%, rgba(0, 168, 132, 0.2), transparent 65%), var(--ink); }
.flow-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.7fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.steps { display: grid; gap: 10px; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  padding: 22px 24px;
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  background: transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 250ms, background 250ms, border-color 250ms;
}
.step:hover { opacity: 0.9; }
.step.is-active { opacity: 1; background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 197, 49, 0.5); }
.step-n { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 700; color: var(--yellow); padding-top: 4px; }
.step-body b { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.step-body span { display: none; margin-top: 8px; color: var(--on-dark); font-size: 1rem; }
.step.is-active .step-body span { display: block; }
.step-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: left; }
.step.is-active .step-progress { animation: progress var(--step-time, 6s) linear forwards; }
[data-stepper].is-paused .step.is-active .step-progress { animation: none; transform: scaleX(1); }
@keyframes progress { to { transform: scaleX(1); } }

.phone-wrap { display: grid; justify-items: center; }
.phone {
  position: relative;
  width: min(100%, 290px);
  min-height: 560px;
  padding: 44px 18px 22px;
  border: 11px solid #1c2825;
  border-radius: 44px;
  background: #f6f8f5;
  color: var(--text);
  box-shadow: 0 0 0 2px #35443f, 0 40px 70px rgba(0, 0, 0, 0.5);
}
.phone-notch { position: absolute; top: 12px; left: 50%; width: 84px; height: 20px; border-radius: 99px; background: #1c2825; transform: translateX(-50%); }
.screen { display: none; gap: 14px; animation: screen-in 450ms var(--ease); }
.screen.is-active { display: grid; }
@keyframes screen-in { from { opacity: 0; transform: translateY(12px); } }

.s-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.s-top b { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.chip { padding: 5px 10px; border-radius: 999px; background: var(--mint); color: #005f4b; font-size: 0.7rem; font-weight: 700; white-space: nowrap; }
.chip.warn { background: #ffe9a8; color: #7a5600; }
.s-tables { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.s-tables b { display: grid; place-items: center; min-height: 40px; border-radius: 10px; background: var(--tint); font-size: 0.9rem; }
.s-tables b.on { background: var(--yellow); }
.s-list { display: grid; gap: 7px; }
.s-list div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 0.84rem; }
.s-list.slim div { padding: 8px 12px; }
.s-list b { font-variant-numeric: tabular-nums; }
.s-btn { display: grid; place-items: center; min-height: 48px; border-radius: 14px; background: var(--teal-deep); color: #fff; font-weight: 700; }
.s-toast { padding: 10px 12px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 0.8rem; text-align: center; }
.s-total { display: grid; gap: 2px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.s-total small { color: var(--muted); font-size: 0.74rem; }
.s-total b { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.s-total .bs { color: var(--teal-deep); }
.s-clock { display: grid; justify-items: center; padding: 22px 0; border-radius: 16px; background: var(--ink); color: #fff; }
.s-clock b { font-family: var(--font-mono); font-size: 2.6rem; font-weight: 700; color: var(--yellow); line-height: 1.1; }
.s-clock small { color: var(--on-dark); }
.s-scan { position: relative; padding: 12px 14px 12px 36px; border-radius: 12px; background: var(--tint); font-size: 0.8rem; }
.s-scan i { position: absolute; left: 14px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--teal); animation: pulse 1.6s ease-out infinite; }
.s-done { display: grid; justify-items: center; gap: 4px; padding: 24px 0 10px; text-align: center; }
.s-done svg { width: 84px; height: 84px; fill: var(--mint); stroke: var(--teal); stroke-width: 3; }
.s-done svg path { fill: none; stroke: var(--teal-deep); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 700ms 200ms var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.s-done b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.s-done span { color: var(--muted); font-size: 0.86rem; }
.s-wa { display: grid; gap: 2px; padding: 14px; border-radius: 14px; background: #dcf8c6; font-size: 0.82rem; }
.s-wa span { color: #3d5a36; }

/* ---------- foto anotada ---------- */
.photo { position: relative; overflow: hidden; border-radius: 28px; background: var(--ink); box-shadow: 0 40px 80px rgba(6, 16, 14, 0.22); }
.photo img { width: 100%; height: auto; }
.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  transition: transform 220ms var(--ease);
}
.pin::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--yellow); animation: ring 2.4s ease-out infinite; }
@keyframes ring { from { transform: scale(0.7); opacity: 0.9; } to { transform: scale(1.5); opacity: 0; } }
.pin:hover, .pin.is-on { transform: scale(1.18); }

.legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; counter-reset: leg; }
.legend li { position: relative; padding: 18px 18px 18px 56px; border: 1px solid var(--line); border-radius: 16px; background: #fff; counter-increment: leg; transition: border-color 200ms, transform 200ms var(--ease); }
.legend li::before { content: counter(leg); position: absolute; left: 16px; top: 16px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; }
.legend li.is-on { border-color: var(--teal); transform: translateY(-3px); }
.legend b { display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; }
.legend span { display: block; margin-top: 4px; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }

/* ---------- video ---------- */
.video-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.video-copy .muted { margin-top: 18px; }
.points { display: grid; gap: 12px; margin-top: 32px; }
.points div { padding: 16px 18px; border: 1px solid var(--line-dark); border-radius: 16px; background: rgba(255, 255, 255, 0.04); }
.points dt { font-weight: 700; }
.points dd { margin-top: 3px; color: var(--on-dark); font-size: 0.95rem; }
.monitor { padding: 12px; border-radius: 26px; background: linear-gradient(160deg, #1f3a34, #0a1b18); box-shadow: 0 0 0 1px var(--line-dark), 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 90px rgba(0, 168, 132, 0.18); }
.monitor video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: #000; }

/* ---------- apps ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.app { display: flex; flex-direction: column; gap: 18px; padding: 20px; border-radius: 24px; background: #fff; border: 1px solid var(--line); transition: transform 280ms var(--ease), box-shadow 280ms; }
.app:hover { transform: translateY(-6px); box-shadow: 0 30px 50px rgba(6, 16, 14, 0.12); }
.app header { display: grid; align-content: start; gap: 4px; min-height: 6.4rem; }
.role { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-deep); }
.app h3 { font-size: 1.15rem; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { overflow: hidden; border-radius: 26px; background: #fff; border: 1px solid var(--line); transition: transform 280ms var(--ease), box-shadow 280ms; }
.tile:hover { transform: translateY(-5px); box-shadow: 0 30px 50px rgba(6, 16, 14, 0.12); }
.tile-photo { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; color: #fff; background: var(--ink); border: 0; }
.tile-lg { grid-row: span 2; min-height: 500px; }
.tile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.tile-photo:hover img { transform: scale(1.05); }
.tile-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 16, 14, 0.94) 8%, rgba(6, 16, 14, 0.45) 55%, rgba(6, 16, 14, 0.05)); }
.tile-body { position: relative; z-index: 1; padding: 26px; }
.tile-body p:last-child, .tile-offline p:not(.tag) { margin-top: 8px; color: var(--on-dark); font-size: 0.98rem; }
.tag { margin-bottom: 10px; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow); }
.tile-lg h3 { font-size: 1.9rem; }
.tile-offline { grid-column: span 2; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 30px; color: #fff; background: var(--pine); border: 0; }
.sync { display: grid; gap: 8px; }
.sync li { display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); font-size: 0.88rem; font-weight: 600; opacity: 0.45; animation: sync 6s infinite; }
.sync li:nth-child(2) { animation-delay: 2s; }
.sync li:nth-child(3) { animation-delay: 4s; }
.sync i { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.sync li:nth-child(2) i { background: var(--yellow); }
.sync li:nth-child(3) i { background: var(--teal); }
@keyframes sync { 0%, 5% { opacity: 0.45; } 12%, 30% { opacity: 1; background: rgba(255, 255, 255, 0.16); } 40%, 100% { opacity: 0.45; } }

/* ---------- audiencias (momento amarillo) ---------- */
.audiences { background: var(--yellow); color: var(--ink); }
.audiences .eyebrow { color: var(--ink); }
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 48px; border-top: 3px solid var(--ink); }
.aud-grid article { padding: 30px 30px 10px 0; }
.aud-grid article + article { padding-left: 30px; border-left: 3px solid var(--ink); }
.aud-grid h3 { font-size: clamp(2.2rem, 4vw, 3.6rem); letter-spacing: -0.035em; line-height: 1; }
.aud-grid p { margin-top: 16px; max-width: 320px; font-size: 1.05rem; color: #2b2a18; }

/* ---------- trust ---------- */
.trust { background: radial-gradient(600px 460px at 100% 0, rgba(0, 168, 132, 0.2), transparent 65%), var(--ink); }
.trust-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(36px, 7vw, 100px); align-items: center; }
.trust .big { margin-top: 22px; }
.checks { display: grid; gap: 14px; margin-top: 32px; }
.checks li { position: relative; padding-left: 38px; font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat; }

.log { padding: 26px; border: 1px solid var(--line-dark); border-radius: 22px; background: rgba(255, 255, 255, 0.04); font-family: var(--font-mono); font-size: 0.82rem; }
.log figcaption { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-weight: 700; letter-spacing: 0.04em; }
.log figcaption small { margin-left: auto; padding: 3px 9px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); color: var(--on-dark); font-weight: 400; }
.log ol { display: grid; }
.log li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: baseline; padding: 12px 0; border-top: 1px dashed var(--line-dark); }
.log time { color: var(--on-dark); }
.log b { padding: 3px 9px; border-radius: 6px; font-weight: 500; font-size: 0.74rem; }
.log .ok { background: rgba(0, 168, 132, 0.22); color: var(--mint); }
.log .warn { background: rgba(255, 197, 49, 0.18); color: var(--yellow); }
.log-note { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-dark); color: var(--on-dark); font-family: var(--font-body); font-size: 0.92rem; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 22px; padding: 30px 26px; border: 1px solid var(--line); border-radius: 26px; background: #fff; transition: transform 280ms var(--ease), box-shadow 280ms; }
.plan:hover { transform: translateY(-5px); box-shadow: 0 30px 50px rgba(6, 16, 14, 0.1); }
.plan h3 { font-size: 1.15rem; font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.price { font-family: var(--font-display); font-size: 3.6rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.price span { margin-left: 4px; font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan ul { display: grid; gap: 12px; flex: 1; }
.plan li { position: relative; padding-left: 26px; font-size: 0.98rem; line-height: 1.4; }
.plan li::before { content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007a62' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.plan-extras { display: grid; gap: 6px; margin-top: 28px; text-align: center; color: var(--muted); font-size: 0.98rem; }
.plan-extras strong { color: var(--ink); }
.plan-pro { color: #fff; background: var(--ink); border-color: var(--ink); box-shadow: 0 40px 70px rgba(0, 168, 132, 0.25), 0 0 0 3px var(--yellow); transform: translateY(-14px); }
.plan-pro:hover { transform: translateY(-18px); }
.plan-pro h3 { color: var(--yellow); }
.plan-pro .price span { color: var(--on-dark); }
.plan-pro li::before { background-color: var(--teal); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E"); }
.badge { position: absolute; top: -16px; left: 26px; padding: 6px 14px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.faq-grid > div:first-child { position: sticky; top: 100px; }
.faq-list { display: grid; gap: 10px; }
details { border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: border-color 200ms; }
details[open] { border-color: var(--teal); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--tint); font-family: var(--font-mono); font-size: 1.2rem; transition: transform 250ms var(--ease), background 250ms; }
details[open] summary::after { transform: rotate(45deg); background: var(--yellow); }
details p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- cta ---------- */
.cta-section { padding-bottom: clamp(48px, 6vw, 80px); }
.cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px); gap: clamp(32px, 6vw, 80px); align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: 36px; color: #fff; background: radial-gradient(520px 380px at 0 0, rgba(255, 197, 49, 0.2), transparent 65%), radial-gradient(520px 420px at 100% 100%, rgba(0, 168, 132, 0.45), transparent 65%), var(--ink); box-shadow: 0 40px 90px rgba(6, 16, 14, 0.3); }
.cta .eyebrow { color: var(--yellow); }
.cta h2 { font-size: clamp(2.2rem, 4.4vw, 4rem); }
.cta-copy > p:last-child { margin-top: 22px; max-width: 520px; color: var(--on-dark); }
.lead-form { display: grid; gap: 14px; padding: 24px; border: 1px solid var(--line-dark); border-radius: 24px; background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(10px); }
.lead-form label { display: grid; gap: 7px; font-size: 0.86rem; font-weight: 600; color: var(--on-dark); }
.lead-form input { width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 14px; background: rgba(0, 0, 0, 0.3); color: #fff; font: inherit; transition: border-color 200ms, box-shadow 200ms; }
.lead-form input::placeholder { color: rgba(255, 255, 255, 0.4); }
.lead-form input:focus { outline: 0; border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 197, 49, 0.18); }
.form-note { font-size: 0.86rem; color: var(--on-dark); }
.form-note.is-success { color: var(--mint); font-weight: 700; }

/* ---------- footer ---------- */
.footer { padding: 36px 0 48px; }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer .brand-mark { width: 60px; height: 60px; filter: none; }
.footer .brand-word { font-size: 1.75rem; color: var(--ink); }
.footer .brand-word i { color: var(--teal-deep); }
.footer-in { flex-wrap: wrap; }
.powered a { font-weight: 700; color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.powered a:hover { text-decoration-color: var(--teal); }
.footer p { color: var(--muted); font-size: 0.95rem; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {

  .hero-grid, .problem-grid, .flow-grid, .video-grid, .trust-grid, .faq-grid, .cta { grid-template-columns: 1fr; }
  .hero { padding-top: 124px; }
  .hero-stage { padding-bottom: 200px; }
  .status { left: 50%; transform: translateX(-50%); bottom: 0; }
  .ticket { transform: rotate(1.2deg); }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plan-pro, .plan-pro:hover { transform: none; }
  .legend { grid-template-columns: repeat(2, 1fr); }
  .faq-grid > div:first-child { position: static; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-lg { grid-row: auto; grid-column: span 2; min-height: 400px; }
  .tile-offline { grid-column: span 2; }
}

@media (max-width: 680px) {
  body { font-size: 1rem; }
  .wrap { width: min(calc(100% - 32px), var(--max)); }
  .brand-mark { width: 42px; height: 42px; }
  .brand-word { font-size: 1.2rem; }
  .site-header { top: 10px; width: calc(100% - 20px); padding-left: 14px; }
  .actions .btn { flex: 1 1 100%; }
  .proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .proof dt { font-size: 1.35rem; }
  .proof dd { font-size: 0.78rem; }
  .stamp { font-size: 1.9rem; right: 10px; }
  .status { width: min(92%, 300px); }
  .sim { padding: 22px; }
  .sim-bar { grid-template-columns: 46px 1fr 56px; }
  .step { padding: 18px; grid-template-columns: 36px 1fr; }
  .apps-grid, .plans, .bento { grid-template-columns: 1fr; }
  .tile-lg, .tile-offline { grid-column: auto; }
  .tile-offline { grid-template-columns: 1fr; }
  .tile-photo, .tile-lg { min-height: 340px; }
  .aud-grid { grid-template-columns: 1fr; border-top: 0; }
  .aud-grid article, .aud-grid article + article { padding: 24px 0; border-left: 0; border-top: 3px solid var(--ink); }
  .legend { grid-template-columns: 1fr; }
  .pin { width: 30px; height: 30px; margin: -15px 0 0 -15px; font-size: 0.78rem; }
  .pin::before { display: none; }
  .footer-in { flex-direction: column; align-items: flex-start; }
  .log li { grid-template-columns: auto 1fr; }
  .log li b { grid-column: 2; justify-self: start; }
  summary { padding: 18px; font-size: 1.05rem; }
  details p { padding: 0 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .ticker-track { animation: none; }
  .sync li { animation: none; opacity: 1; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- SPIDI ---------- */
.spidi-title { display: inline-block; height: 0.74em; width: auto; margin: 0 0.08em; vertical-align: baseline; transform: translateY(0.02em); }
.spidi-inline { display: inline-block; height: 1.15em; width: auto; margin: 0 0.1em; vertical-align: -0.28em; }

.paid-by { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed #8a958f; font-size: 0.64rem; color: #5b6862; transition: opacity 320ms; transition-delay: calc(var(--i, 0) * 130ms); }
.paid-by img { height: 20px; width: auto; }
.ticket[data-stage="0"] .paid-by { opacity: 0; transition-delay: 0s; }

.s-spidi { height: 20px; width: auto; }
.s-total.compact { gap: 0; }
.s-methods { display: grid; gap: 7px; }
.s-methods div { display: grid; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.s-methods div.on { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.15); }
.s-methods b { font-size: 0.86rem; }
.s-methods span { font-size: 0.72rem; color: var(--muted); }

.pay .heading h2 { line-height: 1.12; }
.methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.method { padding: 28px; border-radius: 24px; background: #fff; border: 1px solid var(--line); transition: transform 280ms var(--ease), box-shadow 280ms; }
.method:hover { transform: translateY(-5px); box-shadow: 0 30px 50px rgba(6, 16, 14, 0.1); }
.method .tag { color: var(--teal-deep); }
.method h3 { font-size: 1.5rem; }
.method p:last-child { margin-top: 10px; color: var(--muted); }

.money { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; gap: 0; margin-top: 28px; padding: 26px; border-radius: 28px; background: var(--ink); color: #fff; box-shadow: 0 30px 60px rgba(6, 16, 14, 0.2); }
.node { display: grid; align-content: center; gap: 4px; padding: 18px; border: 1px solid var(--line-dark); border-radius: 18px; background: rgba(255, 255, 255, 0.05); }
.node-label { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow); }
.node b { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.15; }
.node small { color: var(--on-dark); font-size: 0.82rem; line-height: 1.35; }
.node-spidi { justify-items: center; text-align: center; background: #fff; border-color: #fff; color: var(--ink); }
.node-spidi img { width: 120px; height: auto; }
.node-spidi small { color: var(--muted); }
.node-done { background: rgba(0, 168, 132, 0.16); border-color: rgba(0, 168, 132, 0.5); }
.wire { position: relative; display: grid; align-content: center; justify-items: center; gap: 6px; min-width: 76px; padding: 0 6px; }
.wire span { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark); }
.wire::after { content: ""; width: 100%; height: 6px; border-radius: 99px; background: radial-gradient(circle, var(--yellow) 0 2.5px, transparent 3px) 0 0 / 14px 6px repeat-x; animation: flow 1.2s linear infinite; }
@keyframes flow { to { background-position: 14px 0; } }
@keyframes flow-v { to { background-position: 0 14px; } }

.pay-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; margin-top: 28px; }
.pay-facts li { position: relative; padding-left: 34px; font-weight: 600; }
.pay-facts li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }

@media (max-width: 1020px) {
  .methods { grid-template-columns: 1fr; }
  .money { grid-template-columns: 1fr; gap: 0; }
  .wire { min-height: 56px; }
  .wire::after { width: 6px; height: 28px; background: radial-gradient(circle, var(--yellow) 0 2.5px, transparent 3px) 0 0 / 6px 14px repeat-y; animation-name: flow-v; }
  .wire span { order: 2; }
  .pay-facts { grid-template-columns: 1fr; }
}

/* ---------- contacto ---------- */
.contact { display: grid; gap: 10px; margin-top: 28px; }
.contact a { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--line-dark); border-radius: 16px; background: rgba(255, 255, 255, 0.05); transition: background 200ms, border-color 200ms, transform 200ms var(--ease); }
.contact a:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--yellow); transform: translateX(4px); }
.contact svg { flex: none; width: 26px; height: 26px; color: var(--yellow); }
.contact span { display: grid; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.contact small { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark); font-weight: 400; }

.foot-links { display: flex; gap: 8px; }
.foot-links a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--tint); color: var(--ink); transition: background 200ms, transform 200ms var(--ease); }
.foot-links a:hover { background: var(--yellow); transform: translateY(-2px); }
.foot-links svg { width: 20px; height: 20px; }

/* ---------- demo animado (sustituye al video) ---------- */
.demo-wrap { display: grid; justify-items: start; gap: 12px; }
.monitor { width: 100%; }
.demo { position: relative; container-type: inline-size; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: linear-gradient(180deg, #0a1d19 0%, #0c211c 60%, #0a1a16 100%); color: #fff; }
.demo-plant { position: absolute; right: -3cqw; top: 4cqw; width: 16cqw; aspect-ratio: 1; border-radius: 50%; background: #2a3d36; }
.demo-table { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(#6a5036 0 1.2cqw, #4a3626 1.2cqw); }
.demo-brand { position: absolute; left: 4cqw; top: 3.4cqw; display: flex; align-items: center; gap: 1.2cqw; font-weight: 700; font-size: 2.2cqw; color: var(--yellow); z-index: 3; }
.demo-brand svg { width: 3.8cqw; height: 3.8cqw; }

.demo-card { position: absolute; left: 4cqw; top: 9.6cqw; width: 30cqw; padding: 2cqw 2.4cqw; border-radius: 2cqw; background: #000; z-index: 3; display: grid; gap: 0.6cqw; }
.demo-card b { font-family: var(--font-display); font-size: 3.1cqw; line-height: 1.1; letter-spacing: -0.02em; }
.demo-card span { font-size: 1.85cqw; line-height: 1.3; color: #d3dcd8; }

.demo-phone { position: absolute; left: 39cqw; top: 8.6cqw; width: 21cqw; height: 36cqw; padding: 5.2cqw 1.6cqw 1.6cqw; border: 0.9cqw solid #12201c; border-radius: 3.4cqw; background: #f6f8f5; color: var(--text); box-shadow: 0 2cqw 4cqw rgba(0, 0, 0, 0.5); z-index: 2; }
.demo-notch { position: absolute; top: 1.2cqw; left: 50%; width: 7cqw; height: 1.4cqw; border-radius: 9cqw; background: #12201c; transform: translateX(-50%); }
.d-screen { position: absolute; inset: 4.4cqw 1.6cqw 1.6cqw; display: none; flex-direction: column; gap: 1.2cqw; font-size: 1.5cqw; }
.d-screen.is-on { display: flex; animation: d-in 400ms var(--ease); }
@keyframes d-in { from { opacity: 0; transform: translateY(1cqw); } }
.d-head { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.9cqw; }
.d-row { display: flex; align-items: center; justify-content: space-between; gap: 1cqw; }
.d-row em { font-style: normal; font-size: 1.2cqw; font-weight: 700; padding: 0.4cqw 1cqw; border-radius: 9cqw; background: var(--mint); color: var(--teal-deep); }
.d-row img { height: 2.1cqw; width: auto; }
.d-ok { margin: auto 0 0; text-align: center; font-weight: 700; color: var(--teal-deep); }
.d-finder { position: relative; display: grid; place-items: center; margin-top: 1.4cqw; padding: 2cqw; border: 0.3cqw solid var(--teal); border-radius: 1.6cqw; background: #0b1c18; color: #fff; }
.d-finder svg { width: 10cqw; height: 10cqw; }
.d-laser { position: absolute; left: 0; right: 0; top: 10%; height: 0.35cqw; background: var(--yellow); box-shadow: 0 0 1cqw var(--yellow); animation: d-scan 1.4s ease-in-out infinite alternate; }
@keyframes d-scan { to { top: 88%; } }
.d-lines { display: grid; gap: 0.8cqw; }
.d-lines span { padding: 1cqw 1.2cqw; border-radius: 0.8cqw; background: #fff; border: 1px solid var(--line); }
.d-total { display: grid; margin-top: auto; padding: 1.2cqw 1.4cqw; border-radius: 1cqw; background: var(--ink); }
.d-total small { color: #d3dcd8; }
.d-total b { color: var(--yellow); font-size: 1.9cqw; }
.d-btn { display: grid; place-items: center; padding: 1.2cqw; border-radius: 1.2cqw; background: var(--teal); color: #fff; font-weight: 700; }
.d-field { display: grid; padding: 1cqw 1.2cqw; border-radius: 0.8cqw; background: #fff; border: 1px solid var(--line); }
.d-field small { color: var(--muted); font-size: 1.1cqw; }
.d-field.big b { font-size: 2.2cqw; }
.d-timer { margin-top: auto; padding: 1.2cqw; border-radius: 1.2cqw; background: var(--yellow); text-align: center; font-family: var(--font-mono); font-weight: 700; font-size: 2cqw; }
.d-dot { width: 2.4cqw; height: 2.4cqw; margin: auto; border-radius: 50%; background: var(--teal); animation: pulse 1.4s ease-out infinite; }
.d-bars { display: grid; gap: 0.9cqw; margin-bottom: auto; }
.d-bars i { height: 2.6cqw; border-radius: 0.8cqw; background: var(--mint); transform-origin: left; animation: d-bar 1.2s var(--ease) both; }
.d-bars i:nth-child(2) { animation-delay: 120ms; } .d-bars i:nth-child(3) { animation-delay: 240ms; } .d-bars i:nth-child(4) { animation-delay: 360ms; }
@keyframes d-bar { from { transform: scaleX(0.1); } }
.d-check { width: 8.6cqw; height: 8.6cqw; margin: 1.2cqw auto 0; fill: var(--teal); stroke: none; }
.d-check path { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.d-sent { display: grid; gap: 0.2cqw; margin: 0; text-align: center; }
.d-sent small { color: var(--muted); }
.d-sent strong { color: var(--teal-deep); font-size: 1.9cqw; }
.d-chip { margin-top: auto; padding: 1.2cqw; border-radius: 9cqw; background: var(--mint); text-align: center; font-weight: 700; color: var(--teal-deep); }

.demo-sign { position: absolute; left: 62cqw; top: 20cqw; width: 23cqw; height: 22cqw; background: var(--yellow); clip-path: polygon(8% 0, 82% 5%, 100% 100%, 0 96%); z-index: 1; }
.sign-in { position: absolute; inset: 0.45cqw; display: grid; justify-items: center; align-content: center; gap: 1cqw; background: #0e2a25; clip-path: polygon(8% 0, 82% 5%, 100% 100%, 0 96%); }
.sign-mark { width: 2.6cqw; height: 2.6cqw; }
.sign-qr { width: 9cqw; height: 9cqw; padding: 0.8cqw; border-radius: 0.8cqw; background: #fff; color: #0a1d19; }
.sign-in small { font-size: 1.15cqw; color: #fff; }

.demo-toast { position: absolute; right: 7cqw; top: 10.8cqw; padding: 1.6cqw 2.2cqw; border-radius: 1.4cqw; background: #fff; color: var(--ink); font-weight: 700; font-size: 1.9cqw; z-index: 3; opacity: 0; transform: translateY(-1cqw); transition: opacity 300ms, transform 300ms var(--ease); }
.demo[data-scene="4"] .demo-toast { opacity: 1; transform: none; }

.demo-progress { position: absolute; left: 4cqw; right: 4cqw; bottom: 3.4cqw; height: 4.2cqw; border-radius: 9cqw; background: #050c0a; border: 1px solid rgba(255, 255, 255, 0.1); z-index: 3; }
.demo-fill { position: absolute; left: 2cqw; top: 50%; height: 0.8cqw; width: 0; margin-top: -0.4cqw; border-radius: 9cqw; background: var(--yellow); max-width: calc(100% - 4cqw); }
.demo-progress button { position: absolute; top: 50%; left: calc(2cqw + (100% - 4cqw) * var(--i) / 5); width: 1.8cqw; height: 1.8cqw; margin: -0.9cqw 0 0 -0.9cqw; padding: 0; border: 0; border-radius: 50%; background: #3a4a45; cursor: pointer; }
.demo-progress button.is-on { background: var(--yellow); }
.demo-progress button:focus-visible { outline-offset: 2px; }
.demo-toggle { padding: 8px 14px; border: 1px solid var(--line-dark); border-radius: 999px; background: transparent; color: var(--on-dark); font-size: 0.85rem; cursor: pointer; }
.demo-toggle:hover { color: #fff; border-color: #fff; }

.monitor { padding: 12px; }

/* ---------- foto de la sala ---------- */
.photo { overflow: hidden; }
.scene-box { position: relative; }
.scene { display: block; width: 100%; height: auto; }

@media (max-width: 680px) {
  .photo { aspect-ratio: 1.05; }
  .scene-box { width: 190%; margin-left: -65%; }
  .pin[data-pin="3"], .pin[data-pin="4"] { display: none; }
}

/* ---------- v11: todo el local, sin internet, equipos, pagos «próximamente», panel ---------- */

.cards { display: grid; gap: 16px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards .method { padding: 24px; }
.cards .method h3 { font-size: 1.3rem; }
.cards .method p:last-child { font-size: 0.95rem; line-height: 1.5; }

.group-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; margin-top: 16px; padding: 28px; border-radius: 26px; background: var(--pine); color: #fff; }
.group-card h3 { font-size: 1.5rem; }
.group-card p:not(.tag) { margin-top: 10px; color: var(--on-dark); }
.groups { display: grid; gap: 10px; }
.groups li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.07); border-left: 4px solid var(--yellow); }
.groups li + li { border-left-color: var(--teal); }
.groups b { font-family: var(--font-display); font-size: 1.05rem; }
.groups i { grid-row: span 2; align-self: center; font-style: normal; font-family: var(--font-mono); font-weight: 700; }
.groups span { color: var(--on-dark); font-size: 0.82rem; }

.lan { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; margin-top: 8px; }
.offline-facts { margin-top: 36px; }
.offline-facts li { color: var(--on-dark); }


.plat { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.plat i { padding: 3px 9px; border-radius: 99px; background: var(--tint); color: var(--teal-deep); font-style: normal; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; }
.app-kitchen .plat i, .app-pos .plat i { background: var(--tint); }

.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.dash { padding: 24px; border: 1px solid var(--line-dark); border-radius: 24px; background: var(--ink); color: #fff; box-shadow: 0 30px 60px rgba(6, 16, 14, 0.2); }
.dash figcaption { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; }
.dash figcaption small { margin-left: auto; padding: 3px 9px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); color: var(--on-dark); font-weight: 400; }
.dash-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dash-tiles div { display: grid; gap: 2px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.07); }
.dash-tiles b { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--yellow); }
.dash-tiles span { color: var(--on-dark); font-size: 0.78rem; }
.dash-rows { display: grid; gap: 8px; margin-top: 14px; }
.dash-rows li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); font-size: 0.88rem; }
.dash-rows span { font-weight: 700; }
.dash-rows em { color: var(--on-dark); font-style: normal; font-size: 0.8rem; }
.dash-rows b { padding: 3px 10px; border-radius: 99px; background: rgba(255, 197, 49, 0.18); color: var(--yellow); font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; }
.dash-rows b.ok { background: rgba(0, 168, 132, 0.2); color: #5fe3c4; }

@media (max-width: 1020px) {
  .cards-4, .cards-3 { grid-template-columns: 1fr 1fr; }
  .group-card, .panel-grid { grid-template-columns: 1fr; }
  .lan { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .cards-4, .cards-3 { grid-template-columns: 1fr; }
    .dash-tiles { grid-template-columns: 1fr; }
  .dash-rows li { grid-template-columns: 1fr auto; }
  .dash-rows em { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- menú plegado ---------- */
/* El menú tiene 7 enlaces: hasta 1180 px no cabe en una línea y se pliega en un panel debajo de la cabecera. El panel es opaco (la cabecera es
   translúcida: el panel no hereda ese fondo), los enlaces van a la izquierda con 48 px de alto, la sección activa se marca con acento teal
   y el amarillo queda solo para «Agendar demo». */
@media (max-width: 1180px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .nav.is-open {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    padding: 6px 8px 12px;
    border: 1px solid var(--line-dark);
    border-radius: 22px;
    background: var(--pine);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  }
  .nav.is-open a { display: flex; align-items: center; min-height: 52px; padding: 0 16px; border-bottom: 1px solid var(--line-dark); border-radius: 0; font-size: 1.05rem; color: #fff; background: none; }
  .nav.is-open a:hover { background: rgba(255, 255, 255, 0.06); }
  .nav.is-open a.is-active { color: #5fe3c4; background: rgba(0, 168, 132, 0.12); box-shadow: inset 3px 0 0 var(--teal); }
  .nav.is-open .nav-cta { display: flex; justify-content: center; min-height: 52px; margin: 14px 8px 0; border-bottom: 0; border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 700; }
  .nav.is-open .nav-cta:hover { background: var(--yellow); filter: brightness(1.05); }
}

/* ---------- capturas reales de las apps (L2) ---------- */
.shot { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; }
.shots-note { margin-top: 18px; color: var(--muted); font-size: 0.88rem; text-align: center; }
