/* Tarjeta "Aparca fácil con la app": inicio, preguntas frecuentes y entradas */
.pl-app-card {
	container-type: inline-size;
	position: relative;
	box-sizing: border-box;
	width: 100%;
	aspect-ratio: 1.4 / 1;
	margin: 0 0 20px;
	overflow: hidden;
	border: 1px solid #b9ebd9;
	border-radius: 16px;
	background: #f3fcf9 url("../uploads/2026/10/Fondo-minimalista-con-ondas-menta.png") 51.5% 48.5% / 108% 118% no-repeat;
	box-shadow: 0 10px 28px rgb(37 199 165 / 22%), 0 2px 8px rgb(24 38 74 / 8%);
}

.pl-app-card-copy {
	position: relative;
	z-index: 2;
	width: 56cqw;
	margin: 7cqw 0 0 8cqw;
}

.pl-app-card .pl-app-card-copy h2 {
	margin: 0 0 3cqw !important;
	padding: 0 !important;
	color: #18264a !important;
	font-family: inherit;
	font-size: 7.4cqw !important;
	font-weight: 800 !important;
	letter-spacing: -.01em;
	line-height: 1.1 !important;
}

.pl-app-card .pl-app-card-copy p {
	margin: 0 0 4.5cqw !important;
	padding: 0 !important;
	color: #4b5f78 !important;
	font-size: 3.5cqw !important;
	line-height: 1.4 !important;
}

.pl-app-card-stores {
	display: grid;
	justify-items: start;
	gap: 2.6cqw;
}

.pl-app-card-stores a {
	display: block;
	width: 38cqw;
	line-height: 0;
	transition: transform .15s ease;
}

.pl-app-card-stores a:hover {
	transform: translateY(-2px);
}

.pl-app-card-stores img {
	display: block;
	width: 100%;
	height: 12.2cqw;
	max-width: none;
	object-fit: fill;
	border-radius: 8px;
}

/* Mancha verde detrás del móvil */
.pl-app-card-phone {
	position: absolute;
	right: 7cqw;
	bottom: 6cqw;
	z-index: 1;
	width: 38cqw;
}

.pl-app-card-phone::before {
	content: "";
	position: absolute;
	right: -8cqw;
	bottom: 0;
	z-index: -1;
	width: 52cqw;
	height: 52cqw;
	border-radius: 50%;
	background: none;
}

.pl-app-card-phone img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	filter: none;
	box-shadow: none;
}

/* Inicio: la tarjeta sustituye al módulo de descarga de Divi */
body.home #main-content .et_pb_column_2 .et_pb_text_1,
body.home #main-content .et_pb_column_2 .et_pb_image_0,
body.home #main-content .et_pb_column_2 .et_pb_image_1,
body:is(.page-id-2756, .page-id-1041, .page-id-1039) .pl-faq-download {
	display: none !important;
}

body.home #main-content .et_pb_column_2 .pl-app-card,
body:is(.page-id-2756, .page-id-1041, .page-id-1039) .pl-app-card {
	margin-bottom: 20px;
}

body.home #main-content .et_pb_column_2::before,
body.home #main-content .et_pb_column_2::after {
	display: none !important;
}

body.home #main-content .et_pb_column_2 .pl-app-card {
	grid-column: 1 / -1;
	grid-row: auto;
	align-self: start;
	margin: 0;
}

@media (min-width: 768px) {
	body.home #main-content .et_pb_column_2 .pl-app-card {
		grid-column: 3 / 5;
		grid-row: 1 / 4;
		aspect-ratio: 1.8 / 1;
	}

	body.home .pl-app-card-copy {
		width: 52cqw;
		margin: 5.5cqw 0 0 7cqw;
	}

	body.home .pl-app-card .pl-app-card-copy h2 {
		margin-bottom: 2cqw !important;
		font-size: 6.2cqw !important;
	}

	body.home .pl-app-card .pl-app-card-copy p {
		margin-bottom: 3.5cqw !important;
		font-size: 2.9cqw !important;
	}

	body.home .pl-app-card-stores {
		gap: 2cqw;
	}

	body.home .pl-app-card-stores a {
		width: 29cqw;
	}

	body.home .pl-app-card-stores img {
		height: 9.3cqw;
	}

	body.home .pl-app-card-phone {
		right: 14cqw;
		bottom: 2cqw;
		width: 34cqw;
	}
}

/* Inicio: tarjetas de entradas con foto recortada, esquinas redondeadas y "Leer más" */
body.home #page-container #main-content .et_pb_blog_0 .et_pb_post,
body.home #page-container #main-content .et_pb_blog_0 .et_pb_post:first-child {
	border: 1px solid #e3f0ec;
	border-radius: 16px;
	box-shadow: 0 6px 22px rgb(37 199 165 / 12%), 0 1px 4px rgb(24 38 74 / 6%);
}

body.home #page-container #main-content .et_pb_blog_0 .entry-featured-image-url {
	position: relative;
	box-sizing: border-box;
	width: calc(100% - 24px);
	height: auto;
	min-height: 0;
	margin: 12px !important;
	aspect-ratio: 1.45 / 1;
	border-radius: 12px;
	background: #fff;
}

body.home #page-container #main-content .et_pb_blog_0 .entry-featured-image-url img {
	position: absolute;
	top: 50%;
	right: -13%;
	bottom: auto;
	left: auto;
	width: 245%;
	max-width: none;
	height: auto !important;
	min-height: 0;
	box-shadow: none !important;
	object-fit: cover;
	transform: translateY(-40%);
}

body.home .pl-read-more {
	display: inline-flex;
	align-items: center;
	justify-self: start;
	margin: 0 0 14px 22px;
	padding: 6px 16px;
	border-radius: 999px;
	background: #dff7ef;
	color: #0f8f78;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background .15s ease;
}

body.home .pl-read-more:hover {
	background: #c4f0e2;
}

body.home #main-content .et_pb_blog_0 .et_pb_post:first-child {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-template-rows: 1fr auto auto auto 1fr;
	min-height: 0 !important;
}

body.home #main-content .et_pb_blog_0 .et_pb_post:first-child .entry-featured-image-url {
	grid-row: 1 / -1;
	align-self: center;
	height: auto;
	min-height: 0;
	aspect-ratio: 1.45 / 1;
}

body.home #main-content .et_pb_blog_0 .et_pb_post:first-child .entry-title {
	grid-row: 2;
	align-self: end;
}

body.home #main-content .et_pb_blog_0 .et_pb_post:first-child .post-content {
	grid-row: 3;
}

body.home #main-content .et_pb_blog_0 .et_pb_post:first-child .pl-read-more {
	grid-column: 2;
	grid-row: 4;
	margin-bottom: 0;
}

body.home #main-content .et_pb_blog_0 .et_pb_post:not(:first-child) {
	grid-template-rows: auto 1fr auto;
}

body.home #main-content .et_pb_blog_0 .et_pb_post:not(:first-child) .pl-read-more {
	grid-column: 1;
	grid-row: 3;
	margin: 0 0 12px 11px;
}

@media (min-width: 768px) {
	body.home #main-content .et_pb_column_2 .pl-app-card {
		aspect-ratio: auto;
		align-self: stretch;
	}
}

@media (max-width: 767px) {
	body.home #main-content .et_pb_blog_0 .et_pb_post:first-child {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto;
	}

	body.home #main-content .et_pb_blog_0 .et_pb_post:first-child .entry-featured-image-url,
	body.home #main-content .et_pb_blog_0 .et_pb_post:first-child .entry-title,
	body.home #main-content .et_pb_blog_0 .et_pb_post:first-child .post-content,
	body.home #main-content .et_pb_blog_0 .et_pb_post:first-child .pl-read-more {
		grid-column: 1;
		grid-row: auto;
	}
}

@media (min-width: 981px) {
	body.single-post #page-container #main-content #sidebar { margin-top: 45px !important; }
}
