@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage-grotesque-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --cream: #f4f2e8;
  --cream-2: #ebe7d9;
  --paper: #fbfaf5;
  --ink: #141414;
  --ink-2: #3d3b36;
  --muted: #6b675d;
  --line: #d9d4c6;
  --red: #d1320e;
  --red-dark: #b02a0b;
  --red-soft: #fbe9e3;
  --ok-bg: #e9f3e6;
  --ok-ink: #245c2e;
  --display: 'Bricolage Grotesque', 'Arial Black', system-ui, sans-serif;
  --text: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 12px;
  --gutter: 16px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 17px/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 40% 30% at 12% 28%, rgba(20, 20, 20, 0.05), transparent 70%),
    radial-gradient(ellipse 40% 30% at 88% 28%, rgba(20, 20, 20, 0.05), transparent 70%),
    var(--cream);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.03em; }
h1 em { font-style: normal; color: var(--red); }
p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* Cinta de arriba: el logo y una foto por rubro (farmacia, colegio, clínica; de Unsplash) */
.topline { display: flex; justify-content: center; padding: 14px var(--gutter); border-bottom: 1px solid var(--line); }
.pill {
  display: inline-flex; align-items: center; gap: 12px; padding: 7px 18px 7px 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 99px;
  font: 600 14px/1.3 var(--text); box-shadow: 0 6px 16px -10px rgba(20, 20, 20, 0.3);
}
.faces { display: flex; flex: none; }
.face {
  width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--cream-2) center/cover no-repeat;
  border: 2px solid #fff; display: grid; place-items: center; font: 800 13px/1 var(--display); color: var(--ink-2);
}
.face + .face { margin-left: -10px; }
.face img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 420px) {
  .pill { gap: 9px; padding-right: 14px; font-size: 13px; }
  .face { width: 30px; height: 30px; }
  .face + .face { margin-left: -11px; }
}

/* Título */
.hero { text-align: center; padding: 26px 0 6px; }
.eyebrow { font: 700 12px/1.3 var(--text); text-transform: uppercase; letter-spacing: 0.1em; color: var(--red); }
.hero h1 { font-size: clamp(30px, 7.4vw, 50px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; margin: 10px auto 0; max-width: 900px; text-wrap: balance; }
.lead { font-size: 16px; color: var(--ink-2); margin-top: 14px; }

/* Lo que te llevás: tres pantallas de ejemplo, inclinadas */
.showcase { --s: 0.38; position: relative; height: calc(500px * var(--s) + 34px); margin: 18px auto 0; }
.stage { position: absolute; left: 50%; top: 0; width: 900px; height: 500px; transform: translateX(-50%) scale(var(--s)); transform-origin: top center; }
.mock {
  position: absolute; background: #1a1a19; color: #ece8dc; border-radius: 14px; padding: 18px 20px;
  border: 1px solid #2c2b28; box-shadow: 0 30px 60px -24px rgba(20, 20, 20, 0.55); font-size: 13px;
}
.mock-left { left: 30px; top: 70px; width: 300px; height: 400px; transform: rotate(-8deg); }
.mock-right { right: 30px; top: 70px; width: 300px; height: 400px; transform: rotate(7deg); }
.mock-center { left: 50%; top: 0; width: 350px; height: 470px; transform: translateX(-50%); z-index: 2; background: #161615; }
.crumb { font-size: 10.5px; color: #8d887b; }
.crumb b { color: #ece8dc; margin-right: 4px; }
.mock-title { font: 700 17px/1.2 var(--display); margin-top: 10px; letter-spacing: -0.01em; }
.mock-title.big { font-size: 20px; }
.mock-sub { font-size: 11px; color: #8d887b; margin-top: 4px; }
.mock-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.1em; color: #8d887b; margin-top: 14px; }
.rows { margin-top: 12px; display: grid; gap: 8px; }
.rows li { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid #2c2b28; border-radius: 9px; background: #1f1f1d; }
.rows i { width: 22px; height: 22px; border-radius: 6px; background: #2e2c28; flex: none; }
.rows span, .checks span { display: grid; font-size: 10.5px; color: #8d887b; line-height: 1.3; }
.rows b, .checks b { color: #ece8dc; font-size: 12px; font-weight: 600; }
.ring-box { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding: 14px; border: 1px solid #2c2b28; border-radius: 10px; background: #1d1d1b; }
.ring {
  width: 74px; height: 74px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--red) 0 60%, #34322d 60% 100%);
}
.ring span { width: 56px; height: 56px; border-radius: 50%; background: #1d1d1b; display: grid; place-content: center; text-align: center; font: 700 20px/1 var(--display); }
.ring small { font: 400 8px/1.2 var(--text); color: #8d887b; }
.legend { display: grid; gap: 5px; font-size: 11px; color: #8d887b; }
.legend b { color: #ece8dc; margin-left: 4px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #c9c2b0; margin-right: 6px; }
.dot.red { background: var(--red); }
.dot.dim { background: #4a4741; }
.prio { margin-top: 8px; display: grid; gap: 2px; }
.prio li { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px; border-radius: 7px; font-size: 12px; }
.prio li.hl { background: #26241f; }
.chip { font-style: normal; font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: 5px; background: #34322d; color: #d9d4c6; }
.chip.red { background: rgba(209, 50, 14, 0.22); color: #ff8c6b; }
.chip.dim { color: #8d887b; }
.note { margin-top: 12px; padding: 9px 10px; border-left: 3px solid var(--red); background: #24221e; border-radius: 6px; font-size: 11px; color: #d9d4c6; }
.checks { margin-top: 8px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks i { width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid #5b5850; flex: none; margin-top: 2px; }
.checks li.done i { background: var(--red); border-color: var(--red); }
.checks li.done b { text-decoration: line-through; color: #8d887b; }
.showcase figcaption { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 12px; color: var(--muted); }

/* El formulario, en su tarjeta */
.form-card {
  position: relative; z-index: 3; max-width: 580px; margin: 8px auto 0; background: #fffdf8;
  border: 1.5px solid var(--line); border-radius: 20px; padding: 18px 16px 22px;
  box-shadow: 0 30px 60px -36px rgba(20, 20, 20, 0.4); scroll-margin-top: 12px;
}
.card-top { display: flex; align-items: center; gap: 12px; min-height: 36px; }
.icon-btn { width: 36px; height: 36px; flex: none; border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; border-radius: 50%; }
.icon-btn:hover { background: var(--cream-2); }
.progress { display: flex; gap: 5px; flex: 1; }
.progress span { flex: 1; height: 6px; border-radius: 99px; background: var(--cream-2); box-shadow: inset 0 1px 2px rgba(20, 20, 20, 0.12); transition: background-color 0.25s ease; }
.progress span.done { background: var(--ink); }
.progress span.current { background: var(--red); box-shadow: 0 2px 8px -2px rgba(209, 50, 14, 0.6); }
.step-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }

.step, .booking { display: flex; flex-direction: column; }
.q { font: 700 clamp(22px, 6vw, 27px)/1.15 var(--display); letter-spacing: -0.03em; text-align: center; margin: 18px 0 4px; outline: none; text-wrap: balance; }
.hint { font-size: 14px; color: var(--muted); text-align: center; }
.hint:empty { display: none; }
#step-body { margin-top: 16px; display: grid; gap: 9px; }

.opt {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 12px 18px; border: 1.5px solid #d6d0c1; background: #fff; border-radius: var(--radius);
  font-size: 16.5px; font-weight: 500; line-height: 1.3; cursor: pointer;
  box-shadow: 0 1px 0 rgba(20, 20, 20, 0.04), 0 6px 14px -8px rgba(20, 20, 20, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.opt:hover { border-color: #a9a291; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(20, 20, 20, 0.04), 0 10px 20px -10px rgba(20, 20, 20, 0.35); }
.opt:active { transform: translateY(0); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
/* Una sola opción: flecha a la derecha. Varias: casilla. */
.opt::after { content: '→'; flex: none; font-size: 20px; color: #8d887b; transition: transform 0.15s ease, color 0.15s ease; }
.opt:hover::after { transform: translateX(3px); color: var(--ink); }
.opt.multi::after { content: ''; width: 22px; height: 22px; border: 1.5px solid #b7b09f; border-radius: 6px; }
.opt.is-checked, .opt:has(input:checked) { border-color: var(--red); background: var(--red-soft); box-shadow: 4px 4px 0 var(--red); transform: translate(-2px, -2px); }
.opt.is-checked::after, .opt:has(input:checked)::after { color: var(--red); }
.opt.multi.is-checked::after, .opt.multi:has(input:checked)::after { border-color: var(--red); background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }
.opt:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }

.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 15px; }
.field input, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px; font: 400 17px/1.4 var(--text); color: var(--ink);
  background: #fff; border: 1.5px solid #d6d0c1; border-radius: var(--radius);
  box-shadow: inset 0 1px 2px rgba(20, 20, 20, 0.06), 0 6px 14px -10px rgba(20, 20, 20, 0.28);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #9b9586; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 4px 4px 0 var(--ink); }
.field .help { font-size: 13px; color: var(--muted); }
.counter { font-size: 13px; color: var(--muted); text-align: right; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.legal { font-size: 13px; color: var(--muted); text-align: center; }

.error { color: var(--red-dark); font-weight: 700; font-size: 15px; text-align: center; margin: 12px 0 8px; }
.error:empty { margin: 6px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 14px 24px; border: 0; border-radius: var(--radius);
  font: 800 17px/1.2 var(--text); text-decoration: none; cursor: pointer; width: 100%;
  transition: transform 0.12s ease, background-color 0.15s ease;
}
.btn:active { transform: translateY(3px); box-shadow: none; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 5px 0 #000, 0 12px 20px -12px rgba(20, 20, 20, 0.6); }
.btn-dark:hover { background: #000; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 5px 0 var(--red-dark); }
.btn-red:hover { background: var(--red-dark); }
/* En las preguntas de una sola opción alcanza con tocar: el botón queda solo para el teclado. */
.btn.only-keyboard { position: absolute; left: -10000px; }
.btn.only-keyboard:focus { position: static; }

.ok { background: var(--ok-bg); color: var(--ok-ink); border-radius: var(--radius); padding: 11px 14px; font-weight: 600; text-align: center; margin-top: 14px; }
.calendly { margin-top: 14px; min-height: 690px; background: #fff; border: 1px solid #e0dccf; border-radius: 12px; overflow: hidden; }
.micro { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }
.wa-small { margin-top: 14px; text-align: center; font-size: 15px; color: var(--ink-2); }
.wa-link { color: var(--ink); font-weight: 700; }

.foot { text-align: center; font-size: 13px; color: var(--muted); padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom)); }
.foot a { color: var(--muted); }
.foot .wa-link { color: var(--ink); }

@media (min-width: 640px) {
  .showcase { --s: 0.6; }
  .form-card { padding: 22px 28px 26px; }
}
@media (min-width: 960px) {
  .hero { padding-top: 44px; }
  .showcase { --s: 0.72; margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .opt, .opt::after, .progress span, .field input, .field textarea { transition: none; }
  .opt:hover, .opt.is-checked, .opt:has(input:checked) { transform: none; }
}

/* Página de privacidad */
.legal-page { max-width: 760px; margin: 0 auto; padding: 8px var(--gutter) 48px; }
.legal-page .bar { display: flex; align-items: center; min-height: 56px; }
.legal-page .brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 800 18px/1 var(--display); letter-spacing: -0.02em; }
.legal-page .brand img { border-radius: 7px; }
.legal-page h1 { font-size: clamp(34px, 8vw, 52px); line-height: 1.02; margin-top: 10px; }
.legal-page h2 { font-size: 22px; margin-top: 32px; }
.legal-page p { margin-top: 10px; color: var(--ink-2); max-width: 66ch; }
.legal-page p.eyebrow { color: var(--red); margin-top: 16px; }
.legal-page a { font-weight: 700; color: var(--ink); }
.legal-page .updated { font-size: 14px; color: var(--muted); }

/* Pantallas de ejemplo: agente, panel y tienda */
.chat { display: grid; gap: 7px; margin-top: 12px; }
.msg { max-width: 82%; padding: 7px 10px; border-radius: 10px; font-size: 11px; line-height: 1.35; }
.msg.in { background: #2a2925; justify-self: start; border-bottom-left-radius: 3px; }
.msg.out { background: rgba(209, 50, 14, 0.24); color: #ffd9cd; justify-self: end; border-bottom-right-radius: 3px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.stats li { padding: 8px 10px; border: 1px solid #2c2b28; border-radius: 9px; background: #1f1f1d; font-size: 10px; color: #8d887b; line-height: 1.3; }
.stats b { display: block; font: 700 20px/1.1 var(--display); color: #ece8dc; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.kpis div { padding: 10px 12px; border: 1px solid #2c2b28; border-radius: 10px; background: #1d1d1b; display: grid; }
.kpis small { font-size: 10px; color: #8d887b; }
.kpis b { font: 700 24px/1.15 var(--display); }
.kpis em { font-style: normal; font-size: 10px; color: #8d887b; }
.kpis .warn b { color: #ff8c6b; }
.chip.green { background: rgba(84, 160, 96, 0.22); color: #9bd8a6; }
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.products div { display: grid; gap: 2px; padding: 8px; border: 1px solid #2c2b28; border-radius: 9px; background: #1f1f1d; }
.products i { height: 54px; border-radius: 6px; margin-bottom: 4px; }
.products .p1 { background: linear-gradient(135deg, #f3c26b, #d1320e); }
.products .p2 { background: linear-gradient(135deg, #f6d36b, #e98a2c); }
.products .p3 { background: linear-gradient(135deg, #cfe3e8, #7aa6b3); }
.products .p4 { background: linear-gradient(135deg, #e4e0d4, #9d978a); }
.products b { font-size: 11px; font-weight: 600; color: #ece8dc; }
.products small { font-size: 9.5px; color: #8d887b; }
.order { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 10px; border-left: 3px solid var(--red); background: #24221e; border-radius: 6px; }
.order span { display: grid; font-size: 10px; color: #8d887b; }
.order b { font-size: 11.5px; color: #ece8dc; font-weight: 600; }
