/* ============================================================
   LAYOUT.CSS — Utilidades de contenedor y sección
   ============================================================ */

/* ── Contenedor ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ── Sección base ── */
.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

/* ── Sección alternada (fondo oscuro + separadores) ── */
.section--alt {
  background: var(--color-dark-2);
}

.section--alt::before,
.section--alt::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
}

.section--alt::before {
  top: 0;
  background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-accent-teal), transparent);
}

.section--alt::after {
  bottom: 0;
  background: linear-gradient(90deg, transparent, var(--color-accent-teal), var(--color-primary), transparent);
}

/* ── Cabecera de sección ── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header .badge {
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-gray-mid);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Divider decorativo ── */
.divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-teal));
  margin: var(--space-sm) auto 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-primary);
}
