@font-face {
	font-family: 'AddingtonCF';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('https://lasmoradasdesanmartin.es/wp-content/uploads/2023/01/addingtoncf-regular-webfont.woff2') format('woff2'),
		url('https://lasmoradasdesanmartin.es/wp-content/uploads/2023/01/addingtoncf-regular-webfont.woff') format('woff');
}

@font-face {
	font-family: 'AddingtonCF';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('https://lasmoradasdesanmartin.es/wp-content/uploads/2023/01/addingtoncf-bold-webfont.woff2') format('woff2'),
		url('https://lasmoradasdesanmartin.es/wp-content/uploads/2023/01/addingtoncf-bold-webfont.woff') format('woff');
}

.jpvp-forest,
.jpvp-random-forest {
	--jpvp-green: #18231a;
	box-sizing: border-box;
	background: #f4f1e9;
	color: var(--jpvp-green);
	font-family: 'AddingtonCF', Georgia, serif;
}

.jpvp-forest {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: clamp(24px, 6vw, 80px);
	width: 100%;
	padding: clamp(28px, 5vw, 64px);
	overflow: hidden;
}

.jpvp-random-forest {
	width: 100%;
	padding: 0;
	overflow: hidden;
}

.jpvp-random-canvas {
	position: relative;
	width: 100%;
	height: clamp(420px, 48vw, 680px);
	max-height: 680px;
	background: #f4f1e9;
	overflow: hidden;
}

.jpvp-random-canvas--burned-area {
	display: flex;
	flex-direction: column;
	align-items: center;
	height: auto;
	max-height: none;
	padding-bottom: 18px;
}

.jpvp-random-slots {
	position: absolute;
	z-index: 1;
}

.jpvp-random-slots--rectangle {
	inset: 0;
	display: grid;
	grid-template-columns: repeat(75, minmax(0, 1fr));
	grid-template-rows: repeat(25, minmax(0, 1fr));
}

.jpvp-random-slots--burned-area {
	position: relative;
	left: auto;
	top: auto;
	bottom: auto;
	order: 2;
	width: min(92%, var(--jpvp-burned-map-width, 1000px));
	margin-top: var(--jpvp-burned-map-gap, 120px);
	aspect-ratio: 1.68144;
	transform: none;
}

.jpvp-random-slots--burned-area::before {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: url("burned-area.svg") center / 100% 100% no-repeat;
	content: "";
	opacity: .08;
}

.jpvp-random-slot {
	display: block;
	align-self: center;
	justify-self: center;
	width: 82%;
	aspect-ratio: 1;
	background: center / contain no-repeat;
	z-index: 1;
}

.jpvp-random-slot.is-planted {
	background-image: url("tree.svg");
	animation: jpvp-tree-appear .45s ease-out both;
}

.jpvp-animation-pending .jpvp-random-slot.is-planted {
	opacity: 0;
	animation: none;
}

.jpvp-random-slots--burned-area .jpvp-random-slot {
	position: absolute;
	z-index: 1;
	width: 1.05%;
	transform: translate(-50%, -50%);
}

.jpvp-random-copy {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 2;
	width: min(760px, 86%);
	box-sizing: border-box;
	padding: clamp(22px, 3vw, 40px);
	transform: translate(-50%, -50%);
	background: rgba(244, 241, 233, var(--jpvp-copy-opacity, .94));
	box-shadow: 0 0 42px 30px rgba(244, 241, 233, .94);
	text-align: center;
}

.jpvp-random-canvas--burned-area .jpvp-random-copy {
	position: relative;
	left: auto;
	top: auto;
	width: min(760px, 92%);
	order: 1;
	margin: 0 auto;
	padding: 48px 20px 10px;
	transform: none;
	box-shadow: none;
}

.jpvp-random-copy .jpvp-forest-total {
	text-align: center;
}

.jpvp-forest-copy {
	flex: 0 1 360px;
}

.jpvp-forest-kicker {
	display: block;
	margin-bottom: 40px;
	font-size: 30px !important;
	font-weight: 700;
	letter-spacing: .02em;
}

.jpvp-forest-total {
	display: block;
	line-height: 1;
}

.jpvp-forest-total strong {
	font-size: clamp(64px, 9vw, 118px);
	font-weight: 700;
	letter-spacing: -.06em;
}

.jpvp-forest-total span {
	display: block;
	max-width: none;
	margin-top: -4px;
	font-size: clamp(22px, 3vw, 36px);
	font-weight: 600;
	line-height: 1.05;
}

.jpvp-forest-copy p {
	margin: 18px 0 0;
	font-size: 16px;
}

.jpvp-campaign-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 26px;
}

.jpvp-campaign-stats > div {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 58px;
	padding: 0 16px;
}

.jpvp-campaign-stats > div + div {
	border-left: 1px solid rgba(24, 35, 26, .28);
}

.jpvp-campaign-stats strong,
.jpvp-campaign-stats span {
	display: block;
}

.jpvp-campaign-stats strong {
	font-size: clamp(52px, 6vw, 86px);
	font-weight: 700;
	letter-spacing: -.06em;
	line-height: 1;
}

.jpvp-campaign-stats span {
	margin-top: 10px;
	font-size: clamp(21px, 2.4vw, 34px);
	font-weight: 600;
	line-height: 1.05;
}

.jpvp-forest-copy .jpvp-campaign-stats strong {
	font-size: clamp(34px, 4vw, 60px);
}

.jpvp-forest-copy .jpvp-campaign-stats span {
	font-size: clamp(18px, 2vw, 28px);
}

.jpvp-big-trees {
	flex: 1 1 760px;
	display: grid;
	grid-template-columns: repeat(var(--jpvp-group-columns), minmax(220px, 1fr));
	gap: clamp(22px, 4vw, 48px);
	width: 100%;
	max-width: 900px;
}

.jpvp-big-trees--1 {
	max-width: 540px;
}

.jpvp-forest--wrap {
	display: grid;
	grid-template-columns: repeat(3, minmax(220px, 1fr));
	align-items: start;
}

.jpvp-forest--wrap .jpvp-big-trees {
	display: contents;
}

.jpvp-forest--centered {
	display: grid;
	grid-template-columns: minmax(300px, 1fr) minmax(270px, 340px) minmax(300px, 1fr);
	align-items: center;
	column-gap: clamp(24px, 3vw, 52px);
	padding-inline: clamp(24px, 3vw, 48px);
}

.jpvp-forest--centered .jpvp-forest-copy {
	text-align: center;
}

.jpvp-centered-side {
	display: grid;
	grid-template-columns: repeat(var(--jpvp-side-columns), minmax(0, 1fr));
	align-content: center;
	align-items: start;
	gap: clamp(18px, 2vw, 32px);
	width: 100%;
}

.jpvp-centered-side .jpvp-big-tree {
	width: 100%;
	max-width: 290px;
	margin: 0 auto;
}

.jpvp-centered-side--count-1 .jpvp-big-tree,
.jpvp-centered-side--count-3 .jpvp-big-tree:last-child,
.jpvp-centered-side--count-5 .jpvp-big-tree:last-child {
	grid-column: 1 / -1;
	width: calc((100% - clamp(18px, 2vw, 32px)) / 2);
}

.jpvp-big-tree {
	width: 100%;
	min-width: 0;
	animation: jpvp-grow .7s ease-out both;
}

.jpvp-animation-pending .jpvp-big-tree {
	animation: none;
}

.jpvp-big-tree svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
	filter: drop-shadow(0 12px 18px rgba(24, 35, 26, .10));
}

.jpvp-tree-icon {
	opacity: 0;
}

.jpvp-animation-pending .jpvp-big-tree svg image {
	opacity: 0;
}

.jpvp-tree-icon.is-visible {
	animation: jpvp-tree-appear .45s ease-out both;
}

.jpvp-animations-disabled .jpvp-random-slot.is-planted,
.jpvp-animations-disabled .jpvp-tree-icon.is-visible {
	animation: none;
}

.jpvp-animations-disabled .jpvp-tree-icon.is-visible {
	opacity: 1;
}

.jpvp-big-tree-progress {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	text-align: center;
}

.jpvp-big-tree--empty svg {
	box-sizing: border-box;
	border: 1px dashed rgba(24, 35, 26, .2);
	border-radius: 48% 48% 36% 36%;
	opacity: .45;
}

.jpvp-forest-empty {
	flex: 0 1 280px;
	text-align: center;
	opacity: .42;
}

.jpvp-forest-empty img {
	width: 130px;
	height: 130px;
}

.jpvp-forest-empty p {
	margin: 12px 0 0;
}

@keyframes jpvp-grow {
	from { opacity: 0; transform: scale(.92) translateY(12px); }
	to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes jpvp-tree-appear {
	from { opacity: 0; }
	to { opacity: 1; }
}

@media (max-width: 767px) {
	/* La cabecera de Senda para Gredos debe ocupar todo el ancho en móvil. */
	body.page-id-7626 .elementor-element-876446c {
		box-sizing: border-box;
		width: 100%;
		height: auto !important;
		min-height: 0 !important;
		aspect-ratio: 1960 / 660;
		background-position: center !important;
		background-size: cover !important;
		background-repeat: no-repeat !important;
	}

	body.page-id-7626 .elementor-element-876446c > .e-con-inner {
		width: 100%;
		height: 100%;
		min-height: 0 !important;
		padding: 0 !important;
	}

	.jpvp-random-canvas {
		height: 480px;
	}

	.jpvp-random-canvas--burned-area {
		height: auto;
	}

	.jpvp-random-slot {
		width: 92%;
	}

	.jpvp-random-copy {
		width: min(560px, 90%);
		padding: 22px 16px;
	}

	.jpvp-random-canvas--burned-area .jpvp-random-copy {
		width: 94%;
		padding: 48px 10px 8px;
	}

	.jpvp-random-slots--burned-area {
		width: 94%;
	}

	.jpvp-campaign-stats strong {
		font-size: clamp(38px, 11vw, 58px);
	}

	.jpvp-campaign-stats span {
		font-size: clamp(17px, 5vw, 24px);
	}

	.jpvp-campaign-stats > div {
		padding: 0 8px;
	}

	.jpvp-forest {
		flex-direction: column;
		text-align: center;
	}

	.jpvp-forest-copy {
		flex-basis: auto;
	}

	.jpvp-forest-total {
		text-align: center;
	}

	.jpvp-big-tree {
		flex-basis: auto;
	}

	.jpvp-big-trees {
		grid-template-columns: 1fr;
		max-width: 520px;
	}

	.jpvp-forest--wrap {
		display: flex;
	}

	.jpvp-forest--wrap .jpvp-big-trees {
		display: grid;
	}

	.jpvp-forest--centered {
		display: flex;
		flex-direction: column;
	}

	.jpvp-forest--centered .jpvp-forest-copy {
		order: -1;
	}

	.jpvp-centered-side {
		display: grid;
		grid-template-columns: 1fr;
		align-items: center;
	}

	.jpvp-centered-side .jpvp-big-tree {
		width: 100%;
		max-width: 520px;
	}

	.jpvp-centered-side--count-1 .jpvp-big-tree,
	.jpvp-centered-side--count-3 .jpvp-big-tree:last-child,
	.jpvp-centered-side--count-5 .jpvp-big-tree:last-child {
		grid-column: auto;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jpvp-big-tree {
		animation: none;
	}

	.jpvp-random-slot.is-planted,
	.jpvp-tree-icon.is-visible {
		animation: none;
	}

	.jpvp-tree-icon.is-visible {
		opacity: 1;
	}
}
