/*
 * Experiencia page (prototype: experiencia.html). Exact replica: values are the prototype's.
 *
 * Order: page hero (base.css) -> case studies -> impact figure -> sectors -> closing CTA
 * (base.css). The sector icons and the monogram behind the figure are decoration drawn here.
 */

/* --- Case studies -------------------------------------------------------- */

/* .case-studies */
.pitalua-experiencia-casos {
	padding: clamp( 84px, 8.5vw, 114px ) 0;
	background: var( --ivory );
}

/* .cases-head */
.pitalua-experiencia-casos__cabecera {
	max-width: 760px;
	margin-bottom: 52px;
}

/* .cases-head h2 */
.pitalua-experiencia-casos__cabecera h2 {
	margin: 0 0 18px;
	font-size: clamp( 1.95rem, 2.8vw, 2.75rem );
	line-height: 1.2;
}

/* p.lead keeps the browser's paragraph margin. */
.pitalua-experiencia-casos__cabecera .pitalua-lead,
.pitalua-experiencia-sectores__cabecera .pitalua-lead {
	margin: 1em 0;
}

/* .cases-list */
.pitalua-experiencia-casos__lista {
	display: grid;
	gap: 36px;
}

/* .case-card */
.pitalua-caso {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	gap: clamp( 36px, 4.5vw, 68px );
	align-items: start;
	padding: clamp( 36px, 4vw, 48px );
	border: 1px solid var( --line );
	border-top: 3px solid var( --gold );
	background: #fffaf5;
	transition: 0.35s var( --ease );
}

/* .case-card:hover */
.pitalua-caso:hover {
	box-shadow: 0 14px 34px rgba( 82, 40, 74, 0.07 );
	transform: translateY( -3px );
	background: #fff;
}

/* .case-meta */
.pitalua-caso__meta {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.pitalua-caso__meta > * {
	margin: 0;
}

/* .case-tag */
.pitalua-caso__etiqueta {
	color: var( --gold );
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	line-height: 1.6;
	text-transform: uppercase;
}

/* .case-meta h3 */
.pitalua-caso__titulo {
	margin: 0;
	color: var( --plum );
	font-family: var( --serif );
	font-size: clamp( 1.35rem, 1.7vw, 1.68rem );
	font-weight: 600;
	letter-spacing: normal;
	line-height: 1.26;
}

/* .case-sector */
.pitalua-caso__sector {
	color: var( --muted );
	font-size: 0.84rem;
	font-weight: 500;
	line-height: 1.6;
}

/* .case-detail */
.pitalua-caso__detalle {
	display: grid;
	gap: 18px;
}

/* .case-block-title: an h4 here, same look. */
.pitalua-caso__rotulo {
	margin: 0 0 6px;
	color: var( --plum );
	font-family: var( --serif );
	font-size: 0.86rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.6;
	text-transform: uppercase;
}

/* .case-block p */
.pitalua-caso__bloque p {
	margin: 0;
	color: #5a4f58;
	font-size: 0.88rem;
	line-height: 1.75;
}

/* .case-block.outcome */
.pitalua-caso__bloque--resultado {
	padding: 14px 18px;
	border-left: 2px solid var( --gold );
	background: rgba( 195, 155, 76, 0.04 );
}

/* .case-block.outcome p */
.pitalua-caso__bloque--resultado p {
	color: var( --ink );
	font-weight: 500;
}

/* --- Impact figure ------------------------------------------------------- */

/* .exp-impact */
.pitalua-experiencia-impacto {
	position: relative;
	overflow: hidden;
	padding: clamp( 84px, 8.5vw, 114px ) 0;
	background: var( --plum );
	color: var( --ivory );
}

/* .exp-impact-grid */
.pitalua-experiencia-impacto__rejilla {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	gap: clamp( 40px, 5vw, 76px );
	align-items: center;
}

/* .stat-box */
.pitalua-experiencia-impacto__cifra {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
	padding: clamp( 36px, 4vw, 52px );
	border: 1px solid rgba( 195, 155, 76, 0.55 );
	background: rgba( 249, 241, 233, 0.03 );
}

/* .stat-box::before. As in the prototype it paints over the figure and under the text. */
.pitalua-experiencia-impacto__cifra::before {
	content: "";
	position: absolute;
	top: 18px;
	right: 18px;
	width: min( 180px, 38vw );
	height: min( 180px, 38vw );
	background: url( "../../img/decor/monograma-claro.webp" ) center / contain no-repeat;
	opacity: 0.16;
	pointer-events: none;
}

/* .stat-box strong */
.pitalua-experiencia-impacto__numero {
	margin: 0 0 16px;
	color: var( --gold );
	font-family: var( --serif );
	font-size: clamp( 3.6rem, 5.8vw, 5.2rem );
	font-weight: 500;
	line-height: 0.95;
}

/* .stat-box p */
.pitalua-experiencia-impacto__cifra p:not( .pitalua-experiencia-impacto__numero ) {
	position: relative;
	z-index: 1;
	margin: 0;
	color: #d8cad3;
	font-size: clamp( 0.92rem, 1.04vw, 1rem );
	line-height: 1.75;
}

/* .impact-text h2 */
.pitalua-experiencia-impacto__texto h2 {
	margin: 0 0 20px;
	font-size: clamp( 1.95rem, 2.8vw, 2.75rem );
	line-height: 1.2;
}

/* .impact-text p */
.pitalua-experiencia-impacto__texto > p:not( .pitalua-eyebrow ) {
	margin: 0 0 20px;
	color: #ede3dc;
	font-size: clamp( 0.96rem, 1.06vw, 1.04rem );
	line-height: 1.82;
}

/* .impact-features */
.pitalua-experiencia-impacto__rasgos {
	display: grid;
	gap: 14px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

/* .impact-feat */
.pitalua-experiencia-impacto__rasgos li {
	display: flex;
	align-items: center;
	gap: 14px;
	color: #f3e8df;
	font-size: 0.88rem;
	line-height: 1.6;
}

/* .impact-feat i */
.pitalua-experiencia-impacto__rasgos li::before {
	content: "";
	flex-shrink: 0;
	width: 18px;
	height: 1px;
	background: var( --gold );
}

/* --- Sectors --------------------------------------------------------------- */

/* .sectors-wrap */
.pitalua-experiencia-sectores {
	position: relative;
	overflow: hidden;
	padding: clamp( 84px, 8.5vw, 114px ) 0;
	border-top: 1px solid var( --line );
	border-bottom: 1px solid var( --line );
	background: #fffaf5;
}

/* .sectors-wrap::before */
.pitalua-experiencia-sectores::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url( "../../img/decor/patron-claro.webp" ) center / 280px repeat;
	opacity: 0.35;
	-webkit-mask-image: linear-gradient( to bottom, transparent 5%, rgba( 0, 0, 0, 1 ) 30%, rgba( 0, 0, 0, 1 ) 70%, transparent 95% );
	mask-image: linear-gradient( to bottom, transparent 5%, rgba( 0, 0, 0, 1 ) 30%, rgba( 0, 0, 0, 1 ) 70%, transparent 95% );
	pointer-events: none;
}

/* .sectors-wrap .container */
.pitalua-experiencia-sectores > .pitalua-contenedor {
	position: relative;
	z-index: 1;
}

/* Header div (inline style in the prototype: max-width 780px, margin-bottom 52px). */
.pitalua-experiencia-sectores__cabecera {
	max-width: 780px;
	margin-bottom: 52px;
}

/* Its h2 keeps the .display line height (inline style sets size and margin only). */
.pitalua-experiencia-sectores__cabecera h2 {
	margin: 0 0 16px;
	font-size: clamp( 1.95rem, 2.8vw, 2.75rem );
}

/* .sector-columns */
.pitalua-experiencia-sectores__rejilla {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 22px;
}

/* .sector */
.pitalua-sector {
	padding: 34px 28px;
	border-top: 2px solid var( --gold );
	background: rgba( 249, 241, 233, 0.85 );
	-webkit-backdrop-filter: blur( 4px );
	backdrop-filter: blur( 4px );
	transition: 0.3s var( --ease );
}

/* .sector:hover */
.pitalua-sector:hover {
	transform: translateY( -3px );
	box-shadow: 0 12px 28px rgba( 82, 40, 74, 0.06 );
}

/* .sector-icon: decorative, its alt only repeated the h3 next to it. */
.pitalua-sector::before {
	content: "";
	display: block;
	width: 80px;
	height: 80px;
	margin-bottom: 24px;
	background: center / contain no-repeat;
}

.pitalua-sector--industrias::before {
	background-image: url( "../../img/decor/sector-industrias.webp" );
}

.pitalua-sector--organizaciones::before {
	background-image: url( "../../img/decor/sector-organizaciones.webp" );
}

.pitalua-sector--entornos::before {
	background-image: url( "../../img/decor/sector-entornos.webp" );
}

/* .sector h3 */
.pitalua-sector h3 {
	margin: 0 0 18px;
	color: var( --plum );
	font-family: var( --serif );
	font-size: 1.08rem;
	font-weight: 500;
	letter-spacing: normal;
	line-height: 1.6;
}

/* .sector ul */
.pitalua-sector ul {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* .sector li */
.pitalua-sector li {
	position: relative;
	padding-left: 18px;
	color: var( --muted );
	font-size: 0.84rem;
	line-height: 1.6;
}

/* .sector li::before */
.pitalua-sector li::before {
	content: "";
	position: absolute;
	top: 0.62em;
	left: 0;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var( --gold );
}

/* --- Responsive ------------------------------------------------------------ */

@media ( max-width: 980px ) {

	.pitalua-experiencia-impacto__rejilla {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.pitalua-caso {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.pitalua-experiencia-sectores__rejilla {
		grid-template-columns: 1fr;
	}
}
