/* ============================================
   MAKA DEFENSA - Base Styles
   ============================================ */

body {
  font-family: var(--font-principal);
  font-weight: var(--fw-regular);
  font-size: var(--text-base);
  color: var(--blanco);
  background-color: var(--negro-profundo);
  overflow-x: hidden;
}

/* --- Skip to content (accessibility) --- */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--azul-primario);
  color: var(--blanco);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  z-index: var(--z-tooltip);
  font-weight: var(--fw-semibold);
  transition: top var(--transition-fast);
}

.skip-to-content:focus {
  top: var(--space-4);
}

/* --- Typography --- */
h1, .h1 {
  font-size: clamp(2.25rem, 5vw, var(--text-7xl));
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
}

h2, .h2 {
  font-size: clamp(1.75rem, 4vw, var(--text-5xl));
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
}

h3, .h3 {
  font-size: clamp(1.25rem, 2.5vw, var(--text-3xl));
  font-weight: var(--fw-semibold);
}

h4, .h4 {
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
}

h5, .h5 {
  font-size: var(--text-lg);
  font-weight: var(--fw-medium);
}

p {
  color: var(--gris-claro);
  line-height: var(--lh-relaxed);
}

.text-accent {
  color: var(--azul-electrico);
}

.text-muted {
  color: var(--gris-texto);
}

.text-center { text-align: center; }
.text-upper {
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
}

/* --- Section Titles --- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--azul-electrico);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  margin-bottom: var(--space-4);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--azul-electrico);
}

.section-title {
  margin-bottom: var(--space-6);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--gris-texto);
  max-width: 600px;
  line-height: var(--lh-relaxed);
}

.section-subtitle.centered {
  margin-left: auto;
  margin-right: auto;
}

/* --- Links --- */
a {
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--azul-electrico);
}

a:focus-visible {
  outline: 2px solid var(--azul-electrico);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* --- Selection --- */
::selection {
  background: var(--selection-bg);
  color: var(--blanco);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--negro-profundo);
}

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

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

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

.container--narrow {
  max-width: var(--max-width-narrow);
}

.container--wide {
  max-width: var(--max-width-wide);
}

.section {
  padding: var(--space-24) 0;
  position: relative;
}

.section--sm {
  padding: var(--space-16) 0;
}

.section--dark {
  background-color: var(--navy-oscuro);
}

.section--gradient {
  background: var(--gradiente-tech);
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.grid {
  display: grid;
}

.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;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
