*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #3366ff;
  --primary-light: #eef2ff;
  --green: #22c55e;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
}

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 15px; color: var(--gray-800); background: #f5f7ff; min-height: 100vh; }

/* HEADER */
.booking-header {
  background: white; border-bottom: 1px solid var(--gray-200);
  padding: 20px 24px; text-align: center;
}
.booking-header h1 { font-size: 1.5rem; font-weight: 700; }
.header-address { color: var(--gray-400); font-size: 0.875rem; margin-top: 4px; }

/* MAIN */
.booking-main { max-width: 640px; margin: 0 auto; padding: 24px 16px; }

/* STEPPER */
.stepper { display: flex; justify-content: space-between; margin-bottom: 32px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; position: relative; }
.step::after { content: ''; position: absolute; top: 16px; left: 50%; right: -50%; height: 2px; background: var(--gray-200); z-index: 0; }
.step:last-child::after { display: none; }
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-200); color: var(--gray-600);
  font-weight: 700; font-size: 0.8rem; z-index: 1; position: relative;
  transition: all 0.2s;
}
.step.active .step-num, .step.done .step-num {
  background: var(--primary); color: white;
}
.step-label { font-size: 0.7rem; color: var(--gray-400); }
.step.active .step-label { color: var(--primary); font-weight: 600; }

/* PANELS */
.step-panel { display: none; animation: fadeIn 0.2s ease; }
.step-panel.active { display: block; }
.step-panel h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 20px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* CARDS GRID (servicios) */
.cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.service-card {
  background: white; border: 2px solid var(--gray-200); border-radius: 12px;
  padding: 16px; cursor: pointer; transition: all 0.15s;
}
.service-card:hover { border-color: var(--primary); }
.service-card.selected { border-color: var(--primary); background: var(--primary-light); }
.service-card .service-name { font-weight: 600; margin-bottom: 4px; }
.service-card .service-meta { font-size: 0.8rem; color: var(--gray-400); }
.service-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 6px; }

/* DATE GRID */
.calendar-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.btn-nav { background: white; border: 1px solid var(--gray-200); padding: 8px 14px; border-radius: 8px; cursor: pointer; }
.date-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.date-cell {
  aspect-ratio: 1; border-radius: 10px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; cursor: pointer;
  border: 2px solid var(--gray-200); background: white; transition: all 0.15s;
}
.date-cell:hover:not(.disabled) { border-color: var(--primary); }
.date-cell.selected { border-color: var(--primary); background: var(--primary-light); }
.date-cell.disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }
.date-cell .day-name { font-size: 0.65rem; text-transform: uppercase; color: var(--gray-400); }
.date-cell .day-num { font-weight: 700; font-size: 1rem; }

/* SLOTS GRID */
.slots-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.slot-btn {
  padding: 12px; border-radius: 10px; border: 2px solid var(--gray-200);
  background: white; cursor: pointer; font-weight: 600; font-size: 0.95rem;
  transition: all 0.15s; text-align: center;
}
.slot-btn:hover { border-color: var(--primary); }
.slot-btn.selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.no-slots { color: var(--gray-400); text-align: center; padding: 24px; grid-column: 1/-1; }

/* FORMS */
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.form-group label { font-weight: 600; font-size: 0.875rem; }
.form-group input, .form-group select {
  border: 2px solid var(--gray-200); border-radius: 10px;
  padding: 12px 14px; font-size: 1rem; width: 100%; outline: none; transition: border-color 0.15s;
}
.form-group input:focus, .form-group select:focus { border-color: var(--primary); }

/* SUMMARY */
.booking-summary { background: white; border-radius: 16px; padding: 24px; border: 2px solid var(--gray-200); }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--gray-100); font-size: 0.9rem; }
.summary-row:last-child { border-bottom: none; font-weight: 700; font-size: 1rem; }
.summary-row .label { color: var(--gray-600); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 10px; border: none; cursor: pointer; font-size: 1rem; font-weight: 600; text-decoration: none; transition: all 0.15s; }
.btn-primary { background: var(--primary); color: white; width: 100%; }
.btn-primary:hover { background: #2255ee; }
.btn-outline { background: white; border: 2px solid var(--gray-200); color: var(--gray-800); }
.btn-outline:hover { background: var(--gray-100); }
.btn-wa { background: #25d366; color: white; width: 100%; border-radius: 10px; padding: 14px 24px; font-size: 1rem; font-weight: 700; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; }
.btn-wa:hover { background: #1ebe5d; }

/* STEP NAV */
.step-nav { display: flex; gap: 12px; margin-top: 24px; }
.step-nav .btn { flex: 1; }

/* SUCCESS */
.success-box { text-align: center; padding: 24px; }
.success-icon { font-size: 64px; margin-bottom: 16px; }
.success-box h2 { font-size: 1.4rem; margin-bottom: 12px; }
.success-box p { color: var(--gray-600); margin-bottom: 24px; }

/* LOADING */
.loading { color: var(--gray-400); text-align: center; padding: 24px; grid-column: 1/-1; font-style: italic; }

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .slots-grid { grid-template-columns: repeat(3, 1fr); }
  .date-grid { gap: 4px; }
}
