/* =========================================================================
   Luxe Clean — Sistema de diseño (tema CLARO · navy + lima)
   Fondo claro, header navy, tarjetas navy que resaltan, CTA lima.
   ========================================================================= */
:root {
  --navy:       #0a1f44;
  --navy-2:     #102a63;
  --header:     #2e3238;   /* gris carbón del header (fiel al mockup del cliente) */

  --bg:         #f3f7fb;   /* fondo de página */
  --bg-2:       #e9f0f8;
  --surface:    #ffffff;   /* tarjetas claras */
  --surface-2:  #ffffff;   /* inputs */
  --line:       #e2e9f1;
  --line-2:     #cfd9e6;

  --lime:       #9fe015;   /* relleno / CTA / acentos */
  --lime-bright:#b6f53a;
  --lime-ink:   #4e7a06;   /* lima como TEXTO sobre claro (legible) */
  --lime-tint:  #f1fadd;   /* fondo seleccionado */

  --ink:        #0f2138;   /* texto principal */
  --ink-soft:   #334a63;
  --muted:      #5b6b7e;

  --success:    #16834a;
  --success-bg: #dcfce7;
  --warn:       #9a6700;
  --warn-bg:    #fff3d6;
  --danger:     #c0392b;
  --danger-bg:  #fdecea;
  --info-bg:    #eef7d9;

  --radius:     18px;
  --radius-sm:  13px;
  --radius-lg:  24px;

  --shadow:     0 8px 24px rgba(15,33,56,.08);
  --shadow-card:0 4px 16px rgba(15,33,56,.06);
  --glow-lime:  0 8px 22px rgba(159,224,21,.45);

  --maxw:       520px;
  --font:       "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100vh; min-height: 100dvh; line-height: 1.45;
  background:
    radial-gradient(900px 360px at 50% -8%, #e3edf8 0%, rgba(227,237,248,0) 70%),
    var(--bg);
}
img { max-width: 100%; display: block; }
button { font-family: inherit; }
a { color: var(--lime-ink); }

/* ---- Layout ---- */
.app { max-width: var(--maxw); margin: 0 auto; min-height: 100vh; min-height: 100dvh; position: relative; padding-bottom: 80px; }
.container { padding: 16px; }
.stack > * + * { margin-top: 14px; }

/* ---- Barra superior / marca (oscura) ---- */
.appbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: calc(15px + env(safe-area-inset-top)) 16px 15px;
  background: var(--header);
  border-bottom: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 2px 14px rgba(0,0,0,.22);
}
.appbar .logo { height: 62px; width: auto; flex: none; }      /* logo oficial (lockup) */
.appbar.center { justify-content: center; }
.appbar .spacer { flex: 1; }
.appbar .bar-link {
  color: var(--ink-soft); text-decoration: none; font-size: .82rem; font-weight: 700;
  background: var(--bg-2); padding: 7px 12px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line);
}

/* ---- Saludo ---- */
.greet { display: flex; align-items: center; gap: 12px; padding: 4px 2px 2px; }
.greet .avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border: 2px solid var(--lime); display: grid; place-items: center; color: var(--lime); font-weight: 800; font-size: 1.1rem;
}
.greet h2 { margin: 0; font-size: 1.18rem; color: var(--ink); }
.greet p { margin: 1px 0 0; color: var(--muted); font-size: .9rem; }

/* ---- Banner de urgencia (navy, resalta sobre claro) ---- */
.urgency {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(100deg, var(--navy), var(--navy-2));
  border-left: 4px solid var(--lime); box-shadow: var(--shadow-card);
  border-radius: var(--radius-sm); padding: 12px 14px; font-weight: 700; font-size: .9rem; color: #fff;
}
.urgency .ic { font-size: 1.2rem; }
.urgency b { color: var(--lime-bright); }

/* ---- Tiles de servicio (navy, resaltan) ---- */
/* ---- Tarjetas de servicio = imagen completa (el botón conserva agendar) ----
   Cada imagen ya trae su propio diseño (título, precio, "Agendar →"); el
   .tile-svc solo es el marco clickable. Móvil: 1 columna; escritorio: 3 en fila. */
.tiles { display: grid; grid-template-columns: 1fr; gap: 14px; }
.tile-svc {
  display: block; width: 100%; padding: 0; border: none; background: none; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card);
  line-height: 0; -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, box-shadow .15s ease;
}
.tile-svc img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.tile-svc:active { transform: scale(.99); }
.tile-svc:hover { box-shadow: var(--shadow); }

/* ---- CTA grande (lima) ---- */
.cta {
  display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  width: 100%; border: none; cursor: pointer;
  background: linear-gradient(180deg, var(--lime-bright), var(--lime)); color: #0a2008;
  font-weight: 800; font-size: 1.08rem; padding: 16px 18px; border-radius: var(--radius-sm);
  box-shadow: var(--glow-lime); transition: transform .06s;
}
.cta:active { transform: scale(.985); }
.cta small { display: block; font-weight: 700; font-size: .74rem; opacity: .82; }

/* ---- "Tus servicios agendados" ---- */
.section-title { font-weight: 800; font-size: 1rem; margin: 4px 2px; color: var(--ink); }
.svc-progress { height: 10px; border-radius: 999px; background: #e6edf5; overflow: hidden; }
.svc-progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--lime), var(--lime-bright)); border-radius: 999px; }
.mini-booking {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; box-shadow: var(--shadow-card);
}
.mini-booking + .mini-booking { margin-top: 10px; }
.mb-row { display: flex; align-items: center; gap: 12px; }
.mini-booking .folio { font-weight: 800; color: var(--ink); }
.mini-booking .when { color: var(--muted); font-size: .82rem; }
.mini-booking .spacer { flex: 1; }
.mini-acts { display: flex; gap: 8px; margin-top: 8px; }
.mini-acts button { flex: 1; padding: 9px 8px; border-radius: 10px; font-size: .82rem; font-weight: 700; cursor: pointer; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink-soft); }
.mini-acts button.wa { background: #25d366; color: #04210f; border: none; }

/* el asistente reserva espacio para la barra inferior fija */
#wizard { padding-bottom: 96px; }

/* ---- Bottom navigation (clara) ---- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,.97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.navitem {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 4px 8px; color: var(--muted); font-size: .72rem; font-weight: 700;
}
.navitem svg { width: 22px; height: 22px; }
.navitem.active { color: var(--lime-ink); }

/* ---- Stepper ---- */
.steps { display: flex; gap: 6px; padding: 14px 16px 4px; }
.steps .dot { flex: 1; height: 5px; border-radius: 999px; background: #dce4ee; transition: background .25s; }
.steps .dot.done { background: var(--lime); }
.steps .dot.active { background: var(--lime-ink); }
.step-label { padding: 4px 16px 0; color: var(--lime-ink); font-size: .78rem; font-weight: 800; letter-spacing: .3px; }
.step-title { padding: 2px 16px 0; font-size: 1.3rem; font-weight: 800; margin: 0; color: var(--ink); }
.step-help  { padding: 4px 16px 0; color: var(--ink-soft); font-size: .92rem; }

/* ---- Cards ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-card); }
.card-flat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.card h3 { color: var(--ink); }

/* ---- Opciones seleccionables ---- */
.options { display: grid; gap: 10px; }
.option {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 14px; cursor: pointer; color: var(--ink);
  transition: border-color .15s, background .15s, transform .05s;
}
.option:active { transform: scale(.99); }
.option .opt-main { flex: 1; min-width: 0; }
.option .opt-title { font-weight: 700; font-size: .98rem; }
.option .opt-sub { color: var(--muted); font-size: .82rem; margin-top: 1px; }
.option .opt-price { font-weight: 800; color: var(--lime-ink); white-space: nowrap; }
.option .opt-check { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; color: var(--navy); font-size: .8rem; }
.option.selected { border-color: var(--lime); background: var(--lime-tint); }
.option.selected .opt-check { background: var(--lime); border-color: var(--lime); }
.option.disabled { opacity: .45; pointer-events: none; }

/* Horarios */
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.slot { border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); padding: 12px 6px; text-align: center; font-weight: 700; cursor: pointer; color: var(--ink); font-size: .96rem; }
.slot small { display: block; font-weight: 600; font-size: .72rem; color: var(--muted); margin-top: 2px; }
.slot.selected { border-color: var(--lime); background: var(--lime-tint); color: var(--lime-ink); }
.slot.full { opacity: .45; pointer-events: none; text-decoration: line-through; }

/* ---- Formularios ---- */
.field { display: block; }
.field + .field { margin-top: 13px; }
.field > label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; color: var(--ink-soft); }
.field .hint { font-weight: 500; color: var(--muted); font-size: .78rem; }
input[type=text], input[type=tel], input[type=date], input[type=password], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface-2);
  border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); padding: 12px 13px;
}
input::placeholder, textarea::placeholder { color: #8a98ab; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lime-ink); box-shadow: 0 0 0 3px var(--lime-tint); }
textarea { resize: vertical; min-height: 70px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: .78rem; margin-top: 5px; display: none; }
.field.invalid .err { display: block; }

/* Foco de teclado visible (WCAG 2.4.7) — visible sobre claro y sobre navy */
.tile:focus-visible, .navitem:focus-visible, .option:focus-visible, .slot:focus-visible,
.cta:focus-visible, .btn:focus-visible, .bar-link:focus-visible, .icon-link:focus-visible,
.chip-btn:focus-visible, .photo-add:focus-visible, a:focus-visible, input:focus-visible, .rm:focus-visible {
  /* Anillo navy (alto contraste en claro) + halo lima (visible sobre tarjetas navy) */
  outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 3px var(--lime); border-radius: 8px;
}

/* ---- Fotos ---- */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.photo-thumb { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb .rm { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border: none; border-radius: 50%; background: rgba(0,0,0,.62); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.photo-thumb .rm::before { content: ""; position: absolute; inset: -8px; } /* área táctil ≥44px */
.photo-add { display: grid; place-items: center; aspect-ratio: 1; cursor: pointer; gap: 2px; text-align: center; border: 2px dashed var(--lime-ink); border-radius: var(--radius-sm); color: var(--lime-ink); background: var(--lime-tint); font-size: .76rem; font-weight: 700; }
.photo-add span.ic { font-size: 1.5rem; }

/* ---- Botones ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: var(--radius-sm); padding: 13px 18px; font-size: 1rem; font-weight: 800; cursor: pointer; transition: transform .05s, opacity .15s, background .15s; }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(180deg, var(--lime-bright), var(--lime)); color: #0a2008; }
.btn-ghost { background: var(--lime-tint); color: var(--lime-ink); border: 1px solid var(--line); }
.btn-line { background: var(--surface); color: var(--ink-soft); border: 1.5px solid var(--line-2); }
.btn-wa { background: #25d366; color: #04210f; }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 20px; font-size: 1.05rem; }

/* ---- Barra inferior del asistente (clara) ---- */
.footbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; max-width: var(--maxw); margin: 0 auto;
  background: rgba(255,255,255,.98); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  padding: 11px 16px calc(11px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px;
}
.footbar .total-label { font-size: .72rem; color: var(--muted); }
.footbar .total-val { font-size: 1.25rem; font-weight: 800; color: var(--ink); line-height: 1.05; }
.footbar .grow { flex: 1; }

/* ---- Resumen ---- */
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line-2); font-size: .94rem; }
.summary-row:last-child { border-bottom: none; }
.summary-row .lbl { color: var(--muted); }
.summary-row .val { font-weight: 700; text-align: right; color: var(--ink); }
.summary-total { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 12px; border-top: 2px solid var(--line); }
.summary-total .lbl { font-weight: 700; }
.summary-total .val { font-size: 1.4rem; font-weight: 800; color: var(--lime-ink); }

/* ---- Lista "incluye" ---- */
.includes { list-style: none; margin: 0; padding: 0; }
.includes li { display: flex; gap: 9px; padding: 5px 0; font-size: .9rem; color: var(--ink-soft); }
.includes li::before { content: "✓"; color: var(--lime-ink); font-weight: 800; flex: none; }

/* ---- Pills de estado ---- */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; }
.pill.pendiente  { background: var(--warn-bg); color: var(--warn); }
.pill.asignada   { background: var(--info-bg); color: var(--lime-ink); }
.pill.en_proceso { background: #ede9fe; color: #6d28d9; }
.pill.completada { background: var(--success-bg); color: var(--success); }
.pill.cancelada  { background: var(--danger-bg); color: var(--danger); }

/* ---- Confirmación ---- */
.confirm-ok { text-align: center; padding: 8px 0 4px; }
.confirm-ok .check { width: 78px; height: 78px; margin: 0 auto 12px; border-radius: 50%; background: var(--lime-tint); color: var(--lime-ink); border: 2px solid var(--lime); display: grid; place-items: center; font-size: 2.4rem; }
.confirm-ok h2 { margin: 0 0 4px; color: var(--ink); }
.folio { font-size: 1.5rem; font-weight: 800; letter-spacing: 1px; color: var(--lime-ink); }

/* ---- Toast (oscuro, resalta) ---- */
.toast-wrap { position: fixed; left: 0; right: 0; bottom: 92px; display: flex; justify-content: center; z-index: 60; pointer-events: none; }
.toast { background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: .9rem; font-weight: 600; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); transition: .25s; max-width: 90%; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--danger); }

/* ---- Spinner ---- */
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.spinner.dark { border-color: #d3dbe6; border-top-color: var(--lime-ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.center-load { display: grid; place-items: center; padding: 30px; }

/* ---- Helpers ---- */
.hidden { display: none !important; }
.muted { color: var(--muted); }
.text-c { text-align: center; }
.small { font-size: .82rem; }
.mt { margin-top: 14px; }
.banner { font-size: .82rem; padding: 9px 12px; border-radius: var(--radius-sm); background: var(--info-bg); color: var(--lime-ink); }
.banner.warn { background: var(--warn-bg); color: var(--warn); }
.price-tag { color: var(--lime-ink); font-weight: 800; }

/* ===================== ESCRITORIO (responsive) =====================
   Móvil byte-idéntico: TODO va en min-width. Llena la pantalla y distribuye. */
:root { --shell: min(1340px, 92vw); --header-h: 66px; --gap: clamp(20px, 2.4vw, 36px); }
.topnav { display: none; }
.bar-inner { display: contents; }
.desktop-only { display: none; }
.lc-step-feature { display: none; }
.lc-wrap { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: clamp(20px, 4vw, 56px); }
.lc-dash > * + * { margin-top: 14px; }   /* en móvil conserva el espaciado del stack */

/* Tablet: holgura, sin bandas */
@media (min-width: 768px) and (max-width: 1023px) {
  .app:not(.admin) { max-width: 760px; }
  .slots { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  body:not(.admin-page) { background: var(--bg); }
  .app:not(.admin) { max-width: none; background: transparent; border-radius: 0; box-shadow: none; margin: 0; overflow: visible; padding: 0; }
  .desktop-only { display: block; }
  .bottomnav { display: none; }

  /* Header */
  .appbar { padding-left: 0; padding-right: 0; }
  .bar-inner { display: flex; align-items: center; gap: 18px; width: 100%; max-width: var(--shell); margin: 0 auto; padding-inline: clamp(20px, 4vw, 56px); }
  .appbar .logo { height: 64px; }
  .topnav { display: flex; gap: 4px; margin-left: auto; }
  .topnav .navitem { flex-direction: row; gap: 8px; padding: 9px 14px; font-size: .92rem; border-radius: 999px; }
  .topnav .navitem svg { width: 18px; height: 18px; }
  .topnav .navitem { color: #d2d7df; }
  .topnav .navitem:hover { color: #fff; background: rgba(255,255,255,.08); }
  .topnav .navitem.active { color: var(--lime-bright); background: rgba(159,224,21,.16); }
  .appbar-cta { display: inline-flex; padding: 10px 20px; font-size: .95rem; }

  /* ---- HOME ---- */
  #tab-inicio { max-width: none; padding: 0; }
  #tab-inicio.stack > * + * { margin-top: 0; }
  #tab-inicio > .greet, #tab-inicio > #urgency, #tab-inicio > #cta-promo { display: none; }

  /* HERO: split valor | reserva (altura natural y generosa, sin huecos) */
  .lc-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy) 0%, #0e2654 58%, #16306b 100%); color: #fff; padding-block: clamp(44px, 5vw, 76px); }
  .lc-hero-watermark { position: absolute; right: -50px; bottom: -60px; width: min(380px, 34%); opacity: .08; z-index: 0; }
  .lc-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr); gap: clamp(32px, 4vw, 56px); align-items: center; }
  .lc-hero-text { display: flex; flex-direction: column; }
  .lc-eyebrow { color: var(--lime-bright); font-weight: 800; letter-spacing: .6px; text-transform: uppercase; font-size: .78rem; }
  .lc-hero-title { font-size: clamp(2.2rem, 3.6vw, 3.4rem); line-height: 1.07; font-weight: 800; margin: 12px 0 14px; color: #fff; }
  .lc-hero-sub { font-size: 1.08rem; color: #c4d6f0; max-width: 30em; margin: 0 0 16px; }
  .lc-urgency-hero:not(:empty) { display: inline-flex; align-items: center; gap: 8px; background: rgba(159,224,21,.14); border: 1px solid var(--lime); color: #fff; font-weight: 700; font-size: .9rem; padding: 9px 14px; border-radius: 999px; margin-bottom: 18px; align-self: flex-start; }
  .lc-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
  .lc-trust { display: flex; gap: 28px; color: #aebfd8; font-size: .8rem; line-height: 1.35; margin-top: 6px; }
  .lc-trust b { color: #fff; font-size: .9rem; }
  .lc-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.55); color: #fff; border-radius: var(--radius-sm); cursor: pointer; font-weight: 800; }
  .lc-ghost:hover { border-color: #fff; background: rgba(255,255,255,.10); }

  /* Tarjeta-motor de reserva (derecha) */
  .lc-hero-action { display: flex; flex-direction: column; gap: 13px; background: var(--surface); border: 1.5px solid var(--lime); border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(0,0,0,.34); padding: clamp(20px, 1.6vw, 26px); color: var(--ink); }
  .lc-action-title { font-weight: 800; font-size: 1.2rem; color: var(--ink); }
  .lc-action-services { display: flex; flex-direction: column; gap: 9px; }
  .lc-action-svc { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); cursor: pointer; font-weight: 700; font-size: .95rem; color: var(--ink); transition: border-color .15s, background .15s; }
  .lc-action-svc:hover { border-color: var(--lime); background: var(--lime-tint); }
  .lc-action-svc b { color: var(--lime-ink); white-space: nowrap; }
  .lc-action-foot { font-size: .82rem; color: var(--muted); text-align: center; }
  #hero-next-booking:not(:empty) { background: var(--lime-tint); border: 1px solid var(--lime); border-radius: var(--radius-sm); padding: 10px 12px; font-size: .88rem; }

  /* CÓMO FUNCIONA */
  .lc-how { background: var(--bg-2); padding-block: clamp(40px, 5vw, 64px); }
  .lc-band-title { text-align: center; font-size: clamp(1.5rem, 2.2vw, 1.95rem); font-weight: 800; margin: 0 0 26px; color: var(--ink); }
  .lc-how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .lc-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-card); }
  .lc-step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--lime); color: #0a2008; font-weight: 800; font-size: 1.1rem; margin-bottom: 12px; }
  .lc-step h3 { margin: 0 0 6px; color: var(--ink); font-size: 1.05rem; }
  .lc-step p { margin: 0; color: var(--muted); font-size: .92rem; }
  .lc-step-feature { background: linear-gradient(160deg, #15336f, var(--navy)); border: none; color: #fff; }
  .lc-step-feature h3 { color: #fff; } .lc-step-feature p { color: #c4d6f0; }
  .lc-step-feature .lc-step-n { background: #fff; color: var(--navy); }

  /* SERVICIOS (tarjetas-imagen): 3 en fila, mismo ancho y proporción */
  #tab-inicio > .lc-band-title { margin: clamp(44px,5vw,68px) 0 24px; }
  #tab-inicio > .tiles { max-width: var(--shell); margin: 0 auto; padding-inline: clamp(20px,4vw,56px); grid-template-columns: repeat(3, 1fr); gap: 24px; }
  #tab-inicio > .tiles .tile-svc:hover { transform: translateY(-4px); }

  /* Ritmo vertical entre bandas: aire generoso y separaciones claras.
     El reset "#tab-inicio.stack > * + * { margin-top:0 }" las dejaba pegadas;
     estas reglas tienen mayor especificidad y reponen el espacio. */
  #tab-inicio.stack > .lc-stats  { margin-top: clamp(56px, 5.5vw, 84px); }
  #tab-inicio.stack > .lc-dash   { margin-top: clamp(48px, 4.5vw, 68px); }
  #tab-inicio.stack > .lc-footer { margin-top: clamp(56px, 5.5vw, 84px); }

  .lc-stats { background: linear-gradient(120deg, var(--navy), #0e2654); color: #fff; padding-block: clamp(40px, 4.5vw, 64px); margin-top: clamp(40px, 5vw, 64px); }
  .lc-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
  .lc-stats-grid strong { display: block; font-size: 1.5rem; color: var(--lime-bright); }
  .lc-stats-grid span { color: #c4d6f0; font-size: .9rem; }

  /* DASHBOARD: mis citas | agenda  (sin columna angosta) */
  .lc-dash { max-width: var(--shell); margin: clamp(40px,5vw,64px) auto 0; padding-inline: clamp(20px,4vw,56px); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: var(--gap); align-items: start; }
  .lc-dash > * + * { margin-top: 0; }
  .lc-dash > .section-title { grid-column: 1 / -1; font-size: 1.35rem; margin: 0 0 6px; }
  .lc-dash > #my-bookings { grid-column: 1; }
  .lc-agenda { grid-column: 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 22px; }

  .lc-footer { background: var(--navy); color: #c4d6f0; padding-block: clamp(40px, 4vw, 56px); margin-top: clamp(44px,5vw,68px); }
  .lc-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
  .lc-footer p { margin: 6px 0 0; font-size: .85rem; }
  .lc-footer-links { display: flex; gap: 10px; flex-wrap: wrap; }
  .lc-footer .lc-ghost { padding: 9px 14px; text-decoration: none; display: inline-flex; align-items: center; }

  /* Servicios / Perfil / Ayuda — llenan el ancho */
  #tab-servicios { max-width: var(--shell); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
  #tab-servicios.stack > * + * { margin-top: 0; }
  #tab-servicios > h2, #tab-servicios > .btn { grid-column: 1 / -1; }
  #tab-servicios > .btn { max-width: none; margin: 8px 0 0; }
  #tab-perfil, #tab-ayuda { max-width: var(--shell); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--gap); align-items: start; }
  #tab-perfil.stack > * + *, #tab-ayuda.stack > * + * { margin-top: 0; }
  #tab-perfil > h2, #tab-ayuda > h2 { grid-column: 1 / -1; }

  /* Asistente: tarjeta + panel resumen sticky */
  #wizard { max-width: var(--shell); margin: 28px auto; display: grid; grid-template-columns: minmax(0,1fr) clamp(320px, 26vw, 400px); gap: clamp(28px,3vw,48px); align-items: start; padding: 0 clamp(20px,4vw,56px) 48px; }
  #wizard > .steps, #wizard > .step-label, #wizard > .step-title, #wizard > .step-help { grid-column: 1; }
  #wizard > .container { grid-column: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 28px; }
  /* top: la appbar sticky mide ~95px (logo 64 + padding) MÁS el inset superior
     en PWA instalada (iPad horizontal: 20-24px), por eso va con env(); con 82px
     fijos el resumen se le metía debajo al hacer scroll. z-index: 20 anula el
     40 heredado de la barra móvil — con 40 el resumen se pintaba ENCIMA de la
     appbar (z 30). bottom: auto anula el bottom: 0 heredado de la regla base
     fija: como segunda restricción sticky, en ventanas bajas (p. ej. 1366×768)
     anclaba el panel al borde inferior y lo despegaba del tope de la tarjeta. */
  #footbar { position: sticky; top: calc(106px + env(safe-area-inset-top, 0px)); bottom: auto; z-index: 20; grid-column: 2; align-self: start; left: auto; right: auto; max-width: none; margin: 0; flex-direction: column; align-items: stretch; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 18px; background: var(--surface); }
  #footbar .grow { display: none; }
  #footbar .btn { width: 100%; }
  #foot-summary:not(:empty) { display: block; border-bottom: 1px dashed var(--line-2); padding-bottom: 10px; margin-bottom: 2px; }
  #foot-summary .summary-total { display: none; }
  #foot-summary .summary-row { font-size: .85rem; }
  .options { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
  .slots { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  .photos { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
  #step-details { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 16px; }
  #step-details > .field { margin-top: 0; }
  #step-details > .field:first-child, #step-details > p { grid-column: 1 / -1; }
  #screen-done .card { max-width: 600px; margin: 48px auto; }
}

@media (min-width: 1280px) {
  .lc-how-grid { grid-template-columns: repeat(4, 1fr); }
  .lc-step-feature { display: block; }
}
