/* ==================================================================
   PÁGINA PÚBLICA DE RESERVAS
   ================================================================== */

.shop-header {
  background: var(--accent);
  color: var(--accent-contrast);
  padding-block: var(--space-6) var(--space-7);
}

.shop-header .skeleton {
  opacity: 0.25;
}

.shop-info h1,
.shop-name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 600;
}

.shop-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-2);
  font-size: 0.925rem;
  opacity: 0.9;
}

.shop-meta a {
  color: inherit;
  font-weight: 600;
}

.booking {
  position: relative;
  margin-top: calc(var(--space-6) * -1);
  padding-bottom: var(--space-7);
}

.booking > #flow,
.booking > #page-error {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: var(--space-5) var(--space-4);
}

.booking__title {
  font-size: 1.375rem;
  margin-bottom: var(--space-4);
}

/* El título recibe foco al cambiar de paso (para lectores de pantalla), sin marco visible */
.booking__title:focus {
  box-shadow: none;
}

/* ---------- Progreso ---------- */

.progress {
  display: grid;
  grid-template-columns: repeat(var(--steps, 4), 1fr);
  gap: var(--space-1);
  margin: 0 0 var(--space-5);
  padding: 0;
  list-style: none;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.progress li {
  padding-top: var(--space-2);
  border-top: 3px solid var(--border);
  transition: border-color var(--transition), color var(--transition);
}

.progress li.is-done,
.progress li.is-current {
  border-color: var(--accent);
  color: var(--accent);
}

.back-btn {
  margin: 0 0 var(--space-3) calc(var(--space-2) * -1);
  padding: 6px 8px;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
}

.back-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

/* ---------- Opciones (servicios / peluqueros) ---------- */

.option-list {
  display: grid;
  gap: var(--space-3);
}

.option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.option:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.option:active {
  transform: scale(0.99);
}

.option__name {
  display: block;
  font-weight: 600;
}

.option__desc {
  display: block;
  margin-top: 2px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.option__meta {
  flex-shrink: 0;
  text-align: right;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.option__price {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.option__avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.option__main {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

/* ---------- Días ---------- */

.days-wrap {
  margin-inline: calc(var(--space-4) * -1);
  margin-top: var(--space-3);
}

.day-list {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding: var(--space-1) var(--space-4) var(--space-3);
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.day {
  flex: 0 0 auto;
  width: 64px;
  padding: var(--space-2) 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.day:hover {
  border-color: var(--accent);
}

.day__weekday {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.day__number {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
}

.day__month {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.day[aria-selected="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-contrast);
}

.day[aria-selected="true"] .day__weekday,
.day[aria-selected="true"] .day__month {
  color: inherit;
  opacity: 0.85;
}

/* ---------- Horarios ---------- */

.slots-title {
  margin: var(--space-4) 0 var(--space-3);
  font-size: 1rem;
}

.slot-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: var(--space-2);
}

.slot-list .empty,
.slot-list .form-error {
  grid-column: 1 / -1;
}

.slot {
  min-height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.slot:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.slot-skeleton {
  height: 44px;
}

/* ---------- Resumen ---------- */

.summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2) var(--space-4);
  margin: 0 0 var(--space-5);
  padding: var(--space-4);
  box-shadow: none;
  background: var(--surface-2);
}

.summary dt {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.summary dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.btn--lg {
  min-height: 52px;
  font-size: 1.05rem;
}

/* ---------- Éxito ---------- */

.success {
  text-align: center;
}

.success__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: var(--space-2) auto var(--space-4);
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  font-size: 2rem;
  font-weight: 700;
  animation: pop 300ms ease;
}

.success .muted {
  margin: calc(var(--space-3) * -1) 0 var(--space-5);
}

.success .summary {
  text-align: left;
}

.success__actions {
  display: grid;
  gap: var(--space-2);
}

@keyframes pop {
  from { transform: scale(0.6); opacity: 0; }
}

.site-footer {
  padding-bottom: var(--space-6);
  text-align: center;
}

.footer-brand {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.footer-brand:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (min-width: 768px) {
  .booking > #flow,
  .booking > #page-error {
    padding: var(--space-6);
  }

  .days-wrap {
    margin-inline: 0;
  }

  .day-list {
    padding-inline: 0;
  }
}


/* ---------- Identidad del negocio ---------- */
.shop-header--cover {
  min-height: 250px;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: flex-end;
  color: #fff;
}

.shop-header--cover .container {
  width: 100%;
}

.shop-identity {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.shop-logo {
  flex: 0 0 auto;
  width: 82px;
  height: 82px;
  object-fit: cover;
  border: 3px solid rgb(255 255 255 / 92%);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 6px 20px rgb(0 0 0 / 18%);
}

.shop-header--cover .shop-meta,
.shop-header--cover .shop-meta a {
  color: inherit;
}

@media (max-width: 520px) {
  .shop-header--cover { min-height: 220px; }
  .shop-identity { align-items: flex-end; }
  .shop-logo { width: 68px; height: 68px; }
}

.shop-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  text-decoration: none;
  opacity: .96;
  transition: transform var(--transition), opacity var(--transition);
}

.shop-social:hover {
  transform: translateY(-1px);
  opacity: 1;
}

.shop-social img,
.shop-social svg {
  width: 24px;
  height: 24px;
  display: block;
}

.shop-instagram {
  color: currentColor;
}
