/* Mostrador — marketing landing page.
   Mobile-first. Consumes the --mostrador-* tokens appended to style.css.
   Standalone page: does not rely on base.html rules beyond shared resets. */

body.landing {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--mostrador-bg);
  color: var(--mostrador-ink);
  line-height: 1.6;
  /* Mobile-first guard: nothing on this page may push the viewport sideways
     (the 390px audit found the H1 clipped instead of wrapping). */
  overflow-x: hidden;
}

.landing *,
.landing *::before,
.landing *::after { box-sizing: border-box; }

.landing img,
.landing svg { max-width: 100%; height: auto; }

.landing .l-container {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.landing h1,
.landing h2,
.landing h3 {
  color: var(--mostrador-primary);
  line-height: 1.25;
  margin: 0 0 0.75rem;
  /* Long product words ("WhatsApp", codes) wrap instead of overflowing. */
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}

.landing h1 { font-size: 2rem; }
.landing h2 { font-size: 1.5rem; }
.landing h3 { font-size: 1.1rem; }

.landing p { margin: 0 0 1rem; }

.landing a { color: var(--mostrador-action); }

/* Header */
.l-header {
  background: var(--mostrador-bg);
  border-bottom: 1px solid rgba(11, 61, 46, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}
.l-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.l-brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--mostrador-primary);
  text-decoration: none;
}
.l-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.l-nav a {
  color: var(--mostrador-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}
.l-nav-cta {
  background: #fff;
  color: var(--mostrador-primary) !important;
  border: 2px solid var(--mostrador-action);
  padding: 0.4rem 0.9rem;
  border-radius: var(--mostrador-radius);
}

/* Hero */
.l-hero {
  padding: 3rem 0 2.5rem;
}
.l-hero-inner { text-align: left; }
.l-hero-sub {
  font-size: 1.05rem;
  max-width: 640px;
  width: 100%;
  color: var(--mostrador-ink);
}
.l-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.l-btn {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  /* Kept >= 18.66px/bold on purpose: the AA "large text" threshold, since
     var(--mostrador-action) on white only reaches ~3:1 (not 4.5:1). */
  font-size: 1.2rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--mostrador-radius);
  box-shadow: var(--mostrador-shadow);
}
.l-btn-primary {
  background: var(--mostrador-action);
  color: #fff !important;
}
.l-btn-secondary {
  background: #fff;
  color: var(--mostrador-primary) !important;
  border: 1px solid var(--mostrador-primary);
  box-shadow: none;
}

/* Generic sections */
.l-section { padding: 2.75rem 0; }
.l-section-alt { background: #F1EBDF; }
.l-section-lead {
  font-size: 1.05rem;
  max-width: 640px;
  width: 100%;
}
.l-section-note {
  color: var(--mostrador-primary);
  font-weight: 600;
}

.l-bullets {
  margin: 1.25rem 0 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.75rem;
}
.l-bullets li { font-size: 1rem; }

/* Steps */
.l-steps {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.l-step {
  background: #fff;
  border-radius: var(--mostrador-radius);
  box-shadow: var(--mostrador-shadow);
  padding: 1.5rem;
}
.l-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--mostrador-primary);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* Metrics (el ancla de costo: lo que ya le sale contestar el WhatsApp) */
.l-metrics {
  margin-top: 1.75rem;
  display: grid;
  gap: 1.25rem;
}
.l-metric {
  /* Dark card, not a white one: the warm accent only clears AA (4.5:1) for
     the metric numbers against the dark primary, not against white. */
  background: var(--mostrador-primary);
  border-radius: var(--mostrador-radius);
  box-shadow: var(--mostrador-shadow);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.l-metric-value {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--mostrador-warm);
}
.l-metric-unit {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}
.l-metric-label {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.92);
}

/* Assistant chat mockup (static demo, not a real widget) */
.l-chat {
  margin: 1.75rem 0;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--mostrador-radius);
  box-shadow: var(--mostrador-shadow);
  overflow: hidden;
}
.l-chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  background: var(--mostrador-primary);
  color: #fff;
}
.l-chat-avatar {
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}
.l-chat-header strong { display: block; font-size: 0.95rem; }
.l-chat-status { font-size: 0.8rem; color: rgba(255, 255, 255, 0.85); }
.l-chat-body {
  padding: 1rem;
  display: grid;
  gap: 0.6rem;
  background: #EFEAE0;
}
.l-chat-msg {
  max-width: 85%;
  border-radius: var(--mostrador-radius);
  padding: 0.55rem 0.85rem;
}
.l-chat-msg p { margin: 0; font-size: 0.92rem; line-height: 1.45; }
.l-chat-in {
  justify-self: start;
  background: #fff;
  color: var(--mostrador-ink);
}
.l-chat-out {
  justify-self: end;
  background: var(--mostrador-primary);
  color: #fff;
}
.l-chat-attach {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(11, 61, 46, 0.08);
  color: var(--mostrador-primary);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  margin-bottom: 0.35rem;
}
.l-assistant-note { margin-top: 1.25rem; }

/* Trust cards */
.l-cards {
  margin-top: 1.75rem;
  display: grid;
  gap: 1.25rem;
}
.l-card {
  background: #fff;
  border-radius: var(--mostrador-radius);
  box-shadow: var(--mostrador-shadow);
  padding: 1.5rem;
}

/* Partner section */
.l-partner {
  background: var(--mostrador-primary);
}
.l-partner h2,
.l-partner .l-section-lead,
.l-partner .l-bullets li {
  color: #fff;
}
.l-partner .l-btn-primary {
  background: var(--mostrador-action);
}

/* Footer */
.l-footer {
  border-top: 1px solid rgba(11, 61, 46, 0.15);
  padding: 1.5rem 0 2.5rem;
}
.l-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--mostrador-primary);
}
.l-footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
}
.l-footer-inner a {
  color: var(--mostrador-primary);
}

/* Tablet / desktop */
@media (min-width: 640px) {
  .landing h1 { font-size: 2.6rem; }
  .landing h2 { font-size: 1.85rem; }
  .l-hero { padding: 4.5rem 0 3.5rem; }
  .l-hero-actions { flex-direction: row; }
  .l-steps { grid-template-columns: repeat(3, 1fr); }
  .l-metrics { grid-template-columns: repeat(3, 1fr); }
  .l-cards { grid-template-columns: repeat(3, 1fr); }
  .l-footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* Dark mode: keep the warm marketing palette (deliberate brand choice) but
   soften pure-white surfaces so cards don't glare against a dark OS theme. */
@media (prefers-color-scheme: dark) {
  .l-section-alt { background: #EFE8D8; }
  .l-chat-body { background: #E7E1D3; }
}
