/* Ishiku Lemu · inicio-visita.css — segunda mitad del Inicio (opción A, 2026-10-04):
   Educación, Protocolo, Cómo llegar, Reseñas con respaldo y Cierre.
   La primera mitad está en inicio.css. Ritmo: oscuro → claro → oscuro → claro → foto,
   con una transición distinta en cada cambio de fondo (layout.css: ondas e ilustraciones).
   Una tarjeta por fondo: crema sobre claro, verde bosque sobre oscuro. */

/* ---------- 6 · Educación (verde noche) ------------------------------------------- */

/* Foto y pie juntos: Divi deja ~34px bajo cada módulo. */
.et_pb_row.cc-fila--4 .et_pb_column > .et_pb_image.et_pb_module {
	margin-bottom: 0;
}

/* Pie de foto: etiqueta (Raleway 600, 12px, 2px); en suave sobre oscuro. */
.cc-pie-foto,
.et_pb_text .cc-pie-foto {
	margin: 0.875rem 0 0;
	padding: 0;
	font-family: 'Raleway', Helvetica, Arial, sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--cc-bosque);
}

.cc-sobre-oscuro .cc-pie-foto,
.cc-sobre-oscuro .et_pb_text .cc-pie-foto {
	color: var(--cc-salvia);
}

/* Pilares: tarjeta verde bosque sobre oscuro. */
.et_pb_text.cc-pilar-linea {
	padding: 34px 32px 30px;
	background-color: var(--cc-superficie);
	border-radius: var(--gvid-cc-radio);
}

.cc-sobre-oscuro .et_pb_text.cc-pilar-linea {
	background-color: var(--cc-bosque);
}

.cc-sobre-oscuro .cc-pilar-linea .cc-tarjeta-titulo {
	color: var(--cc-blanco);
}

.cc-sobre-oscuro .cc-pilar-linea .cc-tarjeta-texto {
	color: rgba(245, 243, 234, 0.85);
}

/* Fotos de 4 bajo 981px: 2 por fila. Divi apila las columnas al 100% con !important
   (filas de bloque), por eso el !important. */
@media (max-width: 980px) {
	.et_pb_row.cc-fila--4 {
		display: flex;
		flex-wrap: wrap;
		gap: var(--gvid-cc-gap-grilla);
	}

	/* min-width: el CSS adicional del Customizer da 169px a la 3.ª columna. */
	.et_pb_row.cc-fila--4 > .et_pb_column {
		width: calc(50% - var(--gvid-cc-gap-grilla) / 2) !important;
		min-width: 0;
		margin: 0 !important;
	}
}

/* ---------- 7 · Protocolo (claro) ------------------------------------------------- */

.et_pb_row.cc-fila--protocolo {
	align-items: flex-start;
}

@media (min-width: 981px) {
	.et_pb_row.cc-fila--protocolo > .et_pb_column:first-child {
		position: sticky;
		top: 140px;
	}
}

.et_pb_row.cc-fila--protocolo .et_pb_blurb.cc-tarjeta-protocolo {
	margin-bottom: 0;
}

.et_pb_row.cc-fila--protocolo .et_pb_blurb.cc-tarjeta-protocolo + .et_pb_blurb.cc-tarjeta-protocolo {
	margin-top: var(--gvid-cc-gap-grilla);
}

/* Tarjeta crema con la ilustración a sangre. */
.et_pb_blurb.cc-tarjeta-protocolo {
	position: relative;
	background-color: var(--cc-crema);
}

.et_pb_blurb.cc-tarjeta-protocolo .et_pb_blurb_content {
	align-items: stretch;
}

.et_pb_blurb.cc-tarjeta-protocolo .et_pb_blurb_content > .et_pb_main_blurb_image {
	display: block;
	flex: 0 0 auto;
	width: 100%;
	max-width: none;
	margin: 0;
	overflow: hidden;
}

.cc-tarjeta-protocolo .et_pb_main_blurb_image .et_pb_image_wrap,
.cc-tarjeta-protocolo .et_pb_main_blurb_image img {
	display: block;
	width: 100%;
	max-width: none;
}

/* Las tres fotos tienen proporciones distintas: alto común y recorte al centro. */
.cc-tarjeta-protocolo .et_pb_main_blurb_image img {
	aspect-ratio: 16 / 7;
	object-fit: cover;
	object-position: center;
}

.et_pb_blurb.cc-tarjeta-protocolo .et_pb_blurb_container {
	flex: 1 1 auto;
	justify-content: center;
	padding: 24px 28px;
}

/* Desde tablet: ilustración a la izquierda (38%), texto a la derecha. */
@media (min-width: 768px) {
	.et_pb_row.cc-fila--protocolo .et_pb_blurb.cc-tarjeta-protocolo .et_pb_blurb_content {
		flex-direction: row;
	}

	.et_pb_row.cc-fila--protocolo .et_pb_blurb.cc-tarjeta-protocolo .et_pb_blurb_content > .et_pb_main_blurb_image {
		flex: 0 0 38%;
		width: 38%;
	}

	/* La foto llena el alto que pide el texto: una foto vertical no estira la tarjeta. */
	.et_pb_row.cc-fila--protocolo .et_pb_blurb.cc-tarjeta-protocolo .et_pb_blurb_content > .et_pb_main_blurb_image {
		position: relative;
		min-height: 180px;
	}

	.et_pb_row.cc-fila--protocolo .cc-tarjeta-protocolo .et_pb_main_blurb_image .et_pb_image_wrap {
		position: absolute;
		inset: 0;
	}

	.et_pb_row.cc-fila--protocolo .cc-tarjeta-protocolo .et_pb_main_blurb_image .et_pb_image_wrap,
	.et_pb_row.cc-fila--protocolo .et_pb_blurb.cc-tarjeta-protocolo .et_pb_main_blurb_image img {
		height: 100%;
		aspect-ratio: auto;
	}
}

/* ---------- 9 · Cómo llegar (verde noche) ---------------------------------------- */

/* Tarjeta verde bosque con ícono lineal en suave (icono-*-claro.svg). */
.et_pb_blurb.cc-tarjeta-ruta {
	background-color: var(--cc-bosque);
}

.cc-tarjeta-ruta .et_pb_blurb_content {
	padding: 32px;
}

.et_pb_blurb.cc-tarjeta-ruta h3.et_pb_module_header {
	color: var(--cc-blanco);
}

.cc-tarjeta-ruta .et_pb_blurb_description,
.cc-tarjeta-ruta .et_pb_blurb_description p {
	color: rgba(245, 243, 234, 0.85);
}

.et_pb_blurb.cc-tarjeta-ruta .et_pb_blurb_content > .et_pb_main_blurb_image {
	width: 44px;
	max-width: 44px;
	margin: 0 0 1.25rem;
}

/* La ficha (distancia, tiempo…) queda al pie en las dos tarjetas aunque el texto difiera. */
.et_pb_blurb.cc-tarjeta-ruta .et_pb_blurb_container,
.cc-tarjeta-ruta .et_pb_blurb_description {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

.cc-tarjeta-ruta .et_pb_blurb_description > p {
	margin-bottom: 1.5rem;
}

.cc-ficha {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
	gap: 1rem;
	margin: 1.5rem 0 0;
	padding: 0;
}

.cc-tarjeta-ruta .cc-ficha {
	margin-top: auto;
	padding-top: 1.25rem;
	border-top: 1px dashed rgba(172, 192, 143, 0.35);
}

.cc-ficha dt {
	margin: 0 0 0.25rem;
	font-family: 'Raleway', Helvetica, Arial, sans-serif;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--cc-salvia);
}

.cc-ficha dd {
	margin: 0;
	font-family: 'Quicksand', Helvetica, Arial, sans-serif;
	font-size: 1rem;
	font-weight: 700;
	color: var(--cc-blanco);
}

/* Mapa junto a las dos rutas, llenando el alto de la columna. */
.et_pb_row.cc-fila--llegar {
	align-items: stretch;
}

.et_pb_row.cc-fila--llegar > .et_pb_column {
	display: flex;
	flex-direction: column;
	gap: var(--gvid-cc-gap-grilla);
}

.et_pb_row.cc-fila--llegar > .et_pb_column > .et_pb_module {
	margin-bottom: 0;
}

.et_pb_row.cc-fila--llegar .et_pb_blurb.cc-tarjeta {
	flex: 1 1 auto;
	height: auto;
}

.et_pb_row.cc-fila--llegar .et_pb_text.cc-mapa,
.et_pb_row.cc-fila--llegar .cc-mapa .et_pb_text_inner {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

/* WordPress envuelve el iframe en un <p>. */
.et_pb_row.cc-fila--llegar .cc-mapa .et_pb_text_inner > p {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column; /* el mapa crece hacia abajo hasta los botones */
	margin: 0;
	padding: 0;
}

/* Botones justo bajo el mapa: solo la separación de la columna, sin su margen propio. */
.et_pb_row.cc-fila--llegar .cc-acciones {
	margin-top: 0;
}

.cc-mapa iframe {
	display: block;
	flex: 1 1 auto;
	width: 100%;
	min-height: clamp(18rem, 14rem + 12vw, 24rem);
	border: 0;
	border-radius: var(--gvid-cc-radio);
}

/* ---------- 10 · Reseñas y respaldo (claro) --------------------------------------- */

/* Trustindex fija fuentes (Poppins), "white !important" y sombras: solo otro !important,
   acotado a la sección, los reemplaza. Lo correcto a futuro: el estilo en los ajustes
   del widget, si el plan lo permite. */
.cc-resenas .ti-widget.ti-goog .ti-review-item > .ti-inner,
.cc-resenas .ti-widget.ti-goog .ti-next,
.cc-resenas .ti-widget.ti-goog .ti-prev {
	background-color: var(--cc-crema) !important;
	border: 0 !important;
	box-shadow: none !important;
}

.cc-resenas .ti-widget.ti-goog .ti-review-item > .ti-inner {
	border-radius: var(--gvid-cc-radio) !important;
}

.cc-resenas .ti-widget,
.cc-resenas .ti-widget .ti-review-text-container,
.cc-resenas .ti-widget .ti-date,
.cc-resenas .ti-widget .ti-footer .ti-rating-text {
	font-family: 'Quicksand', Helvetica, Arial, sans-serif !important;
	color: var(--cc-tinta) !important;
}

.cc-resenas .ti-widget .ti-name,
.cc-resenas .ti-widget .ti-footer .ti-rating-text strong,
.cc-resenas .ti-widget .ti-footer .nowrap {
	font-family: 'Raleway', Helvetica, Arial, sans-serif !important;
	font-weight: 800 !important;
	color: var(--cc-noche) !important;
}

/* "Leer más": negro al 50% (3,9:1) en el plugin. */
.ti-widget.ti-goog .ti-review-item .ti-read-more,
.ti-widget.ti-goog .ti-review-item .ti-read-more span {
	color: var(--cc-tinta-suave);
	opacity: 1;
}

/* Respaldo: una línea con la etiqueta y los logos, separada por un filete. */
.et_pb_row.cc-fila--respaldo {
	margin-top: calc(var(--gvid-cc-espacio-bloque) * 1.2);
	padding-top: 2rem;
	border-top: 1px solid rgba(63, 81, 35, 0.14);
}

.et_pb_row.cc-fila--respaldo > .et_pb_column {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.5rem 3rem;
}

.et_pb_row.cc-fila--respaldo > .et_pb_column > .et_pb_module {
	margin: 0;
}

.cc-fila--respaldo .cc-etiqueta {
	margin: 0;
}

.cc-logo img {
	display: block;
	width: auto;
	max-width: 140px;
	max-height: 3.5rem;
	object-fit: contain;
	mix-blend-mode: multiply;
	filter: grayscale(100%) contrast(1.15);
	opacity: 0.75;
	transition: filter 0.3s ease, opacity 0.3s ease;
}

.cc-logo:hover img {
	filter: none;
	opacity: 1;
}

/* ---------- 12 · Cierre (foto del sendero) ---------------------------------------- */

/* La foto es la pasarela del sendero (también en Naturaleza, 02). Ruta de uploads: es la
   misma en local y en producción. */
.et_pb_section.cc-cierre {
	padding-top: clamp(96px, 10vw, 160px);
	background-image: url("/wp-content/uploads/2026/04/1000051391_7ef0780460dca994028ecd087519ad1c-13_8_2023-12_09_26-opt.webp");
}

.cc-cierre .cc-cabecera {
	max-width: 60rem;
}

.cc-cierre .cc-cabecera h2 {
	font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem);
}

/* El cierre ya no se monta sobre la banda del pie: termina con su relleno normal y la
   banda queda aparte, sobre papel (layout.css, .cc-banda-pie; 10-10-2026). */
.home .et_pb_section.cc-cierre {
	padding-top: calc(clamp(96px, 10vw, 160px) + var(--cc-alto-onda));
}

@media (prefers-reduced-motion: reduce) {
	.cc-logo img {
		transition: none;
	}
}
