/* ═══════════════════════════════════════════
   BOOKING MODAL — Multi-step
═══════════════════════════════════════════ */
.booking-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.booking-overlay.active { display: flex; }

.booking-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,.18);
  position: relative;
}
.booking-modal__close {
  position: absolute;
  top: 16px; right: 18px;
  background: none; border: none;
  font-size: 1.4rem; cursor: pointer;
  color: #888; line-height: 1;
  z-index: 10;
}
.booking-modal__close:hover { color: #333; }

/* Progress bar */
.booking-progress {
  display: flex;
  align-items: center;
  padding: 24px 32px 0;
  gap: 0;
}
.booking-step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--gris-medium, #ddd);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 600;
  color: #aaa; background: #fff;
  flex-shrink: 0; transition: all .3s;
}
.booking-step-dot.active {
  border-color: var(--silencio, #2d4a3e);
  background: var(--silencio, #2d4a3e);
  color: #fff;
}
.booking-step-dot.done {
  border-color: var(--luz-tarde, #b5834a);
  background: var(--luz-tarde, #b5834a);
  color: #fff;
}
.booking-step-line {
  flex: 1; height: 2px;
  background: var(--gris-medium, #ddd);
  transition: background .3s;
}
.booking-step-line.done { background: var(--luz-tarde, #b5834a); }

/* Step labels */
.booking-step-labels {
  display: flex;
  justify-content: space-between;
  padding: 6px 20px 0;
  font-size: .72rem;
  color: #aaa;
  letter-spacing: .03em;
}
.booking-step-labels span.active { color: var(--silencio, #2d4a3e); font-weight: 600; }

/* Panel body */
.booking-panel {
  display: none;
  padding: 28px 32px 32px;
}
.booking-panel.active { display: block; }
.booking-panel h2 {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 1.6rem; font-weight: 400;
  color: var(--tierra, #2c2c2c);
  margin-bottom: 6px;
}
.booking-panel .subtitle {
  color: #888; font-size: .9rem;
  margin-bottom: 24px;
}

/* Service cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.service-card-sel {
  border: 2px solid var(--gris-medium, #ddd);
  border-radius: 14px;
  padding: 16px 14px;
  cursor: pointer;
  transition: all .25s;
  text-align: center;
}
.service-card-sel:hover {
  border-color: var(--silencio, #2d4a3e);
  background: #f7faf9;
}
.service-card-sel.selected {
  border-color: var(--silencio, #2d4a3e);
  background: var(--silencio, #2d4a3e);
  color: #fff;
}
.service-card-sel .svc-icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.service-card-sel .svc-name { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 4px; }
.service-card-sel .svc-price { font-size: .8rem; opacity: .75; }
.service-card-sel.selected .svc-price { opacity: .9; }

/* Calendar */
.mini-calendar { width: 100%; margin-bottom: 20px; }
.cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.cal-header button {
  background: none; border: 1px solid var(--gris-medium,#ddd);
  border-radius: 8px; padding: 4px 12px; cursor: pointer; font-size: .9rem;
}
.cal-header button:hover { background: #f5f5f5; }
.cal-header span { font-weight: 600; color: var(--tierra,#2c2c2c); }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day-label {
  text-align: center; font-size: .72rem;
  font-weight: 600; color: #aaa;
  text-transform: uppercase; padding: 4px 0;
}
.cal-day {
  text-align: center; padding: 8px 2px;
  border-radius: 8px; font-size: .88rem;
  cursor: pointer; transition: all .2s;
  border: 1px solid transparent;
}
.cal-day:empty { cursor: default; }
.cal-day.other-month { color: #ccc; }
.cal-day.today { border-color: var(--luz-tarde,#b5834a); color: var(--luz-tarde,#b5834a); font-weight: 600; }
.cal-day.selected { background: var(--silencio,#2d4a3e); color: #fff; font-weight: 600; }
.cal-day:not(:empty):not(.other-month):hover { background: #f0f5f2; }
.cal-day.past { color: #ccc; cursor: not-allowed; }

/* Time slots */
.time-slots {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px;
}
.time-slot {
  padding: 8px 16px;
  border: 1px solid var(--gris-medium,#ddd);
  border-radius: 100px; font-size: .85rem; cursor: pointer;
  transition: all .2s;
}
.time-slot:hover { border-color: var(--silencio,#2d4a3e); color: var(--silencio,#2d4a3e); }
.time-slot.selected { background: var(--silencio,#2d4a3e); border-color: var(--silencio,#2d4a3e); color: #fff; }
.time-slot.taken { opacity: .4; cursor: not-allowed; }

/* Form fields */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-row.full { grid-template-columns: 1fr; }
.form-field label { display: block; font-size: .8rem; font-weight: 600; color: #555; margin-bottom: 5px; }
.form-field input, .form-field select {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--gris-medium,#ddd);
  border-radius: 10px; font-size: .9rem;
  outline: none; transition: border-color .2s;
  font-family: inherit;
}
.form-field input:focus, .form-field select:focus { border-color: var(--silencio,#2d4a3e); }

/* Payment options */
.payment-summary {
  background: var(--gris-light,#f8f6f3);
  border-radius: 12px; padding: 16px 20px;
  margin-bottom: 20px;
}
.payment-summary .ps-row {
  display: flex; justify-content: space-between;
  font-size: .9rem; margin-bottom: 6px;
}
.payment-summary .ps-row:last-child { 
  font-weight: 700; font-size: 1rem; 
  border-top: 1px solid var(--gris-medium,#ddd);
  padding-top: 10px; margin-top: 4px;
  color: var(--silencio,#2d4a3e);
}
.payment-methods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.payment-method {
  border: 2px solid var(--gris-medium,#ddd);
  border-radius: 14px; padding: 14px 18px;
  cursor: pointer; display: flex; align-items: center; gap: 14px;
  transition: all .25s;
}
.payment-method:hover { border-color: var(--silencio,#2d4a3e); }
.payment-method.selected { border-color: var(--silencio,#2d4a3e); background: #f7faf9; }
.payment-method input[type=radio] { accent-color: var(--silencio,#2d4a3e); }
.payment-method .pm-logo { font-size: 1.5rem; }
.payment-method .pm-info strong { display: block; font-size: .9rem; }
.payment-method .pm-info span { font-size: .78rem; color: #888; }

/* Navigation buttons */
.booking-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px;
}
.btn-back {
  background: none; border: 1.5px solid var(--gris-medium,#ddd);
  border-radius: 100px; padding: 10px 24px;
  font-size: .9rem; cursor: pointer; transition: all .2s;
}
.btn-back:hover { border-color: var(--tierra,#2c2c2c); }
.btn-next, .btn-confirm {
  background: var(--silencio,#2d4a3e); color: #fff;
  border: none; border-radius: 100px;
  padding: 12px 32px; font-size: .95rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.btn-next:hover, .btn-confirm:hover { opacity: .88; transform: translateY(-1px); }
.btn-confirm { background: var(--luz-tarde,#b5834a); padding: 14px 40px; font-size: 1rem; }

/* Success screen */
.booking-success { text-align: center; padding: 48px 32px; }
.booking-success .success-icon { font-size: 3.5rem; margin-bottom: 16px; }
.booking-success h2 { font-family: var(--font-display,serif); font-size: 1.8rem; color: var(--silencio,#2d4a3e); margin-bottom: 10px; }
.booking-success p { color: #666; line-height: 1.7; margin-bottom: 24px; }

/* Stripe card element */
#stripe-card-element {
  border: 1.5px solid var(--gris-medium,#ddd);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
#mercadopago-form { margin-bottom: 12px; }

@media (max-width: 480px) {
  .booking-panel { padding: 20px 20px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .booking-progress { padding: 20px 20px 0; }
}
