/* REDGK · retícula
   Un solo contenedor con tres anchos. Nada de rejillas a medida por pagina. */

.redgk-contenedor {
  width: 100%;
  max-width: var(--wp--style--global--wide-size, 78rem);
  margin-inline: auto;
  padding-inline: var(--wp--preset--spacing--30);
}
.redgk-contenedor--texto { max-width: var(--wp--style--global--content-size, 46rem); }
.redgk-contenedor--ancho { max-width: 90rem; }

.redgk-seccion { padding-block: var(--wp--preset--spacing--60); }
.redgk-seccion--corta { padding-block: var(--wp--preset--spacing--50); }

.redgk-seccion--profunda {
  background: var(--wp--custom--superficie--profunda);
  color: var(--wp--custom--texto--invertido);
}
.redgk-seccion--profunda h1,
.redgk-seccion--profunda h2,
.redgk-seccion--profunda h3 { color: var(--wp--custom--texto--invertido); }
.redgk-seccion--profunda p { color: var(--wp--custom--texto--sobre-profundo); }
.redgk-seccion--profunda a { color: var(--wp--custom--acento--marca); }

.redgk-seccion--sutil { background: var(--wp--custom--superficie--sutil); }

/* Rejilla que se adapta sola: sin media queries por componente. */
.redgk-rejilla {
  display: grid;
  gap: var(--wp--preset--spacing--40);
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
}
.redgk-rejilla--dos { grid-template-columns: repeat(auto-fit, minmax(min(24rem, 100%), 1fr)); }

.redgk-pila { display: flex; flex-direction: column; gap: var(--wp--preset--spacing--30); }
.redgk-fila  { display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--20); align-items: center; }

.redgk-medida { max-width: var(--wp--custom--medida--texto); }
.redgk-medida--estrecha { max-width: var(--wp--custom--medida--estrecha); }
