/*
 * Portada Ampliacion Avenida La Compania
 * Los selectores se limitan a body.michell-homepage para no alterar otras paginas.
 */

body.michell-homepage {
	--pc-navy: #123653;
	--pc-navy-deep: #09263d;
	--pc-blue: #087fa9;
	--pc-green: #4b9a54;
	--pc-sky: #eaf6fa;
	--pc-ink: #263744;
	--pc-muted: #62727d;
	--pc-line: rgba(18, 54, 83, 0.13);
	--pc-surface: #ffffff;
	--pc-shadow: 0 22px 60px rgba(9, 38, 61, 0.13);
	--pc-shadow-soft: 0 12px 34px rgba(9, 38, 61, 0.09);
	background:
		radial-gradient(circle at 8% 16%, rgba(8, 127, 169, 0.09), transparent 26rem),
		linear-gradient(180deg, #f7fbfc 0, #ffffff 35rem);
	color: var(--pc-ink);
}

body.michell-homepage .page-content {
	overflow: hidden;
}

body.michell-homepage .main-content {
	width: min(100% - 32px, 1240px) !important;
	max-width: 1240px !important;
	padding-top: clamp(24px, 4vw, 58px);
	padding-bottom: clamp(58px, 7vw, 100px);
}

body.michell-homepage .main-container,
body.michell-homepage article.page {
	width: 100% !important;
	max-width: none !important;
	float: none !important;
}

body.michell-homepage .sidebar-left,
body.michell-homepage .sidebar-right {
	display: none !important;
}

body.michell-homepage article.page {
	background: transparent;
}

body.michell-homepage .post-header {
	margin: 0 auto clamp(24px, 4vw, 42px);
	text-align: center;
}

body.michell-homepage .post-header .page-title {
	position: relative;
	margin: 0;
	color: var(--pc-navy-deep);
	font-size: clamp(2rem, 4.3vw, 3.65rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.05;
	text-transform: none;
}

body.michell-homepage .post-header .page-title::after {
	content: "";
	display: block;
	width: 76px;
	height: 5px;
	margin: 20px auto 0;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--pc-blue), var(--pc-green));
}

body.michell-homepage .post-content {
	font-size: clamp(1rem, 0.35vw + 0.92rem, 1.125rem);
	line-height: 1.82;
}

body.michell-homepage .post-content > .pc-home-empty,
body.michell-homepage .post-content > .wp-block-separator.pc-home-empty {
	display: none !important;
}

/* Comparador antes/despues */
body.michell-homepage .pc-home-hero {
	position: relative;
	isolation: isolate;
	margin: 0 0 clamp(42px, 6vw, 78px);
	padding: clamp(8px, 1.4vw, 14px);
	border: 1px solid rgba(255, 255, 255, 0.78);
	border-radius: clamp(20px, 3vw, 34px);
	background: rgba(255, 255, 255, 0.82);
	box-shadow: var(--pc-shadow);
	backdrop-filter: blur(12px);
}

body.michell-homepage .pc-home-hero::before,
body.michell-homepage .pc-home-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	border-radius: 999px;
	filter: blur(4px);
	pointer-events: none;
}

body.michell-homepage .pc-home-hero::before {
	top: -70px;
	right: -80px;
	width: 240px;
	height: 240px;
	background: rgba(75, 154, 84, 0.13);
}

body.michell-homepage .pc-home-hero::after {
	bottom: -60px;
	left: -75px;
	width: 210px;
	height: 210px;
	background: rgba(8, 127, 169, 0.12);
}

body.michell-homepage .pc-home-hero .bafg-twentytwenty-container,
body.michell-homepage .pc-home-hero .twentytwenty-container {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	border-radius: clamp(14px, 2.4vw, 25px);
	overflow: hidden;
	background: #dfe8ec;
}

body.michell-homepage .pc-home-hero img {
	display: block;
}

body.michell-homepage .pc-home-hero .twentytwenty-handle {
	width: 48px;
	height: 48px;
	margin-top: -27px;
	margin-left: -27px;
	border-width: 3px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
}

body.michell-homepage .pc-home-hero .twentytwenty-before-label::before,
body.michell-homepage .pc-home-hero .twentytwenty-after-label::before {
	border-radius: 999px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

/* Bloque completo de descripcion */
body.michell-homepage .pc-home-project-card {
	position: relative;
	margin: 0 auto clamp(42px, 6vw, 76px);
	padding: clamp(26px, 5vw, 66px);
	border: 1px solid var(--pc-line);
	border-radius: clamp(22px, 3vw, 34px);
	background:
		linear-gradient(135deg, rgba(234, 246, 250, 0.65), transparent 42%),
		var(--pc-surface);
	box-shadow: var(--pc-shadow-soft);
}

body.michell-homepage .pc-home-project-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: clamp(26px, 5vw, 66px);
	width: clamp(88px, 12vw, 150px);
	height: 6px;
	border-radius: 0 0 999px 999px;
	background: linear-gradient(90deg, var(--pc-blue), var(--pc-green));
}

body.michell-homepage .pc-home-section-title {
	margin: 0 0 clamp(24px, 3vw, 38px) !important;
	color: var(--pc-navy-deep);
	font-size: clamp(1.65rem, 3vw, 2.55rem) !important;
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.15;
	text-align: left !important;
}

body.michell-homepage .pc-home-section-title strong {
	font-weight: inherit;
}

body.michell-homepage .pc-home-project-card__body {
	max-width: 980px;
}

body.michell-homepage .pc-home-project-card__body > p {
	margin: 0 0 1.35em;
	color: var(--pc-ink);
	text-align: justify;
	text-align-last: left;
	text-justify: inter-word;
	hyphens: auto;
}

body.michell-homepage .pc-home-project-card__body > p:first-child {
	margin-bottom: clamp(24px, 3.2vw, 38px);
	padding: clamp(22px, 3.6vw, 36px);
	border-left: 5px solid var(--pc-blue);
	border-radius: 0 18px 18px 0;
	background: linear-gradient(90deg, rgba(8, 127, 169, 0.1), rgba(8, 127, 169, 0.025));
	color: var(--pc-navy-deep);
	font-size: clamp(1.08rem, 0.55vw + 1rem, 1.35rem);
	font-weight: 600;
	line-height: 1.65;
}

body.michell-homepage .pc-home-project-card__body > p:nth-child(2) {
	position: relative;
	margin: 0 0 clamp(24px, 3vw, 36px);
	padding: clamp(20px, 3vw, 30px) clamp(22px, 3vw, 34px);
	border: 1px solid rgba(75, 154, 84, 0.23);
	border-radius: 18px;
	background: rgba(75, 154, 84, 0.075);
	color: #254a2d;
	font-weight: 700;
}

body.michell-homepage .pc-home-project-card__body > p:last-child {
	margin-bottom: 0;
}

/* Plano del area de estudio */
body.michell-homepage .pc-home-map-card {
	position: relative;
	margin: 0 auto;
	padding: clamp(9px, 1.4vw, 15px);
	border: 1px solid var(--pc-line);
	border-radius: clamp(20px, 3vw, 32px);
	background: var(--pc-surface);
	box-shadow: var(--pc-shadow);
}

body.michell-homepage .pc-home-map-card::before {
	content: "";
	position: absolute;
	inset: -1px;
	z-index: -1;
	border-radius: inherit;
	background: linear-gradient(135deg, rgba(8, 127, 169, 0.35), rgba(75, 154, 84, 0.3));
	filter: blur(16px);
	opacity: 0.35;
}

body.michell-homepage .pc-home-map-card figure,
body.michell-homepage .pc-home-map-card .wp-block-image {
	width: 100%;
	max-width: none;
	margin: 0 !important;
}

body.michell-homepage .pc-home-map-card img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: clamp(13px, 2vw, 22px);
}

/* Evita mostrar dos veces el mismo titulo, pero conserva el nodo en el documento. */
body.michell-homepage .pc-home-duplicate-title {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Aparicion suave: el contenido sigue visible si JavaScript no se ejecuta. */
body.michell-homepage.pc-home-js .pc-home-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 650ms ease, transform 650ms ease;
}

body.michell-homepage.pc-home-js .pc-home-reveal.pc-home-visible {
	opacity: 1;
	transform: none;
}

body.michell-homepage a:focus-visible,
body.michell-homepage button:focus-visible,
body.michell-homepage [tabindex]:focus-visible {
	outline: 3px solid var(--pc-blue);
	outline-offset: 4px;
}

@media (max-width: 768px) {
	body.michell-homepage .main-content {
		width: min(100% - 22px, 1240px) !important;
		padding-top: 20px;
	}

	body.michell-homepage .post-header {
		margin-bottom: 22px;
	}

	body.michell-homepage .pc-home-hero {
		margin-bottom: 36px;
		border-radius: 20px;
	}

	body.michell-homepage .pc-home-project-card {
		margin-bottom: 36px;
		padding: 28px 21px;
		border-radius: 22px;
	}

	body.michell-homepage .pc-home-project-card::before {
		left: 21px;
	}

	body.michell-homepage .pc-home-section-title {
		font-size: 1.65rem !important;
	}

	body.michell-homepage .pc-home-project-card__body > p {
		line-height: 1.72;
	}

	body.michell-homepage .pc-home-project-card__body > p:first-child {
		padding: 20px;
		border-left-width: 4px;
	}

	body.michell-homepage .pc-home-map-card {
		border-radius: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.michell-homepage.pc-home-js .pc-home-reveal,
	body.michell-homepage.pc-home-js .pc-home-reveal.pc-home-visible {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
