/* ========================================
   BASE / RESET
======================================== */
html {
  box-sizing: border-box;
  font-size: 62.5%; /* 1rem = 10px, facilita el cálculo mental */
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  text-align: center;
  overflow-x: hidden;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

/* Respeta preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   UTILIDADES
======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

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

/* Foco visible para accesibilidad de teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 3px;
}

/* ========================================
   TÍTULO DE SECCIÓN (patrón: kicker + título + línea + intro)
======================================== */
.section-kicker {
  font-size: var(--kicker-size);
  font-weight: 700;
  letter-spacing: var(--kicker-spacing);
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(2.6rem, 3.6vw, 3.8rem);
  margin-bottom: 18px;
}

.section-title-line {
  width: var(--title-line-width);
  height: var(--title-line-height);
  background: linear-gradient(to right, var(--color-accent-secondary), var(--color-accent-primary));
  margin: 0 auto 24px;
  border-radius: var(--radius-pill);
}

.section-intro {
  max-width: 700px;
  margin: 0 auto var(--space-intro);
  color: var(--color-text-muted);
  font-size: 1.7rem;
  line-height: 1.6;
}

section {
  padding: var(--space-section) 24px;
}

/* ========================================
   BOTONES
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 15px 24px;
  border-radius: 5px;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: #ffffff;
  color: #0b0e14;
  box-shadow: 0 10px 22px rgba(255, 255, 255, 0.12);
}

.btn-primary:hover {
  background-color: #e8e8e8;
}

.btn-secondary {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

/* ========================================
   SCROLL REVEAL (usado por assets/js/main.js)
======================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
