/* =====================================================
   ARDITI HERITAGE RITUAL - app publica
   Tokens del design system Stitch
   ===================================================== */
:root {
  --forest: #2D3A27;
  --forest-ink: #182413;
  --parchment: #F4F1E8;
  --surface: #fcf9f8;
  --white: #ffffff;
  --gold: #C5A059;
  --gold-soft: rgba(197, 160, 89, 0.12);
  --ink: #1A1A1A;
  --muted: #444841;
  --outline: rgba(45, 58, 39, 0.14);
  --error: #ba1a1a;
  --r-sm: 0.5rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;
  --shadow: 0 12px 32px rgba(45, 58, 39, 0.12);
  --font-display: 'Libre Caslon Text', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ------- topbar ------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: rgba(244, 241, 232, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--outline);
}
.brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px; letter-spacing: 0.12em;
  color: var(--forest-ink); text-decoration: none;
}

/* ------- botones ------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 9999px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.03em;
  padding: 14px 28px; text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-primary { background: var(--forest-ink); color: var(--parchment); }
.btn-gold { background: var(--gold); color: var(--forest-ink); }
.btn-outline { background: transparent; color: var(--forest-ink); border: 1.5px solid var(--gold); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ------- hero ------- */
.hero {
  background: linear-gradient(180deg, #1f2a1b 0%, var(--forest) 70%, #24301f 100%);
  color: var(--parchment);
  padding: 88px 20px 72px;
}
.hero-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 7vw, 58px);
  line-height: 1.1; letter-spacing: -0.02em; font-weight: 700;
  margin-bottom: 18px;
}
.hero-sub { font-size: 17px; opacity: 0.85; max-width: 480px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .btn-outline { color: var(--parchment); }

/* ------- secciones ------- */
.section { max-width: 1000px; margin: 0 auto; padding: 64px 20px; }
.section-dim { max-width: none; background: var(--surface); }
.section-dim > * { max-width: 1000px; margin-left: auto; margin-right: auto; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 34px);
  color: var(--forest-ink); margin-bottom: 12px;
}
.section-text { max-width: 560px; color: var(--muted); margin-bottom: 24px; }
.chips-row { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  background: var(--gold-soft); color: #785a1a;
  border-radius: 9999px; padding: 8px 18px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
}

/* ------- servicios (acordeon por categoria) ------- */
.cats { display: flex; flex-direction: column; gap: 40px; margin-top: 24px; }
.cat-titulo {
  font-size: 13px; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.cat-titulo::after { content: ''; flex: 1; height: 1px; background: var(--outline); }
.srv-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.srv-card {
  background: var(--white); border-radius: var(--r-xl);
  padding: 24px; border: 1px solid var(--outline);
  display: flex; flex-direction: column; gap: 8px;
  text-align: left; transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.srv-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.srv-nombre { font-family: var(--font-display); font-size: 19px; color: var(--forest-ink); }
.srv-desc { font-size: 14px; color: var(--muted); flex: 1; }
.srv-meta { display: flex; align-items: baseline; justify-content: space-between; margin-top: 6px; }
.srv-dur { font-size: 13px; color: var(--muted); }
.srv-precio { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--forest-ink); }
.srv-foto { border-radius: var(--r-lg); aspect-ratio: 16/7; object-fit: cover; width: 100%; margin-bottom: 6px; }

/* ------- barberos ------- */
.barberos-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 24px; }
.barbero-card {
  background: var(--white); border-radius: var(--r-xl); border: 1px solid var(--outline);
  padding: 28px 24px; text-align: center;
}
.barbero-foto {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 14px; border: 2px solid var(--gold);
}
.barbero-foto-ph {
  width: 88px; height: 88px; border-radius: 50%;
  margin: 0 auto 14px; border: 2px solid var(--gold);
  background: var(--forest); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 34px;
}
.barbero-nombre { font-family: var(--font-display); font-size: 20px; color: var(--forest-ink); }
.barbero-desc { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ------- productos ------- */
.productos-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 24px; }
.producto-card { background: var(--white); border: 1px solid var(--outline); border-radius: var(--r-xl); overflow: hidden; display: flex; flex-direction: column; }
.producto-foto { aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--parchment); }
.producto-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.producto-nombre { font-weight: 700; color: var(--forest-ink); }
.producto-desc { font-size: 13px; color: var(--muted); flex: 1; }
.producto-precio { font-family: var(--font-display); font-size: 18px; color: var(--forest-ink); }

/* ------- ubicacion ------- */
.ubicacion-card {
  background: var(--white); border-radius: var(--r-xl); border: 1px solid var(--outline);
  overflow: hidden; display: grid; grid-template-columns: 1fr;
}
@media (min-width: 760px) { .ubicacion-card { grid-template-columns: 1fr 1.2fr; } }
.ubicacion-datos { padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.dato { display: flex; flex-direction: column; gap: 2px; }
.dato-label {
  font-size: 11px; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold);
}
.mapa iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ------- footer ------- */
.footer { background: var(--forest-ink); color: var(--parchment); padding: 48px 20px 90px; text-align: center; }
.footer-brand { font-family: var(--font-display); letter-spacing: 0.14em; font-size: 20px; color: var(--gold); margin-bottom: 10px; }
.footer p { max-width: 480px; margin: 0 auto 8px; font-size: 14px; opacity: 0.85; }
.footer-fine { font-size: 12px; opacity: 0.6; }

/* ------- FAB ------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 45;
  background: var(--gold); color: var(--forest-ink);
  border: none; border-radius: 9999px;
  padding: 16px 26px; font-weight: 800; font-size: 15px;
  box-shadow: var(--shadow);
}

/* ===================================================
   FLUJO DE RESERVA
   =================================================== */
.flujo {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(26, 26, 26, 0.5);
  display: flex; align-items: flex-end; justify-content: center;
}
@media (min-width: 640px) { .flujo { align-items: center; padding: 24px; } }
.flujo-panel {
  background: var(--parchment); width: 100%; max-width: 560px;
  max-height: 92vh; overflow-y: auto;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 20px 20px 32px;
}
@media (min-width: 640px) { .flujo-panel { border-radius: var(--r-xl); } }
.flujo-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.flujo-head h2 { font-family: var(--font-display); font-size: 20px; color: var(--forest-ink); flex: 1; text-align: center; }
.flujo-volver, .flujo-cerrar {
  background: var(--white); border: 1px solid var(--outline);
  width: 38px; height: 38px; border-radius: 50%; font-size: 18px; color: var(--forest-ink);
}
.flujo-pasos { display: flex; gap: 6px; justify-content: center; margin-bottom: 18px; }
.paso-dot { width: 26px; height: 4px; border-radius: 4px; background: var(--outline); transition: background 0.2s; }
.paso-dot.activo { background: var(--gold); }
.paso-titulo { font-family: var(--font-display); font-size: 22px; color: var(--forest-ink); margin-bottom: 16px; }

/* paso servicios */
.flujo-cat { margin-bottom: 20px; }
.flujo-srv {
  width: 100%; text-align: left;
  background: var(--white); border: 1px solid var(--outline); border-radius: var(--r-lg);
  padding: 16px 18px; margin-bottom: 10px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.flujo-srv:hover { border-color: var(--gold); }
.flujo-srv .n { font-weight: 700; color: var(--forest-ink); }
.flujo-srv .m { font-size: 13px; color: var(--muted); }
.flujo-srv .p { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--forest-ink); white-space: nowrap; }

/* paso barberos */
.paso-barberos { display: flex; flex-direction: column; gap: 10px; }
.flujo-barbero {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: var(--white); border: 1px solid var(--outline); border-radius: var(--r-lg);
  padding: 14px 16px; width: 100%;
}
.flujo-barbero:hover { border-color: var(--gold); }
.flujo-barbero img, .flujo-barbero .ph {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.flujo-barbero .ph {
  background: var(--forest); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 20px;
}
.flujo-barbero .info { flex: 1; }
.flujo-barbero .n { font-weight: 700; color: var(--forest-ink); }
.flujo-barbero .d { font-size: 13px; color: var(--muted); }
.flujo-barbero.cualquiera { border-style: dashed; }

/* paso fecha/hora */
.fechas-strip {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 16px;
  scrollbar-width: thin;
}
.fecha-card {
  flex: 0 0 auto; width: 64px; padding: 12px 0;
  background: var(--white); border: 1px solid var(--outline); border-radius: var(--r-lg);
  text-align: center;
}
.fecha-card .dw { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fecha-card .dn { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--forest-ink); }
.fecha-card.sel { background: var(--forest-ink); border-color: var(--forest-ink); }
.fecha-card.sel .dw, .fecha-card.sel .dn { color: var(--parchment); }
.fecha-card[disabled] { opacity: 0.35; }
.slots-titulo {
  font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin: 14px 0 10px;
}
.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.slot {
  background: var(--white); border: 1px solid var(--outline); border-radius: var(--r-sm);
  padding: 11px 0; font-weight: 700; font-size: 14px; color: var(--forest-ink); text-align: center;
}
.slot:hover { border-color: var(--gold); }
.slot.sel { background: var(--gold); border-color: var(--gold); }
.sin-slots { color: var(--muted); font-size: 14px; padding: 18px 0; }

/* paso confirmacion */
.resumen {
  background: var(--forest); color: var(--parchment);
  border-radius: var(--r-lg); padding: 20px; margin-bottom: 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.resumen .fila { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.resumen .k { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.resumen .v { text-align: right; }
.resumen .total { font-family: var(--font-display); font-size: 20px; color: var(--gold); }
.campo { margin-bottom: 14px; }
.campo label {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.campo input {
  width: 100%; padding: 13px 14px;
  border: 1px solid var(--forest); border-radius: var(--r-sm);
  background: var(--white); font-family: inherit; font-size: 15px;
}
.campo input:focus { border-width: 2px; outline: none; }
.error { color: var(--error); font-size: 14px; margin-bottom: 12px; }
.nota { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }

/* exito */
.paso-exito { text-align: center; padding-top: 14px; }
.exito-check {
  width: 76px; height: 76px; border-radius: 50%;
  border: 3px solid var(--gold); color: var(--gold);
  font-size: 36px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.exito-titulo { font-family: var(--font-display); font-size: 26px; color: var(--forest-ink); margin-bottom: 8px; }
.exito-sub { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.paso-exito .resumen { text-align: left; }
.paso-exito .btn { margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* hidden siempre gana, aunque el elemento tenga display propio */
[hidden] { display: none !important; }
