/* =============================================================
   PÁGINA DE RESERVAS — Calendario + horarios + zona + formulario
   Capricho del Mar by Z
============================================================= */

body.inner-page { background: var(--c-deep-2); }

.book-page {
  padding-top: 80px;
  background: var(--c-deep-2);
  min-height: 100vh;
}

/* ── Cabecera ────────────────────────────────────────────────── */
.book-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(3rem, 7vh, 5.5rem) var(--sp-side) clamp(1.5rem, 3vh, 2.5rem);
}
.book-eyebrow {
  font-size: var(--sz-label);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 1rem;
}
.book-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--c-white);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.book-title strong { font-weight: 700; }
.book-sub {
  font-size: var(--sz-body);
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  max-width: 46ch;
  margin: 0 auto;
}

/* ── Rejilla principal ───────────────────────────────────────── */
.book-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vh, 3rem) var(--sp-side) clamp(4rem, 8vh, 7rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

/* ── Bloques de configuración ────────────────────────────────── */
.book-block { margin-bottom: clamp(1.75rem, 4vh, 2.75rem); }
.book-block:last-child { margin-bottom: 0; }

.book-block-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--sz-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 1rem;
}
.book-block-label svg {
  width: 16px; height: 16px;
  stroke: var(--c-gold); fill: none; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

/* ── Calendario ──────────────────────────────────────────────── */
.cal {
  border: 1px solid var(--c-border-gold);
  border-radius: 4px;
  padding: clamp(1rem, 2vw, 1.5rem);
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.cal-month {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--c-white);
  letter-spacing: 0.01em;
}
.cal-nav {
  width: 34px; height: 34px;
  border: 1px solid var(--c-border-gold);
  border-radius: 50%;
  background: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-fast);
}
.cal-nav:hover:not(:disabled) {
  border-color: var(--c-gold);
  color: var(--c-gold);
}
.cal-nav:disabled { opacity: 0.2; cursor: default; }
.cal-nav svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}
.cal-weekday {
  text-align: center;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding-bottom: 0.4rem;
}
.cal-day {
  aspect-ratio: 1 / 1;
  border: none;
  background: none;
  border-radius: 8px;
  color: rgba(255,255,255,0.78);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.cal-day:hover:not(:disabled):not(.cal-day--selected) {
  background: rgba(201,169,110,0.12);
  color: var(--c-white);
}
.cal-day--empty { visibility: hidden; }
.cal-day:disabled {
  color: rgba(255,255,255,0.16);
  cursor: default;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.cal-day--today { box-shadow: inset 0 0 0 1px rgba(201,169,110,0.5); }
.cal-day--selected {
  background: var(--c-gold);
  color: var(--c-deep-2);
  font-weight: 600;
}
.cal-legend {
  margin-top: 0.9rem;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
  letter-spacing: 0.02em;
}

/* ── Horarios ────────────────────────────────────────────────── */
.slots-empty {
  border: 1px dashed var(--c-border-gold);
  border-radius: 4px;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
}
.slot-group { margin-bottom: 1rem; }
.slot-group:last-child { margin-bottom: 0; }
.slot-group-title {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.6rem;
}
.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.slot {
  border: 1px solid var(--c-border-gold);
  border-radius: 2rem;
  background: rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.7);
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--dur-fast);
}
.slot:hover:not(.slot--active) {
  border-color: var(--c-gold);
  color: var(--c-white);
}
.slot--active {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: var(--c-deep-2);
  font-weight: 600;
}

/* ── Comensales ──────────────────────────────────────────────── */
.guests {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.guest-btn {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--c-border-gold);
  border-radius: 50%;
  background: none;
  color: var(--c-gold);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-fast);
}
.guest-btn:hover:not(:disabled) { background: rgba(201,169,110,0.12); }
.guest-btn:disabled { opacity: 0.25; cursor: default; }
.guest-val {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--c-white);
  min-width: 2ch;
  text-align: center;
}
.guest-unit {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
}

/* ── Selector de zona — segmentado en dos mitades ─────────────── */
.zone-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--c-border-gold);
  border-radius: 999px;
  overflow: hidden;
}
.zone-seg { position: relative; cursor: pointer; }
.zone-seg input { position: absolute; opacity: 0; pointer-events: none; }
.zone-seg-label {
  display: block;
  text-align: center;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.72);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.zone-seg:first-child .zone-seg-label {
  border-right: 1px solid var(--c-border-gold);
}
.zone-seg:hover .zone-seg-label { color: var(--c-white); }
.zone-seg input:checked + .zone-seg-label {
  background: var(--c-gold);
  color: var(--c-deep-2);
  font-weight: 500;
}
.zone-seg input:focus-visible + .zone-seg-label {
  box-shadow: inset 0 0 0 2px rgba(201,169,110,0.45);
}

/* ── Tarjeta del formulario ──────────────────────────────────── */
.book-form-card {
  border: 1px solid var(--c-border-gold);
  border-radius: 4px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  position: sticky;
  top: 100px;
}
.book-form-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--c-white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

/* Resumen de la selección */
.book-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  background: rgba(201,169,110,0.05);
}
.book-summary-item {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
}
.book-summary-item strong {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 0.15rem;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .book-grid { grid-template-columns: 1fr; }
  .book-form-card { position: static; }
}
@media (max-width: 640px) {
  .book-form-card { padding: 1.5rem; }
  .cal-day { font-size: 0.8rem; }
}

/* Footer oscuro */
.inner-page footer { background: rgba(13,32,53,0.98) !important; }
