/* Base Reset & Core Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: var(--font-family-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-headings);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

p {
  color: var(--text-muted);
  line-height: 1.5;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-input);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

/* Utility Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(79, 118, 9, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(79, 118, 9, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 118, 9, 0); }
}

/* Un elemento con el atributo "hidden" nunca debe mostrarse, aunque otra clase le dé "display" */
[hidden] {
  display: none !important;
}

.fade-in {
  animation: fadeIn var(--transition-normal) forwards;
}
