/* Marca Concierge «Niveles» v1: azul marino, hueso, crema y dorado; Newsreader para títulos e Inter para el texto. */
@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-latin.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-italic-latin.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --navy: #15233b;
  --navy-2: #24344f;
  --bone: #faf8f3;
  --cream: #f2ebdd;
  --cream-2: #e9e0cd;
  --gold: #c9a24b;
  --gold-dark: #b08a37;
  --gold-ink: #8c6b20; /* dorado oscuro: el único que se lee bien como texto sobre hueso */
  --ink: #15233b;
  --ink-2: #3b4658;
  --muted: #646b78;
  --line: #ddd5c4;
  --paper: #fffefb;
  --ok-bg: #e8f1e8;
  --ok-ink: #24572f;
  --error: #a3341f;
  --display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --text: 'Inter', 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% 30%, rgba(21, 35, 59, 0.05), transparent 70%),
    radial-gradient(ellipse 40% 30% at 88% 30%, rgba(201, 162, 75, 0.08), transparent 70%),
    var(--bone);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; letter-spacing: -0.015em; }
h1 em { font-style: italic; color: var(--gold-ink); }
p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

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

/* Cinta de arriba: el símbolo y para quién es */
.topline { display: flex; justify-content: center; padding: 14px var(--gutter); border-bottom: 1px solid var(--line); }
.pill {
  display: inline-flex; align-items: center; gap: 11px; padding: 6px 18px 6px 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 99px;
  font: 500 14px/1.3 var(--text); color: var(--ink-2); box-shadow: 0 6px 16px -10px rgba(21, 35, 59, 0.3);
}
.pill b { color: var(--ink); font-weight: 700; }
.badge { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--bone); border: 1px solid var(--line); display: grid; place-items: center; }
.badge img { width: 22px; height: auto; }
@media (max-width: 420px) {
  .pill { gap: 9px; padding-right: 14px; font-size: 13px; }
}

/* 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(--gold-ink); }
.hero h1 { font-size: clamp(29px, 7.2vw, 46px); line-height: 1.04; margin: 10px auto 0; max-width: 860px; text-wrap: balance; }
.lead { font-size: 16.5px; color: var(--ink-2); margin: 14px auto 0; max-width: 600px; text-wrap: pretty; }

/* Tres capturas reales de la app: el tablero atrás y dos chats del vecino adelante */
.showcase { --s: 0.37; position: relative; height: calc(580px * var(--s) + 34px); margin: 22px auto 0; }
.stage { position: absolute; left: 50%; top: 0; width: 900px; height: 580px; transform: translateX(-50%) scale(var(--s)); transform-origin: top center; }
.shot { position: absolute; overflow: hidden; background: var(--bone); box-shadow: 0 34px 60px -26px rgba(21, 35, 59, 0.5); }
.shot img { width: 100%; height: auto; }
.desk { left: 50%; top: 0; width: 640px; transform: translateX(-50%); border-radius: 14px; border: 1px solid rgba(21, 35, 59, 0.14); }
.phone { top: 70px; width: 236px; border-radius: 30px; border: 6px solid var(--navy); z-index: 2; }
.phone-left { left: -18px; transform: rotate(-10deg); }
.phone-right { right: -18px; transform: rotate(10deg); }
.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: var(--paper);
  border: 1px solid var(--line); border-radius: 20px; padding: 18px 16px 22px;
  box-shadow: 0 30px 60px -36px rgba(21, 35, 59, 0.45); 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%; color: var(--navy); }
.icon-btn:hover { background: var(--cream); }
.progress { display: flex; gap: 5px; flex: 1; }
.progress span { flex: 1; height: 5px; border-radius: 99px; background: var(--cream-2); transition: background-color 0.25s ease; }
.progress span.done { background: var(--navy); }
.progress span.current { background: var(--gold); }
.step-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }

.step, .booking { display: flex; flex-direction: column; }
.q { font: 500 clamp(24px, 6.4vw, 30px)/1.12 var(--display); letter-spacing: -0.015em; 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: 54px; padding: 12px 18px; border: 1px solid #d8d0bf; 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(21, 35, 59, 0.03), 0 6px 14px -9px rgba(21, 35, 59, 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: #a99f8a; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(21, 35, 59, 0.03), 0 10px 20px -10px rgba(21, 35, 59, 0.32); }
.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: #8f8878; transition: transform 0.15s ease, color 0.15s ease; }
.opt:hover::after { transform: translateX(3px); color: var(--navy); }
.opt.multi::after { content: ''; width: 22px; height: 22px; border: 1.5px solid #b5ab96; border-radius: 6px; }
.opt.is-checked, .opt:has(input:checked) { border-color: var(--navy); background: var(--cream); box-shadow: inset 0 0 0 1px var(--navy), 0 10px 20px -12px rgba(21, 35, 59, 0.4); }
.opt.is-checked::after, .opt:has(input:checked)::after { color: var(--navy); }
.opt.multi.is-checked::after, .opt.multi:has(input:checked)::after { border-color: var(--navy); background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23c9a24b' 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(--gold); outline-offset: 2px; }

.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input {
  width: 100%; min-height: 54px; padding: 14px 16px; font: 400 17px/1.4 var(--text); color: var(--ink);
  background: #fff; border: 1px solid #d8d0bf; border-radius: var(--radius);
  box-shadow: inset 0 1px 2px rgba(21, 35, 59, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder { color: #9a9384; }
.field input:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.45); }
.field .help { font-size: 13px; color: var(--muted); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.legal { font-size: 13px; color: var(--muted); text-align: center; }

.error { color: var(--error); font-weight: 600; 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: 700 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(2px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-dark { background: var(--navy); color: var(--bone); box-shadow: 0 12px 22px -14px rgba(21, 35, 59, 0.8); }
.btn-dark:hover { background: #0e182a; }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 12px 22px -14px rgba(140, 107, 32, 0.9); }
.btn-gold:hover { background: var(--gold-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 #e3dccd; 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.62; }
  .form-card { padding: 22px 28px 26px; }
}
@media (min-width: 960px) {
  .hero { padding-top: 34px; }
  .showcase { --s: 0.8; margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .opt, .opt::after, .progress span, .field input { transition: none; }
  .opt:hover { 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: 64px; }
.legal-page .brand img { width: 170px; height: auto; }
.legal-page h1 { font-size: clamp(36px, 8vw, 54px); line-height: 1.02; margin-top: 10px; }
.legal-page h2 { font-size: 24px; margin-top: 32px; }
.legal-page p { margin-top: 10px; color: var(--ink-2); max-width: 66ch; }
.legal-page p.eyebrow { color: var(--gold-ink); margin-top: 16px; }
.legal-page a { font-weight: 700; color: var(--ink); }
.legal-page .updated { font-size: 14px; color: var(--muted); }
