/* Landing pública. Paleta y tipografía de la plataforma. */

@font-face { font-family: "Manrope"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/manrope-latin-800-normal.woff2") format("woff2"); }

:root {
  --ink: #1F2510;
  --ink-2: #2B3514;
  --olive: #4F6228;
  --olive-2: #5C7A29;
  --leaf: #8DB04A;
  --gold: #D19A1E;
  --gold-2: #C98A12;
  --bg: #FAF8F1;
  --paper: #FFFFFF;
  --sand: #F2EEE1;
  --line: #E3DDCB;
  --muted: #5E6450;
  --on-dark: #F3F1E6;
  --on-dark-muted: #B9BFA4;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --gutter: 20px;
  --max: 1200px;
  --header-h: 68px;
  --shadow: 0 1px 2px rgba(31, 37, 16, .06), 0 12px 32px -12px rgba(31, 37, 16, .22);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--olive); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--on-dark); padding: 10px 14px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.code {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0;
  font-size: .9em;
  white-space: nowrap;
}

.eyebrow {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--olive-2);
  margin-bottom: 14px;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 9px 18px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 700 .9375rem/1.2 var(--font);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn-lg { min-height: 50px; padding: 12px 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--olive); color: #fff; }
.btn-primary:hover { background: var(--ink-2); color: #fff; }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--sand); color: var(--ink); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--on-dark); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #E2AC2E; color: var(--ink); }
.btn:active { transform: translateY(1px); }

/* Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 241, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; flex: none; border-radius: 6px; }
.brand img { width: 92px; height: auto; }
.nav { display: flex; align-items: center; gap: 20px; flex: 1; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0 auto; padding: 0; }
.nav ul a {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem;
}
.nav ul a:hover { background: var(--sand); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .nav ul a { padding: 8px 9px; font-size: .875rem; }
}
@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto; width: 44px; height: 44px; border-radius: 999px;
    border: 1.5px solid var(--line); background: var(--paper); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, background-color .2s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 12px var(--gutter) 24px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -20px rgba(31, 37, 16, .35);
    display: none;
  }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; margin: 0; gap: 0; }
  .nav ul a { padding: 12px 4px; font-size: 1.0625rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav ul a:hover { background: transparent; color: var(--olive); }
  .nav-actions { flex-direction: column; align-items: stretch; }
  .nav-actions .btn { min-height: 48px; }
  .nav-actions .btn-ghost { border-color: var(--ink); }
}

/* Portada */
.hero { padding: 64px 0 0; position: relative; }
.hero h1 {
  max-width: 15.5em;
  font-size: clamp(2.375rem, 5.4vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.02;
}
.hl {
  background-image: linear-gradient(transparent 64%, rgba(209, 154, 30, .42) 64%, rgba(209, 154, 30, .42) 90%, transparent 90%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero-sub { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: end; margin-top: 32px; }
.lead { font-size: 1.1875rem; color: #3A4128; max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { margin-top: 14px; font-size: .875rem; color: var(--muted); }

.hero-shot { position: relative; z-index: 2; margin: 56px 0 -150px; }
.hero-shot figcaption { margin-top: 14px; font-size: .8125rem; color: var(--muted); }
.hero-phone { position: absolute; right: -16px; bottom: -36px; width: 21%; max-width: 250px; }

.browser {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.browser-bar {
  display: flex; align-items: center; gap: 14px;
  height: 36px; padding: 0 14px;
  background: var(--sand); border-bottom: 1px solid var(--line);
}
.dots { display: inline-flex; gap: 6px; flex: none; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #D6CFB9; }
.browser img { width: 100%; }

.phone {
  background: var(--ink);
  border-radius: 30px;
  padding: 7px;
  box-shadow: 0 2px 4px rgba(31, 37, 16, .2), 0 24px 48px -16px rgba(31, 37, 16, .45);
}
.phone img { border-radius: 23px; width: 100%; }

/* Sector */
.sector { border-bottom: 1px solid var(--line); background: var(--paper); padding: 210px 0 56px; }
.sector-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 800; letter-spacing: -0.025em; }
.sector-grid p { margin-top: 10px; color: #3A4128; }
.share-bar { display: flex; height: 54px; border-radius: var(--r-sm); overflow: hidden; background: var(--sand); border: 1px solid var(--line); }
.share-tacna {
  width: var(--w); background: var(--olive); color: #fff;
  display: flex; align-items: center; gap: 10px; padding: 0 16px;
  font-weight: 600; font-size: .9375rem; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.share-tacna b { font-family: var(--font); font-weight: 800; }
.share-rest { flex: 1; background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(31, 37, 16, .07) 6px 7px); }
.share-legend { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: .875rem; line-height: 1.4; color: var(--muted); }
.sector-grid .source { margin-top: 8px; font-size: .75rem; color: var(--muted); }

/* Secciones */
.section { padding: 104px 0; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; }
.section-head p:not(.eyebrow) { margin-top: 18px; font-size: 1.125rem; color: #3A4128; }

/* Problema */
.qa { border-top: 2px solid var(--ink); }
.qa-row {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) minmax(0, 1.2fr);
  gap: 32px; padding: 22px 0; border-bottom: 1px solid var(--line);
}
.qa-head { padding: 12px 0; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.qa-q { font-weight: 700; font-size: 1.125rem; line-height: 1.4; }
.qa-before { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(94, 100, 80, .45); text-decoration-thickness: 1px; }
.qa-after { color: var(--ink); padding-left: 16px; border-left: 3px solid var(--leaf); }

/* Recorrido del lote */
.trace { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.trace .eyebrow { color: var(--leaf); }
.trace .section-head p:not(.eyebrow) { color: var(--on-dark-muted); }
.trace .section-head .code { color: var(--gold); }

.trace-line {
  --line-y: 22px;
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px;
  position: relative;
}
.trace-line::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: var(--line-y); height: 2px;
  background: var(--gold); transform-origin: left center;
}
.stop {
  position: relative;
  padding-top: 64px;
  display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start;
}
.trace-line { grid-template-rows: repeat(4, auto); }
.stop-n {
  position: absolute; top: 0; left: 0;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); border: 2px solid var(--gold); color: var(--gold);
  font: 700 1rem/1 var(--mono);
}
.stop-kind { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--leaf); }
.stop-id { margin-top: 6px; font-size: 1.25rem; color: #fff; }
.stop-id .code { font-size: 1.125rem; }
.stop-date { margin-top: 4px; font-size: .875rem; color: var(--on-dark-muted); }
.stop dl {
  margin: 16px 0 0; padding: 14px 14px 4px;
  background: var(--ink-2); border: 1px solid rgba(141, 176, 74, .22); border-radius: var(--r-sm);
}
.stop dl div { padding-bottom: 10px; }
.stop dt { font-size: .75rem; color: var(--on-dark-muted); }
.stop dd { margin: 1px 0 0; font-weight: 700; font-size: .9375rem; line-height: 1.4; color: var(--on-dark); font-variant-numeric: tabular-nums; }
.stop dd.codes { display: flex; flex-wrap: wrap; gap: 2px 8px; }
.stop-date .code { font-size: .875em; }
.nw { white-space: nowrap; }

.trace-proof {
  margin-top: 72px; padding-top: 56px; border-top: 1px solid rgba(243, 241, 230, .14);
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: center;
}
.trace-proof .phone { background: #0E1207; }
.trace-proof-copy { max-width: 560px; }
.trace-proof-copy h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -0.025em; color: #fff; }
.trace-proof-copy p { margin: 16px 0 28px; color: var(--on-dark-muted); font-size: 1.0625rem; }

/* Aparición del recorrido */
@media (prefers-reduced-motion: no-preference) {
  .js .trace-line::before { transform: scaleX(0); transition: transform 1.4s cubic-bezier(.3, .7, .2, 1); }
  .js .trace-line .stop { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .trace-line.in::before { transform: scaleX(1); }
  .js .trace-line.in .stop { opacity: 1; transform: none; }
  .js .trace-line.in .stop:nth-child(2) { transition-delay: .2s; }
  .js .trace-line.in .stop:nth-child(3) { transition-delay: .4s; }
  .js .trace-line.in .stop:nth-child(4) { transition-delay: .6s; }
  .js .trace-line.in .stop:nth-child(5) { transition-delay: .8s; }
}

/* Funciones */
.feature-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature-col {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 26px 12px;
}
.feature-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot-leaf { background: var(--leaf); }
.dot-gold { background: var(--gold); }
.dot-olive { background: var(--olive); }
.feature-col ul { list-style: none; margin: 0; padding: 0; }
.feature-col li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .96875rem; color: #3A4128; line-height: 1.55; }
.feature-col li:last-child { border-bottom: 0; }
.feature-col li b { display: block; color: var(--ink); font-weight: 700; margin-bottom: 2px; }

/* Capturas */
.gallery { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tabs [role="tab"] {
  font: 600 .9375rem/1.2 var(--font); color: var(--ink);
  min-height: 40px; padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper); cursor: pointer;
}
.tabs [role="tab"]:hover { border-color: var(--olive-2); }
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.tab-panel { margin: 0; }
.tab-panel[hidden] { display: none; }
.tab-panel .browser { max-width: 1120px; }
.tab-panel figcaption { margin-top: 16px; font-size: .9375rem; color: #3A4128; max-width: 720px; }

/* Para quién */
.aud-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.aud-list li {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.aud-list h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.aud-list p { color: #3A4128; }

/* Preguntas */
.faq { padding-top: 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 700; font-size: 1.0625rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--olive); border-bottom: 2px solid var(--olive);
  transform: translateY(-3px) rotate(45deg); transition: transform .2s;
}
.faq-list details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq-list details p { padding: 0 32px 22px 0; color: #3A4128; }

/* Agendar */
.book { background: var(--paper); border-top: 1px solid var(--line); }
.book-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.book-copy h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -0.035em; }
.book-copy p:not(.eyebrow) { margin-top: 18px; font-size: 1.125rem; color: #3A4128; }
.book-copy .book-alt { font-size: 1rem; color: var(--muted); }
.book-form {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 700; font-size: .9375rem; }
.opt { font-weight: 500; color: var(--muted); font-size: .8125rem; margin-left: 4px; }
.field input, .field textarea {
  width: 100%; font: 500 1rem/1.4 var(--font); color: var(--ink);
  padding: 11px 13px; border-radius: var(--r-sm);
  border: 1.5px solid #D3CCB6; background: var(--paper);
}
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--olive); }
.field input[aria-invalid="true"] { border-color: #A3341B; }
.field textarea::placeholder { color: #8C907E; }
.form-error { margin: 0 0 14px; color: #A3341B; font-weight: 600; font-size: .9375rem; }
.config-notice {
  margin-bottom: 20px; padding: 12px 14px; border-radius: var(--r-sm);
  background: #FBF0D4; border: 1px solid #E7C873; color: #5A4307; font-size: .9375rem;
}
.config-notice code { font-family: var(--mono); font-size: .875em; }
.book-form .fine { text-align: center; }

/* Pie */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 56px 0 48px; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr); gap: 40px; }
.footer-brand img { width: 96px; }
.footer-brand p { margin-top: 12px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: var(--on-dark); text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: var(--gold); text-decoration: underline; }
.footer-meta p + p { margin-top: 8px; }
.footer-meta { font-size: .8125rem; }

/* Responsivo */
@media (max-width: 1100px) {
  .trace-line { grid-template-columns: 1fr; gap: 0; }
  .trace-line::before { left: 21px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; transform-origin: top center; }
  .trace-line { grid-template-rows: none; }
  .stop { padding: 0 0 36px 72px; display: grid; grid-row: auto; grid-template-rows: none; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); column-gap: 24px; align-content: start; }
  .stop:last-child { padding-bottom: 0; }
  .stop > .stop-kind, .stop > .stop-id, .stop > .stop-date { grid-column: 1; }
  .stop dl { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .stop-n { top: 0; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 1100px) {
  .js .trace-line::before { transform: scaleY(0); }
  .js .trace-line.in::before { transform: scaleY(1); }
}

@media (max-width: 960px) {
  .hero { padding-top: 40px; }
  .hero-sub { grid-template-columns: 1fr; gap: 28px; margin-top: 24px; }
  .hero-shot { margin: 40px 0 -90px; }
  .hero-phone { right: -6px; width: 22%; bottom: -24px; }
  .sector { padding-top: 140px; }
  .sector-grid, .book-grid, .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 80px 0; }
  .faq { padding-top: 0; }
  .feature-cols { grid-template-columns: 1fr; }
  .qa-row { grid-template-columns: 1fr; gap: 8px; }
  .qa-head { display: none; }
  .qa-before::before { content: "Sin un registro único: "; text-decoration: none; display: inline-block; font-size: .8125rem; font-weight: 700; letter-spacing: .02em; color: var(--muted); margin-right: 4px; }
  .qa-after { margin-top: 4px; }
  .trace-proof { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-meta { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 62px; }
  body { font-size: 1rem; }
  .lead { font-size: 1.0625rem; }
  .cta-row .btn { width: 100%; }
  .hero-shot { margin: 32px 0 -64px; }
  .hero-shot .browser-bar { height: 28px; }
  .hero-phone { width: 32%; right: -6px; bottom: -28px; border-radius: 20px; padding: 5px; }
  .hero-phone img { border-radius: 15px; }
  .hero-shot figcaption { max-width: 62%; }
  .sector { padding-top: 104px; }
  .share-bar { height: 48px; }
  .share-tacna { padding: 0 12px; font-size: .8125rem; }
  .section-head { margin-bottom: 36px; }
  .stop { display: block; padding-left: 64px; }
  .stop dl { display: block; margin-top: 12px; }
  .trace-proof { grid-template-columns: 1fr; justify-items: start; }
  .trace-proof .phone { width: 72%; max-width: 260px; }
  .trace-proof-copy .btn { white-space: normal; text-align: center; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px; scrollbar-width: thin; }
  .tabs [role="tab"] { flex: none; }
  .aud-list li { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .book-form { padding: 20px 16px; border-radius: var(--r); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.open-demo { font-weight: 700; white-space: nowrap; margin-left: 4px; }

/* ------------------------------------------------------------------ */
/* Versión mínima                                                       */
/* ------------------------------------------------------------------ */

.center { text-align: center; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.hero-min { text-align: center; padding-top: 88px; }
.hero-min h1 { margin: 0 auto; max-width: 13em; }
.hero-min .lead { margin: 22px auto 0; font-size: 1.25rem; }
.hero-min .cta-row { justify-content: center; margin-top: 32px; }
.hero-min .hero-shot { margin-top: 64px; text-align: left; }

.sector { padding: 200px 0 48px; }
.sector-min { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.sector-num { font-size: clamp(1.25rem, 2.2vw, 1.625rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.sector-num b { display: block; font-size: clamp(2.75rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.04em; color: var(--olive); line-height: 1; margin-bottom: 6px; }
.sector-min .source { margin-top: 8px; font-size: .75rem; color: var(--muted); text-align: right; }

.trace-min .stop { grid-row: span 3; }
.trace-min { grid-template-rows: repeat(3, auto); }
.trace-link { margin-top: 44px; }

.feat-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.feat-grid li { background: var(--paper); padding: 30px 28px; }
.feat-grid h3 { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.015em; }
.feat-grid h3::before {
  content: ""; display: block; width: 10px; height: 14px; margin-bottom: 14px;
  border-radius: 50%; background: var(--leaf); transform: rotate(32deg);
}
.feat-grid p { margin-top: 6px; color: var(--muted); }
.feat-note { margin-top: 22px; text-align: center; font-size: .9375rem; color: var(--muted); }

.gallery .tabs { justify-content: center; }
.gallery .tab-panel figcaption { text-align: center; margin-top: 14px; }

.audience { padding-top: 72px; padding-bottom: 72px; }
.chips {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.chips li {
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); font-weight: 600; font-size: .9375rem;
}

.book-copy p { margin-top: 12px; font-size: 1.125rem; color: #3A4128; }

@media (max-width: 860px) {
  .sector-min { grid-template-columns: 1fr; gap: 20px; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .hero-min { padding-top: 48px; }
}
@media (max-width: 560px) {
  .feat-grid { grid-template-columns: 1fr; }
  .feat-grid li { padding: 22px 20px; }
  .hero-min .lead { font-size: 1.0625rem; }
}
.gallery .tab-panel { max-width: 1120px; margin-left: auto; margin-right: auto; }
.gallery .tab-panel figcaption { display: block; width: 100%; }

/* ------------------------------------------------------------------ */
/* Versión 3: portada dinámica, tarjetas y pie                          */
/* ------------------------------------------------------------------ */

.hero-v3 { position: relative; overflow: hidden; text-align: center; padding: 96px 0 0; }
.hero-v3 .wrap { position: relative; z-index: 1; }

/* Fondo: hileras de olivos vistas desde arriba, con un degradado suave */
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(141, 176, 74, .20), transparent 70%),
    radial-gradient(40% 40% at 90% 30%, rgba(209, 154, 30, .12), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(79, 98, 40, .16) 1.6px, transparent 1.8px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 75%);
}

.hero-v3 h1 {
  margin: 0 auto; max-width: none;
  font-size: clamp(2.5rem, 6.2vw, 5rem);
  line-height: 1.04;
}
.h1-fijo { display: block; }
.rota { display: inline-block; position: relative; color: var(--olive); }
.rota-txt {
  display: inline-block;
  background-image: linear-gradient(transparent 70%, rgba(209, 154, 30, .38) 70%, rgba(209, 154, 30, .38) 92%, transparent 92%);
  transition: transform .38s cubic-bezier(.3, .7, .2, 1), opacity .38s ease, filter .38s ease;
}
.rota-txt.sale { transform: translateY(-0.35em); opacity: 0; filter: blur(4px); }
.rota-txt.entra { transform: translateY(0.35em); opacity: 0; filter: blur(4px); transition: none; }

.hero-v3 .lead { margin: 26px auto 0; max-width: 34em; font-size: 1.25rem; }
.hero-v3 .cta-row { justify-content: center; margin-top: 34px; }

.hero-v3 .hero-shot {
  --tilt: 0deg; --lift: 0px; --mx: 0px; --my: 0px;
  margin: 72px auto -150px; text-align: left;
  perspective: 1600px;
}
.hero-v3 .hero-shot .browser {
  transform: translateY(var(--lift)) rotateX(var(--tilt));
  transform-origin: 50% 0%;
  transition: transform .2s linear;
  box-shadow: 0 30px 80px -30px rgba(31, 37, 16, .45), 0 2px 6px rgba(31, 37, 16, .06);
}

/* Tarjetas de datos flotantes sobre la captura */
.flota {
  position: absolute; z-index: 3;
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px -18px rgba(31, 37, 16, .45);
  text-align: left; font-size: .8125rem; color: var(--muted);
  transform: translate(var(--mx), var(--my));
  transition: transform .25s ease-out;
  animation: flotar 6s ease-in-out infinite;
}
.flota b { font-size: 1rem; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.flota b.alerta { color: #9A3412; }
.flota-1 { left: -36px; top: 22%; }
.flota-2 { left: 6%; bottom: 16%; animation-delay: -2s; }
.flota-3 { right: 23%; top: -26px; animation-delay: -4s; }
@keyframes flotar {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

/* Tarjetas de registros y de usuarios */
.card-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.card-grid li {
  padding: 28px 26px; border-radius: var(--r-lg);
  background: var(--paper); border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-grid li:hover { transform: translateY(-3px); border-color: #CFD7B4; box-shadow: 0 18px 40px -22px rgba(31, 37, 16, .35); }
.card-grid .ico {
  width: 40px; height: 40px; padding: 9px; box-sizing: border-box; margin-bottom: 18px;
  border-radius: 12px; background: #EEF1E4;
  fill: none; stroke: var(--olive); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.card-grid h3 { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.015em; }
.card-grid p { margin-top: 6px; color: var(--muted); font-size: .9688rem; }
.card-grid-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.card-grid-5 li { grid-column: span 2; }
.card-grid-5 li:nth-child(4) { grid-column: 2 / span 2; }
.card-grid-5 .ico { background: #FBF3E0; stroke: #9A6A0C; }

.audience { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Pantallas: botón centrado bajo la captura */
.gallery .tab-panel figcaption { margin-top: 26px; text-align: center; }
.gallery .section-head p { font-size: .9375rem; color: var(--muted); }

/* Pie */
.footer-v3 { padding: 72px 0 28px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 48px; }
.foot-brand p { margin-top: 16px; max-width: 26em; color: var(--on-dark-muted); font-size: .9375rem; }
.foot-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn-dark-line { border: 1px solid rgba(243, 241, 230, .35); color: var(--on-dark); background: transparent; }
.btn-dark-line:hover { border-color: var(--on-dark); }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h2 { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--leaf); margin-bottom: 6px; }
.foot-col a { color: var(--on-dark); text-decoration: none; font-size: .9688rem; opacity: .85; }
.foot-col a:hover { opacity: 1; text-decoration: underline; }
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(243, 241, 230, .14);
  font-size: .8125rem; color: var(--on-dark-muted);
}

@media (max-width: 1000px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid-5 li, .card-grid-5 li:nth-child(4) { grid-column: auto; }
  .flota-1 { left: -8px; }
  .flota-3 { right: 26%; }
}
@media (max-width: 760px) {
  .hero-v3 { padding-top: 56px; }
  .flota { display: none; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  .hero-v3 .lead { font-size: 1.0625rem; }
}
@media (prefers-reduced-motion: reduce) {
  .flota { animation: none; }
  .card-grid li, .rota-txt, .hero-v3 .hero-shot .browser { transition: none; }
}
/* La captura de la portada se superpone al bloque siguiente */
.hero-v3 { padding-bottom: 0; }
.hero-v3 + .section { padding-top: 230px; }
.hero-v3 { overflow: visible; z-index: 2; }
.hero-bg { overflow: hidden; }
.gallery .tab-panel figcaption { max-width: none; width: 100%; text-align: center; margin-top: 26px; }
.faq { padding-top: 104px; }
@media (max-width: 860px) { .faq { padding-top: 80px; } }
.rota-txt {
  background-image: none;
  text-decoration-line: underline;
  text-decoration-color: rgba(209, 154, 30, .5);
  text-decoration-thickness: .2em;
  text-underline-offset: -.04em;
  text-decoration-skip-ink: none;
}
@media (max-width: 760px) {
  .hero-v3 h1 { font-size: clamp(2.25rem, 10vw, 2.75rem); }
  .rota { display: block; min-height: 2.1em; }
}

/* ------------------------------------------------------------------ */
/* Versión 4                                                            */
/* ------------------------------------------------------------------ */

/* Título principal */
.hero-v3 h1 { max-width: 12em; margin: 0 auto; }
.hl-v4 {
  color: var(--olive);
  text-decoration-line: underline;
  text-decoration-color: rgba(209, 154, 30, .5);
  text-decoration-thickness: .18em;
  text-underline-offset: -.02em;
  text-decoration-skip-ink: none;
}
.hero-v3 { padding-top: 80px; }
.hero-v3 .hero-shot { margin-top: 44px; }

/* Botón compacto */
.btn-sm { padding: 9px 18px; font-size: .9063rem; min-height: 0; }

/* Cabecera: color del fondo al inicio, verde oscuro al bajar */
.site-header {
  background: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header .logo-oscuro { display: none; }
.site-header.scrolled {
  background: rgba(31, 37, 16, .96);
  -webkit-backdrop-filter: saturate(1.3) blur(10px); backdrop-filter: saturate(1.3) blur(10px);
  border-bottom-color: transparent;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .55);
}
.site-header.scrolled .logo-claro { display: none; }
.site-header.scrolled .logo-oscuro { display: block; }
.brand img { width: 92px; height: auto; }

@media (min-width: 961px) {
  .site-header.scrolled .nav ul a { color: var(--on-dark); }
  .site-header.scrolled .nav ul a:hover { background: rgba(243, 241, 230, .1); }
  .site-header.scrolled .btn-ghost { color: var(--on-dark); }
  .site-header.scrolled .btn-ghost:hover { background: rgba(243, 241, 230, .1); color: #fff; }
  .site-header.scrolled .btn-primary { background: var(--gold); color: var(--ink); }
  .site-header.scrolled .btn-primary:hover { background: #E2AC2E; }
}
@media (max-width: 960px) {
  .site-header.scrolled .nav-toggle { background: transparent; border-color: rgba(243, 241, 230, .35); }
  .site-header.scrolled .nav-toggle-bars,
  .site-header.scrolled .nav-toggle-bars::before,
  .site-header.scrolled .nav-toggle-bars::after { background: var(--on-dark); }
  .site-header.scrolled .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
}

/* Funciones principales: filas alternadas */
.feats { background: var(--bg); }
.feat-rows { display: flex; flex-direction: column; gap: 112px; }
.feat-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.feat-row.alt .feat-copy { order: 2; }
.feat-copy h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.feat-copy > p { margin-top: 14px; font-size: 1.0625rem; color: #3A4128; }
.feat-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.feat-points li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9688rem; }
.chk { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 99px; background: #E6EBD3; fill: none; stroke: var(--olive); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.feat-shot .browser { box-shadow: 0 1px 2px rgba(31, 37, 16, .06), 0 30px 60px -30px rgba(31, 37, 16, .4); }

/* Preguntas: columna lateral */
.faq-side h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.faq-side p { margin-top: 16px; color: var(--muted); }
.faq-side .btn { margin-top: 24px; }
.faq-side { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.faq-list details p { max-width: 46em; }

@media (max-width: 960px) {
  .feat-row, .feat-row.alt { grid-template-columns: 1fr; gap: 32px; }
  .feat-row.alt .feat-copy { order: 0; }
  .feat-rows { gap: 80px; }
  .faq-side { position: static; }
}


/* Soluciones: carrusel horizontal */
.seg-viewport { --edge: max(var(--gutter), calc((100vw - var(--max)) / 2)); }
.seg-track {
  list-style: none; margin: 0; display: flex; gap: 20px;
  padding: 4px var(--edge) 28px; scroll-padding-inline: var(--edge);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.seg-track::-webkit-scrollbar { display: none; }
.seg-track:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
.seg {
  --tono: #E6EBD3; --trazo: var(--olive);
  flex: 0 0 clamp(280px, 30vw, 380px); scroll-snap-align: start;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.seg:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(31, 37, 16, .4); }
.seg-hoja { --tono: #DCE8C4; --trazo: #3F5A1C; }
.seg-oro { --tono: #F6E7C1; --trazo: #8A5D08; }
.seg-tierra { --tono: #EADFCB; --trazo: #6B4A22; }
.seg-cielo { --tono: #DCE6E2; --trazo: #2F5A4E; }
.seg-top {
  position: relative; height: 132px; padding: 0 26px;
  display: flex; align-items: flex-end;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .55) 1.6px, transparent 1.8px) 0 0 / 18px 18px,
    var(--tono);
}
.seg-ico {
  width: 76px; height: 76px; padding: 16px; margin-bottom: -26px; box-sizing: border-box;
  border-radius: 22px; background: var(--paper); box-shadow: 0 10px 24px -14px rgba(31, 37, 16, .45);
  fill: none; stroke: var(--trazo); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.seg-body { display: flex; flex-direction: column; padding: 46px 26px 28px; flex: 1; }
.seg-body h3 { font-size: 1.3125rem; font-weight: 800; letter-spacing: -0.02em; }
.seg-body > p { margin: 8px 0 20px; color: var(--muted); font-size: 1rem; }
.seg-points { list-style: none; margin: auto 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.seg-points li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9375rem; }
.seg-points .chk { background: var(--tono); stroke: var(--trazo); }
.seg-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 8px; }
.seg-btn {
  width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  border-radius: 999px; border: 1px solid #CFC7AE; background: var(--paper); color: var(--ink);
  transition: background .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
}
.seg-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.seg-btn:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.seg-btn:disabled { opacity: .35; cursor: default; }
.seg-btn:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
.seg-dots { display: flex; gap: 8px; }
.seg-dots span { width: 8px; height: 8px; border-radius: 99px; background: #CFC7AE; transition: width .25s ease, background .25s ease; }
.seg-dots span.on { width: 26px; background: var(--olive); }
@media (max-width: 760px) {
  .seg { flex-basis: 84%; }
  .seg-track { gap: 14px; }
  .seg-btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .seg, .seg-dots span { transition: none; }
  .seg-track { scroll-behavior: auto; }
}

/* Títulos de sección con el mismo tamaño y en una línea en escritorio */
.faq-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.book-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.book-copy h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); letter-spacing: -0.03em; line-height: 1.1; }
@media (max-width: 860px) {
  .faq-grid, .book-grid { grid-template-columns: 1fr; }
}
