/* ==========================================================================
   Atempo Hero Shot — interfaz de reserva (réplica del portal público)
   Medidas en px sobre un viewport de 390 px, tomadas de css/booking.css y de
   las capturas móviles del paquete de referencias.
   ========================================================================== */

.hs-viewport {
  position: absolute;
  left: 0;
  right: 0;
  top: 54px;                 /* debajo de la barra de estado */
  height: 790px;
  overflow: hidden;
  background: var(--hs-bg);
  font-family: var(--hs-font);
  font-size: 16px;
  line-height: 24px;
  color: var(--hs-ink);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Encabezado fijo (sticky en el portal real) ---------- */
.hs-header {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  top: 0;
  height: 187px;
  box-sizing: border-box;
  padding-top: 16px;
  background: var(--hs-white);
  border-bottom: 1px solid var(--hs-border);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hs-logo {
  width: 64px;
  height: 64px;
  box-sizing: border-box;
  border-radius: 16px;
  border: 1px solid var(--hs-border);
  background: var(--hs-white);
  display: grid;
  place-items: center;
}
.hs-wordmark {
  display: block;
  background: url("../../assets/hero-shot/atempo-wordmark.png") center / contain no-repeat;
}
.hs-logo .hs-wordmark { width: 52px; height: 9px; }
.hs-name {
  margin: 12px 0 0;
  font: 800 20px/28px var(--hs-font);
  letter-spacing: -.02em;
}
.hs-badge {
  margin-top: 4px;
  height: 22px;
  box-sizing: border-box;
  padding: 2px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 9999px;
  border: 1px solid var(--hs-yellow-line);
  background: var(--hs-yellow);
  font: 600 12px/16px var(--hs-font);
}
.hs-ico { display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hs-badge .hs-ico { width: 14px; height: 14px; }
.hs-address {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font: 400 12px/16px var(--hs-font);
  color: var(--hs-muted);
}
.hs-address .hs-ico { width: 14px; height: 14px; color: var(--hs-faint); }
.hs-address b { margin-left: 4px; font-weight: 600; color: #000; }

/* ---------- Flujo desplazable ---------- */
.hs-flow {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  box-sizing: border-box;
  padding: 187px 0 48px;
  transform: translate3d(0, calc(var(--hs-scroll, 0) * -1px), 0);
  transition: transform var(--hs-scroll-ms, 620ms) cubic-bezier(.45, .05, .2, 1);
}
.hs-flow.is-instant { transition: none; }

/* Indicador de pasos */
.hs-steps {
  position: relative;
  margin: 32px 32px 0;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hs-steps::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: var(--hs-border);
}
.hs-dot {
  position: relative;
  width: 36px;
  height: 36px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid var(--hs-border);
  background: var(--hs-white);
  color: var(--hs-faint);
  font: 600 14px/32px var(--hs-font);
  text-align: center;
  box-shadow: 0 1px 2px rgba(23, 22, 20, .04);
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.hs-dot.is-done { background: var(--hs-yellow); border-color: var(--hs-ink); color: var(--hs-ink); }
.hs-dot.is-active {
  background: var(--hs-black);
  border-color: var(--hs-black);
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 2px 6px rgba(23, 22, 20, .2);
}
.hs-ui.is-success .hs-steps { display: none; }

/* Tarjeta */
.hs-card {
  margin: 32px 16px 0;
  box-sizing: border-box;
  padding: 32px;
  background: var(--hs-white);
  border: 1px solid var(--hs-border);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(23, 22, 20, .06), 0 1px 2px -1px rgba(23, 22, 20, .04);
}
.hs-view { display: none; }
.hs-view.is-active { display: block; }

.hs-title {
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font: 700 20px/32px var(--hs-font);
  letter-spacing: -.015em;
}
.hs-title .hs-ico { width: 24px; height: 24px; color: var(--hs-muted); stroke-width: 1.8; }

/* Filas seleccionables: servicio / profesional */
.hs-option {
  margin-bottom: 12px;
  box-sizing: border-box;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--hs-white);
  border: 1px solid var(--hs-border);
  border-radius: 10px;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.hs-option.is-pressed { background: var(--hs-subtle); border-color: var(--hs-ink); transform: scale(.985); }
.hs-option.is-selected {
  background: var(--hs-selected-bg);
  border-color: #000;
  box-shadow: 0 0 0 1px #000, 0 1px 3px rgba(23, 22, 20, .06), 0 1px 2px -1px rgba(23, 22, 20, .04);
}
.hs-opt-title { font: 500 16px/24px var(--hs-font); color: #111827; }
.hs-opt-sub { font: 400 14px/21px var(--hs-font); color: var(--hs-muted); }
.hs-price { font: 600 16px/24px var(--hs-font); color: #000; }
.hs-option--pro { justify-content: flex-start; gap: 12px; }
.hs-avatar {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  background: var(--hs-avatar-bg);
  color: var(--hs-avatar-ink);
  font: 700 16px/24px var(--hs-font);
}

/* Pie */
.hs-footer {
  margin-top: 32px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font: 400 12px/16px var(--hs-font);
  color: var(--hs-muted);
}
.hs-footer b { font-weight: 700; color: var(--hs-ink); }
.hs-footer .hs-wordmark { width: 116px; height: 20px; }

/* ---------- Paso 3: fecha y horarios ---------- */
.hs-label { display: block; margin: 0 0 8px; font: 600 13px/19.5px var(--hs-font); }
.hs-input {
  height: 41px;
  box-sizing: border-box;
  padding: 0 13.6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--hs-white);
  border: 1px solid var(--hs-border);
  border-radius: 8px;
  font: 400 14px/21px var(--hs-font);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.hs-input.is-focus { border-color: var(--hs-ink); box-shadow: 0 0 0 3px rgba(23, 22, 20, .08); }
.hs-input .hs-ico { width: 18px; height: 18px; color: var(--hs-ink); stroke-width: 1.8; }
.hs-date-ico.is-flash { animation: hs-flash 420ms ease; }

.hs-slots-title { margin: 24px 0 8px; font: 600 14px/21px var(--hs-font); }

.hs-empty {
  margin: 0 -4px;
  box-sizing: border-box;
  padding: 14px 16px 16px;
  text-align: center;
  background: #F8FAFC;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
}
.hs-empty .hs-ico { width: 26px; height: 26px; margin: 0 auto 1px; color: #9CA3AF; stroke-width: 1.6; }
.hs-empty p { margin: 0; }
.hs-empty-title { font: 500 14px/24px var(--hs-font); color: #374151; }
.hs-empty-text { font: 400 12px/16px var(--hs-font); color: #6B7280; }

.hs-slots { display: none; margin: 0 -4px; }
.hs-view.has-date .hs-empty { display: none; }
.hs-view.has-date .hs-slots { display: block; }

.hs-group + .hs-group { margin-top: 16px; }
.hs-group-title {
  margin: 0 4px 8px;
  font: 700 12px/16px var(--hs-font);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.hs-group-title small { font-weight: 400; color: var(--hs-faint); letter-spacing: .05em; }
.hs-chips { display: flex; flex-wrap: wrap; }
.hs-chip {
  margin: 4px;
  box-sizing: border-box;
  padding: 8.8px 15.2px;
  background: var(--hs-white);
  border: 1px solid var(--hs-border);
  border-radius: 8px;
  font: 500 14px/21px var(--hs-font);
  box-shadow: 0 1px 2px rgba(23, 22, 20, .04);
  transition: background-color 130ms ease, border-color 130ms ease, color 130ms ease, box-shadow 130ms ease, transform 130ms ease;
}
.hs-chip.is-pressed { transform: scale(.95); }
.hs-chip.is-selected {
  background: var(--hs-black);
  border-color: var(--hs-black);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(87, 44, 25, .2);
}

/* ---------- Botones ---------- */
.hs-actions { margin-top: 32px; display: flex; justify-content: flex-end; }
.hs-btn {
  box-sizing: border-box;
  padding: 8.8px 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hs-black);
  border: 1px solid var(--hs-black);
  border-radius: 8px;
  color: #fff;
  font: 600 14px/20px var(--hs-font);
  box-shadow: 0 1px 2px rgba(23, 22, 20, .08);
  transition: opacity 140ms ease, transform 140ms ease;
}
.hs-btn.is-disabled { opacity: .45; }
.hs-btn.is-pressed { transform: scale(.96); }
.hs-btn--block { width: 100%; height: 54px; border-radius: 12px; font-size: 16px; line-height: 24px; letter-spacing: -.01em; }
.hs-btn--secondary { background: var(--hs-white); border-color: var(--hs-border); color: var(--hs-ink); padding: 8.8px 18.4px; box-shadow: 0 1px 2px rgba(23, 22, 20, .04); }

/* ---------- Paso 4: datos del cliente ---------- */
.hs-summary {
  margin-bottom: 24px;
  box-sizing: border-box;
  padding: 16px;
  background: var(--hs-subtle);
  border: 1px solid var(--hs-border);
  border-radius: 12px;
  font: 400 15px/24px var(--hs-font);
}
.hs-summary-service { font-weight: 600; }
.hs-summary-when { font-size: 14px; color: var(--hs-muted); }
.hs-summary-price { margin-top: 4px; font: 700 18px/26px var(--hs-font); }

.hs-google {
  height: 46px;
  box-sizing: border-box;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--hs-white);
  border: 1px solid var(--hs-border);
  border-radius: 12px;
  font: 600 14px/20px var(--hs-font);
}
.hs-google svg { width: 20px; height: 20px; display: block; }

.hs-divider {
  margin: 24px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  font: 400 12px/16px var(--hs-font);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--hs-faint);
}
.hs-divider::before, .hs-divider::after { content: ""; flex: 1; height: 1px; background: var(--hs-border); }

.hs-field { margin-bottom: 16px; }
.hs-typed { white-space: nowrap; overflow: hidden; }
.hs-caret {
  display: none;
  width: 1.5px;
  height: 17px;
  margin-left: 1px;
  background: var(--hs-ink);
  animation: hs-blink 1s steps(1) infinite;
}
.hs-input.is-focus .hs-caret { display: inline-block; }
.hs-input-text { display: flex; align-items: center; min-width: 0; }
.hs-rule { height: 1px; margin: 0 0 24px; background: var(--hs-border); }

/* ---------- Pantalla de éxito ---------- */
.hs-card--success { padding-top: 40px; text-align: center; }   /* compacta para que entre completa en la pantalla */
.hs-success-circle {
  width: 72px;
  height: 72px;
  box-sizing: border-box;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--hs-yellow);
  border: 2.5px solid var(--hs-brown);
  box-shadow: 0 4px 16px rgba(87, 44, 25, .2);
}
.hs-success-circle svg { width: 44px; height: 44px; display: block; fill: none; stroke: var(--hs-brown); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.hs-success-title { margin: 20px 0 8px; font: 800 24px/32px var(--hs-font); letter-spacing: -.02em; }
.hs-success-sub { margin: 0 0 20px; font: 400 16px/24px var(--hs-font); color: var(--hs-muted); }
.hs-success-sub b { font-weight: 700; color: var(--hs-ink); }
.hs-detail {
  margin: 0 0 24px;
  box-sizing: border-box;
  padding: 20px 24px;
  text-align: left;
  background: var(--hs-subtle);
  border: 1px solid var(--hs-border);
  border-radius: 12px;
}
.hs-detail-label { margin: 0; font: 400 12px/16px var(--hs-font); letter-spacing: .06em; text-transform: uppercase; color: var(--hs-faint); }
.hs-detail-value { margin: 0 0 8px; font: 400 16px/24px var(--hs-font); }
.hs-detail-value--strong { font-weight: 600; font-size: 17px; line-height: 26px; }
.hs-detail-value:last-of-type { margin-bottom: 4px; }
.hs-detail-map { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/16px var(--hs-font); }
.hs-detail-map .hs-ico { width: 14px; height: 14px; }

/* ---------- Indicador de toque ---------- */
.hs-touch {
  position: absolute;
  z-index: 7;
  left: 0;
  top: 0;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: rgba(23, 22, 20, .22);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .8), 0 3px 12px rgba(23, 22, 20, .28);
  translate: var(--x, 330px) var(--y, 700px);
  scale: var(--s, 1);
  transition: translate var(--move, 600ms) cubic-bezier(.45, .05, .2, 1), scale 110ms ease, opacity 240ms ease, background-color 120ms ease;
}
.hs-touch.is-visible { opacity: 1; }
.hs-touch.is-down { --s: .8; background: rgba(23, 22, 20, .32); }
.hs-touch::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(23, 22, 20, .4);
  opacity: 0;
}
.hs-touch.is-tap::after { animation: hs-ring 520ms ease-out; }

/* Fundido entre ciclos */
.hs-viewport { transition: opacity 360ms ease; }
.hs-viewport.is-reset { opacity: 0; }
