/* =====================================================================
   ONLAB POS — pos.css
   Extensión de ../css/home.css para la landing /pos/.
   Regla: solo usa las variables y patrones del sistema de ONLAB
   (--primary, --accent, --navy, --border, --r-*, --shadow*, etc.).
   Todas las clases nuevas llevan prefijo pos- para no colisionar con
   la home ni con otras soluciones.
   ===================================================================== */

/* Ícono WhatsApp en botón ghost */
.pos-wa-ico { color: var(--wa); }

/* Variantes de ícono de tarjeta para los tres conceptos de inventario */
.card__icon.pos-ico--transit { background: #eef4ff; color: var(--primary); }
.card__icon.pos-ico--proj { background: var(--aqua-50); color: var(--accent-dark); }

/* ---------- Marco de captura real ---------- */
.pos-shot { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-high); overflow: hidden; }
.pos-shot__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: var(--surface-soft); border-bottom: 1px solid var(--border); }
.pos-shot__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.pos-shot__bar span { margin-left: 10px; font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-shot img { width: 100%; height: auto; aspect-ratio: 1280 / 800; background: var(--surface-soft); }
.pos-shot figcaption { padding: 11px 16px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--border); background: var(--surface); }
.pos-shot--hero { position: relative; }

/* ---------- Ejemplo de inventario: 2 + 12 = 14 ---------- */
.pos-eq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 28px; }
.pos-eq__product { font: 600 13px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.pos-eq__row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; }
.pos-eq__cell { border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px 14px; text-align: center; background: var(--bg); min-width: 0; }
.pos-eq__cell strong { display: block; font-size: clamp(32px, 4vw, 44px); line-height: 1; letter-spacing: -.03em; color: var(--navy); font-variant-numeric: tabular-nums; }
.pos-eq__cell span { display: block; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pos-eq__cell--transit { background: #eef4ff; border-color: #d6e4ff; }
.pos-eq__cell--transit strong, .pos-eq__cell--transit span { color: var(--primary-dark); }
.pos-eq__cell--proj { background: var(--aqua-50); border-color: #c9eee8; }
.pos-eq__cell--proj strong, .pos-eq__cell--proj span { color: var(--aqua-700); }
.pos-eq__op { font-size: 28px; font-weight: 700; color: var(--muted); }
.pos-eq__note { margin-top: 18px; color: var(--muted); font-size: 15.5px; }
.pos-eq__note strong { color: var(--navy); }

/* ---------- Bloques texto + captura ---------- */
.pos-split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.pos-split--reverse .pos-split__copy { order: 2; }
.pos-split--eq { margin-top: 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; }
.pos-split__copy h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; color: var(--navy); }
.pos-split__copy .checklist { margin-top: 8px; }
.pos-lead { color: var(--muted); font-size: 18px; margin-bottom: 26px; }
.pos-split__copy .pos-lead:last-child { margin-bottom: 0; margin-top: 22px; }

/* Recepción parcial: 20 / 8 / 12 */
.pos-feature { border-top: 0; }
.pos-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pos-trio div { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px; }
.pos-trio strong { display: block; font-size: clamp(30px, 3.6vw, 40px); line-height: 1; letter-spacing: -.03em; color: var(--navy); font-variant-numeric: tabular-nums; }
.pos-trio span { display: block; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pos-trio .pos-trio--ok { background: var(--aqua-50); border-color: #c9eee8; }
.pos-trio .pos-trio--ok strong, .pos-trio .pos-trio--ok span { color: var(--aqua-700); }
.pos-trio .pos-trio--transit { background: #eef4ff; border-color: #d6e4ff; }
.pos-trio .pos-trio--transit strong, .pos-trio .pos-trio--transit span { color: var(--primary-dark); }
.pos-progress { height: 10px; border-radius: 999px; background: var(--surface-soft); border: 1px solid var(--border); margin: 14px 0 22px; overflow: hidden; }
.pos-progress span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--primary)); }
.pos-note { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--navy); margin-bottom: 26px; }
.pos-note svg { flex: none; margin-top: 3px; color: var(--accent-dark); }

/* Indicadores del tablero */
.pos-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pos-kpis li { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 11px 14px; font-weight: 550; color: var(--navy); font-size: 15px; }
.pos-kpis li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

/* Sectores: los chips de ONLAB, como lista */
ul.chips { padding: 0; }

/* ---------- Demo funcional: bloque navy de alto impacto ---------- */
.pos-demo-section { padding-top: 40px; padding-bottom: 40px; }
.pos-demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; background: var(--navy); color: #fff; border-radius: 22px; padding: 56px; position: relative; overflow: hidden; }
.pos-demo::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -240px; border-radius: 50%; background: radial-gradient(closest-side, rgba(37,99,235,.55), transparent); }
.pos-demo::after { content: ""; position: absolute; width: 420px; height: 420px; left: -160px; bottom: -260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(20,184,166,.3), transparent); }
.pos-demo > * { position: relative; z-index: 1; }
.pos-demo h2 { color: #fff; font-size: clamp(30px, 4.2vw, 44px); margin-bottom: 14px; }
.pos-demo__copy > p { color: #c3d0e6; font-size: 17px; margin-bottom: 24px; }
.pos-eyebrow--dark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #7fe3d6; }
.pos-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 28px; }
.pos-steps li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 550; color: #e5ecf7; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-sm); padding: 10px 12px; }
.pos-steps span { width: 24px; height: 24px; flex: none; border-radius: 7px; background: var(--accent); color: var(--navy); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.pos-demo .btn--primary { background: #fff; color: var(--navy); box-shadow: none; }
.pos-demo .btn--primary:hover { background: #e8f0ff; }
.pos-demo__fine { margin-top: 14px; font-size: 14px; color: #9fb0cb; }
.pos-demo__shot { margin: 0; border-radius: var(--r-md); overflow: hidden; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 20px 48px rgba(0,0,0,.35); }
.pos-demo__shot img { width: 100%; height: auto; aspect-ratio: 1280 / 800; background: #1b355e; }

/* ---------- A la medida ---------- */
.pos-measure { display: flex; gap: 28px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 40px; box-shadow: var(--shadow); max-width: 920px; }
.pos-measure .sol__ico { flex: none; margin: 0; }
.pos-measure h2 { font-size: clamp(26px, 3.4vw, 34px); color: var(--navy); margin-bottom: 12px; }
.pos-measure p { color: var(--muted); font-size: 17px; }

/* ---------- Responsivo (mismos cortes que home.css) ---------- */
@media (max-width: 1024px) {
  .pos-split, .pos-split--eq, .pos-demo { grid-template-columns: 1fr; }
  .pos-split--reverse .pos-split__copy { order: 0; }
  .pos-split { gap: 36px; }
  .pos-demo { padding: 44px 32px; gap: 36px; }
  .pos-shot, .pos-demo__shot { max-width: 760px; }
}
@media (max-width: 767px) {
  .pos-eq { padding: 20px 16px; }
  .pos-eq__row { gap: 6px; }
  .pos-eq__cell { padding: 12px 6px; }
  .pos-eq__cell span { font-size: 12.5px; }
  .pos-eq__op { font-size: 20px; }
  .pos-trio { gap: 8px; }
  .pos-trio div { padding: 12px 10px; }
  .pos-trio span { font-size: 12.5px; }
  .pos-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pos-kpis li { font-size: 13.5px; padding: 10px; }
  .pos-steps { grid-template-columns: 1fr; }
  .pos-demo { padding: 36px 20px; border-radius: 22px; }
  .pos-demo .btn { width: 100%; white-space: normal; text-align: center; }
  .pos-measure { flex-direction: column; padding: 28px 22px; gap: 18px; }
  .pos-split__copy .btn { width: 100%; }
  .pos-shot__bar span { font-size: 11.5px; }
}

/* Hero: la captura real gana tamaño en escritorio sin salir del viewport */
@media (min-width: 1200px) {
  .hero__inner:has(.pos-shot--hero) { grid-template-columns: .92fr 1.08fr; gap: 48px; }
  .pos-shot--hero { width: calc(100% + 72px); margin-right: -72px; }
}

/* Footer: mismos títulos que la home (.footer h4) pero con nivel h3 para un orden de encabezados válido */
.footer .pos-footer-h { color: #fff; font: 600 14px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
