:root {
  --brand-25: #f2f7ff;
  --brand-50: #ecf3ff;
  --brand-100: #dde9ff;
  --brand-400: #7592ff;
  --brand-500: #465fff;
  --brand-600: #3641f5;
  --brand-700: #2a31d8;
  --gray-50: #f9fafb;
  --gray-100: #f2f4f7;
  --gray-200: #e4e7ec;
  --gray-300: #d0d5dd;
  --gray-400: #98a2b3;
  --gray-500: #667085;
  --gray-700: #344054;
  --gray-800: #1d2939;
  --gray-900: #101828;
  --success-50: #ecfdf3;
  --success-500: #12b76a;
  --success-600: #039855;
  --error-50: #fef3f2;
  --error-500: #f04438;
  --error-600: #d92d20;
  --warning-50: #fffaeb;
  --warning-300: #fec84b;
  --warning-500: #f79009;
  --warning-600: #dc6803;
  --warning-700: #b54708;
  --shadow-xs: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(16, 24, 40, 0.1), 0 1px 2px 0 rgba(16, 24, 40, 0.06);
  --shadow-md: 0 4px 8px -2px rgba(16, 24, 40, 0.1), 0 2px 4px -2px rgba(16, 24, 40, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
}

a { color: inherit; }

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 16px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-500);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin: 0 auto 12px;
}

.page-title {
  text-align: center;
  margin-bottom: 32px;
}
.page-title h1 { font-size: 24px; font-weight: 600; color: var(--gray-800); margin: 0 0 4px; }
.page-title p { color: var(--gray-500); margin: 0; font-size: 14px; }

.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.card h2 {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  margin: 0 0 12px;
}
.card h2 .hint { font-weight: 400; color: var(--gray-400); }

.stack { display: flex; flex-direction: column; gap: 8px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 8px; }

.service-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
}
.service-option:hover { border-color: var(--gray-300); }
.service-option.checked { border-color: var(--brand-400); background: var(--brand-25); }
.service-option .check {
  width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--gray-300);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 12px;
}
.service-option.checked .check { border-color: var(--brand-500); background: var(--brand-500); color: #fff; }
.service-option .name { font-weight: 500; color: var(--gray-800); }
.service-option .meta { color: var(--gray-500); font-size: 13px; }

.slot-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}
.slot-btn:hover { border-color: var(--gray-300); }
.slot-btn.selected { border-color: var(--brand-400); background: var(--brand-25); }

input[type="text"], input[type="date"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  /* 16px minimo: por debajo de eso, Safari en iOS hace zoom automatico al tocar el campo
     y la pagina queda con un scroll raro hasta que el usuario hace zoom-out a mano. */
  font-size: 16px;
  font-family: inherit;
  color: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand-400);
  box-shadow: 0 0 0 2px var(--brand-100);
}
label { display: block; font-size: 14px; font-weight: 500; color: var(--gray-700); margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.field .help { font-size: 12px; color: var(--gray-400); margin-top: 4px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  background: #fff;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-primary { background: var(--brand-500); border-color: var(--brand-600); color: #fff; width: 100%; }
.btn-primary:hover:not(:disabled) { background: var(--brand-600); }
.btn-block { width: 100%; }

.error-text { color: var(--error-600); font-size: 14px; margin: 8px 0 0; }
.help-text { color: var(--gray-500); font-size: 14px; }

.summary-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 12px;
  margin: 14px 0;
}
.summary-box .label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gray-400); margin-bottom: 8px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 2px 0; }
.summary-total { display: flex; justify-content: space-between; border-top: 1px solid var(--gray-200); margin-top: 8px; padding-top: 8px; font-weight: 600; font-size: 14px; }

.success-box { text-align: center; }
.success-icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--success-50); color: var(--success-600);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-size: 20px;
}
