/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--primary); color: var(--primary-on); }
::-webkit-scrollbar { display: none; }
* { scrollbar-width: none; }

/* Layout principal */
.app-main {
  padding-top: var(--header-h);
  min-height: 100vh;
  background: var(--bg);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 20px 24px 24px;
}

.grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
@media (min-width: 1024px) {
  .grid-layout { grid-template-columns: 2fr 1fr; }
}

/* Utilidades */
.u-flex    { display: flex; }
.u-between { justify-content: space-between; }
.u-center  { align-items: center; }
.u-col     { flex-direction: column; }
.u-gap-1   { gap: 4px; }
.u-gap-2   { gap: 8px; }
.u-gap-3   { gap: 12px; }
.u-gap-4   { gap: 16px; }
.u-wrap    { flex-wrap: wrap; }
.u-grow    { flex: 1; min-width: 0; }
.u-truncate{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-hidden  { display: none; }

.u-text-xs   { font-size: var(--fs-xs); }
.u-text-sm   { font-size: var(--fs-sm); }
.u-text-muted{ color: var(--text-muted); }
.u-text-dim  { color: var(--text-dim); }
.u-text-primary { color: var(--primary); }
.u-text-gold { color: var(--tertiary); }
.u-text-red  { color: var(--secondary); }
.u-text-white{ color: var(--text-white); }
.u-bold      { font-weight: 700; }
.u-semibold  { font-weight: 600; }

.u-mb-2 { margin-bottom: 8px; }
.u-mb-3 { margin-bottom: 12px; }
.u-mt-2 { margin-top: 8px; }
.u-mt-3 { margin-top: 12px; }

/* Iconos Material Symbols */
.icon {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
  user-select: none;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.icon--xs { font-size: 14px; }
.icon--sm { font-size: 16px; }
.icon--md { font-size: 20px; }
.icon--lg { font-size: 24px; }
.icon--fill { font-variation-settings: 'FILL' 1, 'wght' 400; }