/* Título común de los módulos de Grecogres.
   Estilo H2: título en la columna 1 (36 / 30 / 24) y raya en las columnas 2 a 4, a su altura; subtítulo al mismo tamaño, en minúsculas.
   Estilo H3: 16 semibold, sin espaciado ni mayúsculas. Estilo H4: 14, mayúsculas, espaciado 1, cursiva.
   En H3 y H4 la raya va encima, a todo el ancho, a 15 a la vista del título.
   Del título al contenido: 60 · 45 · 30 a la vista (monitor · portátil · tablet y móvil). */
.ggt { --ggt-ink: #513a2a; --ggt-stone: #afaea7; color: var(--ggt-ink); }
.ggt .ggt__t { margin: calc(15px - .4em) 0 calc(60px - .4em); padding: 0; font-weight: inherit; font-style: normal; line-height: 1.5; letter-spacing: 0; text-transform: none; color: var(--ggt-ink); }
.ggt.ggt--sin-raya .ggt__t { margin-top: -.4em; }
.ggt .ggt__l1,
.ggt .ggt__l2 { display: block; }
/* Raya: gris piedra; al entrar en pantalla la recorre un destello marrón que se queda al final como rayita de 30 */
.ggt__ray { display: block; position: relative; height: 1px; margin: 0; background: var(--ggt-stone); overflow: hidden; }
.ggt__ray i { position: absolute; top: 0; left: calc(100% - 30px); width: 30px; height: 1px; background: var(--ggt-ink); }
.ggt-js .ggt__ray:not(.is-on) i { left: 0; width: 0; }
.ggt-js .ggt__ray.is-on i { animation: ggt-destello 1.6s cubic-bezier(.65, 0, .35, 1) both; }
@keyframes ggt-destello {
	0% { left: -90px; width: 90px; }
	70% { width: 90px; }
	100% { left: calc(100% - 30px); width: 30px; }
}
/* Estilo H2 */
.ggt--h2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 15px; align-items: start; }
.ggt--h2 .ggt__ray { grid-column: 2 / 5; grid-row: 1; }
.ggt.ggt--h2 .ggt__t { grid-column: 1; grid-row: 1; margin-top: -.4em; padding-right: 45px; font-size: 36px; }
.ggt--h2 .ggt__l1 { text-transform: uppercase; letter-spacing: 1px; }
/* Estilo H3 */
.ggt.ggt--h3 .ggt__t { font-size: 16px; font-weight: 600; }
/* Estilo H4 */
.ggt.ggt--h4 .ggt__t { font-size: 14px; font-style: italic; letter-spacing: 1px; text-transform: uppercase; }
/* Portátil */
@media (max-width: 1679px) {
	.ggt.ggt--h2 .ggt__t { font-size: 30px; }
	.ggt .ggt__t { margin-bottom: calc(45px - .4em); }
}
/* Tablet y móvil: raya y título uno debajo de otro */
@media (max-width: 980px) {
	.ggt--h2 { grid-template-columns: minmax(0, 1fr); }
	.ggt--h2 .ggt__ray,
	.ggt.ggt--h2 .ggt__t { grid-column: 1; grid-row: auto; }
	.ggt.ggt--h2 .ggt__t { margin-top: calc(15px - .4em); padding-right: 0; font-size: 24px; }
	.ggt.ggt--h2.ggt--sin-raya .ggt__t { margin-top: -.4em; }
	.ggt .ggt__t { margin-bottom: calc(30px - .4em); }
}
@media (prefers-reduced-motion: reduce) {
	.ggt-js .ggt__ray i,
	.ggt-js .ggt__ray:not(.is-on) i { animation: none; left: calc(100% - 30px); width: 30px; }
}
