/* =========================
   SECCIÓ RESERVES
   (mobile-first)
========================= */
.reserva {
  padding: 4rem clamp(1rem, 4vw, 1.5rem);
  background: var(--color-dark);
  color: var(--color-light);
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.reserva-container {
  max-width: min(var(--container-width), 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
}

.reserva-info {
  max-width: 100%;
  min-width: 0;
}

.reserva-info h2 {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.reserva-info > p {
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
  line-height: 1.5;
  opacity: 0.9;
}

.info-item {
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.info-item a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: var(--transition);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.info-item a:hover {
  color: var(--color-light);
  text-decoration: underline;
}

.info-item-icon {
  font-size: 1.2rem;
  color: var(--color-secondary);
  flex-shrink: 0;
}

.info-item a {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Horari */
.horari {
  margin-top: 2rem;
  padding: 1.25rem 1.25rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 230, 211, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  text-align: left;
}

.horari h3 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--color-secondary);
  letter-spacing: 0.04em;
}

.horari p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  opacity: 0.92;
}

.reserva-form {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Targeta booking (formulari) */
.booking-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 230, 211, 0.1);
  border-radius: 1.25rem;
  padding: 1.5rem clamp(0.85rem, 3vw, 1.25rem) 1.75rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.booking-card form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.booking-field label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
  opacity: 0.85;
}

.booking-field input,
.booking-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 2px solid rgba(245, 230, 211, 0.15);
  background: rgba(0, 0, 0, 0.25);
  color: var(--color-light);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.booking-field input::placeholder,
.booking-field textarea::placeholder {
  color: rgba(245, 230, 211, 0.45);
}

.booking-field input:focus,
.booking-field textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 3px rgba(242, 169, 0, 0.15);
}

.booking-field textarea {
  resize: vertical;
  min-height: 88px;
}

/* Passos */
.booking-step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-top: 1px solid rgba(245, 230, 211, 0.08);
}

.booking-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-light);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(184, 50, 39, 0.35);
}

.booking-step-body {
  flex: 1;
  min-width: 0;
}

.booking-step-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
  max-width: 100%;
  overflow-wrap: break-word;
}

.booking-hint {
  font-family: var(--font-body);
  font-size: 0.8rem;
  opacity: 0.65;
  margin-bottom: 0.65rem;
}

/* Selector persones */
.people-selector {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(245, 230, 211, 0.2);
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.people-selector.is-active {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(242, 169, 0, 0.15), 0 4px 14px rgba(0, 0, 0, 0.2);
}

.people-btn {
  width: 3rem;
  height: 3rem;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-light);
  font-size: 1.35rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.people-btn:hover:not(:disabled) {
  background: var(--color-secondary);
  color: var(--color-dark);
}

.people-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.people-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.people-count {
  min-width: 2.75rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
}

/* Dates horitzontal (scroll només dins el contenidor; no desborda el body) */
.date-scroll-wrap {
  margin: 0;
  padding: 0.25rem 0;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.date-scroll {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}

.date-scroll::-webkit-scrollbar {
  height: 4px;
}

.date-scroll::-webkit-scrollbar-thumb {
  background: rgba(245, 230, 211, 0.25);
  border-radius: 4px;
}

.date-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding: 0.65rem 0.5rem;
  border-radius: 14px;
  border: 2px solid rgba(245, 230, 211, 0.15);
  background: rgba(0, 0, 0, 0.25);
  color: var(--color-light);
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.date-chip:hover {
  border-color: var(--color-secondary);
  background: rgba(242, 169, 0, 0.08);
  transform: translateY(-2px);
}

.date-chip.is-selected {
  border-color: var(--color-secondary);
  background: rgba(242, 169, 0, 0.18);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.date-chip-weekday {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

.date-chip-day {
  font-family: var(--font-title);
  font-size: 1.5rem;
  line-height: 1.1;
  margin: 0.15rem 0;
}

.date-chip-month {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Grups d’hora */
.time-group {
  margin-bottom: 1.25rem;
}

.time-group:last-child {
  margin-bottom: 0;
}

.time-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.time-group-head h5 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.time-group-range {
  font-family: var(--font-body);
  font-size: 0.8rem;
  opacity: 0.65;
}

.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 100%;
}

.time-slot {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 2px solid rgba(245, 230, 211, 0.18);
  background: rgba(0, 0, 0, 0.2);
  color: var(--color-light);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease,
    transform 0.15s ease, box-shadow 0.2s ease;
}

.time-slot:hover {
  border-color: var(--color-secondary);
  background: rgba(242, 169, 0, 0.1);
  transform: translateY(-1px);
}

.time-slot.is-selected {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-light);
  box-shadow: 0 4px 14px rgba(184, 50, 39, 0.45);
}

/* Error + submit */
.form-error {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #ffb4a8;
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(184, 50, 39, 0.2);
  border: 1px solid rgba(184, 50, 39, 0.45);
}

.booking-submit {
  width: 100%;
  margin-top: 0.25rem;
  padding: 1.05rem 1.5rem;
  border-radius: 999px;
  border: none;
  background: var(--color-primary);
  color: var(--color-light);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(184, 50, 39, 0.35);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.booking-submit:hover {
  background: var(--color-secondary);
  color: var(--color-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(242, 169, 0, 0.25);
}

.booking-submit:active {
  transform: translateY(0);
}

.booking-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Desktop */
@media (min-width: 768px) {
  .reserva-container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
  }

  .reserva-info {
    width: 42%;
    max-width: 400px;
  }

  .reserva-form {
    width: 55%;
    flex: 1;
    max-width: 560px;
  }

  .reserva-info h2 {
    font-size: 2.4rem;
  }

  .booking-card {
    padding: 1.75rem 1.75rem 2rem;
  }
}
