/**
 * Base CSS - Variables, reset y estilos fundamentales
 * Mantiene las variables y estilos base del diseño existente
 */

:root {
  /* Colores principales */
  --ckm-green: #00c853;
  --ckm-green-2: #00a444;
  --ckm-black: #0b0b0b;
  --ckm-gray: #1a1a1a;
  --white: #fff;
  --muted: #c9c9c9;
  
  /* Layout */
  --container: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.35);
  
  /* Espaciado */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 18px;
  --space-xl: 24px;
  --space-2xl: 32px;
  
  /* Tipografía */
  --font-family: Inter, system-ui, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  
  /* Z-index */
  --z-dropdown: 10;
  --z-modal: 50;
  --z-header: 100;
  --z-toast: 1000;
}

/* Reset básico */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--white);
  background: var(--ckm-black);
  line-height: 1.5;
}

/* Utilidades básicas */
.container {
  max-width: var(--container);
  margin: auto;
  padding: 0 20px;
}

.text-green {
  color: var(--ckm-green);
}

.link-green {
  color: var(--ckm-green);
  font-weight: 700;
  text-decoration: none;
}

.link-green:hover {
  text-decoration: underline;
}

.muted {
  color: var(--muted);
}

.note {
  margin-top: 14px;
}

/* Estados de carga */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.hidden {
  display: none !important;
}

.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;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--ckm-green);
  outline-offset: 2px;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--ckm-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--white);
}
