/**
 * Typography and Base Styles
 * Basic typography, links, and general element styles
 */

/* Estilos generales */
body {
  font-family: var(--primary-font);
  line-height: var(--line-height-base);
  color: var(--text-color);
  background-color: var(--background-color);
  font-size: var(--font-size-base);
}

/* Typography hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--gray-900);
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.75rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

/* Paragraphs and text */
p {
  margin-bottom: 1rem;
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover,
a:focus {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Lists */
ul,
ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Code and preformatted text */
code,
pre {
  font-family: "Courier New", monospace;
  background-color: var(--gray-200);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

pre {
  padding: 1rem;
  overflow-x: auto;
  white-space: pre-wrap;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--gray-600);
}

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

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

th,
td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  font-weight: 600;
  background-color: var(--gray-100);
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999999;
  padding: 8px 16px;
  background: var(--gray-900);
  color: var(--white);
  text-decoration: none;
}

.skip-link:focus {
  left: 6px;
  top: 7px;
}
