/* ==========================================================================
   Peruspédia page  ([cmq_peruspedia] part — page 56302)
   Layout reference: wp-content/themes/design/Peruspedia.png (1366px wide).
   Sizes below are vw values against that 1366px baseline so the whole
   composition scales as one piece; fixed sizes take over ≤999px.
   ========================================================================== */

/* The part is meant to be full-bleed: no 40px gap under the header. */
.cmq-pp-page .container-wrap {
	padding-top: 0;
	background: #ffffff;
}

.cmq-pp-page .container.main-content {
	padding-top: 0;
}

#cmq-peruspedia {
	--pp-red: #d5111e;
	--pp-cream: #fffbd9;
	--pp-cream-text: #fdf1d2;
	--pp-orange: #fc9429;
	--pp-green: #124f43;
	--pp-ink: #1c1c1c;
	--pp-pad: 4.54vw;

	color: var(--pp-ink);
	font-family: Fustat, sans-serif;
}

#cmq-peruspedia *,
#cmq-peruspedia *::before,
#cmq-peruspedia *::after {
	box-sizing: border-box;
}

#cmq-peruspedia p {
	padding-bottom: 0;
	margin: 0;
	font-family: inherit;
}

#cmq-peruspedia h1,
#cmq-peruspedia h2,
#cmq-peruspedia h3 {
	font-family: Fustat, sans-serif;
	letter-spacing: normal;
	text-transform: none;
}

/* --------------------------------------------------------------------------
   1. Hero

   Everything in here is measured in design pixels of the 1366-wide mock and
   multiplied by --pp-u ("one design pixel"), so the band is one piece.
   --pp-u normally equals the width-proportional value (100vw/1366) but is
   capped so that the 708px-tall hero plus the 75px fixed header fills the
   viewport: the whole first section (and its "enviar verbete" button) is
   visible at first glance, and the red band reaches the fold — the 1px bias
   keeps sub-pixel rounding from showing a white line under it.
   -------------------------------------------------------------------------- */

#cmq-peruspedia .cmq-pp-hero {
	/* 75px fixed header (74 so the band clears the fold by a hair) */
	--pp-u: min(0.0732vw, calc((100vh - 74px) / 708));

	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	/* the red band owns the whole first screen: when the width-proportional
	   composition is a little shorter than the viewport, the band stretches
	   instead of leaving a white sliver of the next section under the fold */
	min-height: calc(100vh - 74px);
	background-color: var(--pp-red);
	color: var(--pp-cream-text);
	overflow: hidden;
}

/* Salient's header is 109px tall in the 1000–1099px band, not 75px. */
@media (min-width: 1000px) and (max-width: 1099px) {
	#cmq-peruspedia .cmq-pp-hero {
		--pp-u: min(0.0732vw, calc((100vh - 108px) / 708));
		min-height: calc(100vh - 108px);
	}
}

/* Bird + orange grid artwork: 699×636 at the design's 1366px, top -18px and
   bleeding 62px past the right edge (the same 62px as the left gutter). */
#cmq-peruspedia .cmq-pp-art {
	position: absolute;
	top: calc(-18 * var(--pp-u));
	right: calc(-62 * var(--pp-u));
	width: calc(699 * var(--pp-u));
	height: auto;
	max-width: none;
	z-index: 0;
	pointer-events: none;
	user-select: none;
}

#cmq-peruspedia .cmq-pp-hero-inner {
	position: relative;
	z-index: 1;
	padding: calc(99 * var(--pp-u)) calc(62 * var(--pp-u)) calc(35 * var(--pp-u));
}

#cmq-peruspedia .cmq-pp-title {
	margin: 0;
	padding: 0;
	font-size: calc(171 * var(--pp-u));
	font-weight: 800;
	line-height: 0.92;
	letter-spacing: -0.04em;
	margin-left: -0.055em;
	color: var(--pp-cream);
	text-transform: lowercase;
}

#cmq-peruspedia .cmq-pp-hero-cols {
	display: flex;
	align-items: flex-start;
	margin-top: calc(24.4 * var(--pp-u));
}

#cmq-peruspedia .cmq-pp-hero-text {
	/* 700 (not the mock's 676): the copy is hard-wrapped like the mock, so the
	   column only has to hold the longest line (680 at U=1) with a little slack
	   for rasterisation differences when --pp-u dips below 1 */
	flex: 0 0 calc(700 * var(--pp-u));
	max-width: 100%;
	font-size: calc(26 * var(--pp-u));
	line-height: 1.19;
	font-weight: 400;
	color: var(--pp-cream-text);
}

#cmq-peruspedia .cmq-pp-hero-text p {
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

#cmq-peruspedia .cmq-pp-hero-text p + p {
	margin-top: calc(30 * var(--pp-u));
}

/* CTA column: starts 843px in on the mock, content 504px wide, the pill
   button centred in it (design x 983–1207 @1366). */
#cmq-peruspedia .cmq-pp-hero-cta {
	flex: 1 1 auto;
	max-width: calc(504 * var(--pp-u));
	margin-left: calc(81 * var(--pp-u));
	margin-right: calc(-42 * var(--pp-u));
	margin-top: calc(86.4 * var(--pp-u));
	text-align: center;
}

#cmq-peruspedia .cmq-pp-cta-title {
	margin: 0;
	font-size: calc(51 * var(--pp-u));
	font-weight: 800;
	line-height: 0.86;
	color: var(--pp-orange);
	text-align: left;
}

#cmq-peruspedia .cmq-pp-cta-sub {
	margin: calc(12.8 * var(--pp-u)) 0 0;
	font-size: calc(28 * var(--pp-u));
	line-height: 0.9;
	font-weight: 400;
	color: var(--pp-cream-text);
	text-align: left;
}

#cmq-peruspedia .cmq-pp-btn {
	display: inline-block;
	margin-top: calc(32 * var(--pp-u));
	padding: calc(13.6 * var(--pp-u)) calc(37.6 * var(--pp-u));
	border-radius: 999px;
	background-color: var(--pp-cream);
	color: var(--pp-red);
	font-size: calc(22 * var(--pp-u));
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

#cmq-peruspedia .cmq-pp-btn:hover,
#cmq-peruspedia .cmq-pp-btn:focus-visible {
	background-color: var(--pp-orange);
	color: var(--pp-cream);
	text-decoration: none;
}

#cmq-peruspedia .cmq-pp-btn:hover {
	transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   2. "TAINACAN VERBETES" wordmark band
   -------------------------------------------------------------------------- */

#cmq-peruspedia .cmq-pp-verbetes {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	background-color: #ffffff;
	padding: 2.99vw 0 0.7vw;
	text-align: center;
}

#cmq-peruspedia .cmq-pp-verbetes-title {
	margin: 0;
	padding: 0;
	font-size: 6.66vw;
	font-weight: 800;
	line-height: 0.91;
	letter-spacing: 0;
	color: #0a0a0a;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   3. "Como colaborar?"
   -------------------------------------------------------------------------- */

#cmq-peruspedia .cmq-pp-collab {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	background-color: var(--pp-red);
	color: var(--pp-cream);
	padding: 2.34vw 0 3.73vw;
}

#cmq-peruspedia .cmq-pp-collab-inner {
	max-width: 78.2vw; /* 1069px @1366, centred → 148px gutters */
	margin: 0 auto;
}

#cmq-peruspedia .cmq-pp-collab-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 2vw;
}

#cmq-peruspedia .cmq-pp-collab-title {
	margin: 0;
	padding: 0;
	font-size: 6.15vw;
	font-weight: 800;
	line-height: 0.87;
	color: var(--pp-cream);
	flex: 0 0 auto;
}

#cmq-peruspedia .cmq-pp-collab-lead {
	width: 37vw; /* 505px @1366 */
	margin: 0.6vw 2.4vw 0 0;
	font-size: 1.94vw;
	line-height: 1.17;
	font-weight: 700;
	color: var(--pp-cream);
}

#cmq-peruspedia .cmq-pp-cards {
	display: grid;
	/* design cards are not equal: 341 / 321 / 311 @1366 (48px gaps) */
	grid-template-columns: 341fr 321fr 311fr;
	gap: 3.5vw;
	margin-top: 6.6vw;
	align-items: stretch;
}

#cmq-peruspedia .cmq-pp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 31.3vw;
	padding: 2.05vw 1.9vw 1.7vw;
	background-color: var(--pp-cream);
	border-radius: 1vw;
	color: var(--pp-ink);
}

#cmq-peruspedia .cmq-pp-card-title {
	margin: 0;
	padding: 0;
	font-size: 3.18vw;
	font-weight: 800;
	line-height: 0.95;
	color: var(--pp-green);
	text-align: center;
}

#cmq-peruspedia .cmq-pp-card-list {
	margin: 2.7vw 0 0;
	padding: 0;
	list-style: none;
	font-size: 1.76vw;
	line-height: 1.19;
	color: var(--pp-ink);
}

#cmq-peruspedia .cmq-pp-card-list li {
	position: relative;
	margin: 0;
	padding-left: 0.6em;
	list-style: none;
	font-size: inherit;
	line-height: inherit;
}

#cmq-peruspedia .cmq-pp-card-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 0.3em;
	height: 0.3em;
	border-radius: 50%;
	background-color: var(--pp-green);
}

#cmq-peruspedia .cmq-pp-card-list strong {
	font-weight: 700;
}

#cmq-peruspedia .cmq-pp-card-number {
	position: absolute;
	right: 1.75vw;
	bottom: 1.17vw;
	font-size: 2.9vw;
	font-weight: 800;
	line-height: 1;
	color: var(--pp-green);
}

#cmq-peruspedia .cmq-pp-card-arrow {
	position: absolute;
	right: 1.9vw;
	bottom: 1.98vw;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.1vw;
	height: 3.1vw;
	border: 2px solid var(--pp-green);
	border-radius: 50%;
	color: var(--pp-green);
	text-decoration: none;
	transition: background-color 0.2s ease;
}

#cmq-peruspedia .cmq-pp-card-arrow:hover,
#cmq-peruspedia .cmq-pp-card-arrow:focus-visible {
	background-color: rgba(18, 79, 67, 0.08);
	text-decoration: none;
}

#cmq-peruspedia .cmq-pp-card-arrow svg {
	width: 1.45vw;
	height: 1.45vw;
	max-width: none;
}

#cmq-peruspedia .cmq-pp-card-arrow .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* --------------------------------------------------------------------------
   Tablet (691–999px)
   -------------------------------------------------------------------------- */

@media (max-width: 999px) {
	#cmq-peruspedia {
		--pp-pad: 24px;
	}

	#cmq-peruspedia .cmq-pp-hero {
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

	#cmq-peruspedia .cmq-pp-hero-inner {
		order: 1;
		padding: 44px var(--pp-pad) 0;
	}

	#cmq-peruspedia .cmq-pp-title {
		font-size: 10vw;
		letter-spacing: -0.5px;
	}

	#cmq-peruspedia .cmq-pp-hero-cols {
		display: block;
		margin-top: 12px;
	}

	/* the desktop hero hard-wraps its copy to match the design's rag; let it
	   reflow on smaller screens */
	#cmq-peruspedia .cmq-pp-br {
		display: none;
	}

	#cmq-peruspedia .cmq-pp-hero-text {
		width: 100%;
		max-width: 620px;
		font-size: 18px;
		line-height: 1.5;
	}

	#cmq-peruspedia .cmq-pp-hero-text p + p {
		margin-top: 14px;
	}

	#cmq-peruspedia .cmq-pp-hero-cta {
		width: 100%;
		max-width: 480px;
		margin: 32px 0 0;
		text-align: left;
	}

	#cmq-peruspedia .cmq-pp-cta-title {
		font-size: 34px;
		line-height: 0.95;
	}

	#cmq-peruspedia .cmq-pp-cta-sub {
		margin-top: 10px;
		font-size: 18px;
		line-height: 1.35;
	}

	#cmq-peruspedia .cmq-pp-btn {
		margin-top: 18px;
		padding: 12px 26px;
		font-size: 16px;
	}

	/* artwork drops below the copy, anchored to the right and cropped by the
	   section edge (keeps the bird + grid as the band's signature) */
	#cmq-peruspedia .cmq-pp-art {
		position: static;
		order: 2;
		align-self: flex-end;
		width: 48vw;
		max-width: 380px;
		margin: -2vw -24px 0 0;
	}

	#cmq-peruspedia .cmq-pp-verbetes {
		padding: 32px 0 26px;
	}

	#cmq-peruspedia .cmq-pp-verbetes-title {
		font-size: clamp(40px, 8vw, 64px);
		line-height: 0.95;
	}

	#cmq-peruspedia .cmq-pp-collab {
		padding: 44px 0 56px;
	}

	#cmq-peruspedia .cmq-pp-collab-inner {
		max-width: none;
		padding: 0 24px;
	}

	#cmq-peruspedia .cmq-pp-collab-head {
		display: block;
	}

	#cmq-peruspedia .cmq-pp-collab-title {
		font-size: clamp(48px, 9vw, 76px);
	}

	#cmq-peruspedia .cmq-pp-collab-lead {
		width: 100%;
		max-width: 520px;
		margin: 24px 0 0;
		font-size: 18px;
		line-height: 1.4;
	}

	#cmq-peruspedia .cmq-pp-cards {
		grid-template-columns: 1fr;
		gap: 16px;
		margin-top: 40px;
	}

	#cmq-peruspedia .cmq-pp-card {
		min-height: 0;
		padding: 28px 30px 52px;
		border-radius: 12px;
	}

	#cmq-peruspedia .cmq-pp-card-title {
		font-size: 30px;
		line-height: 1.15;
	}

	#cmq-peruspedia .cmq-pp-card-list {
		margin-top: 16px;
		font-size: 17px;
		line-height: 1.5;
	}

	#cmq-peruspedia .cmq-pp-card-number {
		right: 30px;
		bottom: 16px;
		font-size: 30px;
	}

	#cmq-peruspedia .cmq-pp-card-arrow {
		right: 30px;
		bottom: 16px;
		width: 38px;
		height: 38px;
	}

	#cmq-peruspedia .cmq-pp-card-arrow svg {
		width: 18px;
		height: 18px;
	}
}

/* --------------------------------------------------------------------------
   Phone (≤690px)
   -------------------------------------------------------------------------- */

@media (max-width: 690px) {
	#cmq-peruspedia {
		--pp-pad: 20px;
	}

	#cmq-peruspedia .cmq-pp-hero-inner {
		padding: 28px var(--pp-pad) 0;
	}

	#cmq-peruspedia .cmq-pp-title {
		font-size: 13vw;
		letter-spacing: -0.5px;
	}

	#cmq-peruspedia .cmq-pp-hero-text {
		font-size: 16px;
		line-height: 1.45;
	}

	#cmq-peruspedia .cmq-pp-hero-cta {
		margin-top: 26px;
	}

	#cmq-peruspedia .cmq-pp-cta-title {
		font-size: 28px;
	}

	#cmq-peruspedia .cmq-pp-cta-sub {
		font-size: 16px;
	}

	#cmq-peruspedia .cmq-pp-btn {
		margin-top: 16px;
		padding: 11px 24px;
		font-size: 15px;
	}

	#cmq-peruspedia .cmq-pp-art {
		width: 64vw;
		max-width: none;
		margin: -5vw -20px 0 0;
	}

	#cmq-peruspedia .cmq-pp-verbetes {
		padding: 24px 0 20px;
	}

	#cmq-peruspedia .cmq-pp-verbetes-title {
		font-size: 36px;
	}

	#cmq-peruspedia .cmq-pp-collab {
		padding: 34px 0 44px;
	}

	#cmq-peruspedia .cmq-pp-collab-inner {
		padding: 0 20px;
	}

	#cmq-peruspedia .cmq-pp-collab-title {
		font-size: 46px;
	}

	#cmq-peruspedia .cmq-pp-collab-lead {
		margin-top: 18px;
		font-size: 16px;
		line-height: 1.45;
	}

	#cmq-peruspedia .cmq-pp-cards {
		margin-top: 28px;
	}

	#cmq-peruspedia .cmq-pp-card {
		padding: 22px 22px 48px;
	}

	#cmq-peruspedia .cmq-pp-card-title {
		font-size: 26px;
	}

	#cmq-peruspedia .cmq-pp-card-list {
		font-size: 16px;
	}

	#cmq-peruspedia .cmq-pp-card-number {
		right: 22px;
		bottom: 14px;
		font-size: 26px;
	}

	#cmq-peruspedia .cmq-pp-card-arrow {
		right: 22px;
		bottom: 14px;
		width: 34px;
		height: 34px;
	}
}
