/* Landing de InERP. Solo variables de brand/inerp/tokens.css (BRAND.md): sin colores sueltos,
   sin degradés ni sombras, títulos Archivo 300, etiquetas Space Mono. */

.lp {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-paper);
}
.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
/* Reseteos sin especificidad (:where) para que las clases de cada bloque manden */
:where(.lp) a { color: inherit; text-decoration: none; }
:where(.lp) :where(h1, h2, h3) { margin: 0; font-family: var(--font-display); font-weight: 300; letter-spacing: -0.01em; }
:where(.lp) :where(p, ul, ol, dl, dd) { margin: 0; }
:where(.lp) ul { padding: 0; list-style: none; }

.lp-wrap { max-width: 72rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .lp-wrap { padding: 0 24px; } }

/* Fondos */
.lp-night { background: var(--bg-night); color: var(--white); }
.lp-paper { background: var(--bg-paper); }
.lp-color { background: var(--bg-brand); color: var(--white); }
.lp-section { padding: 88px 0; }
@media (max-width: 639px) { .lp-section { padding: 64px 0; } }

/* Etiqueta de sección: Space Mono mayúsculas con una línea de 28 px */
.lp-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-label); font-size: var(--fs-label);
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--brand-deep);
}
.lp-label::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lp-night .lp-label { color: var(--brand-tint); }

.lp-h1 { font-size: var(--fs-h1); line-height: 1.08; margin-top: 20px; }
.lp-h2 { font-size: var(--fs-h2); line-height: 1.15; margin-top: 16px; }
.lp-tint { color: var(--brand-tint); }
.lp-lead { margin-top: 20px; max-width: 36rem; color: var(--slate); }
.lp-night .lp-lead { color: var(--mist); }
.lp-strong { font-weight: 600; }

/* Botones */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--control-h); padding: 0 24px; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: 1rem; font-weight: 400; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s;
}
.lp-btn:focus-visible { outline: 2px solid var(--brand-tint); outline-offset: 3px; }
.lp-btn-primary { background: var(--brand-deep); color: var(--white); }
.lp-btn-primary:hover { background: var(--brand); }
.lp-btn-secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.lp-btn-secondary:hover { border-color: var(--brand-deep); }
.lp-night .lp-btn-secondary, .lp-color .lp-btn-secondary { border-color: var(--line-dark); color: var(--white); }
.lp-color .lp-btn-secondary { border-color: var(--white); }
.lp-night .lp-btn-secondary:hover { border-color: var(--brand-tint); }
.lp-color .lp-btn-secondary:hover { background: var(--white); color: var(--brand-deep); }
.lp-btn-block { width: 100%; }

/* Encabezado */
.lp-header { border-bottom: 1px solid var(--line-dark); }
.lp-header .lp-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 88px; }
/* Versión de pantalla del logo (contorno más grueso): se lee desde 56 px */
.lp-logo { display: block; height: 56px; width: auto; }
.lp-nav { display: flex; align-items: center; gap: 24px; font-size: 1rem; }
.lp-nav a.lp-link { color: var(--mist); }
.lp-nav a.lp-link:hover { color: var(--white); }
.lp-nav .lp-btn { height: 40px; padding: 0 18px; }
@media (max-width: 639px) { .lp-nav .lp-link-opt { display: none; } .lp-nav { gap: 16px; } }

/* Hero */
.lp-hero { display: grid; gap: 56px; align-items: center; padding-top: 80px; padding-bottom: 96px; }
@media (max-width: 639px) { .lp-hero { padding-top: 48px; padding-bottom: 64px; gap: 40px; } }
@media (min-width: 1024px) { .lp-hero { grid-template-columns: 1.1fr 1fr; } }
.lp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.lp-checks { margin-top: 32px; display: grid; gap: 10px; font-size: 1rem; color: var(--mist); }
.lp-checks li { display: flex; align-items: center; gap: 10px; }
.lp-checks svg { color: var(--brand-tint); }

/* Tarjetas */
.lp-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; }
.lp-night .lp-card { background: var(--graphite); border-color: var(--line-dark); }

/* Maqueta de venta (hero) */
.lp-demo { font-size: 1rem; }
.lp-demo-top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-label); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--mist); }
.lp-demo-items { margin-top: 16px; }
.lp-demo-items li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-dark); }
.lp-mono { font-family: var(--font-label); }
.lp-demo-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; }
.lp-demo-total strong { font-family: var(--font-display); font-weight: 300; font-size: 2.25rem; }
.lp-demo-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line-dark); border-radius: 14px; font-size: 0.9375rem; }
.lp-demo-row svg { color: var(--brand-tint); }
.lp-demo-row small { display: block; color: var(--mist); font-size: 0.8125rem; }

/* Grillas */
.lp-grid { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 640px) { .lp-grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .lp-grid-mod { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lp-grid-mod { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1024px) { .lp-grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .lp-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lp-grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Módulos */
.lp-mod svg { color: var(--brand-deep); }
.lp-mod h3 { margin-top: 16px; font-size: 1.125rem; line-height: 1.3; font-weight: 400; }
.lp-mod p { margin-top: 6px; font-size: 0.9375rem; line-height: 1.5; color: var(--slate); }

/* Flujo conectado */
.lp-step { border-top: 1px solid var(--line-dark); padding-top: 20px; }
.lp-step-num { font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: var(--tracking-label); color: var(--brand-tint); }
.lp-step h3 { margin-top: 12px; font-size: 1.375rem; line-height: 1.25; }
.lp-step p { margin-top: 8px; font-size: 1rem; color: var(--mist); }

/* Planes */
.lp-center { text-align: center; }
.lp-center .lp-lead { margin-left: auto; margin-right: auto; }
.lp-toggle { display: inline-flex; margin-top: 28px; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--white); }
.lp-toggle button {
  height: 40px; padding: 0 20px; border: 0; border-radius: var(--radius-pill); cursor: pointer;
  background: transparent; color: var(--slate);
  font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase;
}
.lp-toggle button.activo { background: var(--brand-deep); color: var(--white); }
.lp-toggle button:focus-visible { outline: 2px solid var(--brand-deep); outline-offset: 2px; }

.lp-plan { display: flex; flex-direction: column; padding: 32px 28px; }
.lp-plan.recomendado { border: 2px solid var(--brand-deep); }
.lp-plan-tag { min-height: 20px; font-family: var(--font-label); font-size: 0.75rem; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--brand-deep); }
.lp-plan h3 { margin-top: 8px; font-size: 1.75rem; line-height: 1.2; }
.lp-plan-para { margin-top: 4px; font-size: 0.9375rem; color: var(--slate); }
.lp-price { margin-top: 24px; }
.lp-price strong { font-family: var(--font-display); font-weight: 300; font-size: 3rem; line-height: 1; letter-spacing: -0.01em; }
.lp-price span { color: var(--slate); font-size: 1rem; }
.lp-price small { display: block; margin-top: 8px; font-size: 0.875rem; color: var(--slate); }
.lp-limits { flex: 1; margin-top: 24px; font-size: 0.9375rem; }
.lp-limits div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.lp-limits dt { color: var(--slate); }
.lp-limits dd { text-align: right; }
.lp-plan .lp-btn { margin-top: 28px; }

.lp-extra h3 { font-size: 1.375rem; }
.lp-extra .lp-limits { margin-top: 16px; }
.lp-impl-price { margin-top: 16px; }
.lp-impl-price strong { font-family: var(--font-display); font-weight: 300; font-size: 2.25rem; }
.lp-note { margin-top: 12px; font-size: 0.9375rem; color: var(--slate); }
.lp-note-brand { color: var(--brand-deep); }
.lp-fine { margin-top: 28px; font-size: 0.875rem; color: var(--slate); }

/* Banda de llamada */
.lp-cta .lp-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 64px; padding-bottom: 64px; }
.lp-cta h2 { font-size: var(--fs-h2); line-height: 1.15; }
.lp-cta p { margin-top: 8px; opacity: .9; }

/* Pie */
.lp-footer .lp-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; font-size: 0.875rem; color: var(--mist); }
.lp-footer a:hover { color: var(--white); }
.lp-footer .lp-iso { height: 40px; width: 40px; }
.lp-footer-firma { display: flex; align-items: center; gap: 12px; }

/* Descuento anual: siempre a la vista */
.lp-ahorro-tag { margin-left: 6px; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--bg-paper); color: var(--brand-deep); }
.lp-toggle button.activo .lp-ahorro-tag { background: var(--white); }
.lp-ahorro {
  display: block; width: 100%; margin-top: 12px; padding: 8px 12px; text-align: left;
  border: 1px solid var(--brand-deep); border-radius: 12px; background: var(--bg-paper);
  font-family: var(--font-body); font-size: 0.875rem; line-height: 1.4; color: var(--brand-deep);
}
button.lp-ahorro { cursor: pointer; }
button.lp-ahorro:hover { background: var(--white); }
.lp-price .lp-ahorro strong { font-family: var(--font-body); font-size: inherit; font-weight: 600; line-height: inherit; letter-spacing: 0; }

/* Capturas de la app */
.lp-capturas { margin-top: 72px; }
.lp-toggle-night { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; margin-top: 20px; background: var(--graphite); border-color: var(--line-dark); }
.lp-toggle-night button { color: var(--mist); }
@media (max-width: 639px) { .lp-toggle-night { border-radius: 24px; } }
.lp-captura { margin: 24px 0 0; border: 1px solid var(--line-dark); border-radius: var(--radius-card); overflow: hidden; background: var(--white); }
.lp-captura img { display: block; width: 100%; height: auto; }

/* Botón flotante de WhatsApp: sin sombra (BRAND.md); el borde blanco lo separa de la banda color */
.lp-wa {
  position: fixed; z-index: 50;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 22px 0 18px; border-radius: var(--radius-pill);
  background: var(--brand-deep); color: var(--white); border: 2px solid var(--white);
  font-family: var(--font-body); font-size: 1rem;
  transition: background-color .15s;
}
.lp-wa:hover { background: var(--brand); }
.lp-wa:focus-visible { outline: 2px solid var(--brand-deep); outline-offset: 3px; }
@media (max-width: 639px) { .lp-wa { width: 56px; padding: 0; justify-content: center; } .lp-wa span { display: none; } }
.lp-footer .lp-wrap { padding-bottom: 96px; }

[x-cloak] { display: none !important; }
.lp-steps { padding: 0; list-style: none; margin-bottom: 0; }
.lp-actions-cta { margin-top: 0; }

/* Portada: foto del comercio con la venta encima */
.lp-hero-media { position: relative; }
.lp-foto { position: relative; margin: 0; }
.lp-foto img { display: block; width: 100%; height: auto; border-radius: var(--radius-card); border: 1px solid var(--line-dark); }
.lp-demo-flota { position: relative; margin: -56px 16px 0; padding: 20px; }
.lp-demo-flota .lp-demo-total { margin-top: 0; }
.lp-demo-flota .lp-demo-total strong { font-size: 1.75rem; }
@media (min-width: 1024px) {
  /* Solo pisa el borde inferior de la foto: no tapa la pantalla ni a la cajera */
  .lp-demo-flota { width: 340px; margin: -72px 0 0 -48px; }
}

/* Banda con la foto del POS táctil */
.lp-banda { margin: 40px 0 0; }
.lp-banda img { display: block; width: 100%; height: auto; border-radius: var(--radius-card); border: 1px solid var(--line-dark); }
