/* Barbería Internacional · estilos */
:root {
  --bg: #0E0E0F; --card: #1A1A1C; --card2: #242427; --line: #2F2F33;
  --tx: #F3F3F1; --mu: #A4A4AA; --lime: #D4F25A; --onlime: #141414; --danger: #F2A65A;
  --glow: linear-gradient(135deg, #ECEFB4 0%, #DCDCEB 55%, #CFCBEF 100%);
  --radius: 24px;
  color-scheme: dark;
}
:root.light {
  --bg: #F2F2EE; --card: #FFFFFF; --card2: #E9E9E4; --line: #D9D9D3;
  --tx: #141414; --mu: #5C5C61; --lime: #CBEA45; --danger: #B4531A;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--tx); }
body { font-family: 'Montserrat', system-ui, sans-serif; font-size: 15px; line-height: 1.45; transition: background .4s, color .4s; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }

.shell { max-width: 480px; margin: 0 auto; min-height: 100dvh; position: relative; }
.view { padding: 20px 20px 140px; animation: fadeUp .38s cubic-bezier(.2,.8,.2,1) both; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }

.card { background: var(--card); border-radius: var(--radius); padding: 18px 20px; transition: background .4s; }
.card.dashed { background: transparent; border: 1px dashed var(--line); }
.glow { background: var(--glow); color: #141414; border-radius: 28px; padding: 22px; position: relative; overflow: hidden; }
.muted { color: var(--mu); }
.small { font-size: 12px; }
.label { font-size: 13px; color: var(--mu); }
.h1 { font-size: 26px; font-weight: 700; margin: 0; }
.big { font-size: 56px; font-weight: 300; line-height: 1; }
.hr { height: 1px; background: var(--line); }

.btn { border: none; border-radius: 26px; padding: 14px 20px; min-height: 48px; font-weight: 700; cursor: pointer;
  transition: transform .16s ease, opacity .2s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:active, .press:active { transform: scale(.96); }
.btn[disabled] { opacity: .45; cursor: default; }
.btn.lime { background: var(--lime); color: var(--onlime); }
.btn.dark { background: var(--tx); color: var(--bg); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--tx); }
.btn.block { width: 100%; }
.press { transition: transform .16s ease; cursor: pointer; }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; border: none; background: var(--card); color: var(--tx);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }

.choice { width: 100%; border: 1px solid var(--line); background: var(--card); color: var(--tx); border-radius: 20px;
  padding: 14px 18px; min-height: 58px; text-align: left; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; cursor: pointer; transition: transform .16s, border-color .2s, background .2s; }
.choice.on { border-color: var(--lime); background: color-mix(in srgb, var(--lime) 10%, var(--card)); }
.check { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--mu); display: flex; align-items: center; justify-content: center; flex: none; }
.choice.on .check { background: var(--lime); border-color: var(--lime); color: var(--onlime); }

.day { border: none; border-radius: 16px; padding: 12px 0; min-height: 64px; background: var(--card); color: var(--tx);
  display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; transition: transform .16s, background .2s; }
.day.on { background: var(--lime); color: var(--onlime); }
.day[disabled] { opacity: .35; cursor: default; }
.slot { border: 1px solid var(--line); background: transparent; color: var(--tx); border-radius: 14px; padding: 12px 0;
  min-height: 46px; font-weight: 600; font-size: 14px; cursor: pointer; transition: transform .16s, background .2s; }
.slot.on { background: var(--lime); border-color: var(--lime); color: var(--onlime); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.steps i { height: 4px; border-radius: 4px; background: var(--line); transition: background .3s; }
.steps i.on { background: var(--lime); }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--mu); }
.input { background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; color: var(--tx); font-size: 15px; width: 100%; }
.input:focus { outline: 2px solid var(--lime); outline-offset: 1px; }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--tx); cursor: pointer; }
.checkline input { width: 20px; height: 20px; accent-color: var(--lime); flex: none; margin: 0; }

.bar { height: 8px; border-radius: 8px; background: rgba(20,20,20,.12); overflow: hidden; }
.bar > i { display: block; height: 100%; background: #141414; border-radius: 8px; animation: grow 1.2s cubic-bezier(.2,.8,.2,1) .3s both; }

.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(14px, env(safe-area-inset-bottom)); width: min(452px, calc(100% - 28px));
  height: 76px; border-radius: 38px; background: var(--card); box-shadow: 0 12px 40px rgba(0,0,0,.35);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; z-index: 10; }
.tab { border: none; background: none; color: var(--mu); display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 600; min-height: 56px; justify-content: center; cursor: pointer; transition: color .2s, transform .16s; }
.tab.on { color: var(--tx); }
.tab-main { justify-self: center; width: 64px; height: 64px; margin-top: -30px; border-radius: 50%; border: 4px solid var(--bg);
  background: #D4F25A; color: #141414; display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 10px 30px rgba(212,242,90,.35); transition: transform .16s; }
.tab-main:active { transform: scale(.92); }

.cta { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(max(14px, env(safe-area-inset-bottom)) + 92px);
  width: min(440px, calc(100% - 40px)); z-index: 9; }

.toast { position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%); z-index: 50; background: var(--tx); color: var(--bg);
  border-radius: 18px; padding: 14px 18px; font-size: 13px; font-weight: 600; width: min(360px, calc(100% - 40px)); text-align: center;
  animation: toastIn .3s ease both; }

.splash { position: fixed; inset: 0; z-index: 100; background: #0E0E0F; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 36px; transition: opacity .5s ease; }
.splash.out { opacity: 0; pointer-events: none; }
.logo-wrap { position: relative; width: 220px; height: 220px; display: flex; align-items: center; justify-content: center; }
.logo-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid #D4F25A; animation: ring 1.8s ease-out .5s both; }
.logo-disc { position: relative; width: 200px; height: 200px; border-radius: 50%; background: #fff; overflow: hidden;
  display: flex; align-items: center; justify-content: center; animation: logoIn 1.3s cubic-bezier(.2,.8,.2,1) both;
  box-shadow: 0 20px 60px rgba(212,242,90,.18); }
.logo-disc img { width: 176px; }
.shine { position: absolute; top: 0; left: 0; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); animation: shine 2.6s ease-in-out 1s infinite; }
.brand { font-size: 13px; font-weight: 600; text-transform: uppercase; color: #F3F3F1; animation: textIn 1s ease .9s both; }
.loadbar { width: 120px; height: 2px; border-radius: 2px; background: #2F2F33; overflow: hidden; }
.loadbar i { display: block; height: 100%; background: #D4F25A; animation: bar 2.4s ease .2s both; }
.mini-logo { width: 44px; height: 44px; border-radius: 50%; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; flex: none; }
.mini-logo img { width: 40px; }

.done-badge { width: 120px; height: 120px; border-radius: 50%; background: rgba(212,242,90,.18); display: flex; align-items: center; justify-content: center; animation: pop .5s cubic-bezier(.2,.8,.2,1.4) both; }
.done-badge > div { width: 84px; height: 84px; border-radius: 50%; background: #D4F25A; display: flex; align-items: center; justify-content: center; }
.check-path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .5s ease .35s forwards; }

.product-photo { width: 96px; height: 96px; flex: none; border-radius: 18px; background: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #6A6A70; text-align: center; padding: 8px; overflow: hidden; }
.product-photo img { width: 100%; height: 100%; object-fit: contain; }
.tile { aspect-ratio: 4/5; border-radius: var(--radius); background: linear-gradient(180deg, var(--card2), var(--card)); display: flex; align-items: flex-end; padding: 14px; }
.switch { width: 52px; height: 30px; border-radius: 16px; border: none; position: relative; padding: 0; cursor: pointer; background: var(--line); transition: background .25s; }
.switch.on { background: var(--lime); }
.switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .25s; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.switch.on i { left: 25px; }
.list-row { display: flex; justify-content: space-between; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line); gap: 12px; }
.list-row:last-child { border-bottom: none; }
.pill { font-size: 11px; font-weight: 600; padding: 6px 10px; border-radius: 20px; background: var(--card2); color: var(--tx); white-space: nowrap; }
.pill.lime { background: var(--lime); color: var(--onlime); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--lime); animation: spin .8s linear infinite; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes logoIn { 0% { opacity: 0; transform: scale(.7) rotate(-8deg); } 55% { opacity: 1; transform: scale(1.05) rotate(1deg); } 100% { opacity: 1; transform: none; } }
@keyframes ring { 0% { opacity: 0; transform: scale(.6); } 40% { opacity: .6; } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes textIn { from { opacity: 0; letter-spacing: .6em; } to { opacity: 1; letter-spacing: .18em; } }
@keyframes bar { from { width: 0; } to { width: 100%; } }
@keyframes shine { 0% { transform: translateX(-140%) skewX(-20deg); } 100% { transform: translateX(260%) skewX(-20deg); } }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes grow { from { width: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; } }

/* Panel (computadora) */
.panel { max-width: 1240px; margin: 0 auto; padding: 28px 20px 60px; }
.panel-grid { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.panel-main { flex: 999 1 560px; min-width: 0; }
.panel-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.ptabs { display: flex; flex-wrap: wrap; gap: 8px; }
.ptab { border: 1px solid var(--line); background: transparent; color: var(--tx); border-radius: 20px; padding: 10px 16px; min-height: 44px; font-weight: 600; cursor: pointer; }
.ptab.on { background: var(--tx); color: var(--bg); border-color: var(--tx); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--mu); font-weight: 500; font-size: 12px; }
