/* ===========================================================
   LORENZZA — reservas.html
   Adaptado de Documents\_plantillas\reservas-calendario\reservas-form.css,
   repintado con los tokens reales de Lorenzza (var(--wine)/--gold/--ink/
   --font-display en vez de los genéricos var(--color-x, fallback) de la
   plantilla). Vive dentro de .menu-section, que ahora tiene fondo claro
   (igual que menu.html) — el texto suelto usa var(--ink)/var(--ink-soft),
   y las tarjetas (calendario, horarios, resumen, chips) son superficies
   var(--surface) apenas un poco más claras que el fondo, para diferenciarse.
   =========================================================== */

.reservas-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .reservas-layout { grid-template-columns: 1fr; }
}

.form-step { margin-bottom: 2.8rem; }
.form-step h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}
.step-hint { color: var(--ink-soft); font-size: 0.88rem; margin: 0 0 1rem; }
.field-error { color: var(--error, #e2685a); font-size: 0.78rem; margin-top: 0.5rem; min-height: 1em; }

/* ---- Elige tu sede ---- */
.sede-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
.sede-pick[hidden] { display: none; }
.sede-pick-option {
  background: var(--surface);
  border: 2px solid rgba(28, 23, 18, 0.12);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.sede-pick-option:hover { border-color: var(--gold); }
.sede-pick-option.is-active { border-color: var(--gold); background: rgba(183, 145, 58, 0.14); }

/* ---- Fecha y hora ---- */
.datetime-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 720px) { .datetime-grid { grid-template-columns: 1fr; } }

.calendar {
  background: var(--surface);
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.calendar-head button {
  background: rgba(183, 145, 58, 0.16);
  color: var(--ink);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.calendar-head button:hover { background: var(--gold); }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.calendar-weekdays span { font-size: 0.72rem; color: var(--ink-soft); font-weight: 700; padding-bottom: 0.5rem; }
.calendar-days button {
  aspect-ratio: 1;
  border: none;
  background: none;
  border-radius: 50%;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.calendar-days button:disabled { color: rgba(28, 23, 18, 0.25); cursor: default; }
.calendar-days button:not(:disabled):hover { background: rgba(183, 145, 58, 0.18); }
.calendar-days button.is-selected { background: var(--gold); color: var(--ink); }
.calendar-days span.empty { visibility: hidden; }

.time-picker { display: flex; flex-direction: column; }
.time-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; align-content: start; }
@media (max-width: 380px) { .time-slots { grid-template-columns: repeat(2, 1fr); } }
.time-slot {
  background: var(--surface);
  border: 1px solid rgba(28, 23, 18, 0.16);
  border-radius: 6px;
  padding: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}
.time-slot:hover { border-color: var(--gold); }
.time-slot.is-selected { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ---- Resumen ---- */
.reservas-summary {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  background: var(--surface);
  border-radius: 10px;
  padding: 1.6rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.reservas-summary h3 { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); margin: 0 0 1.25rem; }
.reservas-summary dl { margin: 0 0 1.5rem; }
.reservas-summary dl > div { display: flex; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px dashed var(--line); font-size: 0.9rem; }
.reservas-summary dl > div:last-child { border-bottom: none; }
.reservas-summary dt { color: var(--ink-soft); }
.reservas-summary dd { font-weight: 700; color: var(--ink); text-align: right; margin: 0; }
.btn-block { display: flex; width: 100%; }

/* ---- Campos, chips y stepper (loose sobre el fondo claro de .menu-section) ---- */
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-family: var(--font-sans); font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 0.5rem; }
.field input, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(28, 23, 18, 0.14);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.94rem;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(183, 145, 58, 0.22);
}
.field .error-msg { display: none; color: var(--error, #e2685a); font-size: 0.78rem; margin-top: 0.35rem; }
.field.has-error input { border-color: var(--error, #e2685a); }
.field.has-error .error-msg { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.chip-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(28, 23, 18, 0.14);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.chip:hover { border-color: var(--gold); }
.chip.is-active { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(217, 190, 124, 0.4);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}
.stepper button { width: 38px; height: 38px; background: transparent; border: none; color: var(--ink); font-size: 1.1rem; cursor: pointer; transition: background 0.2s var(--ease); }
.stepper button:hover { background: rgba(183, 145, 58, 0.2); }
.stepper span { width: 34px; text-align: center; font-family: var(--font-sans); font-weight: 700; color: var(--ink); display: inline-block; }
