/* =====================================================================
   InnNou — marketing site
   Design concept: "operations manifest" — the visual language of a
   receiving dock ledger / stock manifest, not a generic SaaS gradient
   page. Hairline rules instead of drop shadows, tabular/mono numerals
   for anything that's actually data, numbered stage markers only where
   the content is a real sequence (the product's own Pedido -> Recepción
   -> Inventario -> Venta -> Reporte pipeline).

   Brand seed: reuses InnNou-Web's own teal-on-ink palette (see that
   repo's CLAUDE.md "Color Palette Convention") so the marketing site
   and the product never feel like two different companies.
   ===================================================================== */

/* ---------- Tokens: light (default) ---------- */
:root {
  --paper: #F6F8F8;
  --surface: #FFFFFF;
  --surface-2: #FBFCFC;
  --ink: #141A1B;
  --ink-soft: #353D3E;
  --muted: #6A7475;
  --muted-2: #98A2A3;
  --border: #E4E9E9;
  --border-soft: #EDF1F1;

  --teal: #0C8470;
  --teal-deep: #0A6A5B;
  --teal-bright: #2FC7AA;
  --teal-tint: #E7F4F1;

  --brand-ink: #0B0F10;
  --brand-ink-soft: #171F20;
  --on-ink: #E7ECEB;
  --on-ink-muted: #93A0A0;
  --on-ink-border: rgba(231, 236, 235, 0.14);

  --danger: #B91C1C;

  --shadow-card: 0 1px 0 rgba(11, 15, 16, 0.04);
  --focus-ring: 0 0 0 3px rgba(47, 199, 170, 0.35);

  --radius: 3px;
  --radius-lg: 6px;

  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", "Consolas", "Liberation Mono", monospace;

  --content-w: 1160px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0B0F10;
    --surface: #12181A;
    --surface-2: #0E1415;
    --ink: #F3F6F5;
    --ink-soft: #C7D0CE;
    --muted: #8FA0A0;
    --muted-2: #5E6969;
    --border: #223030;
    --border-soft: #1A2424;

    --teal: #2FC7AA;
    --teal-deep: #57E0C4;
    --teal-bright: #6FEBD2;
    --teal-tint: #10201D;

    --brand-ink: #060809;
    --brand-ink-soft: #0E1415;
    --on-ink: #E7ECEB;
    --on-ink-muted: #7C8A89;
    --on-ink-border: rgba(231, 236, 235, 0.1);

    --shadow-card: 0 1px 0 rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #0B0F10;
  --surface: #12181A;
  --surface-2: #0E1415;
  --ink: #F3F6F5;
  --ink-soft: #C7D0CE;
  --muted: #8FA0A0;
  --muted-2: #5E6969;
  --border: #223030;
  --border-soft: #1A2424;

  --teal: #2FC7AA;
  --teal-deep: #57E0C4;
  --teal-bright: #6FEBD2;
  --teal-tint: #10201D;

  --brand-ink: #060809;
  --brand-ink-soft: #0E1415;
  --on-ink: #E7ECEB;
  --on-ink-muted: #7C8A89;
  --on-ink-border: rgba(231, 236, 235, 0.1);

  --shadow-card: 0 1px 0 rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius); }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.eyebrow::before { content: ""; width: 0.85em; height: 1px; background: currentColor; }

.wrap { max-width: var(--content-w); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--teal); color: #fff; padding: 0.6rem 1rem;
  border-radius: var(--radius); z-index: 200; transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 0.85rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--brand-ink);
  display: grid; place-items: center; flex: none;
}
.brand-mark svg { width: 14px; height: 14px; }
.brand small { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 0.6rem; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  text-decoration: none; font-size: 0.9375rem; color: var(--ink-soft);
  position: relative; padding-block: 0.25rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--teal); transition: right 0.2s ease;
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { right: 0; }

.nav-tools { display: flex; align-items: center; gap: 0.6rem; }

.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 2px; gap: 2px; }
.lang-switch button {
  border: 0; background: transparent; padding: 0.3rem 0.6rem; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--muted); cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--brand-ink); color: var(--on-ink); }

.theme-toggle {
  border: 1px solid var(--border); background: var(--surface); width: 34px; height: 34px;
  border-radius: 999px; display: grid; place-items: center; cursor: pointer; flex: none;
}
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: var(--radius); padding: 0.7rem 1.15rem; font-size: 0.9375rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--ink); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-deep); }
.btn-on-ink { background: var(--teal-bright); color: var(--brand-ink); }
.btn-on-ink:hover { filter: brightness(1.08); }
.btn-block { width: 100%; }

.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem);
  position: relative;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-copy h1 { font-size: clamp(2.6rem, 1.9rem + 3vw, 4.4rem); }
.hero-copy .eyebrow { margin-bottom: 1rem; }
.hero-copy p.lede {
  margin-top: 1.25rem; font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-note { margin-top: 1rem; font-size: 0.85rem; color: var(--muted); font-family: var(--font-mono); }

/* Manifest visual: animated pipeline strip */
.manifest {
  background: var(--brand-ink);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  color: var(--on-ink);
  position: relative;
  overflow: hidden;
}
.manifest-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--on-ink-muted); text-transform: uppercase; margin-bottom: 1rem; }
.manifest-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-bright); display: inline-block; margin-right: 0.4em; box-shadow: 0 0 0 3px rgba(47,199,170,0.18); }
.manifest-stages { display: flex; flex-direction: column; }
.stage {
  display: grid; grid-template-columns: 1.6rem 1fr auto; align-items: center; gap: 0.85rem;
  padding-block: 0.85rem; border-top: 1px solid var(--on-ink-border);
  opacity: 0; transform: translateX(-8px);
  animation: stage-in 0.5s ease forwards;
}
.stage:first-child { border-top: none; }
.stage:nth-child(1) { animation-delay: 0.15s; }
.stage:nth-child(2) { animation-delay: 0.3s; }
.stage:nth-child(3) { animation-delay: 0.45s; }
.stage:nth-child(4) { animation-delay: 0.6s; }
.stage-num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--on-ink-muted); }
.stage-label { font-size: 0.94rem; color: var(--on-ink); }
.stage-label small { display: block; color: var(--on-ink-muted); font-size: 0.76rem; margin-top: 0.15rem; }
.stage-metric { font-family: var(--font-mono); font-size: 0.82rem; color: var(--teal-bright); text-align: right; }
@keyframes stage-in { to { opacity: 1; transform: translateX(0); } }
.manifest-foot {
  margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed var(--on-ink-border);
  display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.72rem; color: var(--on-ink-muted);
}
.manifest-foot strong { color: var(--teal-bright); font-weight: 600; }

/* ---------- Stat strip ---------- */
.stat-strip { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: var(--surface-2); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: 1.6rem var(--gutter); border-left: 1px solid var(--border-soft);
}
.stat:first-child { border-left: none; }
.stat-value { font-family: var(--font-mono); font-size: 1.7rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-label { margin-top: 0.3rem; font-size: 0.82rem; color: var(--muted); }

/* ---------- Section scaffolding ---------- */
section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head h2 { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.4rem); margin-top: 0.75rem; }
.section-head p { margin-top: 0.9rem; font-size: 1.05rem; color: var(--muted); }
.section-alt { background: var(--surface-2); border-block: 1px solid var(--border-soft); }

.ledger-rule { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ---------- Module cards ---------- */
.modules-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.module-card {
  background: var(--surface); padding: 1.6rem; display: flex; flex-direction: column; gap: 0.9rem;
  position: relative;
}
.module-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; transition: background 0.15s ease;
}
.module-card:hover::before { background: var(--teal); }
.module-tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--muted-2); text-transform: uppercase; }
.module-icon { width: 34px; height: 34px; border-radius: var(--radius); background: var(--teal-tint); color: var(--teal-deep); display: grid; place-items: center; }
.module-icon svg { width: 18px; height: 18px; }
.module-card h3 { font-size: 1.05rem; font-weight: 700; }
.module-card p { font-size: 0.92rem; color: var(--muted); }

/* ---------- Process ---------- */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--border); }
.process-item { padding: 1.6rem 1.4rem 1.6rem 0; border-right: 1px solid var(--border); position: relative; }
.process-item:last-child { border-right: none; }
.process-num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--teal-deep); }
.process-item h3 { margin-top: 0.6rem; font-size: 1.02rem; font-weight: 700; }
.process-item p { margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted); }

/* ---------- Why grid ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.why-item { display: flex; gap: 1rem; }
.why-num { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted-2); flex: none; padding-top: 0.15rem; }
.why-item h3 { font-size: 1.02rem; font-weight: 700; }
.why-item p { margin-top: 0.45rem; font-size: 0.92rem; color: var(--muted); }

/* ---------- Sectors ---------- */
.sectors { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.sector-card { background: var(--surface); padding: clamp(1.75rem, 3vw, 2.5rem); }
.sector-card .eyebrow { margin-bottom: 0.9rem; }
.sector-card h3 { font-size: 1.35rem; }
.sector-card p { margin-top: 0.8rem; color: var(--muted); font-size: 0.96rem; }
.sector-list { margin-top: 1.2rem; display: grid; gap: 0.55rem; }
.sector-list li { display: flex; gap: 0.6rem; font-size: 0.9rem; color: var(--ink-soft); }
.sector-list li::before { content: "—"; color: var(--teal); flex: none; }

/* ---------- Case study ---------- */
.case-study {
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
  display: grid; grid-template-columns: 1fr 1fr;
}
.case-copy { padding: clamp(2rem, 4vw, 2.75rem); }
.case-copy h2 { margin-top: 0.75rem; font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); }
.case-copy p.lede { margin-top: 0.9rem; font-size: 1.05rem; color: var(--ink-soft); }
.case-copy p.note { margin-top: 1.25rem; font-size: 0.82rem; color: var(--muted-2); }
.case-metrics { background: var(--brand-ink); color: var(--on-ink); padding: clamp(2rem, 4vw, 2.75rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-content: center; }
.case-metric-value { font-family: var(--font-mono); font-size: 1.9rem; font-weight: 600; color: var(--teal-bright); }
.case-metric-label { margin-top: 0.35rem; font-size: 0.8rem; color: var(--on-ink-muted); }

/* ---------- CTA / contact ---------- */
.cta-section { background: var(--brand-ink); color: var(--on-ink); border-radius: var(--radius-lg); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); padding: clamp(2.25rem, 5vw, 3.5rem); align-items: start; }
.cta-copy .eyebrow { color: var(--teal-bright); }
.cta-copy h2 { color: var(--on-ink); margin-top: 0.75rem; font-size: clamp(1.7rem, 1.4rem + 1vw, 2.3rem); }
.cta-copy p { margin-top: 1rem; color: var(--on-ink-muted); max-width: 42ch; }
.cta-list { margin-top: 1.5rem; display: grid; gap: 0.6rem; }
.cta-list li { display: flex; gap: 0.6rem; font-size: 0.9rem; color: var(--on-ink); }
.cta-list li::before { content: "✓"; color: var(--teal-bright); flex: none; }

.form-field { display: grid; gap: 0.4rem; margin-bottom: 1rem; }
.form-field label { font-size: 0.8rem; color: var(--on-ink-muted); font-family: var(--font-mono); letter-spacing: 0.03em; text-transform: uppercase; }
.form-field input, .form-field textarea, .form-field select {
  background: var(--brand-ink-soft); border: 1px solid var(--on-ink-border); color: var(--on-ink);
  border-radius: var(--radius); padding: 0.75rem 0.85rem; font: inherit; font-size: 0.95rem;
}
.form-field input:focus-visible, .form-field textarea:focus-visible { box-shadow: var(--focus-ring); }
.form-field textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-status { margin-top: 0.85rem; font-size: 0.85rem; font-family: var(--font-mono); min-height: 1.2em; }
.form-status[data-state="ok"] { color: var(--teal-bright); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-ink); color: var(--on-ink-muted); }
.footer-top { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 2.5rem; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.footer-brand .brand { color: var(--on-ink); }
.footer-brand p { margin-top: 0.9rem; font-size: 0.88rem; max-width: 32ch; color: var(--on-ink-muted); }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ink); font-weight: 600; }
.footer-col ul { margin-top: 0.9rem; display: grid; gap: 0.6rem; }
.footer-col a { text-decoration: none; font-size: 0.9rem; color: var(--on-ink-muted); }
.footer-col a:hover { color: var(--teal-bright); }
.footer-bottom {
  border-top: 1px solid var(--on-ink-border); padding-block: 1.25rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem;
  font-family: var(--font-mono); font-size: 0.78rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .process-item:nth-child(2) { border-right: none; }
  .process-item { border-top: 1px solid var(--border); padding-top: 1.4rem; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .sectors { grid-template-columns: 1fr; }
  .case-study { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
/* ---------- Mobile nav panel ---------- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 150; background: var(--paper);
  display: none; flex-direction: column; padding: 1.1rem var(--gutter) 2rem;
}
.mobile-nav[data-open="true"] { display: flex; }
.mobile-nav-head { display: flex; justify-content: space-between; align-items: center; }
.mobile-nav-close { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.mobile-nav-close svg { width: 16px; height: 16px; }
.mobile-nav-links { margin-top: 2.5rem; display: grid; gap: 0.25rem; }
.mobile-nav-links a {
  text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--ink);
  padding-block: 0.65rem; border-bottom: 1px solid var(--border-soft);
}
.mobile-nav-foot { margin-top: auto; display: flex; flex-direction: column; gap: 1rem; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .menu-toggle {
    display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--border);
    border-radius: var(--radius); background: var(--surface); cursor: pointer;
  }
  .module-card { padding: 1.15rem; gap: 0.65rem; }
  .module-card h3 { font-size: 0.98rem; }
  .module-card p { font-size: 0.86rem; }
  .process-list { grid-template-columns: 1fr; }
  .process-item { border-right: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1.5rem; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .case-metrics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .modules-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .nav-tools .btn-primary { display: none; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}
