/* Cotímetro · landing */
:root {
  --yellow: #FFC21A;
  --ink: #151515;
  --ink-2: #242424;
  --paper: #FAF8F3;
  --gray: #5E5B55;
  --line: #E4DFD4;
  --linen: #E8DDCB;
  --soft: #F3EFE6;
  --green: #15773F;
  --green-dk: #3CCB7F;
  --red: #C93C3C;
  --radius: 18px;
  --wrap: 1120px;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; font-stretch: 108%; }
h1 { font-size: clamp(44px, 7.4vw, 84px); }
h2 { font-size: clamp(30px, 4.6vw, 52px); margin-bottom: 36px; max-width: 18ch; }
h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
.mono { font-family: var(--mono); font-weight: 700; font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 820px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font: 700 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gray);
}
.eyebrow::before { content: ''; width: 22px; height: 6px; background: var(--yellow); border-radius: 2px; }
.eyebrow.on-dark { color: #bdb8ad; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--yellow); color: var(--ink); text-decoration: none;
  font-weight: 800; font-stretch: 104%; border-radius: 14px; border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink); transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn-sm { padding: 9px 14px; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); }
.btn-lg { padding: 17px 24px; font-size: 18px; }
.btn-dark { background: var(--ink); color: var(--yellow); border-color: var(--ink); box-shadow: 4px 4px 0 rgba(21, 21, 21, .35); }
.wa-ico { width: 22px; height: 22px; fill: currentColor; flex: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 248, 243, .92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand img { height: 36px; width: auto; }
.nav { display: none; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--gray); }
.nav a:hover { color: var(--ink); }
@media (min-width: 900px) { .nav { display: flex; } }

/* Hero */
.hero { padding: 48px 0 64px; overflow: hidden; }
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } .hero { padding: 72px 0 88px; } }
.hl { position: relative; white-space: nowrap; }
.hl::after {
  content: ''; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .26em; z-index: -1;
  background: var(--yellow); border-radius: 3px;
}
.lead { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.45; margin: 24px 0 32px; max-width: 34ch; color: var(--ink-2); }
.cta-group { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.micro { font-size: 15px; color: var(--gray); max-width: 44ch; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; font-weight: 500; }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks li::before { content: '✓'; font-weight: 800; color: var(--green); }
.hero-demo { padding-bottom: 28px; }

/* Cinta métrica */
.tape {
  height: 34px; background-color: var(--yellow);
  background-image:
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 100px),
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 50px),
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 10px);
  background-size: 100% 16px, 100% 11px, 100% 7px;
  background-repeat: repeat-x;
  background-position: 0 0, 0 0, 0 0;
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
}

/* Secciones */
.section { padding: 80px 0; }
@media (min-width: 720px) { .section { padding: 112px 0; } }
.section.dark { background: var(--ink); color: var(--paper); }
.section.soft { background: var(--soft); }

/* Dolores */
.pain-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.pain {
  background: var(--ink-2); border: 1px solid #333; border-radius: var(--radius); padding: 24px;
}
.pain h3 { color: var(--yellow); margin-bottom: 10px; }
.pain p { color: #d9d5cc; }
.pain-close { margin-top: 44px; font-size: clamp(21px, 2.6vw, 28px); font-weight: 700; font-stretch: 106%; max-width: 30ch; }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); counter-reset: none; }
.step { border: 2px solid var(--ink); border-radius: var(--radius); padding: 26px; background: #fff; position: relative; }
.step-n {
  display: inline-block; font: 700 14px var(--mono); background: var(--yellow);
  padding: 4px 10px; border-radius: 6px; margin-bottom: 18px;
}
.step h3 { font-size: 30px; margin-bottom: 10px; }
.step p { color: var(--ink-2); }
.after-steps { margin-top: 32px; font-size: 20px; }

/* Features */
.feature { display: grid; gap: 28px; align-items: center; padding: 36px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; padding: 56px 0; }
  .feature.reverse .feature-copy { order: 2; }
}
.feature-copy h3 { font-size: clamp(25px, 3vw, 34px); line-height: 1.1; margin-bottom: 16px; font-stretch: 106%; }
.feature-copy p { color: var(--ink-2); max-width: 46ch; }

.mock {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  box-shadow: 0 18px 40px -26px rgba(21, 21, 21, .35); font-size: 15px;
}
.mock-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 12px; }
.ok-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--green); font-weight: 600; }
.ok-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(21, 119, 63, .15); }
.mock-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px dashed var(--line); }
.mock-row s { color: var(--gray); font-weight: 500; margin-right: 4px; }
.mock-row.muted { color: #a29d93; }
.mock-alert {
  margin-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: #fbeaea; color: var(--red); border-radius: 12px; padding: 10px 12px; font-weight: 600; font-size: 14px;
}
.mock-alert b { background: var(--ink); color: var(--yellow); padding: 6px 10px; border-radius: 8px; font-size: 13px; }
.split { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.dark-mock { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dark-mock .mock-row { border-top-color: #3a3a3a; }
.yellow { color: var(--yellow); }
.awning { width: 100%; height: auto; border-radius: var(--radius); }
.awning .cm-cota { font-size: 10px; }

.planta .tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.planta .tabs span { font-size: 13px; padding: 6px 10px; border-radius: 999px; background: var(--soft); font-weight: 600; }
.planta .tabs .on { background: var(--ink); color: var(--yellow); }
.wo { border: 2px solid var(--ink); border-radius: 14px; padding: 14px; }
.wo-top { display: flex; justify-content: space-between; gap: 10px; font-size: 17px; }
.wo-meta { color: var(--gray); font-size: 14px; margin: 6px 0 12px; }
.wo-mat { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; padding: 10px 12px; background: var(--soft); border-radius: 10px; }
.wo-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.wo-btns b { text-align: center; padding: 10px 0; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; }
.wo-btns .go { background: var(--yellow); border-color: var(--yellow); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { padding: 10px 16px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; font-weight: 600; }
.chips .more { background: var(--yellow); }

.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flow span { padding: 12px 16px; border-radius: 12px; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 15px; }
.flow span:nth-child(3) { background: var(--yellow); color: var(--ink); }
.flow i { width: 18px; height: 2px; background: var(--ink); position: relative; }
.flow i::after { content: ''; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 6px solid var(--ink); border-right: 0; }

/* Roles */
.roles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.role { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.role h3 { font-size: 19px; margin-bottom: 8px; }
.role p { font-size: 15px; color: var(--ink-2); }

/* Origen */
.origin-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .origin-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.origin h2 { margin-bottom: 0; }
.origin-copy { display: grid; gap: 18px; font-size: 19px; color: #e4e0d7; }

/* Oferta */
.offer { background: var(--soft); }
.offer-card {
  background: #fff; border: 2px solid var(--ink); border-radius: 26px; padding: 32px 22px;
  box-shadow: 8px 8px 0 var(--yellow), 8px 8px 0 2px var(--ink); max-width: 820px;
}
@media (min-width: 720px) { .offer-card { padding: 52px; } }
.offer-card h2 { margin-bottom: 24px; }
.offer-steps { margin: 0 0 8px; padding-left: 22px; display: grid; gap: 12px; font-size: 18px; }
.offer-steps li::marker { font: 700 16px var(--mono); }
.offer-card .ticks { margin: 24px 0 32px; }

/* Preguntas */
details { border-top: 1px solid var(--line); padding: 18px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font: 700 22px var(--mono); line-height: 1; }
details[open] summary::after { content: '−'; }
details p { margin-top: 12px; color: var(--ink-2); max-width: 64ch; }

/* Cierre */
.final { background: var(--yellow); padding: 72px 0; border-top: 2px solid var(--ink); }
.final-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.final h2 { margin: 0; max-width: none; }

/* Pie */
.site-footer { background: var(--ink); color: #bdb8ad; padding: 40px 0 96px; font-size: 15px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-row img { height: 32px; width: auto; }
.small { font-size: 13px; }

/* Botón flotante de WhatsApp (celular) */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 30;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
}
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
@media (min-width: 960px) { .wa-float { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
