/* ===== Reserva de Horas Undermarket · Frontend Styles (versión clara) ===== */

/* Contenedor general */
.umres-booking-shell {
  padding: 24px 12px;
}

.umres-booking-widget {
  max-width: 960px;
  margin: 0 auto;
  border-radius: 24px;
  padding: 22px 22px 18px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: relative;
}

/* Cabecera */
.umres-booking-header {
  margin-bottom: 18px;
}

.umres-booking-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.umres-booking-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
}

.umres-booking-title {
  margin: 6px 0 2px;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.umres-booking-subtitle {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

/* Pasos */

.umres-booking-steps {
  border-radius: 18px;
  padding: 12px 14px 10px;
  margin-top: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.umres-step-indicators {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.umres-step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  font-size: 11px;
}

.umres-step-indicator-active {
  background: #e0f2fe;
  border-color: #38bdf8;
}

.umres-step-number {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  background: #ffffff;
  color: #111827;
}

.umres-step-indicator-active .umres-step-number {
  background: #0ea5e9;
  color: #ffffff;
}

.umres-step-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: #6b7280;
}

.umres-step-indicator-active .umres-step-label {
  color: #0f172a;
}

.umres-step-progress-bar {
  grid-column: 1 / -1;
  height: 3px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.umres-step-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #0ea5e9);
  border-radius: inherit;
}

/* Paneles de pasos */

.umres-step-panels {
  border-radius: 14px;
  background: #ffffff;
  padding: 12px 12px 10px;
  border: 1px solid #e5e7eb;
}

.umres-step-panel {
  display: none;
}

.umres-step-panel-active {
  display: block;
}

.umres-panel-title {
  margin: 0 0 3px;
  font-size: 18px;
}

.umres-panel-help {
  margin: 0 0 12px;
  font-size: 12px;
  color: #6b7280;
}

/* Servicios */

.umres-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.umres-service-pill {
  position: relative;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #111827;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, border-color 0.12s ease-out, background 0.12s ease-out;
}

.umres-service-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  border-color: #bfdbfe;
}

.umres-service-pill-active {
  border-color: #0ea5e9;
  background: #e0f2fe;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.15);
}

.umres-service-name {
  font-size: 14px;
  font-weight: 600;
}

.umres-service-description {
  font-size: 11px;
  color: #6b7280;
}

.umres-service-tagline {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #22c55e;
}

/* Fecha y horarios */

.umres-date-row {
  margin-bottom: 10px;
}

.umres-field-label {
  display: block;
  font-size: 12px;
  color: #4b5563;
  margin-bottom: 3px;
}

.umres-input {
  width: 100%;
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  font-size: 13px;
}

.umres-input:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.45);
}

.umres-times-wrapper {
  border-radius: 12px;
  padding: 8px 8px 6px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.umres-times-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 12px;
}

.umres-times-legend {
  font-size: 10px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 5px;
}

.umres-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

.umres-dot-free {
  background: #16a34a;
}

.umres-dot-taken {
  background: #f97316;
}

.umres-times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px;
}

.umres-time-pill {
  border-radius: 999px;
  padding: 6px 8px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  cursor: pointer;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, border-color 0.1s ease-out, background 0.1s ease-out;
}

.umres-time-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.umres-time-pill span {
  white-space: nowrap;
}

.umres-time-staff {
  color: #6b7280;
}

.umres-time-pill-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.umres-time-pill-selected {
  border-color: #0ea5e9;
  background: #e0f2fe;
}

.umres-times-empty {
  margin-top: 6px;
  font-size: 11px;
  color: #b45309;
}

/* Formulario de datos */

.umres-customer-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.umres-dynamic-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 9px;
}

.umres-field-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.umres-field-row label span.umres-required {
  color: #b91c1c;
}

.umres-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11px;
  color: #4b5563;
}

.umres-checkbox input[type="checkbox"] {
  margin-top: 2px;
}

.umres-form-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.umres-button {
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, background 0.08s ease-out, border-color 0.08s ease-out;
}

.umres-button-primary {
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  border-color: #0ea5e9;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.35);
}

.umres-button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(14, 165, 233, 0.45);
}

.umres-button-ghost {
  background: transparent;
  border-color: #e5e7eb;
  color: #374151;
}

.umres-button-ghost:hover {
  background: #f3f4f6;
}

/* Mensajes */

.umres-feedback {
  margin-top: 6px;
  font-size: 12px;
}

.umres-feedback-success {
  color: #16a34a;
}

.umres-feedback-error {
  color: #b91c1c;
}

.umres-alert {
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  margin: 8px 0;
}

.umres-alert-warning {
  background: #fef9c3;
  border: 1px solid #facc15;
  color: #78350f;
}

/* Bloque resumen */

.umres-summary-bar {
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 11px;
  color: #1f2937;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.umres-summary-bar strong {
  color: #0ea5e9;
  font-weight: 600;
}

.umres-summary-card {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  font-size: 12px;
  color: #111827;
}

.umres-summary-card-title {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #111827;
}

.umres-summary-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 4px 14px;
}

.umres-summary-card li {
  font-size: 11px;
  color: #4b5563;
}

.umres-summary-card li span {
  color: #6b7280;
}

/* Responsive */

@media (max-width: 720px) {
  .umres-booking-widget {
    padding: 16px 14px 14px;
    border-radius: 18px;
  }

  .umres-booking-title {
    font-size: 20px;
  }

  .umres-step-indicators {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .umres-step-label {
    font-size: 10px;
  }

  .umres-service-grid {
    grid-template-columns: 1fr;
  }

  .umres-dynamic-fields {
    grid-template-columns: 1fr;
  }

  .umres-form-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .umres-form-footer .umres-button {
    justify-content: center;
  }
}

/* Estado de formulario completado */

.umres-customer-form.umres-form-completed {
  padding-bottom: 18px;
}

.umres-customer-form.umres-form-completed .umres-feedback {
  margin-top: 10px;
  font-size: 14px;
}
