/* ============================================================
   styles.css — Barbería Bunker (Client Site)
   Dark premium · Paleta amarilla · Outfit font
   ============================================================ */

/* ─── Variables ─────────────────────────────────────────── */
:root {
  --gold: #f5d800;
  --gold-dim: rgba(245, 216, 0, 0.18);
  --gold-glow: rgba(245, 216, 0, 0.08);
  --gold-text: #f7eb84;
  --bg: #060608;
  --surface: #0f0f12;
  --surface-2: #16161c;
  --border: rgba(245, 216, 0, 0.14);
  --border-hover: rgba(245, 216, 0, 0.38);
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.55);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-gold: 0 0 28px rgba(245, 216, 0, 0.12);
}

:root[data-theme='light'] {
  --gold: #b88316;
  --gold-dim: rgba(184, 131, 22, 0.18);
  --gold-glow: rgba(184, 131, 22, 0.08);
  --gold-text: #76551e;
  --bg: #eadbc3;
  --surface: #f6ecdc;
  --surface-2: #fff8eb;
  --border: rgba(104, 70, 29, 0.2);
  --border-hover: rgba(104, 70, 29, 0.42);
  --text: #34271c;
  --text-dim: rgba(52, 39, 28, 0.64);
  --shadow-gold: 0 0 28px rgba(130, 88, 24, 0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(245,216,0,0.07) 0%, transparent 70%),
    repeating-linear-gradient(
      135deg,
      transparent,
      transparent 40px,
      rgba(245,216,0,0.015) 40px,
      rgba(245,216,0,0.015) 41px
    );
  line-height: 1.6;
}

/* ─── Typography ─────────────────────────────────────────── */
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }

.accent { color: var(--gold); }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 48px 24px 36px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(245,216,0,0.04) 0%, transparent 100%);
}

.theme-toggle {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--gold-text);
  font-family: inherit;
  font-size: 1.35rem;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.theme-toggle:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.hero-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--surface);
  padding: 10px;
  flex-shrink: 0;
}

.hero-text { text-align: center; }
.hero-text p {
  margin-top: 10px;
  color: var(--gold-text);
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.85;
}

/* ─── Wizard Wrapper ─────────────────────────────────────── */
.wizard-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* ─── Progress Bar ───────────────────────────────────────── */
.progress-bar {
  margin-bottom: 40px;
}

.progress-track {
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  margin-bottom: 16px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #ffe566);
  border-radius: 99px;
  width: 20%;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(245, 216, 0, 0.5);
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: inherit;
  transition: color var(--transition);
  flex: 1;
  min-width: 0;
}

.dot-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--bg);
  transition: all var(--transition);
}

.dot-label {
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-dot.active { color: var(--gold); }
.step-dot.active .dot-num {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
  box-shadow: 0 0 14px rgba(245,216,0,0.45);
}

.step-dot.done { color: rgba(245,216,0,0.6); }
.step-dot.done .dot-num { background: rgba(245,216,0,0.15); }

/* ─── Steps ──────────────────────────────────────────────── */
.wizard-step {
  display: none;
  animation: stepIn 0.35s ease forwards;
}
.wizard-step.active { display: block; }

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

.step-title { margin-bottom: 6px; }
.step-sub   { color: var(--text-dim); margin-bottom: 28px; font-size: 0.95rem; }

/* ─── Loading state ──────────────────────────────────────── */
.loading-state {
  text-align: center;
  color: var(--text-dim);
  padding: 40px;
  font-size: 0.95rem;
}

/* ─── Barbers Grid ───────────────────────────────────────── */
.barbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.barber-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.barber-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(245,216,0,0.06) 0%, transparent 65%);
  opacity: 0;
  transition: opacity var(--transition);
}

.barber-card:hover,
.barber-card.selected {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.barber-card:hover::before,
.barber-card.selected::before { opacity: 1; }

.barber-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: linear-gradient(135deg, var(--surface-2) 0%, #222230 100%);
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0;
  overflow: hidden;
  transition: border-color var(--transition);
  flex-shrink: 0;
}

.barber-card:hover .barber-avatar,
.barber-card.selected .barber-avatar {
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(245,216,0,0.3);
}

.barber-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.barber-name { font-size: 1.05rem; font-weight: 700; }

.barber-ig {
  font-size: 0.78rem;
  color: var(--gold-text);
  opacity: 0.7;
}

.barber-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  background: var(--gold);
  border-radius: 50%;
  display: none;
  place-items: center;
  color: #000;
  font-size: 0.75rem;
  font-weight: 900;
}

.barber-card.selected .barber-check { display: grid; }

/* ─── Services Grid ──────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.service-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.service-card:hover,
.service-card.selected {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.service-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 42px;
  text-align: center;
}

.service-info { flex: 1; min-width: 0; }
.service-name { font-size: 0.95rem; font-weight: 600; }
.service-duration {
  font-size: 0.78rem;
  color: var(--gold-text);
  opacity: 0.75;
  margin-top: 2px;
}

.service-check {
  width: 20px;
  height: 20px;
  background: var(--gold);
  border-radius: 50%;
  display: none;
  place-items: center;
  color: #000;
  font-size: 0.72rem;
  font-weight: 900;
  flex-shrink: 0;
}

.service-card.selected .service-check { display: grid; }

/* ─── Dates Grid ─────────────────────────────────────────── */
.dates-grid {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.date-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  cursor: pointer;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  flex: 1;
  min-width: 120px;
}

.date-card:hover,
.date-card.selected {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
  background: var(--surface-2);
}

.date-weekday {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-text);
  opacity: 0.75;
}

.date-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1.1;
  margin: 4px 0;
}

.date-month {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: capitalize;
}

/* ─── Slots Grid ─────────────────────────────────────────── */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
}

.slot-btn {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  transition: border-color var(--transition), transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.slot-btn:hover:not(:disabled) {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.slot-btn.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
  box-shadow: 0 0 18px rgba(245,216,0,0.4);
}

.slot-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ─── Summary Card ───────────────────────────────────────── */
.summary-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 24px;
  display: grid;
  gap: 12px;
}

.summary-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.summary-icon {
  font-size: 1.2rem;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.summary-label {
  color: var(--text-dim);
  min-width: 90px;
  font-size: 0.85rem;
}

.summary-value { font-weight: 600; color: var(--text); }

/* ─── Confirm Form ───────────────────────────────────────── */
.confirm-form {
  display: grid;
  gap: 14px;
}

.field-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-text);
  margin-bottom: 6px;
}

.field-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
}

.field-input:focus { border-color: var(--gold); }
.field-input::placeholder { color: var(--text-dim); }

.field-textarea {
  resize: vertical;
  min-height: 80px;
}

/* ─── WhatsApp Button ────────────────────────────────────── */
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: none;
  background: #25D366;
  color: #fff;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  margin-top: 4px;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35);
  filter: brightness(1.07);
}

/* ─── Wizard Nav ─────────────────────────────────────────── */
.wizard-nav {
  margin-top: 28px;
  display: flex;
  gap: 12px;
}

/* ─── Galería y ubicación ────────────────────────────────── */
.showcase-section {
  padding: 64px 24px;
  border-top: 1px solid var(--border);
}

.booking-active .showcase-section { display: none; }

.showcase-inner {
  width: min(100%, 980px);
  margin: 0 auto;
}

.showcase-heading { margin-bottom: 22px; }
.showcase-kicker {
  color: var(--gold-text);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.photo-carousel {
  position: relative;
  overflow: hidden;
  height: min(72vh, 680px);
  min-height: 360px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.carousel-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-control {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.carousel-control:hover { background: var(--gold); color: #111; }
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

.carousel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
}

.carousel-counter { color: var(--text-dim); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.carousel-dots { display: flex; align-items: center; gap: 8px; }
.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--border-hover);
  cursor: pointer;
}

.carousel-dot.active { background: var(--gold); transform: scale(1.25); }
.location-section { background: var(--surface); }
.location-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 32px; align-items: center; }
.location-inner .showcase-heading { margin: 0; }
.maps-link { display: inline-flex; gap: 8px; margin-top: 14px; color: var(--gold-text); font-weight: 700; text-decoration: none; }
.maps-link:hover { color: var(--gold); }
.location-map { overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg); }
.location-map iframe { display: block; width: 100%; height: 100%; border: 0; }

.btn-nav {
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.btn-nav:hover { border-color: var(--gold); color: var(--gold); }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.88rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-panel-link {
  color: var(--gold-text);
  text-decoration: none;
  opacity: 0.6;
  font-size: 0.82rem;
  transition: opacity var(--transition);
}

.footer-panel-link:hover { opacity: 1; }

.developer-credit {
  color: var(--text-dim);
  font-size: 0.82rem;
}

.developer-credit a {
  color: var(--gold-text);
  text-decoration: none;
}

.developer-credit a:hover { text-decoration: underline; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero { padding: 32px 16px 24px; }
  .theme-toggle { top: 14px; right: 14px; }
  .wizard-wrapper { padding: 24px 14px 48px; }
  .dot-label { display: none; }
  .dot-num { width: 28px; height: 28px; font-size: 0.78rem; }
  .barbers-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .dates-grid { flex-direction: column; }
  .date-card { flex: none; }
  .slots-grid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
  h2 { font-size: 1.5rem; }
  .showcase-section { padding: 42px 16px; }
  .photo-carousel { height: auto; min-height: 0; aspect-ratio: 4 / 5; }
  .carousel-control { width: 38px; height: 38px; }
  .carousel-prev { left: 10px; }
  .carousel-next { right: 10px; }
  .location-inner { grid-template-columns: 1fr; gap: 20px; }
  .location-map { aspect-ratio: 4 / 3; }
}
