/* ── Base: tipografía y layout global ── */
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* Headings */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.section__title {
  font-size: var(--text-section);
  max-width: 18ch;
  margin-bottom: 1.5rem;
}

.section__subtitle {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  max-width: 56ch;
  margin-bottom: 3.5rem;
}

.section__label {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--accent-1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.text-gradient {
  background-image:
    linear-gradient(110deg, transparent 42%, rgba(255, 255, 255, 0.45) 50%, transparent 58%),
    var(--gradient-text);
  background-size: 250% 100%, 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: textShimmer 5.5s ease-in-out infinite;
}

/* barrido de luz que recorre el degradado y descansa entre pasadas */
@keyframes textShimmer {
  0%, 55% { background-position: -150% 0, 0 0; }
  100%    { background-position: 250% 0, 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .text-gradient { animation: none; }
}

/* Botones */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  padding: 1rem 2.25rem;
  border-radius: var(--radius-pill);
  position: relative;
}

.btn--primary {
  background: var(--gradient-primary);
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow-accent);
}

.btn--ghost {
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

/* SplitType: evitar saltos de layout en líneas divididas */
.line {
  overflow: hidden;
}

.word,
.char {
  transform-style: preserve-3d;
}

/* Capas GPU para los elementos más animados */
.hero__bg,
.hero__content,
.service__card,
.problem__card {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Accesibilidad: foco visible */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
