@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
  --pink: #F9A8C9;
  --lilac: #C8A8E9;
  --peach: #FFB997;
  --warm-white: #FFF9F5;
  --text: #3D2B3D;
  --text-light: #7A5C7A;
  --card-bg: #ffffff;
  --border-radius: 16px;
  --shadow: 0 4px 20px rgba(61, 43, 61, 0.08);
  --shadow-hover: 0 8px 30px rgba(61, 43, 61, 0.15);
  --transition: 0.25s ease;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--warm-white);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* HEADER */
.site-header {
  background: linear-gradient(135deg, #fff0f7 0%, #f5eeff 100%);
  padding: 1.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(200, 168, 233, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

.logo-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px #C8A8E9, 0 4px 15px rgba(200,168,233,0.4);
  transition: transform var(--transition);
}
.logo-img:hover { transform: scale(1.05); }

.header-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--text);
  line-height: 1.2;
}

.header-text p {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 300;
}

/* MAIN */
main {
  max-width: 700px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* STEPS */
.step-indicator {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e0d0e8;
  transition: all var(--transition);
}
.step-dot.active { background: var(--lilac); width: 28px; border-radius: 5px; }
.step-dot.done { background: var(--pink); }

/* SECTION */
.booking-section {
  animation: fadeUp 0.4s ease;
}
.booking-section.hidden { display: none; }

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

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  color: var(--text);
}

/* TREATMENT CARDS */
.treatments-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.treatment-card {
  background: var(--card-bg);
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.treatment-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--pink), var(--lilac));
  opacity: 0;
  transition: opacity var(--transition);
}
.treatment-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: var(--pink);
}
.treatment-card:hover::before { opacity: 1; }
.treatment-card.selected {
  border-color: var(--lilac);
  background: linear-gradient(135deg, #fff5fb, #f5f0ff);
}
.treatment-card.selected::before { opacity: 1; }

.check-badge {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--lilac));
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all var(--transition);
}
.treatment-card.selected .check-badge { opacity: 1; transform: scale(1); }
.check-badge svg { width: 14px; height: 14px; stroke: white; fill: none; }

.treatment-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  margin-bottom: 0.375rem;
  color: var(--text);
}
.treatment-desc {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.625rem;
  line-height: 1.4;
}
.treatment-duration {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--lilac);
}

/* OPTIONS */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background: var(--card-bg);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0.875rem 1rem;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.option-item:hover { border-color: var(--pink); background: #fff5fb; }
.option-item.selected { border-color: var(--lilac); background: #f5f0ff; }

.option-item input[type="checkbox"],
.option-item input[type="radio"] { display: none; }

.option-control {
  width: 22px; height: 22px;
  border: 2px solid #d0b8d8;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.option-item[data-type="checkbox"] .option-control { border-radius: 6px; }
.option-item[data-type="radio"] .option-control { border-radius: 50%; }
.option-item.selected .option-control {
  background: linear-gradient(135deg, var(--pink), var(--lilac));
  border-color: transparent;
}
.option-control-inner {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: white;
  opacity: 0;
  transition: opacity var(--transition);
}
.option-item.selected .option-control-inner { opacity: 1; }

.option-info { flex: 1; }
.option-name { font-size: 0.9rem; color: var(--text); }
.option-extra { font-size: 0.78rem; color: var(--text-light); }

.duration-summary {
  background: linear-gradient(135deg, rgba(249,168,201,0.15), rgba(200,168,233,0.15));
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.duration-summary strong { color: var(--lilac); }

/* DAYS */
.days-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.day-card {
  background: var(--card-bg);
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.day-card:hover { border-color: var(--pink); box-shadow: var(--shadow-hover); transform: translateX(4px); }
.day-card.selected { border-color: var(--lilac); background: linear-gradient(135deg, #fff5fb, #f5f0ff); }

.day-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--text);
}
.day-date { font-size: 0.8rem; color: var(--text-light); }
.day-slots-badge {
  background: linear-gradient(135deg, var(--pink), var(--lilac));
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  white-space: nowrap;
}

.load-more-btn {
  background: transparent;
  border: 2px dashed var(--lilac);
  color: var(--lilac);
  border-radius: var(--border-radius);
  padding: 0.875rem;
  width: 100%;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 0.5rem;
}
.load-more-btn:hover { background: rgba(200,168,233,0.1); }

/* TIME SLOTS */
.slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.slot-pill {
  background: var(--card-bg);
  border: 2px solid #e8d8f0;
  border-radius: 30px;
  padding: 0.5rem 1.25rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(61,43,61,0.06);
}
.slot-pill:hover {
  border-color: var(--pink);
  background: #fff0f7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(249,168,201,0.3);
}
.slot-pill.selected {
  background: linear-gradient(135deg, var(--pink), var(--lilac));
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 16px rgba(200,168,233,0.5);
}

/* CONFIRM */
.confirm-summary {
  background: linear-gradient(135deg, #fff0f7, #f5eeff);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(200,168,233,0.3);
}
.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(200,168,233,0.2);
  gap: 1rem;
}
.confirm-row:last-child { border-bottom: none; }
.confirm-label { font-size: 0.82rem; color: var(--text-light); font-weight: 300; flex-shrink: 0; }
.confirm-value { font-size: 0.92rem; color: var(--text); font-weight: 700; text-align: right; }

.name-field {
  margin-bottom: 1.5rem;
}
.name-field label { display: block; font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.5rem; }
.name-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e8d8f0;
  border-radius: 12px;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: white;
  transition: border-color var(--transition);
  outline: none;
}
.name-input:focus { border-color: var(--lilac); }
.name-input::placeholder { color: #c0a8c0; }

/* BUTTONS */
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  border: none;
  border-radius: 14px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(37,211,102,0.45);
}
.btn-whatsapp svg { width: 22px; height: 22px; fill: white; }

.btn-back {
  background: transparent;
  border: 2px solid #e8d8f0;
  color: var(--text-light);
  border-radius: 10px;
  padding: 0.625rem 1.25rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.btn-back:hover { border-color: var(--lilac); color: var(--text); }

.btn-continue {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--pink), var(--lilac));
  color: white;
  border: none;
  border-radius: 14px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(200,168,233,0.4);
  margin-top: 1rem;
}
.btn-continue:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(200,168,233,0.5); }
.btn-continue:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* SUCCESS */
.success-screen {
  text-align: center;
  padding: 3rem 1rem;
  animation: fadeUp 0.5s ease;
}
.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounceIn 0.6s ease;
}
@keyframes bounceIn {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.success-screen h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.success-screen p { color: var(--text-light); font-size: 0.95rem; line-height: 1.6; }
.btn-restart {
  margin-top: 2rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--pink), var(--lilac));
  color: white;
  border: none;
  border-radius: 14px;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(200,168,233,0.4);
  transition: all var(--transition);
}
.btn-restart:hover { transform: translateY(-2px); }

/* SKELETON */
.skeleton {
  background: linear-gradient(90deg, #f0e8f5 25%, #e8ddf0 50%, #f0e8f5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 12px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card { height: 100px; margin-bottom: 0.75rem; }
.skeleton-day { height: 64px; margin-bottom: 0.75rem; }

/* SPINNER */
.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* RESPONSIVE */
@media (max-width: 480px) {
  .logo-img { width: 64px; height: 64px; }
  .header-text h1 { font-size: 1.2rem; }
  .treatments-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.2rem; }
}

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #c0a8c0;
  font-size: 0.8rem;
}
