/* ==========================================================================
   BASE & RESET STYLES — Portfolio Nadir Jara (nadirjara.tech)
   Regla estricta: No usar #fff ni #000 puro.
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-ui);
  font-size: var(--text-body);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tipografía de títulos con EB Garamond (voz editorial) */
h1, h2, h3, h4, h5, h6, .display-text {
  font-family: var(--font-display);
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.2;
}

h1, .text-display {
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-h2);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: var(--text-h3);
}

p {
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--color-accent-deep);
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
}

/* Contenedores de layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }
}
