/* ======================================
   BASE STYLES - AlejandroVR
   ====================================== */

/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* HTML & Body */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: var(--line-height-normal);
  color: var(--text-dark);
  background: var(--bg-white);
  font-size: var(--font-size-base);
  overflow-x: hidden;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-md);
  color: var(--text-dark);
}

h1 {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.1;
}

h2 {
  font-size: var(--font-size-4xl);
  line-height: 1.2;
}

h3 {
  font-size: var(--font-size-3xl);
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

p {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--text-medium);
  margin-bottom: var(--spacing-md);
}

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

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

strong {
  font-weight: var(--font-weight-bold);
}

em {
  font-style: italic;
}

small {
  font-size: var(--font-size-sm);
}

/* Listas */
ul, ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

/* Imágenes */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Highlights */
.highlight-primary {
  color: var(--primary-color);
}

.highlight-danger {
  color: var(--danger-color);
  text-decoration: underline;
  text-decoration-color: var(--danger-color);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.highlight-success {
  color: var(--success-color);
  font-weight: var(--font-weight-bold);
}

.enemy {
  color: var(--danger-color);
  font-weight: var(--font-weight-semibold);
}

/* Separators */
.separator {
  border: none;
  border-top: 2px solid var(--bg-lighter);
  margin: var(--spacing-2xl) 0;
}

/* Selection */
::selection {
  background: var(--primary-ultra-light);
  color: var(--primary-color);
}

::-moz-selection {
  background: var(--primary-ultra-light);
  color: var(--primary-color);
}

/* Scrollbar (Webkit) */
::-webkit-scrollbar {
  width: 12px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--text-lighter);
  border-radius: var(--border-radius-full);
}

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

/* Focus States */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1 {
    font-size: var(--font-size-4xl);
  }
  
  h2 {
    font-size: var(--font-size-3xl);
  }
  
  h3 {
    font-size: var(--font-size-2xl);
  }
  
  p {
    font-size: var(--font-size-base);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: var(--font-size-3xl);
  }
  
  h2 {
    font-size: var(--font-size-2xl);
  }
  
  h3 {
    font-size: var(--font-size-xl);
  }
}