/* ============================================================
   SECTIONS — espaciados globales y estilos de sección
   ============================================================ */

/* ===== Espaciado vertical universal ===== */
.section {
  width: 100%;
  padding-block: clamp(44px, 6vw, 86px);
  position: relative;
}

/* ===== Variantes ===== */
.section--soft {
  background: var(--grey-50);
}

.section--dark {
  background: var(--grey-900);
  color: #fff;
}

/* Compatibilidad con decoradores en .section-title */
.section--dark .section-title::after {
  background: var(--primary-400);
}

.section--border-top {
  border-top: 1px solid var(--grey-200);
}

.section--border-bottom {
  border-bottom: 1px solid var(--grey-200);
}

/* ===== Contenedor interno opcional ===== */
.section__inner {
  max-width: var(--container-width, 1200px);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

/* ============================================================
   SEPARADORES ENTRE BLOQUES
   ============================================================ */
.section-divider {
  width: 100%;
  height: 140px;
  background: var(--grey-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-divider img {
  max-height: 100%;
  width: auto;
}

/* Línea horizontal simple */
.divider-line {
  height: 1px;
  width: 100%;
  background: var(--grey-200);
  margin-block: 40px;
}

/* ============================================================
   HERO (estructura base global)
   Nota: la home redefine .hero--main; aquí solo base segura.
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: clamp(300px, 40vh, 480px);
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.0); /* fallback seguro; la home lo define */
}

/* Contenido por defecto; la home lo sobreescribe */
.hero__content {
  position: relative;
  z-index: 2;
  padding: 20px;
}

/* ============================================================
   CONTENEDORES ESPECIALES
   ============================================================ */
.content-narrow {
  max-width: 800px;
  margin-inline: auto;
  padding-inline: 16px;
}

.content-wide {
  max-width: 1400px;
  margin-inline: auto;
}

/* ============================================================
   SECCIÓN "split" (texto izquierda – imagen derecha)
   ============================================================ */
.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

@media (max-width: 880px) {
  .section-split {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SCROLL ANCHOR OFFSET (links tipo #donde)
   Usa --header-height si existe (tu JS lo setea).
   ============================================================ */
.section[id] {
  scroll-margin-top: calc(var(--header-height, 90px) + 16px);
}
/* ============================================================
   SECTION HEADER — modo editorial (centrado + ancho narrow)
   Uso recomendado en páginas internas con contenido largo.
   ============================================================ */

.section-header {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(16px, 2.2vw, 24px);
}

.section-header .section-intro {
  max-width: 70ch;
  margin-inline: auto;
}

/* ============================================================
   SECTION PROSE — bloque editorial reutilizable (texto largo)
   Objetivo: ancho consistente + lectura premium + reutilizable
   ============================================================ */

.section-prose {
  max-width: 820px;
  margin-inline: auto;
  text-align: left;
}

/* Ritmo cuando viene después de un bloque visual (cards/video/etc.) */
.cards-grid + .section-prose,
.media-video + .section-prose {
  margin-top: 22px;
}


.section-split .media-video video {
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.split-content {
  max-width: 420px;
}

.split-content ul {
  margin-top: 1rem;
}
.section-intro {
  font-size: clamp(1.05rem, 1.2vw, 1.15rem);
  font-weight: 500;
  color: var(--neutral-700);
  line-height: 1.6;
  margin-top: 0.75rem;
}
.section-header .section-title {
  margin-bottom: 0.4rem;
}
