/* GeSis Viajes · secciones comunes de las fichas de destino y de experiencia (T-EXP-A, ARCHITECTURE §16.54; salen de content-destination.css,
   T-DEST y T-DST-A, §16.46 y §16.50). Franja de datos Azul dorso pegada al hero, «Por qué» / «Qué vas a vivir», galería de tres fotos,
   tarjetas numeradas y cierre. Se carga en las fichas de destino y de experiencia (y en el editor), antes de la hoja propia de cada una.
   Tokens de la marca (Anexo I); sin bermellón. Movimiento solo con transform y opacity, dentro de no-preference y con view() en @supports.
   Nada en el hero (LCP). */
.gesis-content > .gesis-dst-facts:first-child { margin-top: calc(-1 * clamp(2.5rem, 5vw, 4rem)); }
.gesis-content > :is([class*="gesis-dst-"], [class*="gesis-exp-"]) { margin-block: 0; }
.gesis-content:has(> .gesis-dst-cta) { padding-bottom: 0; }

/* Títulos de sección del prototipo: etiqueta, H2 de 44 px y entradilla. */
:is(.gesis-dst-intro, .gesis-dst-todo, .gesis-dst-cta, .gesis-exp-includes, .gesis-exp-where, .gesis-exp-faq) .gesis-sec-title { margin-top: 10px !important; font-size: clamp(2rem, 4.5vw, 2.75rem); line-height: 1.15; }

/* Datos rápidos: franja Azul dorso pegada al hero; cada dato con su icono de línea en Verde corona 300 (máscara; el icono lo pone la hoja
   de cada ficha). */
.gesis-dst-facts { background: var(--g-azul); color: #fff; padding-top: 32px; padding-bottom: 32px; }
.gesis-dst-facts__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 24px; }
.gesis-dst-facts__list > li { position: relative; margin: 0; padding-left: 42px; font-size: 16px; line-height: 1.4; }
.gesis-dst-facts__list > li::before { content: ""; position: absolute; left: 0; top: 2px; width: 28px; height: 28px; background: var(--g-verde-300); -webkit-mask: var(--gesis-dst-ic) center / contain no-repeat; mask: var(--gesis-dst-ic) center / contain no-repeat; }
.gesis-dst-facts__list strong { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--g-verde-300); }

/* Por qué: columna centrada de 760 px. */
.gesis-dst-intro { padding-top: 96px; padding-bottom: 48px; }
.gesis-dst-intro__body { max-width: 760px; margin-inline: auto; }
.gesis-dst-intro__body > * { margin-block: 0; }
.gesis-dst-intro__body > .gesis-sec-title { margin-bottom: 20px; }
.gesis-dst-intro__body > p:not(.gesis-kicker) { margin-bottom: 16px; font-size: 16px; line-height: 1.7; color: var(--g-n-700); }
.gesis-dst-intro__body > p:last-child { margin-bottom: 0; }
.gesis-dst-intro__body > p.gesis-lede { margin-bottom: 20px; font-size: 20px; line-height: 1.55; color: var(--g-tinta); }

/* Galería: una foto principal 3:2 (dos tercios) y dos pequeñas apiladas, 16 px entre ellas. Los huecos vacíos no se pintan en público
   (`hideEmpty`) y la rejilla sabe cuántas fotos hay (`has-1/2/3`, photo-slot.php); sin ninguna, la sección no sale. */
.gesis-dst-gallery { padding-top: 48px; padding-bottom: 96px; }
.gesis-dst-gallery__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.gesis-dst-gallery__grid > * { margin: 0; }
.gesis-dst-gallery__grid > :first-child { grid-row: span 2; }
.gesis-dst-gallery__grid > :not(:first-child) { display: flex; }
.gesis-dst-gallery__grid > :not(:first-child) .gesis-photo-slot__frame { position: relative; flex: 1; aspect-ratio: auto !important; }
.gesis-dst-gallery__grid > :not(:first-child) img { position: absolute; inset: 0; }
.gesis-dst-gallery__grid.has-2 > :nth-child(2) { grid-row: span 2; }
.gesis-dst-gallery__grid.has-1 { grid-template-columns: minmax(0, 1fr); }
.gesis-dst-gallery__grid :is(.gesis-photo-slot__frame, img) { border-radius: 0; }
.gesis-dst-gallery__grid img { width: 100%; height: 100%; object-fit: cover; }

/* Tarjetas numeradas sobre gris («Qué hacer» y «Cómo es la visita»). */
.gesis-dst-cards { list-style: none; margin-bottom: 0; padding: 0; counter-reset: gesis-dst; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.gesis-dst-cards > li { counter-increment: gesis-dst; position: relative; margin: 0; padding: 1.5rem 1.5rem 1.6rem; border-top: 4px solid var(--g-verde); border-radius: 8px; background: #fff; font-size: .95rem; line-height: 1.55; color: var(--g-n-700); }
.gesis-dst-cards > li::before { content: counter(gesis-dst); display: block; margin-bottom: .6rem; font-size: 2.4rem; font-weight: 600; line-height: 1; letter-spacing: -.03em; color: var(--g-verde-700); }
.gesis-dst-cards strong { display: block; margin-bottom: .35rem; font-size: 1.12rem; font-weight: 600; line-height: 1.3; color: var(--g-azul); }

/* Cierre: banda Azul dorso centrada (760 px) con el botón secundario (el acento de la pantalla es el del hero). */
.gesis-dst-cta { background: var(--g-azul); color: #fff; padding-top: 96px; padding-bottom: 96px; }
.gesis-dst-cta__body { display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 760px; margin-inline: auto; text-align: center; }
.gesis-dst-cta__body > * { margin-block: 0; }
.gesis-dst-cta .gesis-sec-title { margin-top: 0 !important; }
.gesis-dst-cta .gesis-lede { font-size: 19px; line-height: 1.6; color: #fff; }
.gesis-dst-cta .wp-block-buttons { justify-content: center; margin-top: 8px; }

@media (prefers-reduced-motion: no-preference) {
	/* Aparición al bajar. */
	@supports (animation-timeline: view()) {
		.gesis-dst-cards > li, .gesis-dst-gallery__grid > * { animation: gesis-dst-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
		.gesis-dst-cards > li:nth-child(even) { animation-range: entry 8% entry 55%; }
		@keyframes gesis-dst-rise { from { opacity: 0; transform: translateY(32px); } }
	}
}

@media (max-width: 980px) {
	.gesis-dst-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.gesis-dst-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.gesis-dst-gallery__grid > :first-child { grid-row: auto; grid-column: 1 / -1; }
	.gesis-dst-gallery__grid.has-2 > :nth-child(2) { grid-row: auto; grid-column: 1 / -1; }
	.gesis-dst-gallery__grid > :not(:first-child) .gesis-photo-slot__frame { aspect-ratio: 3 / 2 !important; }
	.gesis-dst-intro, .gesis-dst-cta { padding-top: 64px; padding-bottom: 64px; }
	.gesis-dst-gallery { padding-bottom: 64px; }
}
@media (max-width: 560px) {
	.gesis-dst-cards { grid-template-columns: 1fr; }
	.gesis-dst-intro__body > p.gesis-lede { font-size: 18px; }
}
