/* ============================================================
   demo-cotizacion.css · CSS del demo de cotización PORTADO
   Extraído de demo/styles.css + demo/styles-b.css.
   Selectores globales (html/body/:root/*/img) scopeados a .demo-port
   para NO pisar la identidad de la landing.
   ============================================================ */

/* ░░░ from styles.css ░░░ */
/* ============================================================
   El Operante · v3 · tema claro brand SV
   Mockups iPhone + laptop = CSS originales de los zips
   (mockups/iphone-orig.css + mockups/laptop-orig.css)
   Este archivo solo agrega: page layout, WhatsApp dentro del iPhone,
   barra de URL sobre el viewport del laptop, audit trail, hero, outro.
   ============================================================ */

.demo-port{
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --surface: #f5f5f5;
  --surface-2: #e8e8e8;
  --text: #000000;
  --text-soft: rgba(0, 0, 0, 0.62);
  --text-faint: rgba(0, 0, 0, 0.42);
  --accent: #033CCC;
  --accent-soft: rgba(3, 60, 204, 0.08);
  --accent-deep: #0F3159;
  --ok: #0a7a3e;
  --warn: #b35a00;
  --bad: #b00020;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --wa-out: #d9fdd3;
  --wa-in: #ffffff;
  --wa-bg: #efeae2;
  --wa-head: #f0f2f5;
}

.demo-port *, .demo-port *::before, .demo-port *::after { box-sizing: border-box; }
/* html,body neutralized for port */
.demo-port{
  /* scroll-behavior neutralized */
  /* Variables ajustables en vivo por el panel de controles.
     Defaults = config elegida por Pedro en variante B (2026-05-27). */
  --phone-scale: 0.98;   /* altura del celular = altura laptop × esto */
  --laptop-scale: 1.24;  /* escala visual del laptop */
  --laptop-y: 28px;       /* offset vertical del laptop */
  --think-y: 0px;         /* offset vertical del pensamiento de Neo */
  --stage-gap: 6px;       /* separación entre columnas */
  --trail-w: 262px;       /* ancho del audit trail (variante B) */
}
.demo-port{
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.demo-port img { max-width: 100%; display: block; }

/* ============================================================
   Topbar + hero
   ============================================================ */
.demo-port .topbar {
  position: sticky; top: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
  padding: 12px 28px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--surface-2);
}
.demo-port .variant-nav { display: flex; gap: 14px; }
.demo-port .variant-nav a {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: -0.34px;
  color: var(--text-soft);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s;
}
.demo-port .variant-nav a:hover { background: var(--surface); color: var(--text); }
.demo-port .variant-nav a.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.demo-port .brand { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: -0.39px; }
.demo-port .brand .glyph {
  width: 22px; height: 22px;
  background: var(--text);
  border-radius: 5px; position: relative;
}
.demo-port .brand .glyph::after {
  content: ""; position: absolute; inset: 5px;
  background: var(--accent); border-radius: 2px;
}
.demo-port .brand .bn { font-weight: 700; }
.demo-port .brand .bs { font-weight: 500; color: var(--text-soft); }
.demo-port .brand .sep { color: var(--text-faint); }
.demo-port .live {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ok);
}
.demo-port .live .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(10,122,62,0.16);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.5; } }

.demo-port .hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 96px 32px 72px;
  text-align: center;
}
.demo-port .hero .kick {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.demo-port .hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800; letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 28px;
}
.demo-port .hero h1 em { font-style: normal; color: var(--accent); }
.demo-port .hero .lead {
  font-size: 19px; font-weight: 400;
  letter-spacing: -0.57px;
  color: var(--text-soft);
  max-width: 700px;
  margin: 0 auto 56px;
  line-height: 1.55;
}
.demo-port .hero .scroll-hint {
  font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-faint);
  animation: scrollNudge 2.2s ease-in-out infinite;
}
@keyframes scrollNudge {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ============================================================
   Scrolly + sticky viewport
   ============================================================ */
.scrolly {
  position: relative;
  background: var(--bg-soft);
  border-top: 1px solid var(--surface-2);
  border-bottom: 1px solid var(--surface-2);
}
.viewport-wrap {
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  display: grid;
  grid-template-rows: 1fr 144px;
  padding: 14px 24px 0;
  background: var(--bg-soft);
}
.stage {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--stage-gap, 32px);
  align-items: center;
  min-height: 0;
}

.scroll-track { position: relative; z-index: 1; }
.step-anchor { height: 85vh; pointer-events: none; }

/* ============================================================
   iPhone column — usa .ph (style port from live.sociovirtual.ai)
   Dimensiones controladas por --ph-width / --ph-height en .stage
   ============================================================ */
.phone-col {
  display: flex; justify-content: center; align-items: center;
  height: 100%;
  position: relative;
}

/* ============================================================
   WhatsApp dentro del inside-border (absoluto, fill)
   ============================================================ */
.wa {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 11.5px;
  color: #111b21;
  z-index: 2;
}
.wa-statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 14px 4px;
  font-size: 10px; font-weight: 600;
  color: #fff;
  background: #075e54;
  flex-shrink: 0;
}
.wa-statusbar .wa-icons { display: inline-flex; gap: 4px; align-items: center; }
.wa-statusbar svg { width: 12px; height: 11px; fill: #fff; }
.wa-header {
  background: #075e54;
  display: flex; align-items: center; gap: 7px;
  padding: 3px 9px 7px;
  flex-shrink: 0;
  color: #fff;
}
.wa-back { display: flex; align-items: center; color: #fff; }
.wa-back svg { width: 14px; height: 14px; }
.wa-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #128c7e, #075e54);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 11px; color: #fff;
  flex-shrink: 0;
}
.wa-headinfo { flex: 1; min-width: 0; }
.wa-name {
  font-size: 11.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: -0.3px;
}
.wa-status { font-size: 9.5px; color: rgba(255,255,255,0.78); }
.wa-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 7px 6px;
  display: flex; flex-direction: column;
  gap: 3px;
  background: var(--wa-bg);
}
.wa-body::-webkit-scrollbar { width: 0; }
.wa-date {
  align-self: center;
  background: rgba(255,255,255,0.92);
  color: rgba(0,0,0,0.55);
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 6px;
  margin: 0 auto 8px;
  font-weight: 500;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.06);
}
.wa-bubble {
  max-width: 82%;
  padding: 5px 7px 4px;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.34;
  position: relative;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.28s, transform 0.28s;
  margin-bottom: 2px;
  letter-spacing: -0.22px;
}
.wa-bubble.show { opacity: 1; transform: none; }
.wa-bubble.in {
  align-self: flex-start; background: var(--wa-in); color: #111b21;
  border-top-left-radius: 0;
}
.wa-bubble.in::before {
  content: ''; position: absolute; left: -7px; top: 0;
  border: 5px solid transparent;
  border-top-color: var(--wa-in); border-right-width: 7px;
}
.wa-bubble.out {
  align-self: flex-end; background: var(--wa-out); color: #111b21;
  border-top-right-radius: 0;
}
.wa-bubble.out::before {
  content: ''; position: absolute; right: -7px; top: 0;
  border: 5px solid transparent;
  border-top-color: var(--wa-out); border-left-width: 7px;
}
.wa-bubble .tm {
  font-size: 8.5px; color: rgba(0,0,0,0.45);
  float: right; margin: 4px 0 -2px 7px;
  font-weight: 500;
}
.wa-bubble .tm .tk { color: #53bdeb; margin-left: 2px; letter-spacing: -2px; }
.wa-bubble.doc { padding: 4px; }
.wa-bubble.doc .doc-card {
  display: flex; gap: 6px; align-items: center;
  background: rgba(0,0,0,0.06);
  border-radius: 6px;
  padding: 6px;
}
.wa-bubble.doc .doc-ic {
  width: 24px; height: 30px;
  background: var(--accent);
  border-radius: 4px;
  color: #fff;
  font-size: 7px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wa-bubble.doc .doc-name {
  font-size: 10px; color: #111b21;
  line-height: 1.25; letter-spacing: -0.3px;
}
.wa-foot {
  background: var(--wa-head);
  display: flex; align-items: center; gap: 5px;
  padding: 5px 7px;
  flex-shrink: 0;
}
.wa-input {
  flex: 1;
  background: #fff; border-radius: 18px;
  padding: 6px 9px;
  color: rgba(0,0,0,0.45);
  font-size: 10px;
  display: flex; align-items: center; gap: 5px;
}
.wa-input svg { width: 12px; height: 12px; color: rgba(0,0,0,0.5); }
.wa-send {
  width: 26px; height: 26px; border-radius: 50%;
  background: #128c7e;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wa-send svg { width: 12px; height: 12px; fill: #fff; }

/* ============================================================
   Laptop wrapper — usa el mockup original tal cual
   override: viewport recibe screenshot Odoo, hover animation off
   ============================================================ */
.laptop-col {
  display: flex; justify-content: center; align-items: center;
  height: 100%; position: relative;
  min-height: 0;
  min-width: 0;
}
.laptop-col .macbook {
  width: 100%;
  max-width: none;
  transform: translateY(var(--laptop-y, 0px)) scale(var(--laptop-scale, 1));
  transform-origin: center center;
  transition: transform 0.2s ease;
}
.laptop-col .screen {
  /* mantenemos */
}
.laptop-col .viewport {
  background-size: cover !important;
  background-position: top center !important;
  background-repeat: no-repeat;
  transition: opacity 0.35s ease, background-image 0.35s ease;
  cursor: default !important;
}
.laptop-col .macbook:hover .viewport {
  background-position: top center !important;
}
.laptop-col .viewport:after { display: none !important; }

/* Chrome-style top bar (tab + URL) ----------------------- */
.chrome {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 4;
  font-family: var(--sans);
  user-select: none;
}
.chrome-tabs {
  display: flex; align-items: flex-end;
  height: 30px;
  background: #dee1e6;
  padding: 6px 8px 0;
  gap: 1px;
}
.chrome-tab {
  display: flex; align-items: center; gap: 6px;
  height: 26px;
  min-width: 140px;
  max-width: 220px;
  padding: 0 10px 0 12px;
  background: #ffffff;
  border-radius: 8px 8px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.36px;
  position: relative;
}
.chrome-tab-fav {
  width: 12px; height: 12px;
  border-radius: 3px;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.5);
}
.chrome-tab-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  letter-spacing: -0.36px;
}
.chrome-tab-close {
  font-size: 16px;
  line-height: 1;
  color: var(--text-soft);
  width: 16px; height: 16px;
  display: grid; place-items: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.chrome-tab-new {
  border: none;
  background: transparent;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  font-size: 16px;
  color: var(--text-soft);
  cursor: default;
  border-radius: 50%;
  margin-left: 4px;
  align-self: center;
}
.chrome-urlbar {
  display: flex; align-items: center; gap: 10px;
  height: 38px;
  padding: 0 12px;
  background: #ffffff;
  border-bottom: 1px solid var(--surface-2);
}
.chrome-nav {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-soft);
}
.chrome-nav svg { display: block; }
.chrome-address {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  background: #f1f3f4;
  border-radius: 999px;
  padding: 5px 12px;
  min-width: 0;
}
.chrome-address svg { color: var(--text-soft); flex-shrink: 0; }
.chrome-url {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--text);
  letter-spacing: -0.36px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.chrome-menu {
  color: var(--text-soft);
  font-size: 18px;
  width: 26px;
  text-align: center;
  cursor: default;
}

/* "Pensamiento de Neo" como notificaciones estilo iPhone (se apilan arriba) */
.ios-notif-stack {
  position: fixed;
  top: calc(14px + var(--think-y, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, 88vw);
  display: flex;
  flex-direction: column;
  gap: 9px;
  z-index: 60;
  pointer-events: none;
}
.ios-notif {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  background: rgba(250, 250, 252, 0.78);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 0.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  padding: 11px 13px;
  box-shadow: 0 10px 34px -10px rgba(0, 0, 0, 0.26);
  opacity: 0;
  transform: translateY(-16px) scale(0.97);
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.ios-notif.show { opacity: 1; transform: none; }
.ios-notif.ios-notif-hidden { display: none; }
.ios-notif-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: #000;
  position: relative;
  flex-shrink: 0;
}
/* Logo Socio Virtual (blanco) recortado dentro del ícono */
.ios-notif-icon::after {
  content: '';
  position: absolute;
  inset: 7px;
  background: #fff;
  -webkit-mask: url('/landing-v8/demo/assets/img/logo-sv-clean.png') center / contain no-repeat;
  mask: url('/landing-v8/demo/assets/img/logo-sv-clean.png') center / contain no-repeat;
}
.ios-notif-content { flex: 1; min-width: 0; }
.ios-notif-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}
.ios-notif-app {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #000;
}
.ios-notif-time {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.45);
  letter-spacing: -0.2px;
}
.ios-notif-text {
  font-size: 13.5px;
  line-height: 1.36;
  color: #000;
  letter-spacing: -0.3px;
}

/* ============================================================
   Audit trail
   ============================================================ */
.trail {
  border: 1px solid var(--surface-2);
  border-radius: 12px;
  background: #fff;
  padding: 12px 16px 8px;
  height: 100%;
  min-height: 0;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
  margin-top: 10px;
}
.trail-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--surface-2);
  margin-bottom: 8px;
}
.trail-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.trail-title {
  font-size: 12px; font-weight: 600;
  letter-spacing: -0.36px;
  flex: 1;
}
.trail-counter {
  font-family: var(--mono);
  font-size: 11px; color: var(--text-soft);
  letter-spacing: -0.22px;
}
.trail-counter span { color: var(--text); font-weight: 600; }
.trail-list {
  flex: 1; list-style: none;
  overflow-y: auto;
  display: flex; flex-direction: column;
  gap: 2px;
  padding-right: 4px;
  margin: 0;
}
.trail-list::-webkit-scrollbar { width: 6px; }
.trail-list::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 3px; }
.trail-row {
  display: grid;
  grid-template-columns: 12px 64px 80px 1fr;
  align-items: baseline;
  gap: 10px;
  padding: 7px 8px 7px 10px;
  border-radius: 7px;
  border-left: 2px solid transparent;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.28s ease, transform 0.28s ease, background 0.2s ease;
  position: relative;
}
.trail-row.show { opacity: 1; transform: none; }
.trail-row.current {
  background: var(--accent-soft);
  border-left-color: var(--accent);
}
.trail-row .tr-dot {
  width: 8px; height: 8px; border-radius: 50%;
  align-self: center; flex-shrink: 0;
}
.trail-row.t-think .tr-dot { background: var(--accent-deep); }
.trail-row.t-erp .tr-dot { background: var(--accent); }
.trail-row.t-ok .tr-dot { background: var(--ok); }
.trail-row.t-warn .tr-dot { background: var(--warn); }
.trail-row.t-bad .tr-dot { background: var(--bad); }
.trail-row.t-wa .tr-dot { background: #128c7e; }
.trail-row .tr-ts {
  font-family: var(--mono);
  font-size: 12px; color: var(--text-soft);
  letter-spacing: -0.24px;
}
.trail-row .tr-kind {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-soft);
}
.trail-row.t-think .tr-kind { color: var(--accent-deep); }
.trail-row.t-erp .tr-kind { color: var(--accent); }
.trail-row.t-ok .tr-kind { color: var(--ok); }
.trail-row.t-warn .tr-kind { color: var(--warn); }
.trail-row.t-wa .tr-kind { color: #128c7e; }
.trail-row .tr-text {
  font-size: 14px;
  letter-spacing: -0.42px;
  line-height: 1.4;
  color: var(--text);
}
.trail-row.t-think .tr-text {
  font-style: italic;
  color: var(--text-soft);
}

/* ============================================================
   Outro + footer
   ============================================================ */
.outro {
  max-width: 880px;
  margin: 0 auto;
  padding: 120px 32px 80px;
  text-align: center;
}
.outro-kick {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.outro h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800; letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 24px;
}
.outro-lead {
  font-size: 17px; color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto 40px;
  letter-spacing: -0.51px;
}
.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  letter-spacing: -0.42px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px -10px rgba(3,60,204,0.45);
}

.bottombar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 32px;
  font-size: 12px;
  letter-spacing: -0.36px;
  color: var(--text-soft);
  border-top: 1px solid var(--surface-2);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1200px) {
  .stage { --ph-width: 320px; gap: 24px; }
}
@media (max-width: 980px) {
  .demo-port .topbar { padding: 10px 16px; gap: 12px; }
  .demo-port .variant-nav a { font-size: 10.5px; padding: 4px 8px; }
  .demo-port .hero { padding: 56px 20px 40px; }
  .viewport-wrap { grid-template-rows: 1fr 180px; padding: 12px 12px 0; }
  .stage { --ph-width: 280px; gap: 16px; }
  .outro { padding: 80px 20px 60px; }
  .bottombar { padding: 18px 20px; flex-direction: column; gap: 6px; }
}
@media (max-width: 720px) {
  .stage { grid-template-columns: 1fr; grid-template-rows: auto auto; gap: 12px; }
  .phone-col { display: none; }
  .demo-port .variant-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .wa-bubble, .trail-row, .think-bubble {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ░░░ from styles-b.css ░░░ */
/* ============================================================
   Variante B (zoom/expand) ·
   Layout: phone | computadora (2 columnas).
   Audit Trail = panel FLOTANTE superpuesto sobre la computadora,
   estética Apple (frosted glass, rounded, lista limpia).
   ============================================================ */

.viewport-wrap {
  grid-template-rows: 1fr !important;
  padding: 16px 24px;
}

/* 3 columnas: celular | computadora | audit trail.
   El trail es una CAPA POR DETRÁS de la computadora (la compu se le superpone). */
.stage {
  grid-template-columns: auto 1fr var(--trail-w, 262px);
  gap: var(--stage-gap, 6px);
}

/* Celular y computadora por ENCIMA del trail */
body[data-variant="b"] .phone-col,
body[data-variant="b"] .laptop-col {
  position: relative;
  z-index: 3;
}

/* ---------- Audit Trail (capa detrás de la compu) · estética Apple ---------- */
.trail {
  position: relative;
  z-index: 1;
  /* se mete por debajo del borde derecho de la computadora */
  margin-left: -64px;
  padding-left: 70px;
  /* termina a la misma altura que el celular (no llega hasta abajo de todo) */
  align-self: center;
  height: var(--ph-height, 600px);
  max-height: calc(100vh - 110px);
  margin-top: 0;
  /* frosted glass */
  background: rgba(250, 250, 252, 0.72);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 0.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 22px;
  padding: 14px 14px 8px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 18px 50px -16px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.trail-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 11px;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 6px;
}
.trail-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(3,60,204,0.14);
}
.trail-title {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: #000;
  flex: 1;
}
.trail-counter {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(0,0,0,0.4);
}
.trail-counter span { color: #000; font-weight: 600; }

.trail-list {
  flex: 1;
  list-style: none;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0 2px;
}
.trail-list::-webkit-scrollbar { width: 0; }
.trail-list { scrollbar-width: none; }

/* Filas limpias estilo Apple (lista con hairline) */
.trail-row {
  display: grid;
  grid-template-columns: 9px 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "dot head"
    "dot text";
  align-items: start;
  gap: 1px 11px;
  padding: 10px 8px;
  border-radius: 12px;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
  position: relative;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}
.trail-row:last-child { border-bottom: none; }
.trail-row.show { opacity: 1; transform: none; }

.trail-row .tr-dot {
  grid-area: dot;
  width: 8px; height: 8px;
  border-radius: 50%;
  align-self: center;
  margin-top: 0;
  border: none;
  box-shadow: none;
}
.trail-row.t-think .tr-dot { background: var(--accent-deep); }
.trail-row.t-erp .tr-dot { background: var(--accent); }
.trail-row.t-ok .tr-dot { background: var(--ok); }
.trail-row.t-warn .tr-dot { background: var(--warn); }
.trail-row.t-bad .tr-dot { background: var(--bad); }
.trail-row.t-wa .tr-dot { background: #128c7e; }

/* head: tipo + hora en una línea sutil */
.trail-row .tr-kind {
  grid-area: head;
  display: inline;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.42);
}
.trail-row.t-think .tr-kind { color: var(--accent-deep); }
.trail-row.t-erp .tr-kind { color: var(--accent); }
.trail-row.t-ok .tr-kind { color: var(--ok); }
.trail-row.t-warn .tr-kind { color: var(--warn); }
.trail-row.t-wa .tr-kind { color: #128c7e; }
.trail-row .tr-ts {
  /* hora integrada al final del head, chiquita */
  display: none;
}
.trail-row .tr-text {
  grid-area: text;
  font-size: 13px;
  letter-spacing: -0.32px;
  line-height: 1.4;
  color: #000;
  margin-top: 2px;
}
.trail-row.t-think .tr-text { color: rgba(0,0,0,0.7); font-style: italic; }

/* Pasos inactivos atenuados; el activo a brillo pleno */
.trail-row.show { opacity: 0.4; }
.trail-row.show.current { opacity: 1; }
.trail-row.current {
  background: rgba(3, 60, 204, 0.07);
  border-bottom-color: transparent;
}

/* ---------- Foco: atenuar la pantalla que NO es el centro de atención ---------- */
.ph-screen,
.laptop-col .viewport {
  transition: filter 0.5s ease;
}
/* Si hay que mirar la computadora → baja el brillo del celular */
body.focus-computer .ph-screen {
  filter: brightness(0.5) saturate(0.85);
}
/* Si hay que mirar el celular → baja el brillo de la computadora */
body.focus-phone .laptop-col .viewport {
  filter: brightness(0.55) saturate(0.85);
}

@media (max-width: 1100px) {
  .stage { grid-template-columns: auto 1fr 240px; }
}
@media (max-width: 800px) {
  .stage { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .phone-col { display: none; }
  .trail { max-height: 220px; margin-top: 12px; }
}

/* ============================================================
   Caso tractores (2026-05-27): foto en WhatsApp + lightbox clickable,
   visor de cotización, overlay "analizando imagen", pulido de resaltes.
   ============================================================ */

/* ---- Burbuja con foto: mensaje de imagen estilo WhatsApp (solo la foto) ---- */
.ph-bubble.has-photo {
  padding: 3px;
  max-width: 75%;
  overflow: hidden;
}
.ph-photo {
  position: relative;
  border-radius: 11px;
  overflow: hidden;
  line-height: 0;
}
.ph-photo img { width: 100%; height: auto; display: block; }
/* hora sobreimpresa abajo a la derecha, sobre un degradé (como WhatsApp) */
.ph-photo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42px;
  background: linear-gradient(to top, rgba(0,0,0,0.45), transparent);
  pointer-events: none;
}
.ph-photo-time {
  position: absolute; right: 9px; bottom: 6px; z-index: 1;
  font-size: 11px; line-height: 1; color: rgba(255,255,255,0.95);
  display: inline-flex; align-items: center; gap: 4px;
}
.ph-photo-time .ph-tick { color: #8fd0ff; }
/* tarjeta de PDF abrible */

.ph-clickable { cursor: pointer; transition: transform .14s ease, box-shadow .14s ease; }
.ph-clickable:hover { transform: translateY(-1px); }
.ph-clickable:active { transform: scale(0.99); }
.ph-filecard { position: relative; }
.ph-filecard-open { margin-left: auto; display: grid; place-items: center; color: var(--accent); }
.ph-filecard-open svg { width: 16px; height: 16px; }
/* señuelo: la burbuja clickable late suave para invitar al tap */
.ph-bubble.ph-clickable.show::after {
  content: ""; position: absolute; inset: -2px; border-radius: 16px;
  box-shadow: 0 0 0 0 rgba(3,60,204,0.35);
  animation: phTapPulse 2.4s ease-out 0.4s 3;
  pointer-events: none;
}
@keyframes phTapPulse {
  0% { box-shadow: 0 0 0 0 rgba(3,60,204,0.35); }
  70%,100% { box-shadow: 0 0 0 12px rgba(3,60,204,0); }
}

/* ---- Lightbox / popup ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .28s ease, visibility 0s linear .28s;
}
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .28s ease; }
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 12, 28, 0.72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lightbox-panel {
  position: relative; z-index: 1;
  max-width: min(920px, 94vw); max-height: 90vh;
  display: flex; flex-direction: column;
  transform: translateY(14px) scale(0.98);
  transition: transform .3s cubic-bezier(0.22,1,0.36,1);
}
.lightbox.open .lightbox-panel { transform: none; }
.lightbox-close {
  position: absolute; top: -14px; right: -14px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  border: none; background: #fff; color: #07090f; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 8px 22px -8px rgba(0,0,0,0.5);
  transition: transform .15s ease;
}
.lightbox-close:hover { transform: scale(1.08); }
.lightbox-close svg { width: 18px; height: 18px; }
.lightbox-body { overflow: auto; border-radius: 16px; overscroll-behavior: contain; }
.lightbox.is-photo .lightbox-body { background: transparent; }
.lb-photo { margin: 0; }
.lb-photo img {
  display: block; max-width: 100%; max-height: 78vh;
  border-radius: 16px; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7);
}
.lb-photo figcaption {
  margin-top: 12px; text-align: center; color: rgba(255,255,255,0.82);
  font-size: 13.5px; letter-spacing: -0.2px;
}

/* ---- Visor de cotización generado · tema azul (demo, datos ficticios) ---- */
.lightbox.is-quote .lightbox-body { background: #fff; box-shadow: 0 30px 90px -30px rgba(0,0,0,0.7); }
.qv { width: min(780px, 92vw); padding: 0 0 22px; color: #0b1020; font-size: 13.5px; }
/* franja superior azul como membrete */
.qv-head {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 22px 28px; margin-bottom: 6px;
  background: linear-gradient(120deg, #033CCC 0%, #1e5bff 100%);
  color: #fff;
}
.qv-brand { display: flex; align-items: center; gap: 12px; }
.qv-logo { width: 36px; height: 36px; background: #fff; -webkit-mask: url('/landing-v8/demo/assets/img/logo-sv-clean.png') center/contain no-repeat; mask: url('/landing-v8/demo/assets/img/logo-sv-clean.png') center/contain no-repeat; }
.qv-brand b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -0.4px; color: #fff; }
.qv-brand span { display: block; font-size: 12px; color: rgba(255,255,255,0.82); }
.qv-meta { text-align: right; }
.qv-meta span { display: block; font-size: 12px; color: rgba(255,255,255,0.82); }
.qv-meta span:first-child { font-weight: 700; color: #fff; font-size: 13px; }
.qv-sub { display: flex; justify-content: space-between; gap: 12px; padding: 12px 28px; color: #5b6478; font-size: 12.5px; border-bottom: 2px solid #033CCC; margin-bottom: 6px; }
.qv-sub b { color: #033CCC; }
.qv-table { width: calc(100% - 56px); margin: 0 28px; border-collapse: collapse; }
.qv-table th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: #4f6bb3; font-weight: 700; padding: 7px 8px; border-bottom: 1px solid #d6e0fa; }
.qv-table td { padding: 9px 8px; border-bottom: 1px solid #eef2fb; vertical-align: top; }
.qv-num { text-align: right; white-space: nowrap; }
.qv-line { font-weight: 700; color: #033CCC; }
.qv-machine td { background: rgba(3,60,204,0.07); font-weight: 800; font-size: 12.5px; letter-spacing: -0.2px; color: #033CCC; padding: 8px; border-bottom: none; }
.qv-codecell { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; }
.qv-code { display: block; }
.qv-orig { display: block; font-size: 10.5px; color: #8a91a3; }
.qv-note { display: block; font-size: 10.5px; color: #b35a00; margin-top: 2px; }
.qv-total { display: flex; justify-content: flex-end; align-items: baseline; gap: 16px; margin: 10px 28px 0; padding: 14px 8px 4px; font-size: 15px; color: #033CCC; border-top: 1px solid #d6e0fa; }
.qv-total b { font-size: 21px; font-weight: 800; letter-spacing: -0.5px; color: #033CCC; }
.qv-foot { margin: 14px 28px 0; font-size: 11.5px; color: #8a91a3; line-height: 1.5; }

body.lightbox-active { overflow: hidden; }

/* ---- Vista de la cotización dentro de Odoo (planilla de líneas de la OV) ---- */
.erp-sheet {
  position: absolute;
  left: 0; right: 0; top: 62px; bottom: 0;
  z-index: 5;
  background: #f4f5f7;
  color: #1d2433;
  font-size: 12px;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.viewport.erp-sheet-on .erp-sheet { display: flex; animation: erpSheetIn .45s ease; }
@keyframes erpSheetIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.es-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 16px; background: #fff; border-bottom: 1px solid #e3e6ee;
}
.es-crumb { font-size: 12.5px; color: #5b6478; }
.es-crumb b { color: #1d2433; font-weight: 700; }
.es-state {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: #0a7a3e;
  background: rgba(10,122,62,0.10); padding: 4px 10px; border-radius: 999px;
}
.es-state i { width: 7px; height: 7px; border-radius: 50%; background: #0a7a3e; }
.es-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 18px;
  padding: 12px 16px; background: #fff; border-bottom: 1px solid #e3e6ee;
}
.es-meta .es-k { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: #8a91a3; font-weight: 700; }
.es-meta .es-v { display: block; font-size: 12.5px; color: #1d2433; font-weight: 600; margin-top: 2px; }
.es-tablewrap { flex: 1; overflow: auto; background: #fff; margin: 10px; border: 1px solid #e3e6ee; border-radius: 8px; }
.es-table { width: 100%; border-collapse: collapse; }
.es-table thead th {
  position: sticky; top: 0; z-index: 1;
  text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em;
  color: #6b7385; font-weight: 700; background: #f4f6fb;
  padding: 8px 12px; border-bottom: 1px solid #e3e6ee;
}
.es-table td { padding: 8px 12px; border-bottom: 1px solid #eef0f5; vertical-align: middle; }
.es-num { text-align: right; white-space: nowrap; }
.es-sub { font-weight: 700; color: #033CCC; }
.es-prod { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11.5px; font-weight: 600; }
.es-eq { font-family: var(--sans, 'Inter'); font-size: 10px; color: #b35a00; font-weight: 600; }
.es-machine td {
  background: rgba(3,60,204,0.06); color: #033CCC; font-weight: 800;
  font-size: 11.5px; letter-spacing: -0.1px; padding: 7px 12px;
}
.es-total {
  display: flex; justify-content: flex-end; align-items: baseline; gap: 16px;
  padding: 10px 22px 14px; background: #fff; border-top: 1px solid #e3e6ee;
  font-size: 13px; color: #1d2433;
}
.es-total b { font-size: 18px; font-weight: 800; color: #033CCC; letter-spacing: -0.4px; }

/* ---- Notificación iOS: pulso al entrar ---- */
/* solo opacity por transición; el transform lo maneja el keyframe (evita doble motor) */
.ios-notif { transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1); }
.ios-notif.show { animation: notifPop 0.5s cubic-bezier(0.22,1,0.36,1); }
@keyframes notifPop {
  0% { transform: translateY(-16px) scale(0.96); }
  55% { transform: translateY(0) scale(1.03); }
  100% { transform: none; }
}
.ios-notif-icon { animation: notifIconWiggle 0.6s ease 0.1s; }
@keyframes notifIconWiggle {
  0%,100% { transform: rotate(0); }
  30% { transform: rotate(-7deg); }
  60% { transform: rotate(5deg); }
}

/* ---- Trail: acento del paso activo ---- */
.trail-row.current {
  background: rgba(3, 60, 204, 0.08);
  box-shadow: inset 3px 0 0 var(--accent);
}
.trail-row.current .tr-dot {
  box-shadow: 0 0 0 0 rgba(3,60,204,0.45);
  animation: trailDotPulse 1.6s ease-out infinite;
}
@keyframes trailDotPulse {
  0% { box-shadow: 0 0 0 0 rgba(3,60,204,0.45); }
  100% { box-shadow: 0 0 0 7px rgba(3,60,204,0); }
}

@media (prefers-reduced-motion: reduce) {
  .ph-bubble.ph-clickable.show::after,
  .ios-notif.show,
  .ios-notif-icon,
  .trail-row.current .tr-dot,
  .screen-cursor .sc-ring { animation: none !important; }
}

/* ░░░ P3 perf · demo ░░░ */
/* NO content-visibility en .stage: rompe el sticky/scroll-driven del scrolly.
   El viewport del laptop: hint de composición para el swap de screenshots. */
.demo-port .viewport{ will-change:background-image; contain:paint; }

/* ░░░ LIGHTBOX del demo · UNSCOPED (se appendea a document.body) · re-skin glass ░░░ */
.lightbox{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:24px;opacity:0;visibility:hidden;}
.lightbox.open{opacity:1;visibility:visible;transition:opacity .28s ease;}
.lightbox-backdrop{position:absolute;inset:0;background:rgba(3,9,18,.72);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);}
.lightbox-panel{position:relative;max-width:min(880px,92vw);max-height:88vh;width:100%;
  background:linear-gradient(155deg,rgba(255,255,255,.07),rgba(255,255,255,.02)),rgba(18,24,36,.92);
  -webkit-backdrop-filter:blur(24px) saturate(140%);backdrop-filter:blur(24px) saturate(140%);
  border:1px solid rgba(255,255,255,.12);border-radius:22px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 40px 100px rgba(0,0,0,.6);
  transform:translateY(18px) scale(.98);transition:transform .32s cubic-bezier(.16,1,.3,1);padding:18px;overflow:hidden;}
.lightbox.open .lightbox-panel{transform:none;}
.lightbox-close{position:absolute;top:14px;right:14px;z-index:2;width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,.18);background:rgba(8,12,20,.7);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .25s ease;}
.lightbox-close:hover{transform:scale(1.08);}
.lightbox-close svg{width:18px;height:18px;}
.lightbox-body{overflow:auto;border-radius:16px;overscroll-behavior:contain;max-height:calc(88vh - 36px);}
.lightbox.is-photo .lightbox-body{background:transparent;}

/* ░░░ FIX stacking · el scroll-track (z-index:1) NO debe pintar sobre el
   viewport-wrap sticky (que tiene el contenido visible). En el contexto
   landing el track transparente ocluía la pantalla. ░░░ */
.demo-port .viewport-wrap{ z-index:5; }
.demo-port .scroll-track{ z-index:0; }
