/* The Glamour — estructura limpia tipo iOS con alma de salón (dirección B3) + kit de logo (rose-gold #CAA38A sobre crema #FCF7F1) */
:root {
  --canvas: #ffffff;
  --band: #fcf7f1;        /* crema del kit de logo */
  --ink: #2a211e;
  --slate: #7b6d6f;
  --steel: #a99c9d;
  --hair: #efe5dc;
  --ctrl: #f1e8df;
  --rose: #caa38a;        /* color del logo (decorativo) */
  --lacquer: #8c6450;     /* rose-gold oscuro: botones y acentos (legible con letra blanca) */
  --sel: #241a1c;         /* lo seleccionado */
  --ok: #3d7a57;
  --danger: #b3261e;
  --r: 28px;
  --serif: 'Instrument Serif', Georgia, serif;
  --text: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* alias que usa el panel */
  --bg: var(--band);
  --surface: var(--canvas);
  --muted: var(--slate);
  --line: var(--hair);
  --accent: var(--lacquer);
  --accent-ink: #ffffff;
  --accent-soft: #f5ebe3;
  --gold: #a5672f;
  --radius: 20px;
  --sans: var(--text);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { overscroll-behavior: none; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--band);
  color: var(--ink);
  font: 17px/1.47 var(--text);
  letter-spacing: -0.374px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.muted { color: var(--slate); font-size: 14px; letter-spacing: -0.224px; }
.pad { padding: 14px 16px; margin: 0; }
.small { font-size: 15px; }
.txt { flex: 1; min-width: 0; }

/* ---------- app ---------- */
.app { max-width: 520px; margin: 0 auto; min-height: 100vh; background: var(--band); }
@media (min-width: 560px) {
  body { background: #f3ebe2; }
  .app { box-shadow: 0 0 0 1px var(--hair); }
}
.screen { padding-bottom: env(safe-area-inset-bottom); }

/* portada (en el celular solo se ve en el paso 1) */
.app:not([data-step="1"]) .cover { display: none; }
.cover {
  position: relative;
  height: min(62vh, 520px);
  min-height: 360px;
  background: #caa38a center / cover no-repeat;
  display: flex;
  align-items: flex-end;
}
.cover::after {
  content: '';
  position: absolute;
  inset: 25% 0 0 0;
  background: linear-gradient(to top, rgba(32, 24, 21, .82) 0%, rgba(32, 24, 21, .55) 45%, transparent 100%);
}
.cover-text { position: relative; z-index: 1; color: #fff; padding: 0 24px 26px; width: 100%; text-align: center; }
.cover-text h1 { margin: 0; line-height: 0; }
.cover-logo { width: min(300px, 72%); height: auto; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .25)); }
.cover-text p { font: italic 400 19px/1.25 var(--serif); margin: 12px 0 0; letter-spacing: 0; opacity: .95; }

.info { background: var(--canvas); padding: 18px 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.intro { font: 400 40px/1 var(--serif); letter-spacing: -0.5px; margin: 6px 0 -4px; }
.intro i { color: var(--lacquer); }
.status { margin: 0; font-size: 14px; letter-spacing: -0.224px; color: var(--slate); }
.status b { color: var(--ink); font-weight: 600; }
.pills { display: flex; gap: 10px; }
.pill {
  flex: 1;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid var(--hair);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
}
.pill svg { width: 18px; height: 18px; }
.gal-head { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 -6px; }
.gal-head h3 { font: 400 26px/1 var(--serif); margin: 0; letter-spacing: 0; }
.gal-head i { color: var(--lacquer); }
.strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 -20px;
  padding: 0 20px;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip img { flex: none; width: 42%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; display: block; scroll-snap-align: start; }

/* servicios */
.band { padding: 8px 16px 0; }
.sec { display: flex; justify-content: space-between; align-items: baseline; padding: 28px 8px 14px; }
.sec h2 { font: 400 38px/1 var(--serif); letter-spacing: -0.4px; margin: 0; }
.sec span { font-size: 13px; color: var(--slate); letter-spacing: -0.12px; }
.card { background: var(--canvas); border-radius: var(--r); overflow: hidden; }
.list { display: flex; flex-direction: column; }
.svc {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 16px;
  text-align: left;
  position: relative;
  transition: background .15s;
}
.svc + .svc::before { content: ''; position: absolute; top: 0; left: 76px; right: 0; height: 1px; background: var(--hair); }
.svc:active { background: var(--band); }
.thumb { width: 48px; height: 48px; border-radius: 16px; flex: none; object-fit: cover; display: block; background: #dcbfae; }
.thumb.sm { width: 44px; height: 44px; border-radius: 13px; }
.thumb.md { width: 56px; height: 56px; }
.svc-name { font-size: 16px; font-weight: 500; line-height: 1.3; letter-spacing: -0.32px; }
.svc-meta { font-size: 14px; letter-spacing: -0.224px; color: var(--slate); margin-top: 1px; }
.svc-price { font-size: 16px; text-align: right; line-height: 1.25; flex: none; max-width: 42%; }
.svc-price small { display: block; font-size: 12px; color: var(--slate); letter-spacing: -0.12px; }
.note { font: italic 400 19px/1.3 var(--serif); color: var(--slate); text-align: center; padding: 26px 30px 0; margin: 0; letter-spacing: 0; }
.foot { text-align: center; color: var(--steel); font-size: 12px; letter-spacing: -0.12px; padding: 28px 16px 40px; }

/* navegación de pasos */
.nav {
  position: sticky;
  top: 0;
  z-index: 4;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: env(safe-area-inset-top) 8px 0;
  background: rgba(252, 247, 241, .85);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
}
.nav-back { height: 44px; display: flex; align-items: center; gap: 6px; padding: 0 10px; font-size: 16px; }
.nav-back svg { width: 10px; height: 17px; }
.nav-title { font-weight: 600; font-size: 16px; }
.nav-pad { width: 96px; }
.title { font: 400 44px/1 var(--serif); letter-spacing: -0.6px; padding: 6px 24px 0; margin: 0; }
.title i { color: var(--lacquer); }
.link { color: var(--lacquer); font-size: 15px; font-weight: 500; padding: 10px 0 10px 12px; flex: none; }
.link.inline { padding: 0; font-size: inherit; }

/* paso 2 */
.chosen { margin: 16px 16px 0; padding: 12px 16px 12px 12px; display: flex; align-items: center; gap: 12px; }
.days-card { margin: 12px 16px 0; padding: 16px 0 12px; }
.month-row { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 10px 20px; }
.month { font: 400 26px/1 var(--serif); letter-spacing: 0; min-height: 28px; }
.arrows { display: flex; }
.arrows button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.arrows button:hover { background: var(--band); }
.arrows svg { width: 9px; height: 15px; }
.days {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 0 10px;
  scrollbar-width: none;
}
.days::-webkit-scrollbar { display: none; }
.day { flex: none; width: 52px; display: flex; flex-direction: column; align-items: center; gap: 6px; scroll-snap-align: center; padding: 2px 0; }
.day small { font-size: 12px; color: var(--slate); letter-spacing: -0.12px; }
.day strong { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 500; font-size: 18px; transition: background .15s, color .15s; }
.day i { font-style: normal; font-size: 10px; height: 12px; line-height: 12px; color: var(--steel); letter-spacing: 0; }
.day[disabled] { cursor: default; }
.day[disabled] strong { color: var(--steel); font-weight: 400; }
.day:not([disabled]):hover strong { background: var(--band); }
.day.is-sel strong { background: var(--sel); color: #fff; }
.day.is-sel small { color: var(--ink); font-weight: 600; }
.slab { display: flex; justify-content: space-between; align-items: baseline; padding: 22px 26px 4px; }
.slab b { font: italic 400 24px/1.1 var(--serif); letter-spacing: 0; }
.slab span { font-size: 13px; color: var(--slate); }
.slab-label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); padding: 14px 26px 10px; margin: 0; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 16px; }
.slot { height: 46px; border-radius: 9999px; background: var(--canvas); display: flex; align-items: center; justify-content: center; gap: 3px; font-size: 16px; transition: background .15s, color .15s; }
.slot small { font-size: 12px; color: var(--slate); }
.slot.is-sel { background: var(--sel); color: #fff; font-weight: 500; }
.slot.is-sel small { color: rgba(255, 255, 255, .7); }
.spacer { height: 120px; }

/* barra inferior */
.bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 520px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-top: 1px solid var(--hair);
  animation: up .2s ease-out;
}
@keyframes up { from { transform: translate(-50%, 100%); } }
.bar-info { flex: 1; display: flex; flex-direction: column; }
.bar-info strong { font-weight: 600; font-size: 16px; }
.bar-info span { font-size: 13px; color: var(--slate); }
.cta {
  height: 52px;
  padding: 0 28px;
  border-radius: 9999px;
  background: var(--lacquer);
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  transition: transform .1s, opacity .15s;
}
.cta:active { transform: scale(.98); }
.cta:disabled { opacity: .6; }
.cta.wide { flex: 1; width: 100%; }

/* paso 3 */
.sum { margin: 10px 16px 0; padding: 16px; display: flex; align-items: center; gap: 14px; }
.sum-name { font: 400 26px/1.05 var(--serif); letter-spacing: 0; }
.dep { text-align: right; flex: none; }
.dep strong { display: block; font: 400 32px/1 var(--serif); color: var(--lacquer); letter-spacing: 0; }
.dep small { font-size: 12px; color: var(--slate); }
.sh { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); padding: 22px 26px 8px; margin: 0; }
.sh b { color: var(--ink); font-weight: 600; }
.group { margin: 0 16px; }
.group + .group { margin-top: 12px; }
.row-field, .row-cell { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 6px 18px; position: relative; }
.row-field + .row-field::before, .row-field + .row-cell::before, .row-cell + .row-field::before, .row-cell + .row-cell::before {
  content: ''; position: absolute; top: 0; left: 18px; right: 0; height: 1px; background: var(--hair);
}
.row-field > span { width: 96px; flex: none; font-size: 15px; }
.row-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; padding: 10px 0; }
.row-field input::placeholder { color: var(--steel); }
.row-cell .ic { width: 20px; height: 20px; flex: none; color: var(--ink); }
.row-cell .chev { width: 8px; height: 14px; color: var(--steel); flex: none; }
.row-cell small { margin-top: 2px; }
.upload { cursor: pointer; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload .ok { color: var(--ok); font-weight: 500; }
.hp { position: absolute; left: -9999px; }
.seg { margin: 0 16px 10px; background: var(--ctrl); border-radius: 9999px; padding: 3px; display: flex; height: 42px; }
.seg-btn { flex: 1; border-radius: 9999px; font-size: 14px; letter-spacing: -0.224px; transition: background .15s; }
.seg-btn.is-on { background: var(--canvas); font-weight: 600; box-shadow: 0 1px 2px rgba(36, 26, 28, .08); }
.toggle {
  appearance: none;
  width: 51px;
  height: 31px;
  border-radius: 999px;
  background: var(--ctrl);
  position: relative;
  margin: 0;
  flex: none;
  cursor: pointer;
  transition: background .2s;
}
.toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .18);
  transition: transform .2s;
}
.toggle:checked { background: var(--sel); }
.toggle:checked::after { transform: translateX(20px); }
.policy { margin: 10px 26px 0; font-size: 14px; letter-spacing: -0.224px; color: var(--slate); }
.error {
  margin: 14px 16px 0;
  background: #fbeceb;
  color: var(--danger);
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.224px;
}

/* ---------- computadora: portada fija a la izquierda, reserva a la derecha ---------- */
@media (min-width: 960px) {
  body { background: var(--band); }
  .app {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(520px, 46%);
    box-shadow: none;
  }
  .app:not([data-step="1"]) .cover { display: flex; }
  .cover {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 0;
  }
  .cover-text { padding: 0 56px 56px; }
  .cover-logo { width: min(440px, 60%); }
  .cover-text p { font-size: 24px; }
  .content { min-width: 0; background: var(--band); }
  .screen { max-width: 640px; margin: 0 auto; padding: 0 32px; }
  .info { background: transparent; padding: 64px 8px 8px; }
  .intro { font-size: 64px; letter-spacing: -1px; }
  .status { font-size: 15px; }
  .pills { max-width: 380px; }
  .strip { margin: 0; padding: 0; }
  .strip img { width: 31%; }
  .band { padding: 8px 0 0; }
  .svc { min-height: 80px; padding: 14px 20px; }
  .svc + .svc::before { left: 80px; }
  .svc:hover { background: #fcf9f7; }
  .nav { background: rgba(252, 247, 241, .9); padding-top: 16px; height: 68px; margin: 0 -8px; }
  .title { font-size: 56px; padding: 12px 0 0; }
  .chosen, .days-card, .sum, .group, .seg { margin-left: 0; margin-right: 0; }
  .slots { padding: 0; grid-template-columns: repeat(4, 1fr); }
  .slab, .slab-label, .sh { padding-left: 8px; padding-right: 8px; }
  .policy { margin: 10px 8px 0; }
  .error { margin: 14px 0 0; }
  .day { width: 58px; }
  .slot:hover:not(.is-sel), .day:not([disabled]):hover strong { background: var(--ctrl); }
  /* la barra baja dentro de la columna derecha */
  .bar {
    position: sticky;
    left: auto;
    transform: none;
    width: auto;
    max-width: none;
    margin: 24px -32px 0;
    padding: 16px 32px 20px;
    animation: none;
  }
  .spacer { height: 8px; }
  .foot { padding-bottom: 32px; }
}

/* ---------- páginas simples (estado de la cita, login) ---------- */
.hero { max-width: 520px; margin: 0 auto; padding: 48px 20px 20px; text-align: center; }
.hero a { color: inherit; text-decoration: none; }
.hero-logo { width: 190px; height: auto; display: inline-block; }
.brand { font: 400 52px/1 var(--serif); letter-spacing: -0.8px; margin: 0; }
.brand i { font-style: italic; color: var(--lacquer); }
.tagline { margin: 8px 0 0; font: italic 400 19px var(--serif); color: var(--slate); letter-spacing: 0; }
.flow { max-width: 520px; margin: 0 auto; padding: 0 16px 40px; }
.panel { background: var(--canvas); border-radius: var(--r); padding: 26px 20px; }
.panel h2 { font: 400 32px/1.05 var(--serif); letter-spacing: -0.3px; margin: 4px 0 10px; }
.hint { color: var(--slate); font-size: 15px; letter-spacing: -0.24px; margin: 0 0 14px; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field small { font-weight: 400; color: var(--slate); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--hair);
  border-radius: 14px;
  background: var(--band);
  font-size: 16px;
  outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); background: var(--canvas); }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; margin-bottom: 16px; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.panel .cta { width: 100%; }
.panel .error { margin: 0 0 14px; }

.status-card { text-align: center; }
.status-card .summary { text-align: left; margin: 18px 0; }
.summary { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px; border-radius: 20px; background: var(--band); }
.summary small { display: block; font-size: 12px; color: var(--slate); }
.badge { display: inline-block; font-size: 13px; font-weight: 600; padding: 5px 14px; border-radius: 999px; margin-bottom: 10px; letter-spacing: -0.12px; }
.badge.pending { background: #f6ecdf; color: var(--gold); }
.badge.confirmed { background: #e7f1ea; color: var(--ok); }
.badge.cancelled, .badge.expired { background: #fbeceb; color: var(--danger); }
.link-btn { display: inline-block; margin-top: 8px; color: var(--lacquer); font-weight: 500; text-decoration: none; }
.thumb-ph { display: block; width: 100%; height: 100%; background: #dcbfae; }
.back { display: inline-block; color: var(--slate); font-size: 15px; font-weight: 500; text-decoration: none; padding: 0 0 12px; }
