/* ============================================================
   ARGOS MONALDI WORK STATION — BASE
   Shell de la aplicación: fondo, cabecera, navegación, layout.
   Tono: calmado y con autoridad. Sin partículas, sin brillos
   pulsantes, sin barridos de luz. La superficie de trabajo
   (paneles/tarjetas) es el protagonista visual.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body{
  font-family: var(--font-body);
  color: var(--cream);
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(6,7,10,.72), rgba(6,7,10,.72)),
    url("../img/pizarra.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}

@supports (-webkit-touch-callout: none) {
  body { background-attachment: scroll; }
}

a { color: inherit; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

::selection{ background: var(--brass-dark); color: var(--cream); }

/* Barra de scroll sobria */
::-webkit-scrollbar{ width: 10px; height: 10px; }
::-webkit-scrollbar-track{ background: transparent; }
::-webkit-scrollbar-thumb{ background: rgba(196,148,88,.28); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover{ background: rgba(196,148,88,.45); }

h1,h2,h3,h4 { font-family: var(--font-title); font-weight: 700; color: var(--brass); letter-spacing: .02em; }

/* ── SHELL ── */
.app-shell{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HEADER ── */
.app-header{
  position: sticky; top: 0; z-index: 200;
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 32px;
  background: rgba(5,7,10,.94);
  border-bottom: 1px solid var(--panel-line);
  box-shadow: 0 4px 18px rgba(0,0,0,.45);
}

.app-header .brand{
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.app-header .brand img{ height: 46px; width: auto; }
.app-header .brand-name{
  display: none;
}

.app-nav{
  flex: 1;
  display: flex; align-items: center; gap: 4px;
  overflow-x: auto;
}
.app-nav a{
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--cream-dim); text-decoration: none;
  border-radius: var(--radius-sm);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.app-nav a img{ width: 15px; height: 15px; opacity: .75; }
.app-nav a:hover{ color: var(--brass-light); background: rgba(196,148,88,.06); }
.app-nav a.active{ color: var(--brass); border-bottom-color: var(--brass); }
.app-nav a.active img{ opacity: 1; }

.app-header-actions{
  display: flex; align-items: center; gap: 14px; flex-shrink: 0;
}
.user-chip{
  display: flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px;
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  font-size: 11.5px; color: var(--cream-dim);
}
.user-chip .avatar{
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(160deg, var(--brass-light), var(--brass-dark));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title); font-weight: 700; font-size: 11px;
  color: var(--text-on-brass);
}
.logout-link{
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--cream-faint); text-decoration: none;
  border: 1px solid var(--panel-line); border-radius: var(--radius-sm);
  padding: 8px 12px;
  transition: color .15s ease, border-color .15s ease;
}
.logout-link:hover{ color: var(--brass-light); border-color: var(--brass); }

/* ── MAIN ── */
.app-main{
  flex: 1;
  padding: 32px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.page-head{
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.page-head .eyebrow{
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass-dark); margin-bottom: 6px;
}
.page-head h1{
  font-size: 26px; text-transform: uppercase; letter-spacing: .04em;
}
.page-head .sub{
  font-size: 12.5px; color: var(--cream-faint); margin-top: 6px; max-width: 640px;
}
.page-head-actions{ display: flex; gap: 10px; flex-wrap: wrap; }

.breadcrumb{
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--cream-faint); margin-bottom: 14px;
}
.breadcrumb a{ color: var(--cream-faint); text-decoration: none; }
.breadcrumb a:hover{ color: var(--brass-light); }
.breadcrumb .sep{ opacity: .4; }
.breadcrumb .current{ color: var(--brass); }

/* ── FOOTER ── */
.app-footer{
  padding: 16px 32px;
  background: rgba(5,7,10,.95);
  border-top: 1px solid var(--panel-line-soft);
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cream-faint);
  text-align: center;
}

/* ── GRID UTILITIES ── */
.grid{ display: grid; gap: 20px; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
.grid-sidebar{ grid-template-columns: 300px 1fr; align-items: start; }
.grid-sidebar-r{ grid-template-columns: 1fr 320px; align-items: start; }

@media (max-width: 1100px){
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
  .grid-3{ grid-template-columns: repeat(2, 1fr); }
  .grid-sidebar, .grid-sidebar-r{ grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  .grid-2, .grid-4, .grid-3{ grid-template-columns: 1fr; }
  .app-main{ padding: 20px 16px; }
  .app-header{ padding: 0 16px; gap: 14px; }
}

.section{ margin-bottom: 32px; }
.section-title{
  font-size: 13px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--brass); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.section-title::after{
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--panel-line), transparent);
}
