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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ════════════════════════════════════════
   BODY — white canvas
════════════════════════════════════════ */
body {
  font-family: var(--font-primary);
  background-color: var(--color-white);
  color: var(--color-graphite);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ════════════════════════════════════════
   LAYOUT
════════════════════════════════════════ */
.container {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-24);
}

/* Section rhythm */
.section {
  padding: var(--spacing-96) 0;
}

.section--sm {
  padding: var(--spacing-80) 0;
}

/* Alternating backgrounds */
.bg-white { background-color: var(--color-white); }
.bg-snow  { background-color: var(--color-snow); }

/* Dark sections (max 4 on page) */
.bg-dark {
  background: var(--gradient-navy-fade);
  color: var(--color-white);
}

/* ════════════════════════════════════════
   TYPOGRAPHY — on white canvas
════════════════════════════════════════ */
.text-display {
  font-size: var(--text-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--color-deep-navy);
}

.text-heading-lg {
  font-size: var(--text-heading-lg);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-deep-navy);
}

.text-heading {
  font-size: var(--text-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--color-deep-navy);
}

.text-heading-sm {
  font-size: var(--text-heading-sm);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--color-deep-navy);
}

.text-subheading {
  font-size: var(--text-subheading);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--color-graphite);
}

.text-body-lg {
  font-size: var(--text-body-lg);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-slate);
}

.text-body {
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-slate);
}

.text-body-sm {
  font-size: var(--text-body-sm);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-slate);
}

.text-caption {
  font-size: var(--text-caption);
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-steel);
}

/* Gradient text helper */
.gradient-text {
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Cyan highlight (for dark sections) */
.cyan-text {
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-cyan-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ════════════════════════════════════════
   SECTION HEADER (shared pattern)
════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-64);
}

.section-header__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-indigo-soft);
  color: var(--color-indigo);
  font-size: var(--text-caption);
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-pills);
  margin-bottom: var(--spacing-16);
}

/* Dark variant */
.section-header__badge--dark {
  background: var(--glass-white-06);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--glass-white-10);
}

.section-header__title {
  font-size: var(--text-heading-lg);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-deep-navy);
  margin-bottom: var(--spacing-16);
}

.section-header__title--white {
  color: var(--color-white);
}

.section-header__subtitle {
  font-size: var(--text-body-lg);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-slate);
  max-width: 580px;
  margin: 0 auto;
}

.section-header__subtitle--muted {
  color: rgba(255, 255, 255, 0.65);
}

/* ════════════════════════════════════════
   ACCESSIBILITY
════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--color-indigo);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ════════════════════════════════════════
   FADE-UP ANIMATION
════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--duration-slow) var(--ease),
    transform var(--duration-slow) var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════
   PLACEHOLDERS (imágenes/screenshots pendientes)
════════════════════════════════════════ */
.placeholder {
  background: var(--color-mist);
  border: 1.5px dashed var(--color-silver);
  border-radius: var(--radius-screenshots);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-12);
  padding: var(--spacing-48) var(--spacing-24);
  text-align: center;
  color: var(--color-slate);
}

.placeholder--screenshot {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-screenshots);
  box-shadow: var(--shadow-screenshot);
}

.placeholder--screenshot-tall {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-screenshots);
  box-shadow: var(--shadow-screenshot);
}

.placeholder--sm {
  padding: var(--spacing-24) var(--spacing-16);
  min-height: 100px;
}

.placeholder__icon {
  font-size: 2rem;
  color: var(--color-silver);
}

.placeholder__label {
  font-size: var(--text-body-sm);
  font-weight: 500;
  color: var(--color-slate);
}

.placeholder__note {
  font-size: var(--text-caption);
  color: var(--color-steel);
  background: var(--color-white);
  border: 1px solid var(--color-silver);
  padding: 3px 10px;
  border-radius: var(--radius-pills);
}

/* Dark background placeholder */
.placeholder--dark {
  background: var(--glass-white-06);
  border-color: var(--glass-white-10);
  color: rgba(255, 255, 255, 0.5);
}

.placeholder--dark .placeholder__icon { color: var(--glass-white-15); }
.placeholder--dark .placeholder__label { color: rgba(255, 255, 255, 0.6); }
.placeholder--dark .placeholder__note {
  background: var(--glass-white-06);
  border-color: var(--glass-white-10);
  color: rgba(255, 255, 255, 0.5);
}
