/* ============================================================
   ZAVAL — sistema de diseño compartido (LOCKED)
   navy dominante · terracota acento · verde · crema
   Schibsted Grotesk / Instrument Serif / IBM Plex Sans+Mono
   Marca: el Compás (trazo Z + latido terracota)
   ============================================================ */

:root {
  --navy:  #1A2138;
  --navy-2: #212a45;
  --terra: #E07B52;
  --terra-hover: #CF6E45;
  --verde: #006B3C;
  --verde-soft: #9FD8BC;
  --crema: #F5F0E8;
  --ink:   #0D1117;
  --line: rgba(245,240,232,0.12);
  --line-2: rgba(245,240,232,0.22);
  --dim: rgba(245,240,232,0.70);
  /* Motion — curvas fuertes (design-eng): las built-in de CSS son débiles */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background: var(--navy);
  color: var(--crema);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: var(--terra); color: var(--navy); }

/* Skip link + foco visible de teclado (a11y) --------------- */
.skip-link {
  position: absolute; left: 12px; top: -56px; z-index: 100;
  background: var(--terra); color: var(--navy);
  font-family: "IBM Plex Mono", monospace; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 16px; border-radius: 6px; text-decoration: none;
  transition: top 180ms var(--ease-out);
}
.skip-link:focus { top: 12px; outline: none; box-shadow: 0 0 0 3px rgba(224,123,82,0.45); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: none; border-radius: 3px;
  box-shadow: 0 0 0 3px rgba(224,123,82,0.55);
}

/* Eyebrow ---------------------------------------------------- */
.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.65;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--crema);
  opacity: 0.6;
}
.eyebrow .beat { /* el "latido" terracota de la marca */
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--terra); display: inline-block;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }

/* Section headers ------------------------------------------- */
h2.section-h {
  font-family: "Schibsted Grotesk", sans-serif;
  font-weight: 900;
  font-size: clamp(30px, 4.6vw, 52px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 18px 0 0;
  text-wrap: balance;
}
h2.section-h .accent { color: var(--terra); }
.lede {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: clamp(19px, 2.1vw, 26px);
  line-height: 1.3;
  opacity: 0.9;
  max-width: 640px;
  margin: 16px 0 0;
  text-wrap: pretty;
}

/* Nav -------------------------------------------------------- */
nav {
  position: relative; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px clamp(20px, 5vw, 64px);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo svg { width: 32px; height: 32px; flex-shrink: 0; }
.wordmark {
  font-family: "Schibsted Grotesk", sans-serif;
  font-weight: 900; font-size: 20px; letter-spacing: -0.035em;
}
.nav-links { display: flex; gap: 28px; font-size: 13.5px; opacity: 0.85; }
.nav-links a {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: border-color 200ms;
}
.nav-links a:hover { border-bottom-color: currentColor; }
.nav-cta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 8px 14px; border: 1px solid rgba(245,240,232,0.4);
  border-radius: 999px; color: inherit; text-decoration: none;
  transition: background 200ms, border-color 200ms;
}
.nav-cta:hover { background: rgba(245,240,232,0.08); border-color: rgba(245,240,232,0.6); }
@media (max-width: 760px) { .nav-links { display: none; } }

/* Buttons ---------------------------------------------------- */
.btn {
  background: var(--terra); color: var(--navy); border: none;
  padding: 20px 32px; border-radius: 4px;
  font-family: "Schibsted Grotesk", sans-serif; font-weight: 700;
  font-size: 16px; letter-spacing: -0.01em; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
  transition: background 200ms var(--ease-out), transform 130ms var(--ease-out);
}
.btn:hover { background: var(--terra-hover); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(224,123,82,0.45); }
.btn.ghost {
  background: transparent; color: var(--crema);
  border: 1px solid var(--line-2);
}
.btn.ghost:hover { background: rgba(245,240,232,0.06); }

/* Trust strip ------------------------------------------------ */
.trust {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  padding: 18px clamp(20px, 5vw, 64px);
  display: flex; gap: clamp(20px, 4vw, 40px); align-items: center; flex-wrap: wrap;
  font-family: "IBM Plex Mono", monospace; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.65;
}
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust .dot { width: 6px; height: 6px; background: var(--verde); border-radius: 50%; }

/* Section base ---------------------------------------------- */
section.block { padding: clamp(72px, 11vh, 128px) 0; border-top: 1px solid var(--line); }
.bg-navy   { background: var(--navy); }
.bg-navy-2 { background: var(--navy-2); }

/* Mirror header (pain) -------------------------------------- */
.mirror-h {
  font-family: "Schibsted Grotesk", sans-serif; font-weight: 900;
  font-size: clamp(30px, 5vw, 60px); letter-spacing: -0.035em;
  line-height: 1.0; margin: 18px 0 8px; max-width: 16ch; text-wrap: balance;
}
.mirror-h .accent { color: var(--terra); }

/* Pain grid -------------------------------------------------- */
.pain-grid {
  margin-top: clamp(40px, 6vh, 64px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.pain { background: var(--navy); padding: 32px clamp(20px,3vw,36px) 40px; }
.pain .pn {
  font-family: "IBM Plex Mono", monospace; font-size: 11px;
  letter-spacing: 0.16em; color: var(--terra); opacity: 0.85;
}
.pain h3 {
  font-family: "Schibsted Grotesk", sans-serif; font-weight: 700;
  font-size: 20px; letter-spacing: -0.02em; margin: 14px 0 8px; line-height: 1.15;
}
.pain p { font-size: 15px; opacity: 0.78; margin: 0; }
@media (max-width: 760px) { .pain-grid { grid-template-columns: 1fr; } }

/* Capability cards ------------------------------------------ */
.cap-grid {
  margin-top: clamp(40px, 6vh, 64px);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 28px);
}
.cap {
  border: 1px solid var(--line-2); border-radius: 6px;
  padding: 30px clamp(22px,2.4vw,34px); background: rgba(245,240,232,0.02);
  transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.cap:hover { border-color: var(--terra); background: rgba(224,123,82,0.05); }
/* El lift sólo en dispositivos con hover real — el tap no dispara falso hover */
@media (hover: hover) and (pointer: fine) {
  .cap:hover { transform: translateY(-2px); }
}
.cap .mark { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.cap .mark .beat { width: 8px; height: 8px; border-radius: 50%; background: var(--terra); }
.cap .mark .k {
  font-family: "IBM Plex Mono", monospace; font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim);
}
.cap h3 {
  font-family: "Schibsted Grotesk", sans-serif; font-weight: 700;
  font-size: 22px; letter-spacing: -0.02em; margin: 0 0 10px; line-height: 1.1;
}
.cap p { font-size: 15px; opacity: 0.82; margin: 0; }
@media (max-width: 680px) { .cap-grid { grid-template-columns: 1fr; } }

/* Steps (threaded stroke) ----------------------------------- */
.steps { margin-top: clamp(40px, 6vh, 64px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px,3vw,44px); position: relative; }
.step { position: relative; z-index: 1; }
.step .num {
  font-family: "Schibsted Grotesk", sans-serif; font-weight: 900;
  font-size: 15px; letter-spacing: 0.02em; color: var(--navy);
  background: var(--terra); width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.step h3 {
  font-family: "Schibsted Grotesk", sans-serif; font-weight: 700;
  font-size: 20px; letter-spacing: -0.02em; margin: 0 0 8px;
}
.step p { font-size: 15px; opacity: 0.8; margin: 0; }
.steps::before {
  content: ''; position: absolute; top: 17px; left: 8%; right: 8%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px);
  z-index: 0;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps::before { display: none; } }

/* Differentiators list -------------------------------------- */
.diff-list { list-style: none; margin: 0; padding: 0; }
.diff-list li { padding: 18px 0 18px 26px; border-bottom: 1px solid var(--line); position: relative; font-size: 16px; }
.diff-list li::before { content: ''; position: absolute; left: 0; top: 27px; width: 12px; height: 2px; background: var(--verde); }
.diff-list li b { font-family: "Schibsted Grotesk", sans-serif; font-weight: 700; }
.diff-line {
  font-family: "Instrument Serif", serif; font-style: italic;
  font-size: clamp(22px, 2.6vw, 32px); line-height: 1.25; margin: 28px 0 0;
}
.diff-line .accent { color: var(--terra); font-style: normal; }

/* Chat demo -------------------------------------------------- */
.demo {
  border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden;
  background: var(--navy); box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.demo-top {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  background: rgba(245,240,232,0.03);
}
.demo-top .av { width: 30px; height: 30px; border-radius: 50%; background: var(--terra); display: inline-flex; align-items: center; justify-content: center; }
.demo-top .who { font-family: "Schibsted Grotesk", sans-serif; font-weight: 700; font-size: 14px; }
.demo-top .tag {
  margin-left: auto; font-family: "IBM Plex Mono", monospace; font-size: 9.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 8px;
}
.demo-body { padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.bub { max-width: 82%; padding: 11px 15px; font-size: 14.5px; line-height: 1.4; }
.bub.them { align-self: flex-start; background: rgba(245,240,232,0.08); border-radius: 14px 14px 14px 4px; }
.bub.us { align-self: flex-end; background: var(--terra); color: var(--navy); border-radius: 14px 14px 4px 14px; }
.bub.us b { font-weight: 700; }
.demo-note { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.06em; color: var(--dim); text-align: center; padding: 0 0 16px; }

/* Pricing tiers --------------------------------------------- */
.price-meta { margin-top: 10px; font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.tiers { margin-top: clamp(40px,6vh,64px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px,2vw,24px); align-items: stretch; }
.tier {
  border: 1px solid var(--line-2); border-radius: 8px; padding: 30px clamp(22px,2.2vw,30px);
  display: flex; flex-direction: column; background: rgba(245,240,232,0.02);
}
.tier.featured { border-color: var(--terra); background: rgba(224,123,82,0.06); position: relative; }
.tier-badge {
  position: absolute; top: -12px; left: 30px;
  font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; background: var(--terra); color: var(--navy);
  padding: 5px 12px; border-radius: 999px; font-weight: 500;
}
.tier-name { font-family: "Schibsted Grotesk", sans-serif; font-weight: 900; font-size: 24px; letter-spacing: -0.03em; }
.tier-tag { font-size: 13px; opacity: 0.7; margin-top: 4px; }
.tier-price { margin: 22px 0 4px; display: flex; align-items: baseline; gap: 8px; }
.tier-price-num { font-family: "Schibsted Grotesk", sans-serif; font-weight: 900; font-size: 40px; letter-spacing: -0.04em; line-height: 1; }
.tier-price-unit { font-size: 13px; opacity: 0.7; }
.tier-cap { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.04em; color: var(--dim); margin-bottom: 22px; }
.tier-features { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tier-feature { display: flex; gap: 10px; font-size: 14.5px; opacity: 0.9; }
.tier-feature .check { color: var(--verde-soft); flex-shrink: 0; }
.tier .btn { justify-content: center; width: 100%; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } .tier-badge { left: 22px; } }

/* Guarantee -------------------------------------------------- */
.guar {
  margin-top: clamp(36px,5vh,56px); border: 1px solid var(--line-2); border-radius: 10px;
  padding: clamp(32px,5vw,56px); display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px,4vw,56px); align-items: center;
}
.guar .big {
  font-family: "Schibsted Grotesk", sans-serif; font-weight: 900;
  font-size: clamp(52px, 8vw, 92px); letter-spacing: -0.05em; line-height: 0.9; color: var(--terra);
}
.guar .big small { display: block; font-family: "IBM Plex Mono", monospace; font-weight: 400; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-top: 14px; }
.guar h3 { font-family: "Schibsted Grotesk", sans-serif; font-weight: 700; font-size: clamp(20px,2.4vw,26px); letter-spacing: -0.02em; margin: 0 0 14px; line-height: 1.15; }
.guar-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.guar-list li { padding-left: 24px; position: relative; font-size: 15.5px; }
.guar-list li::before { content: '→'; position: absolute; left: 0; color: var(--terra); }
.guar .fine { font-size: 13.5px; opacity: 0.7; }
@media (max-width: 720px) { .guar { grid-template-columns: 1fr; } }

/* Lead form -------------------------------------------------- */
.scarce { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.1em; color: var(--verde-soft); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; }
.scarce .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 4px rgba(0,107,60,0.2); }
form.lead { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.field input, .field select, .field textarea {
  background: rgba(245,240,232,0.04); border: 1px solid var(--line-2); border-radius: 5px;
  color: var(--crema); font-family: "IBM Plex Sans", sans-serif; font-size: 15px;
  padding: 13px 14px; transition: border-color 160ms, background 160ms; width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(245,240,232,0.35); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--terra); background: rgba(245,240,232,0.06); }
.field.row2 { grid-template-columns: 1fr 1fr; display: grid; gap: 14px; }
.field.row2 > .field { gap: 6px; }
form.lead .btn { margin-top: 4px; justify-content: center; }
.form-fine { font-size: 12.5px; opacity: 0.62; line-height: 1.5; }
.form-fine a { color: var(--verde-soft); }
.form-ok {
  display: none; border: 1px solid var(--verde); border-radius: 8px;
  padding: 22px; background: rgba(0,107,60,0.12);
}
.form-ok.show { display: block; }
.form-ok h3 { font-family: "Schibsted Grotesk", sans-serif; font-weight: 700; margin: 0 0 6px; }
.form-ok p { margin: 0; font-size: 14.5px; opacity: 0.85; }

/* Footer ----------------------------------------------------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: clamp(48px,7vh,80px) 0 clamp(32px,5vh,48px);
}
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.foot-brand { max-width: 320px; }
.foot-brand .logo { margin-bottom: 16px; }
.foot-tag { font-family: "Instrument Serif", serif; font-style: italic; font-size: 20px; opacity: 0.85; }
.foot-cols { display: flex; gap: clamp(40px, 7vw, 96px); flex-wrap: wrap; }
.foot-col h4 { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin: 0 0 14px; font-weight: 500; }
.foot-col a { display: block; text-decoration: none; font-size: 14px; opacity: 0.82; margin-bottom: 10px; transition: opacity 160ms; }
.foot-col a:hover { opacity: 1; }
.foot-bottom {
  margin-top: clamp(40px,6vh,64px); padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.06em; color: var(--dim);
}

/* Reveal on scroll ------------------------------------------ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* Stagger de entrada por grupo (30–80ms entre ítems) --------- */
@media (prefers-reduced-motion: no-preference) {
  .pain-grid .pain:nth-child(2), .cap-grid .cap:nth-child(2),
  .steps .step:nth-child(2), .tiers .tier:nth-child(2) { transition-delay: 70ms; }
  .pain-grid .pain:nth-child(3), .cap-grid .cap:nth-child(3),
  .steps .step:nth-child(3), .tiers .tier:nth-child(3) { transition-delay: 140ms; }
  .cap-grid .cap:nth-child(4) { transition-delay: 210ms; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; transition-delay: 0ms; }
  .cap:hover, .tier:hover { transform: none; }
}

/* Generic page hero (non-home pages) ------------------------ */
.page-hero { position: relative; overflow: hidden; padding-bottom: clamp(40px, 7vh, 72px); }
.page-hero .eyebrow { padding: clamp(30px,6vh,56px) clamp(20px,5vw,64px) 0; }
.page-hero .page-head { padding: 22px clamp(20px,5vw,64px) 0; max-width: 900px; }
.page-hero h1 {
  font-family: "Schibsted Grotesk", sans-serif; font-weight: 900;
  font-size: clamp(44px, 7vw, 84px); letter-spacing: -0.04em; line-height: 0.96;
  margin: 0 0 20px; text-wrap: balance;
}
.page-hero h1 .accent { color: var(--terra); }
.page-hero .sub {
  font-family: "Instrument Serif", serif; font-style: italic;
  font-size: clamp(19px, 2.3vw, 28px); line-height: 1.28;
  max-width: 640px; opacity: 0.88; margin: 0;
}

/* Shared reveal + form script hooks live in each page's <script>. */
