/* Estructura de los paneles (negocio y superadmin): barra lateral + contenido. */
.app { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.app::before { content: ""; position: fixed; inset: -20% -10% auto auto; width: 60vw; height: 60vw; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%); pointer-events: none; z-index: -1; }

.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 1.5rem; padding: 1.25rem; background: var(--bg-2); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); }
.brand__mark { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; font-weight: 900; color: #0A0A12; flex: none; overflow: hidden; }
.brand__mark .media { background: transparent; }
.brand__name { font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.brand__sub { display: block; font-size: .75rem; color: var(--text-3); font-weight: 500; }

.nav { display: grid; gap: .25rem; }
.nav a, .nav button { display: flex; align-items: center; gap: .7rem; min-height: 44px; padding: .55rem .8rem; border-radius: var(--radius-sm); color: var(--text-2); text-decoration: none; font: inherit; font-weight: 600; background: none; border: 0; cursor: pointer; text-align: left; width: 100%; }
.nav a:hover, .nav button:hover { background: var(--surface); color: var(--text); }
.nav [aria-current="page"] { background: var(--surface-2); color: var(--text); box-shadow: inset 3px 0 0 var(--brand); }
.nav .ico { width: 1.4rem; text-align: center; }
.sidebar__foot { margin-top: auto; display: grid; gap: .5rem; }

.main { min-width: 0; padding: 1.5rem clamp(1rem, 3vw, 2.5rem) 4rem; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head h1 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0; }
.page-head p { margin: .25rem 0 0; color: var(--text-2); }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

.grid { display: grid; gap: 1rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.stat { padding: 1.1rem 1.25rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.stat__label { font-size: .8rem; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.stat__value { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); background: var(--bg-2); }
.table tr:last-child td { border-bottom: 0; }

.empty { padding: 2.5rem 1rem; text-align: center; color: var(--text-2); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }

/* Botón de menú en móvil */
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 100; inset: 0 auto 0 0; width: 280px; transform: translateX(-100%); transition: transform .3s var(--ease); }
  .sidebar.is-open { transform: none; box-shadow: var(--shadow); }
  .menu-toggle { display: inline-flex; }
}
