:root{
  --gradient: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  --primary: #7c3aed;
  --primary-soft: rgba(124,58,237,.14);

  --bg: #0b0e14;
  --bg-2: #111827;
  --bg-3: #1f2937;

  --surface: rgba(255,255,255,0.02);
  --surface-2: #0f172a;
  --surface-3: #1e293b;

  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);

  --text: #ffffff;
  --muted: #94a3b8;

  --danger: #ef4444;

  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-primary: 0 10px 25px -5px rgba(124,58,237,.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --sidebar-w: 260px;
  --topbar-h: 70px;
  --transition: all .25s cubic-bezier(.4,0,.2,1);

  /* Bento Grid specific */
  --bento-gap: 1.5rem;
  --bento-radius: 20px;
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

*{
  font-family:"Plus Jakarta Sans",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

html,
body{
  height:100%;
}

html{
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  color:var(--text);
  background: var(--bg);
  overflow-x:hidden;
}

a{
  color:inherit;
}

button,
input,
textarea,
select{
  font:inherit;
}

img,
svg,
video,
canvas{
  max-width:100%;
  height:auto;
}

/* =========================
   LAYOUT
   ========================= */
.appShell{
  min-height:100vh;
  display:grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
}

.sidebar{
  position:sticky;
  top:0;
  height:100vh;
  z-index:40;
  background: rgba(255, 255, 255, .04);
  border-right: 1px solid var(--border);
  overflow:hidden;
}

.sidebarInner{
  height:100%;
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:14px;
  overflow-y:auto;
}

.main{
  min-width:0;
  display:flex;
  flex-direction:column;
}

/* =========================
   SIDEBAR
   ========================= */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  border-radius: var(--radius-md);
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
  box-shadow: var(--shadow-sm);
}

.logo{
  width:42px;
  height:42px;
  border-radius:14px;
  background: rgb(79 70 229);
  display:grid;
  place-items:center;
  font-weight:950;
  color:#fff;
  flex:0 0 auto;
  box-shadow: 0 10px 24px rgba(79,70,229,.25);
}

.brandText{
  min-width:0;
}

.name{
  font-weight:950;
  font-size:1.06rem;
  letter-spacing:-.02em;
  line-height:1.1;
}

.brandSub{
  margin-top:2px;
}

.nav{
  display:grid;
  gap:8px;
  margin-top:6px;
}

.navItem{
  min-height:46px;
  padding:12px 14px;
  border-radius:14px;
  display:flex;
  align-items:center;
  text-decoration:none;
  color: var(--text);
  border:1px solid transparent;
  background: transparent;
  font-weight:700;
  transition: var(--transition);
}

.sideFooter{
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebarLogoutBtn{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center; /* <-- esto lo centra */
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, opacity .18s ease;
}

.sidebarLogoutBtn:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-1px);
}

.sidebarLogoutBtn:active{
  transform: translateY(0);
}

.sidebarLogoutBtn:focus-visible{
  outline: none;
  border-color: rgba(79, 70, 229, 0.55);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.18);
}

.sidebarLogoutIcon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  min-width: 18px;
  font-size: 15px;
  line-height: 1;
  opacity: 0.9;
}

.sideFooterMeta{
  display: flex;
  flex-direction: column;
  gap: 2px;
}



.navItem:hover{
  background: var(--surface-3);
  color: var(--primary);
  transform: translateY(-1px);
}

.navItem.active{
  background: linear-gradient(135deg, rgba(79, 70, 229, .10) 0%, rgba(124, 58, 237, .08) 100%);
  color: rgb(120 70 229 / 85%);
  font-weight:800;
}

.sideFooter{
  margin-top:auto;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  box-shadow: var(--shadow-sm);
}

/* =========================
   TOPBAR / CONTENT
   ========================= */
.topbar{
  position:sticky;
  top:0;
  z-index:20;
  min-height:var(--topbar-h);
  padding:18px 18px 12px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  background: linear-gradient(135deg, rgba(79, 70, 229, .10) 0%, rgba(124, 58, 237, .08) 100%);
  backdrop-filter: blur(14px);
  border-bottom:1px solid var(--border);
}

.topLeft{
  display: flex;
  align-items: center;
  min-width: 0;
}

.topLeft,
.topRight{
  min-width:0;
}

.topRight{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

.title{
  font-weight:950;
  font-size:clamp(1.2rem, 2vw, 1.45rem);
  line-height:1.12;
  letter-spacing:-.03em;
  word-break:break-word;
}

.crumb{
  color: rgba(229,231,235,.65);
  font-weight:700;
  font-size:.92rem;
  margin-top:4px;
  word-break:break-word;
}

.content{
  width:100%;
  min-width:0;
  padding:10px 18px 18px;
}

/* =========================
   GENERIC UI
   ========================= */
.muted{
  color:var(--muted);
}

.small{
  font-size:.9rem;
}

.card{
  border-radius: 12px;
  padding:18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255, 255, 255, .04);
  box-shadow: var(--shadow-sm);
}

@keyframes skeleton-loading {
  0% { background-color: #e2e8f0; }
  100% { background-color: #f1f5f9; }
}
.skeleton {
  animation: skeleton-loading 1s linear infinite alternate;
  border-radius: 8px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap:12px;
}

.col-12{grid-column:span 12}
.col-8{grid-column:span 8}
.col-6{grid-column:span 6}
.col-4{grid-column:span 4}

.row{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.input{
  width:100%;
  min-width:0;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(6,11,22,.65);
  color:#fff;
  outline:none;
  transition: var(--transition);
}

.input::placeholder{
  color: rgba(229,231,235,.46);
}

.input:hover{
  border-color: rgba(255,255,255,.18);
}

.input:focus{
  border-color: rgba(79,70,229,.55);
  box-shadow: 0 0 0 4px rgba(79,70,229,.15);
}

.btn{
  min-height:44px;
  padding:12px 14px;
  border-radius:14px;
  border:0;
  cursor:pointer;
  font-weight:950;
  transition: var(--transition);
  display:inline-flex;
  gap:.6rem;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  white-space:nowrap;
}

.btn.primary{
  color:#fff;
  background:rgb(79 70 229);
  box-shadow: var(--shadow-primary);
}

.btn.primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(79,70,229,.32);
}

.btn.ghost{
  background: rgba(148,163,184,.10);
  color: rgba(229,231,235,.92);
  border:1px solid rgba(148,163,184,.22);
}

.btn.ghost:hover{
  background: rgba(79,70,229,.08);
  border-color: rgba(79,70,229,.45);
}

.btn.danger{
  background: rgba(239,68,68,.12);
  color: #fecaca;
  border:1px solid rgba(239,68,68,.28);
}

.btn.danger:hover{
  background: rgba(239,68,68,.18);
  border-color: rgba(239,68,68,.40);
}

.chip{
  display:inline-flex;
  gap:.5rem;
  align-items:center;
  padding:.55rem .8rem;
  border-radius:999px;
  border:1px solid rgba(79,70,229,.35);
  background: rgba(79,70,229,.10);
  color:#c7d2fe;
  font-weight:900;
  max-width:100%;
}

.list{
  display:grid;
  gap:10px;
  margin-top:10px;
}

.item{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}

.item .meta{
  color: rgba(229,231,235,.70);
  font-weight:700;
  font-size:.9rem;
}

.toast{
  margin-bottom:12px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(79,70,229,.35);
  background: rgba(79,70,229,.15);
  font-weight:800;
  white-space:pre-wrap;
  box-shadow: var(--shadow-sm);
}

.toast.err{
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.12);
}

/* =========================
   MOBILE MENU
   ========================= */
.mobileMenuBtn{
  display:none;
}

/* =========================
   BOTTOM NAV MOBILE
   ========================= */
.bottomNav{
  display:none;
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  background:#ffffff;
  border-top:1px solid #e2e8f0;
  z-index:50;
  padding-bottom:env(safe-area-inset-bottom);
}

.bottomNavGrid{
  display:flex;
  justify-content:space-around;
  align-items:center;
  height:60px;
}

.bottomNavItem{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:#64748b;
  text-decoration:none;
  font-size:0.75rem;
  font-weight:700;
  gap:4px;
  width:100%;
  height:100%;
}

.bottomNavItem.active{
  color:#2563eb;
}

@media (max-width: 980px){
  .sidebar{ display:none; }
  .appShell{ grid-template-columns: 1fr; padding-bottom: 60px; }
  .bottomNav{ display:block; }
}

.appOverlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .2s ease, visibility .2s ease;
  z-index:35;
}

/* =========================
   VIEW: SERVICES
   ========================= */
.bisSvcPage{
  display:grid;
  gap:16px;
}

.bisSvcHeadCard{
  padding:18px;
}

.bisSvcHeadTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.bisSvcHeadInfo{
  min-width:0;
}

.bisSvcHeadTitle{
  font-weight:950;
  font-size:1.15rem;
  line-height:1.1;
}

.bisSvcHeadMeta{
  margin-top:6px;
}

.bisSvcCard{
  overflow:hidden;
}

.bisSvcCardHeader{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  padding-bottom:14px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.bisSvcTabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.bisSvcTab{
  border:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:0.6rem 0.8rem;
  border-radius:14px;
  background:rgba(255,255,255,.05);
  color:rgba(255,255,255,.78);
  font-weight:800;
  transition:var(--transition);
}

.bisSvcTab:hover{
  background:rgba(255,255,255,.08);
  color:rgba(255,255,255,.92);
}

.bisSvcTab.active{
  background:rgba(79,70,229,.18);
  color:#fff;
  box-shadow:inset 0 0 0 1px rgba(99,102,241,.28);
}

.bisSvcTabIcon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  flex:0 0 18px;
  font-size:.82rem;
  font-weight:900;
}

.bisSvcHeaderActions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.bisSvcCardBody{
  padding-top:16px;
}

.bisSvcList{
  display:grid;
  gap:12px;
}

.bisSvcListItem{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.06);
}

.bisSvcAvatar{
  width:56px;
  height:56px;
  min-width:56px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.1rem;
  font-weight:900;
  background:rgba(255,255,255,.06);
  color:#fff;
}

.bisSvcAvatarService{
  background:linear-gradient(135deg, rgba(79,70,229,.18), rgba(124,58,237,.18));
}

.bisSvcAvatarFallback{
  background:rgba(255,255,255,.06);
}

.bisSvcStaffPhotoWrap{
  width:56px;
  height:56px;
  min-width:56px;
  position:relative;
}

.bisSvcStaffPhoto{
  width:56px;
  height:56px;
  object-fit:cover;
  border-radius:16px;
  display:block;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
}

.bisSvcListMain{
  min-width:0;
  flex:1 1 auto;
}

.bisSvcListTitleRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.bisSvcListTitle{
  font-weight:900;
  font-size:1rem;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.bisSvcBadge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.88);
  font-size:.82rem;
  font-weight:800;
}

.bisSvcStatus{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:.8rem;
  font-weight:900;
}

.bisSvcStatus.is-active{
  background:rgba(16,185,129,.14);
  color:#a7f3d0;
}

.bisSvcStatus.is-inactive{
  background:rgba(239,68,68,.12);
  color:#fecaca;
}

.bisSvcListMeta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:4px;
  color:rgba(229,231,235,.74);
  font-size:.92rem;
}

.bisSvcListSub{
  margin-top:6px;
}

.bisSvcListActions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.bisSvcEmpty{
  min-height:260px;
  border-radius:20px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:10px;
  padding:26px 18px;
  background:rgba(255,255,255,.025);
  border:1px dashed rgba(255,255,255,.10);
}

.bisSvcEmptyIcon{
  width:72px;
  height:72px;
  border-radius:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:2rem;
  background:rgba(255,255,255,.05);
}

.bisSvcEmptyTitle{
  font-size:1.08rem;
  font-weight:900;
}

.bisSvcModalCard{
  width:min(640px,100%);
  max-height:min(92vh,900px);
  overflow:auto;
}

.bisSvcModalTop{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.bisSvcModalActions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}

.bisSvcStaffBox{
  padding:10px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  display:grid;
  gap:4px;
}

.bisSvcStaffItem{
  display:flex;
  gap:10px;
  align-items:center;
  padding:6px 4px;
}

.bisBtnAuto{
  width:auto !important;
}

.menuToggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  line-height: 1;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-right: 14px;
  flex-shrink: 0;
}

.menuToggle:active {
  transform: scale(0.95);
}

.appOverlay {
  position: fixed;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 45;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width:1100px){
  .col-8{grid-column:span 12}
  .col-6{grid-column:span 6}
  .col-4{grid-column:span 6}
}

@media (max-width:980px){
  .appShell{
    grid-template-columns: 1fr;
  }

  .menuToggle {
    display: flex;
  }

  .sidebar{
    position:fixed;
    top:0;
    left:0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    transform: translateX(-102%);
    opacity: 0;
    visibility: hidden;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1), opacity .2s ease;
    box-shadow: 20px 0 60px rgba(0,0,0,0.6);
    z-index: 100;
    background: #111827 !important;
    border-right: 1px solid var(--border-strong);
    display: flex !important;
    flex-direction: column !important;
  }
  
  .sidebar * {
    visibility: visible !important;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  body.sidebar-open .sidebar{
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.sidebar-open .appOverlay{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 90;
  }

  .topbar{
    padding: 16px 20px;
    align-items: center;
    min-height: 72px;
  }

  .topLeft {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .topRight{
    display: none;
  }

  .content{
    padding:10px 16px 16px;
  }

  .grid{
    grid-template-columns:1fr;
  }

  .col-8,
  .col-6,
  .col-4,
  .col-12{
    grid-column:1 / -1;
  }
}

@media (max-width:900px){
  .bisSvcCardHeader{
    align-items:stretch;
  }

  .bisSvcHeaderActions{
    width:100%;
    justify-content:stretch;
  }

  .bisSvcHeaderActions .btn{
    flex:1 1 100%;
  }
}

@media (max-width:700px){
  .bisSvcListItem{
    align-items:flex-start;
    flex-wrap:wrap;
  }

  .bisSvcListActions{
    width:100%;
    justify-content:flex-start;
  }

  .bisSvcListActions .btn{
    flex:1 1 100%;
  }

  .bisSvcModalActions .btn{
    flex:1 1 100%;
  }

  .bisSvcModalCol{
    grid-column:1 / -1;
  }
}

.bisSvcGrid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));
  gap:20px;
}

.bisSvcCardItem{
  display:flex;
  flex-direction:column;
  min-height:340px;
  border-radius:22px;
  overflow:hidden;
  background:rgba(255,255,255,.02);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 18px 40px rgba(0,0,0,.26);
}

.bisSvcCardMedia{
  min-height:150px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px 24px;
  border-bottom:1px solid rgba(255,255,255,.06);
  color:rgba(255,255,255,.85);
}

.bisSvcCardMediaPlaceholder{
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:.95;
}

.bisSvcCardBody{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:22px 20px 18px;
  flex:1;
}

.bisSvcCardName{
  font-size:1.28rem;
  font-weight:800;
  line-height:1.2;
  color:#fff;
}

.bisSvcCardDuration{
  display:flex;
  align-items:center;
  gap:8px;
  color:rgba(214,220,255,.78);
  font-size:.98rem;
  line-height:1;
}

.bisSvcCardDesc{
  color:rgba(214,220,255,.72);
  font-size:1rem;
  line-height:1.5;
  min-height:48px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.bisSvcCardBottom{
  margin-top:auto;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.07);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.bisSvcCardPrice{
  font-size:1.2rem;
  font-weight:900;
  line-height:1;
  color:#7c83ff;
  letter-spacing:-.02em;
}

.bisSvcCardActions{
  display:flex;
  align-items:center;
  gap:10px;
}

.bisSvcCardActions .btn{
  min-width:46px;
  width:46px;
  height:46px;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
}

.bisSvcCardActions .btn.ghost{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
}

.bisSvcCardActions .btn.danger{
  background:rgba(239,68,68,.10);
  border:1px solid rgba(239,68,68,.22);
}

@media (max-width: 640px){
  .bisSvcGrid{
    grid-template-columns:1fr;
    gap:16px;
  }

  .bisSvcCardItem{
    min-height:320px;
  }

  .bisSvcCardMedia{
    min-height:136px;
    padding:24px 20px;
  }

  .bisSvcCardBody{
    padding:18px 16px 16px;
    gap:12px;
  }

  .bisSvcCardName{
    font-size:1.15rem;
  }

  .bisSvcCardPrice{
    font-size:1.65rem;
  }

  .bisSvcCardActions .btn{
    min-width:42px;
    width:42px;
    height:42px;
    border-radius:12px;
  }
}

@media (max-width:420px){
  gf{
    width:38px;
    height:38px;
    border-radius:12px;
  }

  .name{
    font-size:1rem;
  }

  .title{
    font-size:1.1rem;
  }

  .crumb,
  .small,
  .item .meta{
    font-size:.85rem;
  }

  .navItem,
  .input,
  .btn{
    min-height:42px;
  }

  .mobileMenuBtn{
    display: none !important;
  }
}

/* =========================
   BOTTOM NAV (MOBILE)
   ========================= */
.bottomNav{
  display:none;
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  height:70px;
  background:#fff;
  border-top:1px solid var(--border);
  z-index:100;
  padding:0 8px;
}

.bottomNavGrid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  height:100%;
}

.bottomNavItem{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  font-size:.7rem;
  font-weight:700;
  color:var(--muted);
  text-decoration:none;
  gap:2px;
}

.bottomNavItem.active,
.bottomNavItem:hover{
  color:var(--primary);
}

@media (max-width: 980px){
  .sidebar{
    display:none;
  }
  .appShell{
    grid-template-columns: 1fr;
    padding-bottom: 70px; /* Espacio para el bottom nav */
  }
  .bottomNav{
    display:block;
  }
}

/* =========================
   DASHBOARD / BENTO GRID
   ========================= */
.bizDashStatsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.statCard {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.statCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.statValue {
  font-size: 2rem;
  font-weight: 950;
  word-break: break-word;
}

.statTitle {
  word-break: break-word;
  font-size: 1.03rem;
  font-weight: 700;
  color: rgba(255,255,255,.58);
  letter-spacing: 0.025em;
}

.bizSoftCard {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
}

/* =========================
   SKELETONS
   ========================= */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* =========================
   FULL PAGE FORMS
   ========================= */
.formPageContainer {
  background: var(--bg);
  min-height: 100vh;
  width: 100%;
  color: var(--text);
}

.formPageHeader {
  padding: 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.formPageContent {
  padding: 32px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.formSectionTitle {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--text);
}

.formActionRow {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 16px;
}

@media (max-width: 640px) {
  .formActionRow {
    flex-direction: column-reverse;
  }
}

/* =========================
   BENTO GRID SYSTEM
   ========================= */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--bento-gap);
  width: 100%;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--bento-radius);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 160px;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.3);
}

.bento-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--gradient);
  opacity: 0;
  transition: var(--transition);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bento-card-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
}

.bento-card-hint {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Specific Bento Sizes */
.bento-card.wide { grid-column: span 2; }
@media (max-width: 768px) {
  .bento-card.wide { grid-column: span 1; }
}

/* =========================
   MODAL SYSTEM (OVERLAY)
   ========================= */
.turna-modal-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.3s ease;
}

.turna-modal-content {
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  width: 100%;
  max-width: 850px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.6);
  position: relative;
  animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Custom Scrollbar for Modal */
.turna-modal-content::-webkit-scrollbar {
  width: 8px;
}
.turna-modal-content::-webkit-scrollbar-track {
  background: transparent;
}
.turna-modal-content::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 10px;
}
