/* ═══════════════════════════════════════════════════════════════
   CubicApp Landing — Base Styles
   Reset + tipografía + utilidades
   ═══════════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: 1.6;
  color: var(--color-neutral-700);
  background-color: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-accent-700);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-800);
}

/* ── Tipografía ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-neutral-900);
  line-height: 1.2;
  font-weight: var(--font-semibold);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl);  }
h5 { font-size: var(--text-lg);  }

p {
  margin-bottom: var(--space-4);
  color: var(--color-neutral-600);
}

strong {
  font-weight: var(--font-semibold);
  color: var(--color-neutral-800);
}

/* ── Utilidades ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

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

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

.text-center { text-align: center; }
.text-left   { text-align: left; }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-700);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: var(--text-3xl);
  color: var(--color-neutral-900);
  margin-bottom: var(--space-4);
  line-height: 1.15;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-neutral-500);
  max-width: 680px;
  line-height: 1.5;
}

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

/* ── Secciones ── */
section {
  padding: var(--space-20) 0;
}

section:nth-child(even) {
  background-color: var(--color-white);
}

/* ── Media Queries ── */
@media (max-width: 1023px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl);  }
  section { padding: var(--space-16) 0; }
}

@media (max-width: 767px) {
  h1 { font-size: var(--text-2xl); }
  h2 { font-size: var(--text-xl);  }
  h3 { font-size: var(--text-lg);  }
  section { padding: var(--space-12) 0; }
  .container { padding: 0 var(--space-4); }
}
