/* ==========================================================================
   EL PATAGÓN — Design System
   Paleta extraída del logo: fuego #F95C00 · brasa #F2352B · magenta #FD0098
   Negro profundo + montaña patagónica · Dark por defecto, Light opcional
   ========================================================================== */

:root {
  --fire-1: #F95C00;
  --fire-2: #F2352B;
  --fire-3: #FD0098;
  --fire: linear-gradient(90deg, #F95C00 0%, #F2352B 55%, #FD0098 100%);
  --fire-diag: linear-gradient(135deg, #F95C00 0%, #F2352B 55%, #FD0098 100%);
  --chamfer: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  --chamfer-sm: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  --radius: 10px;
  --header-h: 64px;
  --footer-h: 64px;
  --sidebar-w: 256px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- DARK (default) ---------- */
:root, [data-theme="dark"] {
  --bg-primary:    #0A0A0B;
  --bg-secondary:  #111113;
  --bg-tertiary:   #1A1A1E;
  --surface:       #141417;
  --surface-2:     #1C1C20;
  --text-primary:  #F4F4F5;
  --text-secondary:#B8B8C0;
  --text-muted:    #8A8A94;
  --border:        #2A2A30;
  --border-strong: #3A3A42;
  --accent:        #F95C00;
  --accent-hover:  #FF7424;
  --accent-ink:    #FF8A45;   /* acento como texto sobre fondo oscuro */
  --accent-text:   #0A0A0B;   /* texto sobre botón naranja (contraste 7:1) */
  --accent-soft:   rgba(249, 92, 0, 0.12);
  --danger:        #FF5A5A;
  --success:       #34C77B;
  --warning:       #FFB020;
  --info:          #5AA8FF;
  --shadow:        rgba(0, 0, 0, 0.5);
  --overlay:       rgba(5, 5, 6, 0.72);
  --ripple:        rgba(255, 255, 255, 0.22);
  color-scheme: dark;
}

/* ---------- LIGHT ---------- */
[data-theme="light"] {
  --bg-primary:    #FAF8F5;
  --bg-secondary:  #F1EDE8;
  --bg-tertiary:   #E7E1DA;
  --surface:       #FFFFFF;
  --surface-2:     #F6F2EE;
  --text-primary:  #121212;
  --text-secondary:#403C38;
  --text-muted:    #6B655E;
  --border:        #DDD5CC;
  --border-strong: #C7BDB2;
  --accent:        #E65400;
  --accent-hover:  #CC4A00;
  --accent-ink:    #B03E00;
  --accent-text:   #0A0A0B;
  --accent-soft:   rgba(230, 84, 0, 0.10);
  --danger:        #C0392B;
  --success:       #1A7A4A;
  --warning:       #9A5A00;
  --info:          #1F5FBF;
  --shadow:        rgba(40, 20, 0, 0.10);
  --overlay:       rgba(10, 10, 11, 0.55);
  --ripple:        rgba(0, 0, 0, 0.12);
  color-scheme: light;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg-primary);
  color: var(--text-primary);
  overscroll-behavior-y: contain;
  -webkit-font-smoothing: antialiased;
  transition: background .25s var(--ease), color .25s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 28px; } h2 { font-size: 22px; } h3 { font-size: 18px; } h4 { font-size: 15px; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-muted); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.label-fire {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em;
  background: var(--fire); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fire-text { background: var(--fire); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fire-line { height: 2px; width: 56px; background: var(--fire); border: 0; margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.vista-container { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }

/* ---------- Botones ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .7rem 1.25rem;
  font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: 0;
  clip-path: var(--chamfer-sm);
  transition: transform .1s var(--ease), background .2s, color .2s, border-color .2s, opacity .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.96); }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-fire { background: var(--fire-diag); color: #0A0A0B; }
.btn-fire:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-dark { background: var(--bg-tertiary); color: var(--text-primary); border-color: var(--border); }
.btn-dark:hover { border-color: var(--accent); }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: .45rem .9rem; font-size: 12px; }
.btn-icon {
  width: 44px; height: 44px; padding: 0; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border); clip-path: var(--chamfer-sm);
  position: relative; overflow: hidden;
  transition: border-color .2s, color .2s, transform .1s;
}
.btn-icon:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-icon:active { transform: scale(0.94); }
.btn-icon svg { width: 20px; height: 20px; }
.btn-whatsapp { background: #25D366; color: #06210F; }
.btn-whatsapp:hover { background: #2EE574; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Theme toggle */
.theme-toggle .icon-light { display: none; }
[data-theme="light"] .theme-toggle .icon-light { display: inline-flex; }
[data-theme="light"] .theme-toggle .icon-dark { display: none; }

/* ---------- Ripple ---------- */
.ripple-host { position: relative; overflow: hidden; }
.ripple-wave {
  position: absolute; border-radius: 50%;
  background: var(--ripple);
  transform: scale(0); animation: ripple-anim .6s linear;
  pointer-events: none;
}
.btn-primary .ripple-wave, .btn-fire .ripple-wave { background: rgba(0,0,0,0.18); }
@keyframes ripple-anim { to { transform: scale(4); opacity: 0; } }

/* ---------- Panel HUD (esquinas biseladas + hairline) ---------- */
.panel {
  position: relative; isolation: isolate;
  background: var(--border);
  clip-path: var(--chamfer);
  padding: 1.25rem;
}
.panel::after {
  content: ''; position: absolute; inset: 1px; z-index: -1;
  background: var(--surface); clip-path: var(--chamfer);
}
.panel::before {
  content: ''; position: absolute; top: 0; left: 0; width: 56px; height: 2px;
  background: var(--fire); z-index: 1;
}
.panel.no-mark::before { display: none; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.panel-head h3 { display: flex; align-items: center; gap: .5rem; }
.panel-head h3 svg { width: 18px; height: 18px; color: var(--accent-ink); }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.field label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-secondary); }
.field label .req { color: var(--accent-ink); }
.input {
  width: 100%; min-height: 48px; padding: .75rem 1rem;
  font: inherit; font-size: 16px; color: var(--text-primary);
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 0;
  clip-path: var(--chamfer-sm);
  outline: none; transition: border-color .2s, background .2s;
}
.input::placeholder { color: var(--text-muted); }
.input:focus { border-color: var(--accent); background: var(--bg-tertiary); }
.input.invalid { border-color: var(--danger); }
.field-error { font-size: 12px; color: var(--danger); min-height: 0; }
.field-hint { font-size: 12px; color: var(--text-muted); }
.input-group { position: relative; }
.input-group .input { padding-right: 3.25rem; }
.input-group .toggle-password {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--text-muted); overflow: hidden; border-radius: 50%;
}
.input-group .toggle-password:hover { color: var(--accent-ink); }
.input-group .toggle-password svg { width: 20px; height: 20px; }
.select {
  min-height: 44px; padding: .5rem 2.25rem .5rem .9rem; font: inherit; font-size: 14px;
  color: var(--text-primary); background: var(--bg-secondary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23F95C00' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .8rem center;
  border: 1px solid var(--border); appearance: none; -webkit-appearance: none; outline: none; border-radius: 0;
}
.select:focus { border-color: var(--accent); }
.search-box { position: relative; flex: 1; min-width: 180px; }
.search-box svg { z-index: 1; position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-muted); pointer-events: none; }
.search-box .input { min-height: 44px; padding-left: 2.6rem; font-size: 15px; }

/* Chips de filtro */
.chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; min-height: 36px; padding: .35rem .85rem; font-size: 12px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-secondary); background: var(--bg-secondary); border: 1px solid var(--border);
  position: relative; overflow: hidden; transition: all .15s;
}
.chip { display: inline-flex; align-items: center; gap: .35rem; }
.chip svg { width: 15px; height: 15px; }
.chip.active { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent); }
.chip .count { margin-left: .35rem; opacity: .75; }

/* ---------- Badges de estado ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid currentColor; white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; background: currentColor; transform: rotate(45deg); }
.badge-reservado  { color: var(--info); }
.badge-confirmado { color: var(--accent-ink); }
.badge-completado { color: var(--success); }
.badge-cancelado  { color: var(--text-muted); }
.badge-ausente    { color: var(--danger); }

/* ---------- Estados UI (anti-404) ---------- */
.empty-state, .error-state {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem;
  padding: 2rem 1rem;
}
.empty-state .empty-icon {
  width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
  color: var(--accent-ink); position: relative; margin-bottom: .35rem;
}
.empty-state .empty-icon::before {
  content: ''; position: absolute; inset: 8px; border: 1px solid var(--accent); transform: rotate(45deg); opacity: .6;
}
.empty-state .empty-icon svg { width: 26px; height: 26px; position: relative; }
.empty-state h3, .error-state h3 { font-size: 16px; }
.empty-state p, .error-state p { color: var(--text-muted); font-size: 14px; max-width: 340px; }
.empty-state .btn, .error-state .btn { margin-top: .5rem; }

.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 0%, var(--bg-tertiary) 50%, var(--bg-secondary) 100%);
  background-size: 200% 100%; animation: shimmer 1.2s infinite linear; min-height: 16px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Toast ---------- */
.toast-stack { position: fixed; left: 50%; transform: translateX(-50%); bottom: 88px; z-index: 11000; display: flex; flex-direction: column; gap: .5rem; align-items: center; pointer-events: none; width: calc(100% - 2rem); max-width: 420px; }
.toast {
  display: flex; align-items: center; gap: .6rem; width: 100%;
  padding: .8rem 1rem; font-size: 14px; font-weight: 500;
  background: var(--surface-2); color: var(--text-primary);
  border-left: 3px solid var(--accent); box-shadow: 0 12px 32px var(--shadow);
  animation: toast-in .25s var(--ease);
}
.toast svg { width: 18px; height: 18px; flex-shrink: 0; }
.toast-error   { border-left-color: var(--danger); } .toast-error svg { color: var(--danger); }
.toast-success { border-left-color: var(--success); } .toast-success svg { color: var(--success); }
.toast-warning { border-left-color: var(--warning); } .toast-warning svg { color: var(--warning); }
.toast.out { animation: toast-out .25s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px); } }

/* ---------- Modales ---------- */
.modal-wrapper {
  position: fixed; inset: 0; z-index: 1000; padding: 1rem;
  background: var(--overlay);
  display: flex; align-items: center; justify-content: center;
  animation: fade-in .2s var(--ease);
}
.modal {
  width: 100%; max-width: 560px; max-height: 90vh;
  display: flex; flex-direction: column;
  background: var(--bg-primary); border: 1px solid var(--border);
  box-shadow: 0 24px 64px var(--shadow);
  position: relative;
  animation: modal-in .25s var(--ease);
}
.modal::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--fire); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--border); }
.modal-body { flex: 1; overflow-y: auto; padding: 1.5rem; -webkit-overflow-scrolling: touch; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; gap: .75rem; justify-content: flex-end; background: var(--bg-primary); }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@media (max-width: 768px) {
  .modal-wrapper { padding: 0; align-items: flex-end; }
  .modal { max-width: 100%; border-radius: 16px 16px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
  .modal::before { border-radius: 16px 16px 0 0; }
  @keyframes modal-in { from { transform: translateY(100%); } }
}

/* Menú "Ver más" (grid de accesos) */
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.menu-grid a, .menu-grid button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem;
  min-height: 88px; padding: .75rem .5rem; text-align: center;
  font-size: 12px; font-weight: 600; letter-spacing: .03em; color: var(--text-primary);
  background: var(--bg-secondary); border: 1px solid var(--border);
  clip-path: var(--chamfer-sm); position: relative; overflow: hidden;
  transition: border-color .15s, transform .1s;
}
.menu-grid a:active, .menu-grid button:active { transform: scale(.96); }
.menu-grid a.active { border-color: var(--accent); color: var(--accent-ink); }
.menu-grid svg { width: 22px; height: 22px; color: var(--accent-ink); }
.menu-grid .danger svg, .menu-grid .danger { color: var(--danger); }
.menu-section-title { margin: 1.25rem 0 .6rem; }
.menu-section-title:first-child { margin-top: 0; }

/* ---------- Splash ---------- */
#splash {
  position: fixed; inset: 0; z-index: 12000; background: #050505;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity .5s var(--ease);
}
#splash .splash-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; animation: splash-zoom 8s linear forwards; }
#splash::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(5,5,5,.2) 0%, rgba(5,5,5,.92) 75%); }
#splash .splash-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; padding: 1rem; text-align: center; }
#splash .splash-logo { width: min(240px, 58vw); filter: drop-shadow(0 0 48px rgba(249,92,0,.45)); animation: splash-pop 1.1s var(--ease); }
#splash .splash-lema { color: #C9C9CF; font-size: 14px; letter-spacing: .22em; text-transform: uppercase; }
#splash .splash-track { width: 220px; height: 3px; background: #26262B; overflow: hidden; }
#splash #splash-bar { height: 100%; width: 0%; background: var(--fire); transition: width .1s linear; }
@keyframes splash-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes splash-pop { from { opacity: 0; transform: scale(.85); } }

/* ---------- Offline banner ---------- */
#offline-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10500;
  display: none; align-items: center; justify-content: center; gap: .5rem;
  padding: calc(.45rem + env(safe-area-inset-top)) 1rem .45rem;
  background: var(--warning); color: #111; font-size: 13px; font-weight: 600;
}
#offline-banner svg { width: 16px; height: 16px; }

/* ---------- Vistas: transición nativa ---------- */
#app { min-height: 100vh; }
.vista { animation: vista-in .28s var(--ease); }
#app.saliendo .vista { animation: vista-out .18s ease forwards; }
@keyframes vista-in { from { opacity: 0; transform: translateX(18px); } }
@keyframes vista-out { to { opacity: 0; transform: translateX(-18px); } }

/* Pull to refresh */
#ptr-indicator {
  position: fixed; top: -56px; left: 50%; transform: translateX(-50%); z-index: 1200;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-text); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  transition: top .2s var(--ease);
}
#ptr-indicator svg { width: 18px; height: 18px; }
#ptr-indicator.loading svg { animation: spin .8s linear infinite; }

/* ==========================================================================
   SITIO PÚBLICO
   ========================================================================== */
.pub-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: calc(var(--header-h) + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top);
  transition: background .25s, border-color .25s, backdrop-filter .25s;
  border-bottom: 1px solid transparent;
}
.pub-header.solid, .pub-header.always-solid {
  background: var(--bg-primary);
  border-bottom-color: var(--border);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .pub-header.solid, .pub-header.always-solid { background: var(--bg-primary); }
}
.pub-header .container { height: var(--header-h); display: flex; align-items: center; gap: 1.25rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--text-primary); }
.brand img { width: 44px; height: 44px; object-fit: cover; }
.brand-name { font-weight: 800; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.1; }
.brand-name small { display: block; font-size: 12px; letter-spacing: .12em; font-weight: 600; color: var(--text-muted); }
.pub-nav { display: flex; gap: .25rem; margin-left: auto; }
.pub-nav a {
  padding: .5rem .8rem; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-secondary); position: relative;
}
.pub-nav a::after { content: ''; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px; background: var(--fire); transform: scaleX(0); transition: transform .2s var(--ease); transform-origin: left; }
.pub-nav a:hover { color: var(--text-primary); }
.pub-nav a:hover::after { transform: scaleX(1); }
.pub-actions { display: flex; align-items: center; gap: .5rem; }
.pub-auth { display: flex; gap: .5rem; }
.pub-header:not(.solid):not(.always-solid) .btn-icon { color: #fff; border-color: rgba(255,255,255,.28); }
.pub-header:not(.solid):not(.always-solid) .brand, .pub-header:not(.solid):not(.always-solid) .pub-nav a { color: #fff; }
.pub-header:not(.solid):not(.always-solid) .brand-name small { color: rgba(255,255,255,.7); }
.pub-header:not(.solid):not(.always-solid) .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }

/* HERO */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; background: #050505;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%);
}
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero picture img { animation: hero-zoom 18s ease-out forwards; }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(5,5,5,.94) 0%, rgba(5,5,5,.72) 42%, rgba(5,5,5,.15) 100%),
    linear-gradient(0deg, rgba(5,5,5,.95) 0%, rgba(5,5,5,0) 45%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto; padding: 8rem 1.5rem 7.5rem; }
.hero-kicker { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.hero-kicker .fire-line { width: 40px; }
.hero-title {
  font-size: clamp(40px, 7.2vw, 92px); font-weight: 800; line-height: .95; letter-spacing: -.035em;
  text-transform: uppercase; max-width: 900px;
}
.hero-title .fire-text { display: block; }
.hero-sub { margin-top: 1.25rem; max-width: 520px; font-size: 17px; color: #D2D2D8; line-height: 1.55; }
.hero-ctas { display: flex; gap: .75rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-ctas .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero-hud {
  display: flex; gap: 0; margin-top: 3rem; max-width: 820px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.hero-hud > div { flex: 1; padding: 1rem 1.25rem 0 0; }
.hero-hud > div + div { padding-left: 1.25rem; border-left: 1px solid rgba(255,255,255,.16); }
.hero-hud strong { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.hero-hud span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.66); }
.hero-scroll { position: absolute; right: 1.5rem; bottom: 5.5rem; z-index: 2; writing-mode: vertical-rl; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: .75rem; }
.hero-scroll::after { content: ''; width: 1px; height: 64px; background: linear-gradient(180deg, var(--fire-1), transparent); }

.section { padding: 6rem 0; position: relative; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; letter-spacing: -.03em; text-transform: uppercase; line-height: 1; margin-top: .6rem; }
.section-head p { max-width: 420px; color: var(--text-secondary); }
.section-index { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--text-muted); }

/* Carta de servicios (menú de barbería) */
.carta { display: grid; grid-template-columns: 1.35fr 1fr; gap: 3rem; align-items: start; }
.carta-list { display: flex; flex-direction: column; }
.carta-item {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 1rem; align-items: baseline;
  padding: 1.35rem 0; border-bottom: 1px solid var(--border); position: relative; cursor: pointer;
  transition: padding .2s var(--ease);
}
.carta-item:first-child { border-top: 1px solid var(--border); }
.carta-item::before { content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--fire); transition: width .35s var(--ease); }
.carta-item:hover::before { width: 100%; }
.carta-item:hover { padding-left: .5rem; }
.carta-n { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--accent-ink); }
.carta-name { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.carta-desc { font-size: 14px; color: var(--text-muted); margin-top: .2rem; }
.carta-meta { text-align: right; }
.carta-price { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.carta-dur { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; display: inline-flex; align-items: center; gap: .3rem; }
.carta-dur svg { width: 13px; height: 13px; }
.carta-visual { position: sticky; top: 96px; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.carta-visual figure { margin: 0; position: relative; overflow: hidden; clip-path: var(--chamfer); }
.carta-visual figure:first-child { grid-column: 1 / -1; aspect-ratio: 16/11; }
.carta-visual figure:not(:first-child) { aspect-ratio: 1; }
.carta-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.carta-visual figure:hover img { transform: scale(1.05); }
.carta-visual figcaption { position: absolute; left: 0; bottom: 0; padding: .5rem .75rem; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent); width: 100%; }

/* Manifiesto (bloque montaña) */
.manifiesto { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; color: #fff; background: #050505; clip-path: polygon(0 56px, 100% 0, 100% calc(100% - 56px), 0 100%); }
.manifiesto > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.manifiesto::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,5,.2) 0%, rgba(5,5,5,.9) 62%); z-index: 1; }
.manifiesto .container { position: relative; z-index: 2; display: flex; justify-content: flex-end; width: 100%; }
.manifiesto-box { max-width: 540px; padding: 6rem 0; }
.manifiesto-box h2 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; text-transform: uppercase; letter-spacing: -.03em; line-height: .98; margin: .75rem 0 1.25rem; }
.manifiesto-box p { color: #D2D2D8; font-size: 16px; }
.pilares { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.pilar { border-top: 2px solid; border-image: var(--fire) 1; padding-top: .75rem; }
.pilar strong { display: block; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.pilar span { font-size: 13px; color: #B9B9C0; }

/* Barberos */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.team-card { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--bg-tertiary); clip-path: var(--chamfer); }
.team-card:nth-child(even) { transform: translateY(2rem); }
.team-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) contrast(1.05); transition: transform .5s var(--ease), filter .5s; }
.team-card:hover img { transform: scale(1.05); filter: none; }
.team-card .mono { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.team-card .mono span { width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; color: var(--accent-ink); position: relative; }
.team-card .mono span::before { content: ''; position: absolute; inset: 0; border: 2px solid var(--accent); transform: rotate(45deg); }
.team-card .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem; background: linear-gradient(0deg, rgba(5,5,5,.92), transparent); color: #fff; }
.team-card .info strong { display: block; font-size: 17px; }
.team-card .info span { font-size: 12px; color: #C8C8CE; text-transform: uppercase; letter-spacing: .08em; }

/* Promos */
.promo-rail, .prod-rail { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .75rem; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
.promo-card { flex: 0 0 min(360px, 85%); scroll-snap-align: start; }
.promo-card .desc { color: var(--text-secondary); font-size: 14px; margin-top: .35rem; }
.promo-off { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }

/* Productos */
.prod-card { flex: 0 0 220px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden; }
.prod-card .ph { aspect-ratio: 1; background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.prod-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.prod-card .ph svg { width: 36px; height: 36px; }
.prod-card .body { padding: .85rem 1rem 1rem; }
.prod-card .cat { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-ink); font-weight: 700; }
.prod-card .name { font-weight: 600; margin: .15rem 0 .35rem; }
.prod-card .price { font-weight: 800; font-size: 18px; }
.tienda-teaser { display: grid; grid-template-columns: 1.2fr 1fr; align-items: stretch; overflow: hidden; background: var(--surface); border: 1px solid var(--border); clip-path: var(--chamfer); }
.tienda-teaser img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
.tienda-teaser .txt { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.tienda-teaser h3 { font-size: 28px; font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; line-height: 1.05; }
.tienda-cats { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Ubicación / contacto */
.contacto { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.horarios { list-style: none; margin: 0; padding: 0; }
.horarios li { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.horarios li.hoy { color: var(--accent-ink); font-weight: 700; }
.horarios li .cerrado { color: var(--text-muted); }
.contact-lines { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 1.5rem; }
.contact-line { display: flex; gap: .75rem; align-items: center; color: var(--text-primary); }
.contact-line svg { width: 20px; height: 20px; color: var(--accent-ink); flex-shrink: 0; }
.cta-final { text-align: center; padding: 5rem 1.5rem; position: relative; overflow: hidden; }
.cta-final h2 { font-size: clamp(30px, 5vw, 60px); font-weight: 800; text-transform: uppercase; letter-spacing: -.03em; line-height: 1; margin: .75rem 0 1.5rem; }

.pub-footer { border-top: 1px solid var(--border); padding: 2.5rem 0 calc(2.5rem + env(safe-area-inset-bottom)); color: var(--text-muted); font-size: 13px; }
.pub-footer .container { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.pub-footer .social { display: flex; gap: .5rem; }

/* WhatsApp flotante */
#whatsapp-float {
  position: fixed; right: 16px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 998;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366;
  display: none; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transition: transform .15s;
}
#whatsapp-float:active { transform: scale(.92); }
#whatsapp-float svg { width: 28px; height: 28px; }

/* ---------- Auth (login / registro) ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-visual { position: relative; overflow: hidden; background: #050505; color: #fff; }
.auth-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.auth-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,.3) 0%, rgba(5,5,5,.92) 100%); }
.auth-visual .quote { position: absolute; left: 3rem; right: 3rem; bottom: 3rem; z-index: 1; }
.auth-visual .quote h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; text-transform: uppercase; letter-spacing: -.03em; line-height: .98; margin-top: .75rem; }
.auth-panel { display: flex; flex-direction: column; padding: 1.5rem; background: var(--bg-primary); }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.auth-form-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem 0; }
.auth-form { width: 100%; max-width: 420px; }
.auth-form h1 { font-size: 32px; font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; margin: .6rem 0 .4rem; }
.auth-form .sub { color: var(--text-secondary); margin-bottom: 2rem; }
.auth-alt { margin-top: 1.5rem; text-align: center; font-size: 14px; color: var(--text-secondary); }
.auth-alt a { font-weight: 700; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.pw-meter { display: flex; gap: 4px; margin-top: .35rem; }
.pw-meter i { flex: 1; height: 3px; background: var(--border); transition: background .2s; }
.pw-meter[data-l="1"] i:nth-child(-n+1) { background: var(--danger); }
.pw-meter[data-l="2"] i:nth-child(-n+2) { background: var(--warning); }
.pw-meter[data-l="3"] i:nth-child(-n+3) { background: var(--accent); }
.pw-meter[data-l="4"] i { background: var(--success); }

/* ==========================================================================
   APP (paneles con sesión)
   ========================================================================== */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar {
  width: var(--sidebar-w); flex-shrink: 0; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 1rem; padding: 1.25rem 1rem;
  background: var(--bg-secondary); border-right: 1px solid var(--border); overflow-y: auto;
}
.app-sidebar .brand { padding: 0 .25rem .75rem; border-bottom: 1px solid var(--border); }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav .label { padding: .9rem .75rem .35rem; }
.side-nav a {
  display: flex; align-items: center; gap: .75rem; min-height: 44px; padding: .55rem .75rem;
  font-size: 14px; font-weight: 500; color: var(--text-secondary); position: relative; overflow: hidden;
  transition: background .15s, color .15s;
}
.side-nav a svg { width: 18px; height: 18px; }
.side-nav a:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.side-nav a.active { color: var(--text-primary); background: var(--accent-soft); font-weight: 600; }
.side-nav a.active::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: var(--fire-diag); }
.side-nav a.active svg { color: var(--accent-ink); }
.side-nav a .soon { margin-left: auto; font-size: 12px; color: var(--text-muted); }
.side-bottom { margin-top: auto; display: flex; flex-direction: column; gap: .5rem; }
.side-user { display: flex; align-items: center; gap: .65rem; padding: .75rem; border: 1px solid var(--border); }
.avatar { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: #0A0A0B; background: var(--fire-diag); clip-path: var(--chamfer-sm); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.side-user .who { min-width: 0; }
.side-user .who strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .who span { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-topbar {
  position: sticky; top: 0; z-index: 800;
  height: calc(var(--header-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 1.5rem 0;
  display: flex; align-items: center; gap: 1rem;
  background: color-mix(in srgb, var(--bg-primary) 94%, transparent);
  border-bottom: 1px solid var(--border);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .app-topbar { background: var(--bg-primary); } }
.app-topbar .title { min-width: 0; }
.app-topbar .title h1 { font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-topbar .title span { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.app-topbar .actions { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
.app-topbar .brand-mobile { display: none; }
.app-content { flex: 1; padding: 2rem 1.5rem 3rem; max-width: 1280px; width: 100%; margin: 0 auto; }

/* Footer nav mobile */
.app-footer-nav { display: none; }

/* KPIs HUD */
.kpis { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.kpi { min-height: 132px; display: flex; flex-direction: column; justify-content: space-between; gap: .75rem; }
.kpi .kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi .kpi-top svg { width: 18px; height: 18px; color: var(--accent-ink); }
.kpi .kpi-value { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi .kpi-sub { font-size: 12px; color: var(--text-muted); }
.kpi.hero-kpi .kpi-value { font-size: 52px; }
.kpi.hero-kpi { background: var(--accent); }
.kpi.hero-kpi::after { background: linear-gradient(135deg, var(--surface) 0%, var(--surface) 55%, color-mix(in srgb, var(--accent) 22%, var(--surface)) 100%); }
.estado-bar { display: flex; height: 6px; width: 100%; background: var(--bg-tertiary); overflow: hidden; }
.estado-bar i { display: block; height: 100%; }
.estado-legend { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: 12px; color: var(--text-muted); }
.estado-legend b { color: var(--text-primary); font-weight: 700; }

.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1rem; align-items: start; }
.dash-col { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.chart-box { position: relative; height: 240px; }

/* Lista de turnos (cards, nunca tablas en mobile) */
.turnos-list { display: flex; flex-direction: column; gap: .5rem; }
.turno-card {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 1rem; align-items: center;
  padding: .85rem 1rem; background: var(--bg-secondary); border: 1px solid var(--border);
  position: relative; overflow: hidden; transition: border-color .15s;
}
.turno-card:hover { border-color: var(--border-strong); }
.turno-card.is-next { border-color: var(--accent); }
.turno-card.is-next::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--fire-diag); }
.turno-card .hora { font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.turno-card .hora small { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); letter-spacing: .06em; margin-top: .25rem; text-transform: uppercase; }
.turno-card .main { min-width: 0; }
.turno-card .main strong { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.turno-card .main span { font-size: 13px; color: var(--text-muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.turno-card .side { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.turno-card .precio { font-weight: 700; font-variant-numeric: tabular-nums; }
.turno-card.estado-cancelado, .turno-card.estado-ausente { opacity: .6; }

.list-toolbar { display: flex; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; align-items: center; }

/* Filas compactas (barberos, comisiones) */
.rows { display: flex; flex-direction: column; }
.row-item { display: flex; align-items: center; gap: .85rem; padding: .75rem 0; border-bottom: 1px solid var(--border); }
.row-item:last-child { border-bottom: 0; }
.row-item .grow { flex: 1; min-width: 0; }
.row-item .grow strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-item .grow span { font-size: 12px; color: var(--text-muted); }
.row-item .val { font-weight: 700; font-variant-numeric: tabular-nums; }
.meter { height: 4px; background: var(--bg-tertiary); margin-top: .35rem; }
.meter i { display: block; height: 100%; background: var(--fire); }

/* Accesos rápidos */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.quick-grid a {
  display: flex; flex-direction: column; gap: .5rem; padding: .9rem; min-height: 92px;
  background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text-primary);
  font-size: 13px; font-weight: 600; position: relative; overflow: hidden; transition: border-color .15s, transform .1s;
}
.quick-grid a:hover { border-color: var(--accent); }
.quick-grid a:active { transform: scale(.97); }
.quick-grid a svg { width: 20px; height: 20px; color: var(--accent-ink); }

/* Siguiente turno (barbero) / Ticket (cliente) */
.next-turno { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; }
.next-turno .big-hora { font-size: 56px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ticket { display: grid; grid-template-columns: 110px 1fr; background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden; }
.ticket + .ticket { margin-top: .75rem; }
.ticket .stub { background: var(--fire-diag); color: #0A0A0B; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem .5rem; text-align: center; position: relative; }
.ticket .stub::after { content: ''; position: absolute; right: -1px; top: 8px; bottom: 8px; border-right: 2px dashed var(--surface); }
.ticket .stub .d { font-size: 36px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.ticket .stub .m { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.ticket .stub .h { font-size: 15px; font-weight: 800; margin-top: .35rem; }
.ticket .info { padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.ticket .info strong { font-size: 17px; }
.ticket .info .meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: 13px; color: var(--text-secondary); }
.ticket .info .meta span { display: inline-flex; align-items: center; gap: .3rem; }
.ticket .info .meta svg { width: 14px; height: 14px; color: var(--accent-ink); }

.cta-reservar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.5rem; margin-bottom: 1.5rem; color: #fff; position: relative; overflow: hidden;
  background: #050505; clip-path: var(--chamfer); min-height: 150px;
}
.cta-reservar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.cta-reservar::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,5,.94) 0%, rgba(5,5,5,.45) 100%); z-index: 1; }
.cta-reservar > div { position: relative; z-index: 2; }
.cta-reservar h2 { font-size: 26px; font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; line-height: 1.05; margin-top: .4rem; }
.cta-reservar p { color: #CFCFD5; font-size: 14px; margin-top: .35rem; }

.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; }
.week .day span { display: block; font-variant-numeric: tabular-nums; }
.week .day { text-align: center; padding: .6rem .25rem; border: 1px solid var(--border); background: var(--bg-secondary); font-size: 12px; }
.week .day b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .25rem; }
.week .day.on { border-color: var(--accent); }
.week .day.on b { color: var(--accent-ink); }
.week .day.off { color: var(--text-muted); }
.week .day.today { background: var(--accent-soft); }

.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat-strip .s { border-left: 2px solid; border-image: var(--fire) 1; padding-left: .85rem; }
.stat-strip .s strong { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-strip .s span { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }

.greeting { margin-bottom: 1.5rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.greeting h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-top: .35rem; }

/* Próximamente */
.soon-box { max-width: 560px; margin: 3rem auto; text-align: center; }
.soon-box .empty-icon { margin: 0 auto 1rem; }
.soon-box ul { text-align: left; margin: 1.25rem 0; padding: 0; list-style: none; }
.soon-box li { display: flex; gap: .6rem; padding: .45rem 0; color: var(--text-secondary); font-size: 14px; }
.soon-box li svg { width: 18px; height: 18px; color: var(--accent-ink); flex-shrink: 0; margin-top: 2px; }

/* Instalar app */
#btn-instalar-app { display: none; }
.install-steps { list-style: none; padding: 0; margin: 1rem 0 0; counter-reset: s; }
.install-steps li { counter-increment: s; display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.install-steps li::before { content: counter(s); width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: #0A0A0B; background: var(--fire-diag); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.install-steps svg { width: 18px; height: 18px; color: var(--accent-ink); }

/* ==========================================================================
   FASE 3 — Turnos, agenda y disponibilidad
   ========================================================================== */
[hidden] { display: none !important; }
textarea.input { min-height: 88px; resize: vertical; line-height: 1.5; }
.field-row { display: flex; gap: .75rem; }
.field-row > .field { flex: 1; min-width: 0; }
.head-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* Segmented tabs */
.tabs { display: inline-flex; border: 1px solid var(--border); background: var(--bg-secondary); padding: 3px; gap: 3px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex-shrink: 0; min-height: 38px; padding: .35rem 1rem; border: 0; background: none; color: var(--text-secondary); font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .03em; position: relative; overflow: hidden; }
.tabs button.active { background: var(--accent); color: var(--accent-text); }
.tabs button .count { opacity: .75; margin-left: .3rem; }

/* Switch */
.switch { position: relative; display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-size: 14px; min-height: 44px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 44px; height: 24px; background: var(--bg-tertiary); border: 1px solid var(--border-strong); position: relative; transition: background .2s; flex-shrink: 0; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: var(--text-muted); transition: transform .2s var(--ease), background .2s; }
.switch input:checked + .track { background: var(--accent-soft); border-color: var(--accent); }
.switch input:checked + .track::after { transform: translateX(20px); background: var(--accent); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Stepper de reserva */
.stepper { display: flex; gap: .35rem; margin-bottom: 1.5rem; }
.stepper .st { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .45rem; background: none; border: 0; padding: 0; text-align: left; color: var(--text-muted); font: inherit; }
.stepper .st i { display: block; height: 3px; background: var(--bg-tertiary); }
.stepper .st span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper .st.done i { background: var(--accent); }
.stepper .st.done { color: var(--text-secondary); cursor: pointer; }
.stepper .st.current i { background: var(--fire); }
.stepper .st.current { color: var(--text-primary); }
.step-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.step-title h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.step-title p { color: var(--text-muted); font-size: 14px; }

/* Opciones seleccionables (servicio / barbero) */
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .6rem; }
.opt-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; text-align: left; width: 100%;
  padding: 1rem; min-height: 76px; background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text-primary);
  font: inherit; position: relative; overflow: hidden; transition: border-color .15s, background .15s, transform .1s;
}
.opt-card:hover { border-color: var(--border-strong); }
.opt-card:active { transform: scale(.985); }
.opt-card.selected { border-color: var(--accent); background: var(--accent-soft); }
.opt-card.selected::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--fire-diag); }
.opt-card .ic { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--bg-tertiary); color: var(--accent-ink); clip-path: var(--chamfer-sm); overflow: hidden; }
.opt-card .ic img { width: 100%; height: 100%; object-fit: cover; }
.opt-card .ic svg { width: 20px; height: 20px; }
.opt-card .ic b { font-size: 15px; }
.opt-card .t strong { display: block; font-size: 15px; }
.opt-card .t span { display: block; font-size: 13px; color: var(--text-muted); line-height: 1.4; margin-top: .15rem; }
.opt-card .r { text-align: right; }
.opt-card .r strong { display: block; font-weight: 800; font-variant-numeric: tabular-nums; }
.opt-card .r span { font-size: 12px; color: var(--text-muted); }
.opt-card.any .ic { background: var(--fire-diag); color: #0A0A0B; }

/* Tira de fechas */
.date-strip { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; scroll-snap-type: x proximity; }
.date-strip::-webkit-scrollbar { display: none; }
.date-pill {
  flex: 0 0 68px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: .1rem;
  padding: .6rem .25rem; min-height: 86px; background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text-primary);
  font: inherit; position: relative; overflow: hidden; transition: border-color .15s, background .15s;
}
.date-pill .dw { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.date-pill .dn { font-size: 24px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.date-pill .dm { font-size: 12px; color: var(--text-muted); }
.date-pill .dc { font-size: 12px; font-weight: 700; color: var(--success); margin-top: .1rem; }
.date-pill.full .dc { color: var(--text-muted); }
.date-pill:disabled, .date-pill.full { opacity: .45; }
.date-pill.today { border-style: dashed; }
.date-pill.active { background: var(--accent); border-color: var(--accent); color: var(--accent-text); opacity: 1; }
.date-pill.active .dw, .date-pill.active .dm, .date-pill.active .dc { color: var(--accent-text); }

/* Grilla de horarios */
.slot-group { margin-top: 1rem; }
.slot-group .label { display: flex; align-items: center; gap: .4rem; margin-bottom: .5rem; }
.slot-group .label svg { width: 14px; height: 14px; color: var(--accent-ink); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .45rem; }
.slot {
  min-height: 46px; background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text-primary);
  font: inherit; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; position: relative; overflow: hidden;
  transition: border-color .15s, background .15s;
}
.slot:hover { border-color: var(--accent); }
.slot.active { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }

/* Resumen / confirmación de reserva */
.reserva-bar {
  position: sticky; bottom: 0; z-index: 5; margin-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1rem; background: var(--surface-2); border: 1px solid var(--border); border-top: 2px solid var(--accent);
}
.reserva-bar .txt { min-width: 0; font-size: 13px; color: var(--text-secondary); }
.reserva-bar .txt strong { display: block; color: var(--text-primary); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info-list { display: flex; flex-direction: column; }
.info-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.info-list > div:last-child { border-bottom: 0; }
.info-list dt, .info-list .k { color: var(--text-muted); display: flex; align-items: center; gap: .45rem; }
.info-list .k svg { width: 16px; height: 16px; color: var(--accent-ink); }
.info-list dd, .info-list .v { margin: 0; font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.info-list .total .v { font-size: 20px; font-weight: 800; }
.success-box { text-align: center; max-width: 520px; margin: 1rem auto 0; }
.success-box .seal { width: 84px; height: 84px; margin: 0 auto 1.25rem; display: flex; align-items: center; justify-content: center; background: var(--fire-diag); color: #0A0A0B; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); animation: seal-in .45s var(--ease); }
.success-box .seal svg { width: 34px; height: 34px; }
.success-box h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.success-box > p { color: var(--text-secondary); margin: .5rem 0 1.5rem; }
.success-box .ticket { text-align: left; }
.success-actions { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.25rem; }
@keyframes seal-in { from { transform: scale(.3) rotate(-45deg); opacity: 0; } }
.aviso { display: flex; gap: .65rem; padding: .85rem 1rem; background: var(--bg-secondary); border-left: 3px solid var(--info); font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.aviso svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--info); margin-top: 1px; }
.aviso.warn { border-left-color: var(--warning); } .aviso.warn svg { color: var(--warning); }
.aviso.fire { border-left-color: var(--accent); } .aviso.fire svg { color: var(--accent-ink); }

/* Hoja de turno (modal de acciones) */
.sheet-hero { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.sheet-hero .h { font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.sheet-hero .h small { display: block; font-size: 12px; font-weight: 700; color: var(--text-muted); letter-spacing: .08em; text-transform: uppercase; margin-top: .35rem; }
.sheet-hero strong { display: block; font-size: 18px; }
.sheet-hero span { color: var(--text-muted); font-size: 13px; }
.sheet-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; margin-top: 1rem; }
.sheet-actions .btn { width: 100%; }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); }
.btn-success { background: var(--success); color: #06140C; }
.log-list { font-size: 12px; color: var(--text-muted); display: flex; flex-direction: column; gap: .35rem; margin-top: .5rem; }
.log-list b { color: var(--text-secondary); font-weight: 600; }

/* Barra de fecha (turnos admin / agenda) */
.day-nav { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.day-nav .cur { display: flex; flex-direction: column; min-width: 0; padding: 0 .35rem; }
.day-nav .cur strong { font-size: 18px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.day-nav .cur span { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.day-nav input[type=date] { min-height: 44px; }
.fecha-grupo { display: flex; align-items: center; gap: .6rem; margin: 1.25rem 0 .6rem; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--text-secondary); }
.fecha-grupo:first-child { margin-top: 0; }
.fecha-grupo::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.fecha-grupo.hoy { color: var(--accent-ink); }
.turno-card.clickable { cursor: pointer; }
.turno-card .main .tags { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .3rem; }
.mini-tag { display: inline-flex; align-items: center; gap: .25rem; font-size: 12px; font-weight: 600; padding: .05rem .4rem; background: var(--bg-tertiary); color: var(--text-secondary); }
.mini-tag svg { width: 12px; height: 12px; }
.mini-tag.warn { color: var(--warning); }
.load-more { display: flex; justify-content: center; margin-top: 1rem; }
.resumen-strip { display: flex; gap: .5rem 1.25rem; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); margin-bottom: 1rem; }
.resumen-strip b { color: var(--text-primary); font-variant-numeric: tabular-nums; }

/* Timeline de agenda (barbero) */
.timeline { display: flex; flex-direction: column; gap: .4rem; }
.tl-free { display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem; border: 1px dashed var(--border-strong); color: var(--text-muted); font-size: 13px; background: transparent; font: inherit; text-align: left; width: 100%; }
.tl-free b { font-variant-numeric: tabular-nums; color: var(--text-secondary); min-width: 96px; }
.tl-free svg { width: 16px; height: 16px; margin-left: auto; color: var(--accent-ink); }
.tl-free.clickable { cursor: pointer; }
.tl-free.clickable:hover { border-color: var(--accent); color: var(--text-secondary); }
.tl-block { display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem; background: repeating-linear-gradient(135deg, var(--bg-secondary) 0 8px, var(--bg-tertiary) 8px 16px); font-size: 13px; color: var(--text-secondary); }
.tl-block b { font-variant-numeric: tabular-nums; min-width: 96px; }
.tl-now { display: flex; align-items: center; gap: .5rem; font-size: 12px; font-weight: 800; color: var(--danger); text-transform: uppercase; letter-spacing: .1em; }
.tl-now::after { content: ''; flex: 1; height: 2px; background: var(--danger); }

/* Cards de gestión (servicios / barberos / clientes) — nunca tablas */
.entity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .75rem; }
.entity-card { display: flex; flex-direction: column; gap: .85rem; padding: 1.1rem; background: var(--surface); border: 1px solid var(--border); position: relative; transition: border-color .15s; }
.entity-card:hover { border-color: var(--border-strong); }
.entity-card.off { opacity: .6; }
.entity-card .ec-head { display: flex; gap: .85rem; align-items: center; }
.entity-card .ec-head .avatar { width: 52px; height: 52px; font-size: 16px; }
.entity-card .ec-head .grow { flex: 1; min-width: 0; }
.entity-card .ec-head strong { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entity-card .ec-head span { font-size: 13px; color: var(--text-muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entity-card .ec-price { font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.entity-card .ec-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.entity-card .ec-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; padding-top: .75rem; border-top: 1px dashed var(--border); }
.entity-card .ec-stats div strong { display: block; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.entity-card .ec-stats div span { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.entity-card .ec-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: auto; }
.entity-card .ec-actions .btn { flex: 1; }
.entity-card .ec-order { position: absolute; top: .6rem; right: .6rem; display: flex; gap: .25rem; }
.entity-card .ec-order .btn-icon { width: 36px; height: 36px; }
.entity-card.clickable { cursor: pointer; }
.mini-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.mini-week i { font-style: normal; font-size: 12px; font-weight: 700; text-align: center; padding: .25rem 0; background: var(--bg-secondary); color: var(--text-muted); border: 1px solid var(--border); }
.mini-week i.on { color: var(--accent-ink); border-color: var(--accent); background: var(--accent-soft); }

/* Editor de horario semanal */
.horario-editor { display: flex; flex-direction: column; }
.he-day { display: grid; grid-template-columns: 130px 1fr; gap: .75rem; align-items: start; padding: .75rem 0; border-bottom: 1px solid var(--border); }
.he-day:last-child { border-bottom: 0; }
.he-day .switch { min-height: 40px; font-weight: 700; }
.he-ranges { display: flex; flex-direction: column; gap: .45rem; }
.he-range { display: flex; gap: .4rem; align-items: center; }
.he-range .input { min-height: 40px; padding: .4rem .6rem; font-size: 15px; max-width: 130px; }
.he-range .sep { color: var(--text-muted); }
.he-range .btn-icon { width: 40px; height: 40px; }
.he-closed { color: var(--text-muted); font-size: 13px; padding: .6rem 0; }
.he-add { align-self: flex-start; }

/* Buscador de clientes (modal alta de turno) */
.pick-list { display: flex; flex-direction: column; border: 1px solid var(--border); max-height: 240px; overflow-y: auto; margin-top: .4rem; }
.pick-list button { display: flex; justify-content: space-between; gap: .75rem; align-items: center; text-align: left; padding: .7rem .9rem; background: var(--bg-secondary); border: 0; border-bottom: 1px solid var(--border); color: var(--text-primary); font: inherit; position: relative; overflow: hidden; }
.pick-list button:last-child { border-bottom: 0; }
.pick-list button:hover { background: var(--bg-tertiary); }
.pick-list button span { font-size: 12px; color: var(--text-muted); }
.picked { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; border: 1px solid var(--accent); background: var(--accent-soft); }
.picked .grow { flex: 1; min-width: 0; }
.picked strong { display: block; }
.picked span { font-size: 12px; color: var(--text-muted); }
.img-upload { display: flex; gap: 1rem; align-items: center; }
.img-upload .prev { width: 72px; height: 72px; background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; color: var(--text-muted); clip-path: var(--chamfer-sm); overflow: hidden; flex-shrink: 0; }
.img-upload .prev img { width: 100%; height: 100%; object-fit: cover; }

/* Ficha de cliente */
.ficha-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 1rem 0; }
.ficha-stats div { padding: .7rem; background: var(--bg-secondary); border: 1px solid var(--border); }
.ficha-stats strong { display: block; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ficha-stats span { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.hist-row { display: flex; justify-content: space-between; gap: .75rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.hist-row:last-child { border-bottom: 0; }
.hist-row .grow { flex: 1; min-width: 0; }
.hist-row strong { display: block; font-size: 14px; }
.hist-row span { color: var(--text-muted); }

@media (max-width: 768px) {
  .step-title h2 { font-size: 20px; }
  .opt-grid { grid-template-columns: 1fr; }
  .date-pill { flex-basis: 62px; min-height: 80px; }
  .slot-grid { grid-template-columns: repeat(4, 1fr); }
  .slot { font-size: 15px; }
  .reserva-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--footer-h) + env(safe-area-inset-bottom)); margin: 0; border-left: 0; border-right: 0; z-index: 50; }
  .reserva-pad { height: 84px; }
  .sheet-hero .h { font-size: 34px; }
  .sheet-actions { grid-template-columns: 1fr 1fr; }
  .entity-grid { grid-template-columns: 1fr; }
  .he-day { grid-template-columns: 1fr; gap: .35rem; }
  .he-range .input { max-width: none; flex: 1; }
  .ficha-stats { grid-template-columns: 1fr 1fr; }
  .field-row { flex-direction: column; gap: 0; }
  .day-nav { width: 100%; }
  .day-nav .cur { flex: 1; }
  .head-actions { width: 100%; }
  .head-actions > .btn { flex: 1; }
}
@media (max-width: 380px) {
  .slot-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .carta { grid-template-columns: 1fr; }
  .carta-visual { position: static; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .app-sidebar { width: 220px; }
}

@media (max-width: 768px) {
  .container, .vista-container { padding-left: 1rem; padding-right: 1rem; }
  .vista-container { padding-top: 1.25rem; padding-bottom: 1.25rem; }
  .pub-nav, .pub-actions .hide-m { display: none; }
  .pub-actions { margin-left: auto; }
  .brand-name small { display: none; }
  .hero { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), 0 100%); }
  .hero::before { background: linear-gradient(0deg, rgba(5,5,5,.97) 0%, rgba(5,5,5,.7) 45%, rgba(5,5,5,.25) 100%); }
  .hero-inner { padding: 6rem 1rem 5rem; }
  .hero-sub { font-size: 15px; }
  .hero-ctas .btn { flex: 1; }
  .hero-hud { flex-wrap: wrap; margin-top: 2rem; }
  .hero-hud > div { flex: 1 1 45%; padding: .85rem .5rem 0 0; }
  .hero-hud > div + div { padding-left: 0; border-left: 0; }
  .hero-hud strong { font-size: 18px; }
  .hero-scroll { display: none; }
  .section { padding: 4rem 0; }
  .section-head { margin-bottom: 2rem; }
  .carta-item { grid-template-columns: 32px 1fr auto; gap: .6rem; }
  .carta-name { font-size: 17px; }
  .carta-price { font-size: 18px; }
  .manifiesto { clip-path: polygon(0 28px, 100% 0, 100% calc(100% - 28px), 0 100%); }
  .manifiesto::before { background: linear-gradient(0deg, rgba(5,5,5,.95) 30%, rgba(5,5,5,.45) 100%); }
  .manifiesto-box { padding: 5rem 0 4rem; }
  .pilares { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .team-card:nth-child(even) { transform: translateY(1.25rem); }
  .tienda-teaser { grid-template-columns: 1fr; }
  .tienda-teaser img { min-height: 200px; max-height: 240px; }
  .tienda-teaser .txt { padding: 1.5rem; }
  .contacto { grid-template-columns: 1fr; }
  #whatsapp-float { bottom: calc(80px + env(safe-area-inset-bottom)); }
  body.public-page #whatsapp-float { bottom: calc(80px + env(safe-area-inset-bottom)); }

  .auth { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { padding: calc(1rem + env(safe-area-inset-top)) 1rem calc(1rem + env(safe-area-inset-bottom)); min-height: 100vh; }
  .auth-form-wrap { align-items: flex-start; padding-top: 1.5rem; }
  .grid-2 { grid-template-columns: 1fr; }

  .app-sidebar { display: none; }
  .app-topbar { padding-left: 1rem; padding-right: 1rem; }
  .app-topbar .brand-mobile { display: flex; }
  .app-topbar .brand-mobile img { width: 38px; height: 38px; }
  .app-topbar .title h1 { font-size: 16px; }
  .app-content { padding: 1.25rem 1rem calc(88px + env(safe-area-inset-bottom)); }

  .app-footer-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
    height: calc(var(--footer-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--bg-primary); border-top: 1px solid var(--border);
  }
  .app-footer-nav::before { content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--fire); opacity: .5; }
  .app-footer-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    font-size: 12px; font-weight: 600; color: var(--text-muted); position: relative; overflow: hidden; min-height: 44px;
  }
  .app-footer-nav a svg { width: 22px; height: 22px; }
  .app-footer-nav a.active { color: var(--accent-ink); }
  .app-footer-nav a.active::after { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; background: var(--fire); }
  .app-footer-nav a.cta svg { color: var(--accent-ink); }
  .public-page .main-pad { padding-bottom: 72px; }

  .kpis { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .kpi { min-height: 112px; padding: 1rem; }
  .kpi .kpi-value { font-size: 24px; }
  .kpi.hero-kpi { grid-column: 1 / -1; }
  .kpi.hero-kpi .kpi-value { font-size: 44px; }
  .panel { padding: 1rem; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .turno-card { grid-template-columns: 58px 1fr; gap: .75rem; }
  .turno-card .side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; padding-top: .5rem; border-top: 1px dashed var(--border); }
  .turno-card .hora { font-size: 19px; }
  .next-turno { grid-template-columns: 1fr; gap: .75rem; }
  .next-turno .big-hora { font-size: 44px; }
  .ticket { grid-template-columns: 92px 1fr; }
  .cta-reservar { flex-direction: column; align-items: flex-start; }
  .cta-reservar .btn { width: 100%; }
  .stat-strip { grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
  .stat-strip .s strong { font-size: 17px; }
  .greeting h2 { font-size: 22px; }
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
  .week { gap: 3px; }
  .week .day { padding: .5rem 1px; letter-spacing: -.02em; }
  .toast-stack { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

@media (min-width: 769px) {
  .only-mobile { display: none !important; }
}
@media (max-width: 768px) {
  .only-desktop { display: none !important; }
}

.modo-app .pub-header { padding-top: env(safe-area-inset-top); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
