/* Reset Moderno y Configuracion del Entorno */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  color-scheme: dark;
  background-color: var(--bg-abyss);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overscroll-behavior: contain;
  touch-action: manipulation;
  height: 100%;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-abyss);
  color: var(--text-primary);
  overflow-x: hidden;
  padding-top: var(--safe-top);
  padding-right: var(--safe-right);
  padding-bottom: var(--safe-bottom);
  padding-left: var(--safe-left);
}

#app {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  z-index: var(--z-ui-base);
}

/* Superficies Interactivas y Prevencion de Seleccion Indeseada */
button,
a,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

button:disabled {
  cursor: not-allowed;
  opacity: var(--opacity-disabled);
}

/* Enfoque Accesible Consistente */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* Jerarquia Tipografica Base */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-semibold);
  line-height: var(--leading-tight);
  color: var(--text-title);
  letter-spacing: var(--tracking-tight);
}

p {
  color: var(--text-primary);
  line-height: var(--leading-normal);
}

code,
pre,
kbd {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
}

/* Eliminacion de barras de desplazamiento molestas preservando scroll */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}