/* Marca Del Pasillo (tomada del child theme de delpasillo.com: css/brand.css).
   Paleta oscura, naranja #FF6200, Space Grotesk. Para otro cliente, cambiar estas variables. */
@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/space-grotesk.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
:root {
  --orange: #FF6200;
  --orange-ink: #ffffff;
  --bg: #0C0C0C;
  --surface: #141414;
  --surface-2: #1C1C1C;
  --ink: #F5F3F0;
  --muted: #8f8f8f;
  --line: #2A2A2A;
  --danger: #ff6b5e;
  --focus: rgba(255, 98, 0, .45);
  --radius: 14px;      /* tarjetas */
  --radius-sm: 4px;    /* botones, como en el sitio */
  --font: 'Space Grotesk', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  font: 16px/1.5 var(--font);
  color: var(--ink);
  background: var(--bg);
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
h1 { font-size: 1.6rem; line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; margin: 10px 0 8px; }
p { margin: 0 0 12px; }
.lead { color: var(--muted); }
.fine { color: var(--muted); font-size: .8rem; margin-top: 20px; }
.tag { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); margin-top: 6px; }

/* ---------- encabezado ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  background: var(--bg); color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
}
.brand { display: flex; align-items: center; gap: 10px; max-width: 560px; margin: 0 auto; }
.logo { width: 28px; height: 28px; flex: none; display: block; }
.wordmark { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.wordmark .tld { color: var(--orange); }
.steps { display: flex; gap: 6px; list-style: none; max-width: 560px; margin: 12px auto 0; padding: 0; }
.steps li {
  flex: 1; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); padding-top: 7px; border-top: 2px solid var(--line);
}
.steps li.on { color: var(--ink); border-top-color: var(--orange); }
.steps[hidden] { display: none; }

/* ---------- pantallas ---------- */
main { max-width: 560px; margin: 0 auto; padding: 20px 16px; }
.screen[hidden] { display: none; }
.center { text-align: center; padding: 32px 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }

/* ---------- formularios ---------- */
form { display: grid; gap: 16px; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 8px; }
.field .req { color: var(--orange); }
input[type=text], input[type=email], select, textarea {
  width: 100%; font: inherit; padding: 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
input::placeholder, textarea::placeholder { color: #5f5f5f; }
input:focus, select:focus, textarea:focus { border-color: var(--orange); }
input:focus, select:focus, textarea:focus, .chip:focus-visible, .btn:focus-visible, .day:focus-visible, .toggle:focus-within {
  outline: 3px solid var(--focus); outline-offset: 1px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: .92rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 99px; padding: 8px 14px; cursor: pointer;
}
.chip.on { background: var(--orange); border-color: var(--orange); color: var(--orange-ink); font-weight: 600; }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.field[hidden] { display: none; }
.hint { color: var(--muted); font-size: .85rem; margin: -2px 0 8px; }
textarea { resize: vertical; min-height: 84px; }
.form { display: grid; gap: 20px; }
#screen-schedule .field { margin-bottom: 22px; }
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.day {
  font: inherit; display: grid; gap: 2px; justify-items: center; padding: 10px 4px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink);
}
.day .dow { font-size: .72rem; text-transform: capitalize; color: var(--muted); }
.day .dom { font-weight: 700; font-size: 1.1rem; }
.day.on { background: var(--orange); border-color: var(--orange); color: var(--orange-ink); }
.day.on .dow { color: var(--orange-ink); opacity: .9; }
.toggle { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; }
.toggle input { width: 20px; height: 20px; accent-color: var(--orange); flex: none; }
.field .msg { color: var(--danger); font-size: .82rem; margin-top: 4px; }

.review-line { padding: 10px 0; border-bottom: 1px solid var(--line); }
.review-line:last-child { border-bottom: 0; }
.review-line small { display: block; color: var(--muted); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 2px; }

/* ---------- barra de acciones ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  background: var(--bg); border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.bar[hidden] { display: none; }
.actions { max-width: 560px; margin: 0 auto; display: flex; gap: 10px; }
.btn {
  font: inherit; font-size: 1rem; font-weight: 700; border-radius: var(--radius-sm); padding: 14px 20px; border: 0; cursor: pointer;
  text-decoration: none; display: inline-block; text-align: center;
}
.btn.primary { background: var(--orange); color: var(--orange-ink); flex: 1; }
.btn.primary[disabled] { opacity: .4; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 500; }
.center .btn { margin-top: 10px; }
.btn[hidden] { display: none; }

.error { background: rgba(255, 107, 94, .1); border: 1px solid rgba(255, 107, 94, .35); color: var(--danger); border-radius: var(--radius-sm); padding: 10px 12px; margin-top: 12px; font-size: .9rem; }
.error[hidden] { display: none; }
.check { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; background: var(--orange); color: var(--orange-ink); font-size: 28px; font-weight: 700; }
.spinner { width: 34px; height: 34px; margin: 0 auto 12px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--orange); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
