/* ============================================
   LAYOUT - HENAT v2
   Grid y layout del sitio
   ============================================ */

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

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

.section-light {
  background: var(--bg-light);
  color: var(--text-dark);
}

.section-dark {
  background: var(--bg);
  color: var(--text);
}

/* ── Header de sección ── */
.section-header {
  max-width: 720px;
  margin-bottom: 64px;
}

.section-header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

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

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: inherit;
  margin-bottom: var(--space-md);
}

.section-light .section-header h2 {
  color: var(--text-dark);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-light .section-header p {
  color: var(--text-dark-muted);
}

/* ── Grid layouts ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

/* ── Stack layout ── */
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* ── Centered content ── */
.centered {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Grid 1fr auto ── */
.grid-sidebar {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
}
