/* Landing pública de Nautilus (MERP). Standalone: no depende del shell. */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-400.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-600.woff2") format("woff2");
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-700.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}

:root {
  --canvas: #f2f5fa; --surface: #fff; --ink: #07111f; --muted: #5b6573;
  --line: #dde3ec; --primary: #0a3a9e; --primary-hover: #082d7c;
  --primary-soft: #e4edff; --navy: #07111f; --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--canvas); color: var(--ink); font-family: "IBM Plex Sans", "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
a { color: inherit; }
.ld-wrap { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

/* Rejilla de escáner: la textura base de un POS */
.scanlines { position: fixed; inset: 0; z-index: 900; pointer-events: none; opacity: .035; background-image: repeating-linear-gradient(0deg, #07111f 0 1px, transparent 1px 4px); }

/* Nav */
.ld-nav { position: fixed; inset: 0 0 auto; z-index: 50; backdrop-filter: blur(12px); background: rgba(242, 245, 250, .85); border-bottom: 1px solid var(--line); }
.ld-nav-in { display: flex; align-items: center; gap: 26px; height: 66px; }
.ld-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; }
.ld-brand img { width: 34px; height: 34px; border-radius: 8px; }
.ld-footer .ld-brand img { width: 28px; height: 28px; }
.ld-brand small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); line-height: 1.1; }
.ld-links { display: flex; gap: 2px; margin-left: 6px; }
.ld-links a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted); padding: 8px 14px; border-radius: 8px; }
.ld-links a:hover { color: var(--ink); background: #fff; }
.ld-nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px; padding: 13px 24px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(10, 58, 158, .28); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* Hero */
.ld-hero { padding: 148px 0 72px; position: relative; overflow: hidden; }
.ld-hero::before { content: ""; position: absolute; inset: -160px -160px auto auto; width: 620px; height: 620px; background: radial-gradient(circle, var(--primary-soft) 0%, rgba(228, 237, 255, 0) 65%); pointer-events: none; }
/* La espiralia nautilus: firma geométrica del producto */
.spiral { position: absolute; right: -70px; bottom: -50px; width: 460px; color: var(--primary); opacity: .16; pointer-events: none; }
.spiral path { fill: none; stroke: currentColor; stroke-width: 1.4; }
.ld-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; position: relative; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--primary); margin-bottom: 18px; }
.ld-hero h1 { font-size: clamp(48px, 6.4vw, 92px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 22px; }
.ld-hero h1 em { font-style: normal; color: var(--primary); }
.ld-sub { font-size: 18px; color: var(--muted); max-width: 480px; margin-bottom: 30px; }
.ld-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.ld-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.ld-meta b { color: var(--ink); }

/* POS ticket mock */
.ticket-stage { position: relative; display: grid; gap: 22px; justify-items: center; padding: 20px 0; }
.ticket { width: min(340px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 8px 8px 0 0; padding: 26px 26px 20px; font-size: 13.5px; box-shadow: 0 30px 60px rgba(7, 17, 31, .14); position: relative; }
.ticket::after { content: ""; position: absolute; left: 0; right: 0; bottom: -13px; height: 14px; background: linear-gradient(-45deg, transparent 10px, #fff 0) 0 0 / 20px 20px repeat-x, linear-gradient(45deg, transparent 10px, #fff 0) 10px 0 / 20px 20px repeat-x; filter: drop-shadow(0 8px 8px rgba(7, 17, 31, .08)); }
.ticket h3 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; text-align: center; }
.ticket .t-sub { text-align: center; color: var(--muted); font-size: 12px; margin-bottom: 14px; }
.ticket hr { border: 0; border-top: 1px dashed var(--line); margin: 12px 0; }
.t-row { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.t-row.total { font-weight: 700; font-size: 17px; }
/* Teclado numérico de la caja */
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 12px; }
.keypad span { display: grid; place-items: center; height: 26px; border-radius: 5px; background: #f2f5fa; border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--muted); }
.keypad span.ok { background: var(--primary); border-color: var(--primary); color: #fff; }
.t-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--primary-soft); color: var(--primary); }
/* Barra de escaneo: recorre el barcode de arriba a abajo, como un lector */
.barcode { position: relative; height: 46px; margin: 2px 0 12px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 10px, var(--ink) 10px 13px, transparent 13px 15px); border-radius: 2px; overflow: hidden; }
.scanbar { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--primary), transparent); box-shadow: 0 0 10px var(--primary); animation: sweep 3s ease-in-out infinite; }
@keyframes sweep { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(43px); opacity: 0; } }

/* Gaveta de caja: el detalle que sí es un punto de venta */
.turno-card { width: min(340px, 100%); background: var(--navy); color: #f2f5fa; border-radius: 14px; padding: 22px 24px; box-shadow: 0 24px 50px rgba(7, 17, 31, .25); }
.turno-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9aa6b8; margin-bottom: 8px; }
.turno-top .t-turno { background: rgba(255, 255, 255, .1); color: #f2f5fa; padding: 2px 8px; border-radius: 99px; letter-spacing: 0; text-transform: none; }
.turno-monto { font-size: 50px; font-weight: 700; letter-spacing: -.03em; line-height: 1; margin-bottom: 12px; }
.turno-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, .12); color: #9aa6b8; }
.turno-row b { color: #f2f5fa; }
.gaveta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(255, 255, 255, .18); }
.gaveta i { display: block; font-style: normal; font-size: 11px; color: #9aa6b8; text-align: center; }
.gaveta b { display: block; font-size: 13px; color: #f2f5fa; text-align: center; margin-top: 2px; }

/* Ticker: losÚltimos cobros pasando, como en la cola de una impresora */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; overflow: hidden; white-space: nowrap; }
.ticker-in { display: inline-block; padding: 13px 0; animation: tick 26s linear infinite; font-size: 15px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.ticker-in span { margin: 0 26px; }
.ticker-in i { color: var(--primary); font-style: normal; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Sections */
section.blk { padding: 92px 0; scroll-margin-top: 70px; }
.sec-num { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--primary); margin-bottom: 12px; }
.sec-title { font-size: clamp(34px, 4.2vw, 56px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 14px; }
.sec-sub { color: var(--muted); max-width: 560px; margin-bottom: 42px; font-size: 17px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(7, 17, 31, .12); }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 18px; }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--muted); margin-bottom: 14px; }
.card ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.card li { font-size: 12px; font-weight: 600; background: var(--canvas); border: 1px solid var(--line); padding: 3px 10px; border-radius: 99px; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: paso; }
.steps--two { grid-template-columns: repeat(2, 1fr); }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.step::before { counter-increment: paso; content: "0" counter(paso); font-size: 40px; font-weight: 700; letter-spacing: -.02em; color: var(--primary); display: block; margin-bottom: 10px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* Dark band */
.band { background: var(--navy); color: #f2f5fa; border-radius: 22px; padding: 60px 56px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; overflow: hidden; position: relative; }
.band::after { content: ""; position: absolute; right: -140px; top: -140px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(10, 58, 158, .55), transparent 65%); }
.band .sec-num { color: #9eb6f5; }
.band h2 { font-size: clamp(32px, 3.8vw, 52px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 14px; }
.band p { color: #9aa6b8; max-width: 440px; margin-bottom: 26px; }
.pay-list { list-style: none; display: grid; gap: 14px; }
.pay-list li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; padding: 16px 18px; }
.pay-list b { display: block; font-size: 16px; margin-bottom: 2px; }
.pay-list span { font-size: 13.5px; color: #9aa6b8; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.stat { border-top: 2px solid var(--ink); padding-top: 16px; }
.stat b { font-size: 50px; font-weight: 700; letter-spacing: -.03em; display: block; line-height: 1; }
.stat span { font-size: 14px; color: var(--muted); }

/* CTA + footer */
.cta { text-align: center; padding: 40px 0 92px; }
.cta h2 { font-size: clamp(40px, 5vw, 68px); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; margin-bottom: 16px; }
.cta p { color: var(--muted); margin-bottom: 28px; }
.ld-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13.5px; color: var(--muted); }
.ld-footer-in { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ld-footer a { color: var(--ink); text-decoration: none; font-weight: 600; }
.ld-footer .sp { margin-left: auto; }

/* Reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; }

/* Form page */
.form-shell { min-height: 100dvh; display: grid; place-items: center; padding: 110px 20px 60px; }
.form-card { width: min(560px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 42px 40px; box-shadow: 0 30px 70px rgba(7, 17, 31, .12); }
.form-card h1 { font-size: 38px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 8px; }
.form-card .lede { color: var(--muted); margin-bottom: 26px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.form-row input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: inherit; background: var(--canvas); }
.form-row input:focus { outline: 2px solid var(--primary); border-color: var(--primary); background: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.flash { border-radius: 10px; padding: 12px 16px; font-size: 14px; margin-bottom: 18px; }
.flash--danger { background: #fdecea; border: 1px solid #f2b8b2; color: #b3261e; }
.form-ok { text-align: center; padding: 12px 0; }
.form-ok .ok-ring { width: 64px; height: 64px; border-radius: 99px; background: #e8f5e9; color: #0a7c2e; display: grid; place-items: center; margin: 0 auto 18px; }
.form-ok .ok-ring svg { width: 30px; height: 30px; }

@media (max-width: 960px) {
  .ld-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; padding: 44px 30px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .ld-links { display: none; }
  .spiral { opacity: .09; right: -120px; }
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 32px 24px; }
  section.blk { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .ticker-in, .scanbar { animation: none; }
  .btn:hover, .card:hover { transform: none; }
}
