/* ========================================
   BASE STYLES - c2lynx
   Estilos base y reset global
======================================== */

/* Reset básico */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Body y HTML */
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: var(--line-height-normal);
    font-size: var(--font-size-base);
    transition: background-color var(--transition-normal), color var(--transition-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  /* Tipografía base */
  h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--spacing-sm);
  }
  
  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }
  h3 { font-size: var(--font-size-xl); }
  h4 { font-size: var(--font-size-lg); }
  h5 { font-size: var(--font-size-base); }
  h6 { font-size: var(--font-size-sm); }
  
  p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
  }
  
  /* Enlaces */
  a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
  }
  
  a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
  }
  
  /* Listas */
  ul, ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
  }
  
  li {
    margin-bottom: var(--spacing-xs);
  }
  
  /* Imágenes */
  img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
  }
  
  /* Código */
  code {
    background: var(--bg-tertiary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
  }
  
  /* Elementos de formulario base */
  input, textarea, select, button {
    font-family: inherit;
    font-size: inherit;
  }
  
  /* Botones de reset */
  button {
    background: none;
    border: none;
    cursor: pointer;
  }
  
  /* Utilidades globales */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  
  /* Scrollbar personalizado */
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
  }
  
  ::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
  }
  
  /* Selection */
  ::selection {
    background: var(--color-primary-light);
    color: var(--text-muted);
  }
  
  /* Focus visible para accesibilidad */
  :focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
  }