/* Gravitas AI - Base Styles v1.0
   Reset y estilos base opinados */

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

/* Reset básico */
* {
  margin: 0;
  padding: 0;
}

/* Documento base */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Body */
body {
  min-height: 100vh;
  font-family: var(--g-font-ui);
  font-size: var(--g-text-base);
  line-height: 1.6;
  color: var(--g-color-text);
  background-color: var(--g-color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--g-font-head);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--g-text-5xl); }
h2 { font-size: var(--g-text-4xl); }
h3 { font-size: var(--g-text-3xl); }
h4 { font-size: var(--g-text-2xl); }
h5 { font-size: var(--g-text-xl); }
h6 { font-size: var(--g-text-lg); }

/* Enlaces */
a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--g-transition-fast);
}

a:hover {
  opacity: 0.8;
}

/* Focus visible */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--g-gradient-start);
  outline-offset: 2px;
  border-radius: var(--g-radius-sm);
}

button:focus-visible,
a:focus-visible {
  outline-offset: 4px;
}

/* Listas */
ul, ol {
  list-style: none;
}

/* Imágenes */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Formularios */
input, button, textarea, select {
  font: inherit;
  color: inherit;
}

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

/* Tablas */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Utilidades */
.u-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.u-text-gradient {
  background: var(--g-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.u-text-muted {
  color: var(--g-color-text-muted);
}

.u-text-center {
  text-align: center;
}

.u-mt-auto {
  margin-top: auto;
}

/* Selección de texto */
::selection {
  background: var(--g-gradient-start);
  color: var(--g-color-bg);
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--g-gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--g-gray-400);
  border-radius: var(--g-radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--g-gray-500);
}

