/* ==========================================================================
   Delogy POS — landing comercial
   Monocolor NARANJA (marca del producto). Texto grafito neutro, fondos cálidos.
   Naranja usado con jerarquía: sólido = acción, tinte = acento secundario.
   Sin dependencias externas. Fuentes del sistema. Cero CDNs.
   ========================================================================== */

:root {
  /* Superficies cálidas */
  --bg: #faf8f5;
  --surface: #ffffff;
  --band: #f5f1ec;
  --band-2: #efe9e1;

  /* Texto grafito / slate */
  --ink: #23262d;         /* títulos de tarjeta, texto fuerte */
  --text: #4c5058;        /* cuerpo */
  --muted: #787d88;       /* secundario */
  --faint: #a6a8b0;       /* terciario */

  /* Líneas cálidas */
  --line: #ece7df;
  --line-2: #ddd6cb;

  /* Naranja de marca (el único color) */
  --orange: #f97316;      /* acción / CTA sólido */
  --orange-2: #ea580c;    /* títulos, hover, anclas oscuras */
  --orange-ink: #b64309;  /* texto naranja sobre tinte (AA) */
  --orange-tint: #fff2e8;
  --orange-tint-2: #fde3cf;

  /* Verde solo semántico, desaturado */
  --ok: #2f9e5b;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-pill: 999px;
  --maxw: 1160px;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Avenir Next", "Segoe UI Variable Display", "Century Gothic", "URW Gothic", system-ui, var(--sans);
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", "Roboto Mono", "Segoe UI Mono", Menlo, Consolas, monospace;

  --shadow-xs: 0 1px 2px rgba(35, 38, 45, .05);
  --shadow-sm: 0 1px 2px rgba(35, 38, 45, .05), 0 2px 6px -2px rgba(35, 38, 45, .06);
  --shadow-md: 0 12px 26px -12px rgba(35, 38, 45, .16);
  --shadow-lg: 0 30px 60px -26px rgba(35, 38, 45, .20);
  --shadow-orange: 0 12px 30px -10px rgba(249, 115, 22, .40);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
svg { display: block; }
a { color: var(--orange-2); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- Tipografía ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange-2);
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--orange); border-radius: 2px; flex: none; }
.center.eyebrow { justify-content: center; }

h1, h2, h3, h4 { margin: 0; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.025em; font-weight: 800; font-family: var(--display); }
h4 { color: var(--ink); }

.section-title { font-size: clamp(1.9rem, 3.9vw, 2.8rem); color: var(--orange-2); }
.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 58ch; margin: 16px 0 0; line-height: 1.65; }

/* ---- Botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-size: .98rem; font-weight: 650;
  padding: 13px 22px; border-radius: var(--r-sm); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1;
  transition: transform .12s ease, box-shadow .2s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary, .btn-amber { background: var(--orange); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover, .btn-amber:hover { background: var(--orange-2); box-shadow: var(--shadow-orange); }
.btn-ghost { background: var(--surface); color: var(--orange-2); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--orange); background: var(--orange-tint); }
.btn-wa { background: var(--surface); color: var(--orange-2); border-color: var(--orange-tint-2); }
.btn-wa:hover { background: var(--orange-tint); border-color: var(--orange); }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

/* ==========================================================================
   Navbar + logo real
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, .82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--orange-2); }
.brand .logo { height: 24px; width: auto; color: var(--orange-2); }
.brand .bp { font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: .02em; color: var(--orange-2); }
.brand .bdot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex: none; align-self: flex-end; margin-bottom: 5px; }
/* Wordmark de texto (páginas legales) */
.brand .bw { color: var(--orange-2); font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .93rem; font-weight: 550; transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn-wa { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding: 74px 0 64px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(760px 420px at 82% 8%, rgba(249, 115, 22, .10), transparent 60%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.1vw, 3.85rem); color: var(--orange-2); }
.hero-sub { color: var(--text); font-size: 1.16rem; margin: 22px 0 30px; max-width: 48ch; line-height: 1.6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-benefits { margin-top: 32px; display: grid; gap: 16px; max-width: 46ch; }
.hero-benefit { display: flex; gap: 12px; align-items: flex-start; }
.hero-benefit .bi { flex: none; width: 22px; height: 22px; color: var(--orange); margin-top: 2px; }
.hero-benefit .bi svg { width: 22px; height: 22px; }
.hero-benefit b { color: var(--ink); font-weight: 650; }
.hero-benefit span { display: block; color: var(--muted); font-size: .93rem; margin-top: 1px; }

/* Figura del hero: screenshot real enmarcado + chips flotantes */
.hero-figure { position: relative; }
.chip-float {
  position: absolute; z-index: 3; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 9px 15px; box-shadow: var(--shadow-md);
  font-size: .82rem; font-weight: 650; color: var(--ink); display: inline-flex; align-items: center; gap: 8px;
}
.chip-float svg { width: 16px; height: 16px; color: var(--orange); flex: none; }
.chip-float .n { color: var(--orange-2); }
.chip-float.c1 { top: -16px; left: -12px; animation: floaty 5.5s ease-in-out infinite; }
.chip-float.c2 { bottom: 34px; left: -26px; animation: floaty 6.5s ease-in-out .6s infinite; }
.chip-float.c3 { top: 42px; right: -18px; animation: floaty 6s ease-in-out .3s infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* Marco de navegador */
.frame { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); }
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--band); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); flex: none; }
.frame-url { margin-left: 12px; font-family: var(--mono); font-size: .72rem; color: var(--faint); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px 14px; }
.frame img { display: block; width: 100%; height: auto; }

/* ==========================================================================
   Franja de diferenciadores
   ========================================================================== */
.trust { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 30px 0; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item .ti { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--orange-tint); color: var(--orange-2); }
.trust-item .ti svg { width: 22px; height: 22px; }
.trust-item b { display: block; color: var(--ink); font-weight: 700; font-size: 1rem; }
.trust-item span { color: var(--muted); font-size: .9rem; }

/* ==========================================================================
   Bandas de sección
   ========================================================================== */
.band { padding: 92px 0; position: relative; }
.band-alt { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-head { max-width: 660px; margin-bottom: 50px; }
.band-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.band-head.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---- Capacidades (showcase con spotlight rotatorio) ---- */
.caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cap { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 22px; box-shadow: var(--shadow-xs); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.cap:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.cap.is-spot { border-color: var(--orange); box-shadow: 0 0 0 1.5px var(--orange), var(--shadow-lg); transform: translateY(-6px); }
.cap-badge { position: absolute; top: 16px; right: 16px; font-family: var(--mono); font-size: .58rem; letter-spacing: .09em; font-weight: 700; text-transform: uppercase; padding: 4px 9px; border-radius: var(--r-pill); background: var(--orange-tint); color: var(--orange-ink); }
.cap-badge.fav { background: var(--orange); color: #fff; }
.cap-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--orange-tint); color: var(--orange-2); margin-bottom: 16px; transition: background .25s ease, color .25s ease; }
.cap-icon svg { width: 24px; height: 24px; }
.cap.is-spot .cap-icon { background: var(--orange); color: #fff; }
.cap h3 { font-size: 1.12rem; color: var(--ink); }
.cap p { color: var(--muted); font-size: .92rem; margin: 8px 0 0; }

/* ---- 3 modos ---- */
.mode-diagram { margin: 0 auto 46px; max-width: 760px; }
.mode-diagram svg { width: 100%; height: auto; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mode-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; position: relative; box-shadow: var(--shadow-xs); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.mode-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mode-icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--orange-tint); color: var(--orange-2); }
.mode-icon svg { width: 24px; height: 24px; }
.mode-step { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; color: var(--faint); text-transform: uppercase; margin: 18px 0 6px; }
.mode-card h3 { font-size: 1.28rem; color: var(--ink); }
.mode-card p { color: var(--muted); margin: 10px 0 0; font-size: .95rem; }
.mode-card .chip { display: inline-block; margin-top: 16px; font-family: var(--mono); font-size: .72rem; padding: 5px 11px; border-radius: var(--r-pill); border: 1px solid var(--line-2); color: var(--muted); }
.mode-card.is-featured { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.mode-card.is-featured .chip { color: var(--orange-2); border-color: var(--orange-tint-2); background: var(--orange-tint); }
.mode-note { text-align: center; margin: 38px auto 0; max-width: 62ch; color: var(--muted); font-size: 1.02rem; }
.mode-note b { color: var(--ink); }

/* ---- Features ---- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { display: flex; flex-direction: column; gap: 4px; padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-xs); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.feature .fi { color: var(--orange-2); margin-bottom: 10px; }
.feature .fi svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.08rem; color: var(--ink); }
.feature p { color: var(--muted); font-size: .91rem; margin: 4px 0 0; }

/* ---- Galería "Así se ve por dentro" ---- */
.shots { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.shot { position: relative; }
.shot .cap-tag { margin-top: 12px; font-weight: 650; color: var(--ink); font-size: .98rem; }
.shot .cap-tag span { display: block; color: var(--muted); font-size: .88rem; font-weight: 400; margin-top: 2px; }
.shot-a { grid-row: span 2; }
.phone { border: 8px solid var(--ink); border-radius: 30px; overflow: hidden; background: var(--ink); box-shadow: var(--shadow-lg); max-width: 240px; margin: 0 auto; }
.phone img { display: block; width: 100%; height: auto; }
.shot-phone { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-xs); }
.shot-phone .cap-tag { text-align: center; }

/* ---- Precios ---- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 26px; position: relative; box-shadow: var(--shadow-xs); }
.price-card.featured { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), var(--shadow-md); }
.price-tier { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.price-card.featured .price-tier { color: var(--orange-2); }
.price-tag-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; background: var(--orange); color: #fff; font-weight: 600; padding: 5px 14px; border-radius: var(--r-pill); box-shadow: var(--shadow-sm); white-space: nowrap; }
.price-name { font-size: 1.35rem; font-weight: 800; color: var(--ink); margin-top: 6px; font-family: var(--display); }
.price-desc { color: var(--muted); font-size: .9rem; margin: 8px 0 18px; min-height: 40px; }
.price-amt { display: flex; align-items: baseline; gap: 6px; }
.price-amt .num { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; color: var(--orange-2); font-family: var(--display); font-variant-numeric: tabular-nums; }
.price-amt .per { color: var(--muted); font-size: .88rem; }
.price-alt { color: var(--orange-ink); font-family: var(--mono); font-size: .78rem; margin: 8px 0 0; }
.price-list { list-style: none; margin: 22px 0 26px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.price-list li { display: flex; gap: 10px; font-size: .92rem; color: var(--text); align-items: flex-start; }
.price-list li svg { width: 17px; height: 17px; color: var(--orange); flex: none; margin-top: 2px; }
.price-list li.muted { color: var(--muted); }
.price-list li.muted svg { color: var(--orange-ink); }
.price-card .btn { margin-top: auto; }
.price-trial-note { text-align: center; color: var(--muted); font-size: .95rem; margin: 30px 0 0; }
.price-trial-note a { font-weight: 600; }

.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.extra { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow-xs); }
.extra b { display: block; font-size: 1.02rem; color: var(--ink); }
.extra span { color: var(--muted); font-size: .9rem; display: block; margin-top: 4px; }

/* Tabla de transparencia */
.compare { margin-top: 40px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-xs); }
.compare-scroll { overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .92rem; }
.compare thead th { background: var(--orange-tint); color: var(--orange-2); font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; padding: 14px 18px; text-align: center; }
.compare thead th:first-child { text-align: left; }
.compare th.feat { font-family: var(--display); }
.compare td { padding: 13px 18px; border-top: 1px solid var(--line); text-align: center; color: var(--text); vertical-align: middle; }
.compare td:first-child { text-align: left; color: var(--ink); font-weight: 550; }
.compare tbody tr:nth-child(even) { background: #faf7f3; }
.compare .yes { color: var(--orange); display: inline-flex; }
.compare .yes svg { width: 20px; height: 20px; }
.compare .no { color: var(--faint); font-weight: 700; }
.compare .txt { font-size: .82rem; color: var(--muted); }

/* ---- Demo ---- */
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.demo-cred { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 24px; font-family: var(--mono); box-shadow: var(--shadow-sm); }
.demo-cred .cred-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.demo-cred .cred-row:last-child { border-bottom: 0; }
.demo-cred .k { color: var(--muted); font-size: .84rem; }
.demo-cred .v { color: var(--ink); font-weight: 600; }
.demo-cred .v.link { display: inline-flex; align-items: center; gap: 6px; color: var(--orange-2); }
.demo-cred .v.link svg { width: 14px; height: 14px; }
.demo-cred .pin { color: var(--orange-2); font-weight: 600; letter-spacing: .04em; }

/* ---- Descargas ---- */
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-xs); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.dl:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.dl .dl-icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--orange-tint); color: var(--orange-2); margin-bottom: 4px; }
.dl .dl-icon svg { width: 24px; height: 24px; }
.dl h3 { font-size: 1.12rem; margin-top: 4px; color: var(--ink); }
.dl p { color: var(--muted); font-size: .89rem; margin: 2px 0 18px; }
.dl .btn { margin-top: auto; }
.dl .avail { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; color: var(--orange-2); }
.dl .avail::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dl .avail.soon { color: var(--muted); }

/* ---- Personalización ---- */
.custom { background: var(--ink); border-radius: var(--r-lg); padding: 48px 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; position: relative; overflow: hidden; }
.custom::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(249, 115, 22, .35), transparent 70%); pointer-events: none; }
.custom > * { position: relative; }
.custom h2 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); max-width: 24ch; color: #fff; }
.custom p { color: #c7c9cf; margin: 12px 0 0; max-width: 50ch; }

/* ---- FAQ ---- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; color: var(--ink); font-family: var(--display); font-size: 1.06rem; font-weight: 700; padding: 22px 44px 22px 0; cursor: pointer; position: relative; letter-spacing: -.01em; }
.faq-q::after { content: ""; position: absolute; right: 8px; top: 50%; width: 13px; height: 13px; margin-top: -6px; background: no-repeat center/contain; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ea580c' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); transition: transform .22s ease; }
.faq-item.open .faq-q::after { transform: rotate(135deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { color: var(--muted); margin: 0 0 22px; max-width: 72ch; }
.faq-item.open .faq-a { max-height: 460px; }

/* ---- Formulario prueba gratis ---- */
.trial { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: .84rem; color: var(--ink); margin-bottom: 6px; font-weight: 600; }
.field input { width: 100%; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-family: var(--sans); font-size: 1rem; transition: border-color .15s ease, box-shadow .15s ease; }
.field input::placeholder { color: var(--faint); }
.field input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249, 115, 22, .14); }
.form-hint { font-size: .8rem; color: var(--muted); margin: 4px 0 0; }
.form-msg { margin-top: 14px; font-size: .92rem; min-height: 1.2em; color: var(--orange-2); }
.form-msg.err { color: #c0392b; }

.key-result { display: none; margin-top: 20px; background: var(--orange-tint); color: var(--ink); border-radius: var(--r); padding: 24px; font-family: var(--mono); text-align: center; border: 1px solid var(--orange-tint-2); }
.key-result.show { display: block; animation: pop .35s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.key-result .k-label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.key-result .k-code { font-size: clamp(1.05rem, 3vw, 1.5rem); font-weight: 700; letter-spacing: .05em; margin: 8px 0; color: var(--orange-ink); user-select: all; word-break: break-all; }
.key-result .k-copy { margin-top: 6px; }
.key-result .k-mail { font-family: var(--sans); font-size: .84rem; color: var(--muted); margin: 12px 0 0; }
.key-result .k-steps { font-family: var(--sans); color: var(--text); font-size: .89rem; margin: 16px 0 0; text-align: left; padding-left: 4px; list-style: none; counter-reset: step; }
.key-result .k-steps li { margin: 6px 0; padding-left: 22px; position: relative; }
.key-result .k-steps li b { color: var(--ink); }
.key-result .k-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 1px; font-family: var(--mono); font-size: .72rem; font-weight: 700; color: var(--orange-2); }
.key-result .k-exp { font-size: .78rem; color: var(--muted); margin-top: 14px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 62px 0 34px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 34px; }
.footer .brand { margin-bottom: 14px; }
.footer p { color: var(--muted); font-size: .91rem; max-width: 40ch; }
.footer-col h4 { font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); font-family: var(--mono); margin: 0 0 14px; font-weight: 600; }
.footer-col a { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); text-decoration: none; font-size: .93rem; margin-bottom: 9px; transition: color .15s ease; }
.footer-col > a { display: flex; }
.footer-col a:hover { color: var(--orange-2); }
.footer-col a svg { width: 15px; height: 15px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--faint); font-size: .85rem; }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--orange-2); }
.footer-legal a { color: var(--muted); text-decoration: none; }
.footer-legal a:hover { color: var(--orange-2); }

/* ==========================================================================
   Página simple (privacidad / términos / descargas / 404)
   ========================================================================== */
.page { padding: 64px 0 92px; }
.page h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 8px; color: var(--orange-2); }
.page .lead { color: var(--muted); font-size: 1.1rem; }
.prose { max-width: 820px; }
.prose h2 { font-size: 1.28rem; margin: 36px 0 10px; color: var(--ink); font-family: var(--display); }
.prose h3 { font-size: 1.04rem; margin: 24px 0 8px; color: var(--ink); }
.prose p, .prose li { color: var(--text); }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--orange-2); }
.prose strong { color: var(--ink); }
.prose .updated { margin-top: 46px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.prose .callout { background: var(--orange-tint); border: 1px solid var(--orange-tint-2); border-left: 3px solid var(--orange); border-radius: var(--r-sm); padding: 16px 18px; margin: 20px 0; }
.prose .callout p { margin: 0; color: var(--ink); }
.prose .table-scroll { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: var(--r-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 460px; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { background: var(--band); color: var(--ink); font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.prose tbody tr:last-child td { border-bottom: none; }
.prose td { color: var(--text); }
.footer-legal { margin-top: 10px; }

/* Descargas: metadatos */
.dl-meta { margin: 20px 0 4px; display: grid; gap: 10px; }
.dl-meta > div { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.dl-meta > div:last-child { border-bottom: 0; }
.dl-meta dt { color: var(--muted); font-size: 13px; margin: 0; }
.dl-meta dd { margin: 0; font-weight: 600; text-align: right; color: var(--ink); }
.dl-meta dd.hashval { font-family: var(--mono); font-weight: 500; font-size: 11px; word-break: break-all; text-align: right; color: var(--muted); }
details.note { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; background: var(--band); }
details.note summary { cursor: pointer; font-weight: 600; font-size: 14px; list-style: none; color: var(--ink); }
details.note summary::-webkit-details-marker { display: none; }
details.note summary::before { content: "› "; color: var(--orange-2); font-weight: 700; }
details.note[open] summary::before { content: "⌄ "; }
details.note[open] summary { margin-bottom: 8px; }
details.note p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }

/* ==========================================================================
   Reveal on scroll (discreto, con stagger, respeta reduced-motion)
   ========================================================================== */
.reveal-ready .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal-ready .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal-ready .reveal { opacity: 1; transform: none; } .chip-float { animation: none !important; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .caps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .hero { padding: 52px 0 46px; }
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .modes, .features, .prices, .downloads { grid-template-columns: 1fr; }
  .trust-grid, .extras { grid-template-columns: 1fr; }
  .demo, .trial { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .shot-a { grid-row: auto; }
  .band { padding: 66px 0; }
  .custom { padding: 34px 26px; }
  .chip-float.c2 { left: 4px; }
  .chip-float.c3 { right: 4px; }
}
@media (max-width: 620px) {
  .caps { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .hero-cta .btn { width: 100%; }
  .nav-cta .btn { padding: 10px 16px; font-size: .92rem; }
  .chip-float { display: none; }
}

/* ===========================================================================
   Cuentas: registro / entrar / panel
   ========================================================================= */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-wrap.wide { max-width: 560px; }
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-head h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--orange-2); margin: 0 0 8px; }
.auth-head p { color: var(--muted); margin: 0; }

.field select {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font-family: var(--sans); font-size: 1rem; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23787d88' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249,115,22,.14); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 460px) { .field-row { grid-template-columns: 1fr; } }

.color-field { display: flex; align-items: center; gap: 12px; }
.color-field input[type=color] {
  width: 52px; height: 46px; padding: 3px; border: 1px solid var(--line-2);
  border-radius: var(--r-sm); background: var(--surface); cursor: pointer; flex: 0 0 auto;
}
.color-field .color-hex { font-family: var(--mono); font-size: .9rem; color: var(--muted); }

.auth-alt { text-align: center; margin-top: 18px; color: var(--muted); font-size: .92rem; }
.auth-alt a { color: var(--orange-2); font-weight: 600; }

/* Panel de cuenta */
.acct-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.acct-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.acct-card h2 { font-size: 1.1rem; color: var(--ink); margin: 0 0 4px; }
.acct-card .card-sub { color: var(--muted); font-size: .9rem; margin: 0 0 18px; }
.acct-topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.acct-topbar h1 { font-size: clamp(1.5rem, 4vw, 2rem); color: var(--orange-2); margin: 0; }

.tenant-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tenant-url { font-family: var(--mono); font-size: .92rem; color: var(--ink); word-break: break-all; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: var(--r-pill); }
.status-pill.ok { background: #e7f6ee; color: #1f7a45; }
.status-pill.wait { background: var(--orange-tint); color: var(--orange-ink); }

.lic-list { display: grid; gap: 14px; }
.lic-row { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 6px; }
.lic-row .lic-key { font-family: var(--mono); font-weight: 700; color: var(--orange-ink); letter-spacing: .04em; }
.lic-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.lic-meta b { color: var(--ink); font-weight: 600; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: var(--r-pill); background: var(--band-2); color: var(--text); }
.badge.trial { background: var(--orange-tint); color: var(--orange-ink); }
.badge.local { background: #eef2ff; color: #3b4a9e; }
.badge.nube { background: #e7f6ee; color: #1f7a45; }

.buy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.buy-item { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.buy-item .buy-name { font-weight: 700; color: var(--ink); }
.buy-item .buy-price { color: var(--orange-2); font-weight: 700; font-size: 1.2rem; }
.buy-item .buy-desc { font-size: .82rem; color: var(--muted); flex: 1; margin: 2px 0 10px; }

.dl-row { display: flex; gap: 12px; flex-wrap: wrap; }

.price-wa-alt { display: block; text-align: center; margin-top: 10px; font-size: .85rem; color: var(--muted); text-decoration: underline; }
.price-wa-alt:hover { color: var(--orange-2); }
