/* Layout: contenedor, secciones genéricas y encabezados de sección. */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Secciones */
.section {
  position: relative;
  padding-block: var(--space-section);
}

.section--sand { background: var(--sand); }

.section--dark {
  --focus-ring: var(--orange-300);
  background: var(--green-950);
  color: rgb(255 255 255 / 0.86);
}
.section--dark h2,
.section--dark h3 { color: var(--white); }

/* Encabezado de sección */
.section-head {
  max-width: 680px;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: none;
  align-items: end;
}

@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
}

.section-title {
  font-size: var(--fs-h2);
  /* Títulos de sección en negrita y en verde oscuro del logo (pedido del cliente);
     los de Procesos van en blanco */
  font-weight: 700;
  color: var(--green-title);
}

.section-lead {
  color: var(--muted);
  font-size: var(--fs-lg);
  margin-top: 1rem;
}

/* Degradé dentro de los títulos (pedido del cliente): del verde oscuro del logo al menta
   de la página. fit-content hace que el degradé recorra solo el ancho del texto. */
.section-title {
  width: fit-content;
  background: var(--gradient-green);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-head--center .section-title { margin-inline: auto; }
/* Procesos va sobre fondo verde: de blanco a un menta muy claro */
.process .section-title { background-image: linear-gradient(90deg, var(--white) 0%, var(--green-mist) 100%); }
/* Si el navegador no recorta el fondo al texto, queda el color liso */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .section-title { -webkit-text-fill-color: currentColor; background: none; }
}
