/* ===========================================================
   Reset minimal
   =========================================================== */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-ui);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--text);
  background: var(--bg-app);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul, ol { list-style: none; margin: 0; padding: 0; }

a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { display: block; max-width: 100%; }

/* Scrollbar estilo Office (Windows) */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-app); }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border: 3px solid var(--bg-app);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Aviso para pantallas chicas */
.small-screen-warning {
  display: none;
}
@media (max-width: 1023px) {
  .app-shell { display: none !important; }
  .small-screen-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100vh;
    padding: var(--sp-6);
    text-align: center;
    background: var(--bg-app);
  }
  .small-screen-warning h1 {
    font-size: var(--fs-xl);
    color: var(--brand);
    margin: 0 0 var(--sp-4);
  }
  .small-screen-warning p {
    color: var(--text-muted);
    max-width: 420px;
    margin: 0;
  }
}
