/**
 * Proteclisa · Proyectos — estilos del frontal.
 * Todos los colores salen de estas variables: cámbialas aquí y cambia todo.
 */

.pxp {
	--pxp-marino: #0d3b60;
	--pxp-azul: #35a3d9;
	--pxp-azul-suave: #e4f2fa;
	--pxp-texto: #1d2b36;
	--pxp-apagado: #64798a;
	--pxp-borde: #e1ecf3;
	--pxp-fondo: #ffffff;
	--pxp-radio: 14px;
	/* Cristal: fondo translúcido, borde claro y brillo superior. */
	--pxp-cristal: linear-gradient(155deg, rgba(255, 255, 255, 0.72), rgba(228, 242, 250, 0.42));
	--pxp-cristal-borde: rgba(255, 255, 255, 0.75);
	--pxp-cristal-sombra: 0 10px 30px rgba(13, 59, 96, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
	--pxp-cristal-azul: linear-gradient(155deg, rgba(13, 59, 96, 0.9), rgba(30, 116, 175, 0.76));
	--pxp-sombra: 0 2px 14px rgba(13, 59, 96, 0.08);

	color: var(--pxp-texto);
	font-size: 16px;
	line-height: 1.55;
}

.pxp *,
.pxp *::before,
.pxp *::after {
	box-sizing: border-box;
}

.pxp .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ------------------------------------------------------------------ *
 * Filtros
 * ------------------------------------------------------------------ */

.pxp-filtros {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	padding: 14px;
	background: var(--pxp-fondo);
	border: 1px solid var(--pxp-borde);
	border-radius: var(--pxp-radio);
	box-shadow: var(--pxp-sombra);
	margin-bottom: 22px;
}

.pxp-campo-busqueda {
	position: relative;
	flex: 1 1 240px;
}

.pxp-campo-busqueda .pxp-icono {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	color: var(--pxp-apagado);
	pointer-events: none;
}

.pxp-campo-busqueda svg,
.pxp .pxp-dato-icono svg,
.pxp-tarjeta-lugar svg,
.pxp-sin-foto svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
	display: block;
}

.pxp-buscar {
	width: 100%;
	padding: 11px 14px;
	font-size: 15px;
	color: var(--pxp-texto);
	background: var(--pxp-fondo);
	border: 1px solid var(--pxp-borde);
	border-radius: 10px;
	line-height: 1.3;
}

.pxp-buscar {
	padding-left: 38px;
}

.pxp-campo-filtro {
	flex: 1 1 180px;
}

.pxp-buscar:focus,
.pxp-multi-boton:focus-visible,
.pxp-filtro:focus-visible {
	outline: 2px solid var(--pxp-azul);
	outline-offset: 1px;
	border-color: var(--pxp-azul);
}

.pxp-limpiar {
	background: none;
	border: 0;
	color: var(--pxp-azul);
	cursor: pointer;
	font-size: 14px;
	text-decoration: underline;
	padding: 6px;
}

.pxp-recuento {
	color: var(--pxp-apagado);
	font-size: 14px;
	margin: 0 0 16px;
}

/* ------------------------------------------------------------------ *
 * Cuadrícula
 * ------------------------------------------------------------------ */

.pxp-rejilla {
	display: grid;
	gap: 22px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	transition: opacity 0.15s ease;
}

.pxp-rejilla[data-columnas="1"] { grid-template-columns: minmax(0, 1fr); }
.pxp-rejilla[data-columnas="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pxp-rejilla[data-columnas="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.pxp-rejilla.pxp-atenuado {
	opacity: 0.45;
}

.pxp-tarjeta {
	display: flex;
	flex-direction: column;
	background: var(--pxp-fondo);
	border: 1px solid var(--pxp-borde);
	border-radius: var(--pxp-radio);
	overflow: hidden;
	box-shadow: var(--pxp-sombra);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pxp-tarjeta:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 26px rgba(13, 59, 96, 0.14);
}

.pxp-tarjeta-imagen {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--pxp-azul-suave);
	overflow: hidden;
}

.pxp-tarjeta-imagen img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pxp-sin-foto {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #9dc4dc;
}

.pxp-sin-foto svg {
	width: 54px;
	height: 54px;
}

.pxp-tarjeta-cuerpo {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 18px;
	gap: 10px;
}

.pxp-badge {
	display: inline-block;
	align-self: flex-start;
	margin: 0;
	padding: 5px 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pxp-marino);
	background: var(--pxp-azul-suave);
	border-radius: 999px;
}

.pxp-tarjeta-titulo {
	margin: 0;
	font-size: 20px;
	line-height: 1.25;
	color: var(--pxp-marino);
}

.pxp-tarjeta-titulo a {
	color: inherit;
	text-decoration: none;
}

.pxp-tarjeta-titulo a:hover {
	color: var(--pxp-azul);
}

.pxp-tarjeta-texto {
	margin: 0;
	font-size: 14px;
	color: var(--pxp-apagado);
	flex: 1;
}

.pxp-tarjeta-lugar {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding-top: 12px;
	border-top: 1px solid var(--pxp-borde);
	font-size: 13px;
	color: var(--pxp-apagado);
}

.pxp-tarjeta-lugar svg {
	width: 14px;
	height: 14px;
	flex: none;
}

.pxp-vacio-mensaje {
	padding: 26px;
	text-align: center;
	color: var(--pxp-apagado);
	background: var(--pxp-azul-suave);
	border-radius: var(--pxp-radio);
}

/* ------------------------------------------------------------------ *
 * Paginación y carga
 * ------------------------------------------------------------------ */

.pxp-paginacion {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 28px;
}

.pxp-pagina {
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--pxp-borde);
	background: var(--pxp-fondo);
	border-radius: 10px;
	color: var(--pxp-marino);
	font-size: 15px;
	cursor: pointer;
}

.pxp-pagina:hover:not(:disabled) {
	border-color: var(--pxp-azul);
	color: var(--pxp-azul);
}

.pxp-pagina-activa,
.pxp-pagina-activa:hover {
	background: var(--pxp-marino);
	border-color: var(--pxp-marino);
	color: #fff;
}

.pxp-pagina:disabled {
	opacity: 0.4;
	cursor: default;
}

.pxp-cargando {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 18px;
}

.pxp-cargando span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--pxp-azul);
	animation: pxp-latido 0.9s infinite ease-in-out;
}

.pxp-cargando span:nth-child(2) { animation-delay: 0.15s; }
.pxp-cargando span:nth-child(3) { animation-delay: 0.3s; }

@keyframes pxp-latido {
	0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); }
	40% { opacity: 1; transform: scale(1); }
}

/* ------------------------------------------------------------------ *
 * Ficha
 * ------------------------------------------------------------------ */

.pxp-ficha-superior {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
	gap: 26px;
	/* Las dos columnas ocupan lo mismo: así la galería crece hasta la altura
	   de las cajas del lateral y no queda hueco debajo. */
	align-items: stretch;
}

.pxp-ficha-principal {
	display: flex;
	min-width: 0;
}

.pxp-ficha-lateral {
	align-self: start;
}

.pxp-galeria {
	position: relative;
	flex: 1 1 auto;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: minmax(150px, 1fr);
	gap: 12px;
	padding: 14px;
	overflow: hidden;
	background: var(--pxp-cristal);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
	border: 1px solid var(--pxp-cristal-borde);
	border-radius: var(--pxp-radio);
	box-shadow: var(--pxp-cristal-sombra);
}

/* Reflejo diagonal del cristal. */
.pxp-galeria::before,
.pxp-caja::before {
	content: "";
	position: absolute;
	top: -60%;
	left: -20%;
	width: 90%;
	height: 200%;
	transform: rotate(18deg);
	background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
	pointer-events: none;
	z-index: 0;
}

.pxp-galeria-item {
	position: relative;
	z-index: 1;
	min-height: 150px;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(13, 59, 96, 0.14);
}

.pxp-galeria-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.pxp-galeria-item:hover img {
	transform: scale(1.04);
}

.pxp-galeria[data-total="1"] {
	grid-template-columns: minmax(0, 1fr);
}

.pxp-caja {
	position: relative;
	overflow: hidden;
	padding: 20px;
	background: var(--pxp-cristal);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
	border: 1px solid var(--pxp-cristal-borde);
	border-radius: var(--pxp-radio);
	box-shadow: var(--pxp-cristal-sombra);
}

.pxp-caja > * {
	position: relative;
	z-index: 1;
}

.pxp-caja + .pxp-caja {
	margin-top: 18px;
}

.pxp-caja-titulo {
	margin: 0 0 4px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--pxp-borde);
	font-size: 17px;
	color: var(--pxp-marino);
}

.pxp-dato {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding-top: 16px;
}

.pxp-dato-icono {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: var(--pxp-azul-suave);
	color: var(--pxp-azul);
}

.pxp-dato-icono svg {
	width: 18px;
	height: 18px;
}

.pxp-dato-texto {
	display: flex;
	flex-direction: column;
}

.pxp-dato-etiqueta {
	font-size: 12px;
	color: var(--pxp-apagado);
}

.pxp-dato-valor {
	font-size: 15px;
	font-weight: 600;
	color: var(--pxp-marino);
}

.pxp-caja-cta {
	background: var(--pxp-cristal-azul);
	border-color: rgba(255, 255, 255, 0.35);
	color: #fff;
	box-shadow: 0 12px 30px rgba(13, 59, 96, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.pxp-caja-cta::before {
	background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}

.pxp-cta-titulo {
	margin: 0 0 8px;
	font-size: 19px;
	color: #fff;
}

.pxp-cta-texto {
	margin: 0 0 16px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.85);
}

.pxp-cta-boton {
	display: inline-block;
	padding: 11px 20px;
	background: var(--pxp-azul);
	color: #fff;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.pxp-cta-boton:hover {
	background: #fff;
	color: var(--pxp-marino);
}

.pxp-ficha-contenido {
	margin-top: 34px;
}

.pxp-eyebrow {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pxp-azul);
}

.pxp-descripcion {
	font-size: 16px;
	color: var(--pxp-texto);
}

/* ------------------------------------------------------------------ *
 * Datos técnicos y marcas
 * ------------------------------------------------------------------ */

.pxp-tecnica,
.pxp-marcas,
.pxp-relacionados {
	margin-top: 34px;
}

.pxp-tecnica-titulo,
.pxp-marcas-titulo,
.pxp-relacionados-titulo {
	margin: 0 0 16px;
	font-size: 20px;
	color: var(--pxp-marino);
}

.pxp-tecnica-lista {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 12px;
	margin: 0;
}

.pxp-tecnica-fila {
	padding: 14px 16px;
	background: var(--pxp-azul-suave);
	border-radius: 12px;
}

.pxp-tecnica-fila dt {
	font-size: 12px;
	color: var(--pxp-apagado);
	margin: 0 0 4px;
}

.pxp-tecnica-fila dd {
	margin: 0;
	font-size: 19px;
	font-weight: 700;
	color: var(--pxp-marino);
}

.pxp-marcas-lista {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pxp-marca {
	padding: 9px 16px;
	border: 1px solid var(--pxp-borde);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: var(--pxp-marino);
	background: var(--pxp-fondo);
}

/* Logotipos de marca: sin pastilla, sin marco y, sobre todo, sin recorte.
 * El tema y Elementor le meten a las imágenes bordes redondeados, relación de
 * aspecto fija y object-fit: cover. Con un logotipo apaisado eso le comía los
 * laterales (la D y la N de Daikin) y le redondeaba la punta del triángulo,
 * como si estuviera dentro de una máscara circular. Aquí se anula todo lo que
 * pueda recortar, enmascarar o enmarcar la imagen. */
.pxp .pxp-marcas-lista .pxp-marca-logo,
.pxp-marca-logo {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	overflow: visible !important;
	clip-path: none !important;
	-webkit-mask-image: none !important;
	mask-image: none !important;
	mask: none !important;
	aspect-ratio: auto !important;
}

.pxp .pxp-marcas-lista .pxp-marca-logo img,
.pxp .pxp-marcas-lista .pxp-marca-logo picture,
.pxp .pxp-marcas-lista .pxp-marca-logo picture img,
.pxp-marca-logo img,
.pxp-marca-logo picture,
.pxp-marca-logo picture img {
	display: block;
	width: auto !important;
	max-width: 100% !important;
	height: auto !important;
	max-height: 48px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	object-fit: contain !important;
	object-position: center !important;
	aspect-ratio: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	filter: none !important;
	overflow: visible !important;
	clip-path: none !important;
	-webkit-mask-image: none !important;
	mask-image: none !important;
	mask: none !important;
	vertical-align: middle;
}

/* ------------------------------------------------------------------ *
 * Mapa
 * ------------------------------------------------------------------ */

.pxp-mapa-bloque {
	margin-top: 34px;
}

.pxp-mapa {
	width: 100%;
	min-height: 220px;
	border-radius: var(--pxp-radio);
	overflow: hidden;
	border: 1px solid var(--pxp-borde);
	z-index: 0;
}

/* Dirección bajo el mapa, con enlace a Google Maps para abrir la ruta. */
.pxp-mapa-direccion {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 12px 0 0;
	font-size: 14px;
	color: var(--pxp-texto-suave, #4a5568);
}

.pxp-mapa-direccion a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}

.pxp-mapa-direccion a:hover,
.pxp-mapa-direccion a:focus {
	color: var(--pxp-azul, #0b2a4a);
}

.pxp-mapa-direccion .pxp-dato-icono {
	display: inline-flex;
	flex: 0 0 auto;
}

.pxp-mapa-sin-coordenadas .pxp-mapa-direccion {
	margin-top: 0;
}

.pxp-mapa-listado {
	margin-bottom: 26px;
}

.pxp-mapa-pie {
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--pxp-apagado);
}

/* ------------------------------------------------------------------ *
 * Visor de imágenes
 * ------------------------------------------------------------------ */

.pxp-visor {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(8, 30, 48, 0.92);
	z-index: 99999;
	padding: 40px;
}

.pxp-visor-abierto {
	display: flex;
}

.pxp-visor img {
	max-width: 100%;
	max-height: 100%;
	border-radius: 10px;
	object-fit: contain;
}

.pxp-visor button {
	position: absolute;
	background: rgba(255, 255, 255, 0.14);
	border: 0;
	color: #fff;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.pxp-visor button:hover {
	background: rgba(255, 255, 255, 0.3);
}

.pxp-visor-cerrar { top: 20px; right: 20px; }
.pxp-visor-anterior { left: 20px; }
.pxp-visor-siguiente { right: 20px; }

body.pxp-sin-scroll {
	overflow: hidden;
}

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

@media (max-width: 980px) {
	.pxp-ficha-superior {
		grid-template-columns: minmax(0, 1fr);
	}

	/* En una sola columna la galería ya no tiene lateral que igualar. */
	.pxp-galeria {
		grid-auto-rows: auto;
	}

	.pxp-galeria-item {
		min-height: 0;
		aspect-ratio: 4 / 3;
	}

	.pxp-rejilla[data-columnas="4"],
	.pxp-rejilla {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.pxp-rejilla,
	.pxp-rejilla[data-columnas="2"],
	.pxp-rejilla[data-columnas="3"],
	.pxp-rejilla[data-columnas="4"] {
		grid-template-columns: minmax(0, 1fr);
	}

	.pxp-galeria {
		grid-template-columns: minmax(0, 1fr);
	}

	.pxp-visor {
		padding: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pxp-tarjeta,
	.pxp-galeria-item img,
	.pxp-cargando span {
		transition: none;
		animation: none;
	}
}

/* ------------------------------------------------------------------ *
 * Filtros de selección múltiple
 * ------------------------------------------------------------------ */

.pxp-multi {
	position: relative;
	flex: 1 1 180px;
}

.pxp-multi-boton {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 11px 14px;
	font-size: 15px;
	line-height: 1.3;
	color: var(--pxp-texto);
	background: var(--pxp-fondo);
	border: 1px solid var(--pxp-borde);
	border-radius: 10px;
	cursor: pointer;
	text-align: left;
}

.pxp-multi-etiqueta {
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pxp-multi-cuenta {
	flex: 0 0 auto;
	min-width: 20px;
	padding: 1px 6px;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
	background: var(--pxp-azul);
	border-radius: 999px;
	text-align: center;
}

.pxp-multi-activo .pxp-multi-boton {
	border-color: var(--pxp-azul);
}

.pxp-multi-flecha {
	flex: 0 0 auto;
	font-size: 12px;
	color: var(--pxp-apagado);
}

.pxp-multi-panel {
	position: absolute;
	z-index: 30;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	max-height: 280px;
	overflow-y: auto;
	padding: 8px;
	background: var(--pxp-fondo);
	border: 1px solid var(--pxp-borde);
	border-radius: 10px;
	box-shadow: 0 12px 30px rgba(15, 23, 42, .14);
}

.pxp-multi-opcion {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 7px 8px;
	font-size: 14px;
	border-radius: 8px;
	cursor: pointer;
}

.pxp-multi-opcion:hover {
	background: var(--pxp-suave, rgba(15, 23, 42, .05));
}

.pxp-multi-hija {
	padding-left: 24px;
}

.pxp-multi-opcion input {
	margin-top: 2px;
}

/* ------------------------------------------------------------------ */
/* Compartir en redes                                                  */
/* ------------------------------------------------------------------ */

.pxp-compartir {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 24px 0;
}

.pxp-compartir-rotulo {
	font-size: 14px;
	font-weight: 600;
	opacity: .75;
}

.pxp-compartir-lista {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pxp-compartir-enlace {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	font: inherit;
	font-size: 14px;
	line-height: 1;
	color: inherit;
	text-decoration: none;
	background: var(--pxp-suave, rgba(15, 23, 42, .05));
	border: 1px solid var(--pxp-borde, rgba(15, 23, 42, .12));
	border-radius: 999px;
	cursor: pointer;
	transition: background .15s ease, transform .15s ease;
}

.pxp-compartir-enlace:hover,
.pxp-compartir-enlace:focus-visible {
	background: var(--pxp-borde, rgba(15, 23, 42, .12));
	transform: translateY(-1px);
}

.pxp-compartir-enlace svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.pxp-compartir-aviso {
	font-size: 13px;
	opacity: .8;
}

@media (max-width: 600px) {
	.pxp-compartir-enlace span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

/* Enlace a la ficha en PDF. */
.pxp-ficha-pdf {
	margin: 18px 0 0;
}

.pxp-boton-secundario {
	display: inline-block;
	padding: 9px 16px;
	border: 1px solid var(--pxp-borde, #e1ecf3);
	border-radius: 6px;
	color: inherit;
	font-size: 14px;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.pxp-boton-secundario:hover,
.pxp-boton-secundario:focus {
	border-color: var(--pxp-azul, #35a3d9);
	background: var(--pxp-azul-suave, #e4f2fa);
}

/* Apartado «Descripción de la instalación». */
.pxp-instalacion {
	margin: 34px 0 0;
}

.pxp-instalacion-titulo,
.pxp-sistemas-titulo {
	margin: 0 0 14px;
	color: var(--pxp-marino);
	font-size: 21px;
	line-height: 1.3;
}

.pxp-instalacion-texto p {
	margin: 0 0 12px;
}

.pxp-instalacion-texto p:last-child {
	margin-bottom: 0;
}

/* Apartado «Sistemas instalados», agrupado por gamas. */
.pxp-sistemas {
	margin: 34px 0 0;
}

.pxp-gama-bloque {
	margin: 0 0 22px;
	padding: 16px 18px;
	border: 1px solid var(--pxp-borde);
	border-radius: var(--pxp-radio);
	background: var(--pxp-fondo);
}

.pxp-gama-nombre {
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--pxp-azul-suave);
	color: var(--pxp-marino);
	font-size: 17px;
}

.pxp-area-bloque + .pxp-area-bloque {
	margin-top: 14px;
}

.pxp-area-nombre {
	margin: 0 0 6px;
	color: var(--pxp-apagado);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pxp-sistemas-lista {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.pxp-sistema {
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--pxp-azul-suave);
}

.pxp-sistema-nombre {
	display: block;
	font-weight: 600;
}

.pxp-sistema-nombre a {
	color: var(--pxp-marino);
	text-decoration: none;
}

.pxp-sistema-nombre a:hover,
.pxp-sistema-nombre a:focus {
	text-decoration: underline;
}

.pxp-sistema-desc {
	display: block;
	margin-top: 3px;
	color: var(--pxp-apagado);
	font-size: 13.5px;
	line-height: 1.45;
}

@media (max-width: 600px) {
	.pxp-sistemas-lista {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------------------------- *
 * Cabecera de la ficha individual (plantilla del plugin)
 * -------------------------------------------------------------------- */

.pxp-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 380px;
	margin: 0 0 40px;
	padding: 60px 24px;
	background: var(--pxp-marino);
	background-size: cover;
	background-position: center;
	text-align: center;
}

/* Cabecera con vídeo de fondo (archivo de proyectos). El vídeo va detrás del
 * velo y del texto, recortado por el propio hero. */
.pxp-hero-video {
	overflow: hidden;
}

.pxp-hero-medio {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	border: 0;
	border-radius: 0;
	z-index: 0;
	pointer-events: none;
}

.pxp-hero-video .pxp-hero-velo,
.pxp-hero-video .pxp-hero-texto {
	z-index: 1;
}

.pxp-hero-video .pxp-hero-sub p {
	margin: 0;
}

.pxp-hero-video .pxp-hero-sub p + p {
	margin-top: 8px;
}

/* Si el sistema pide menos animación, se congela el vídeo en el póster. */
@media ( prefers-reduced-motion: reduce ) {
	.pxp-hero-medio {
		display: none;
	}
}

.pxp-hero-velo {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(13, 59, 96, 0.78), rgba(13, 59, 96, 0.88));
}

.pxp-hero-texto {
	position: relative;
	max-width: 900px;
	color: #fff;
}

.pxp-hero-rotulo {
	margin: 0 0 10px;
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	opacity: 0.85;
}

.pxp-hero-titulo {
	margin: 0;
	color: #fff;
	font-size: clamp( 28px, 4vw, 46px );
	line-height: 1.15;
}

.pxp-hero-sub {
	margin: 12px 0 0;
	font-size: 15px;
	opacity: 0.9;
}

.pxp-single-cuerpo {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px 60px;
}

/* -------------------------------------------------------------------- *
 * Cabecera del archivo de proyectos
 * -------------------------------------------------------------------- */

.pxp-archivo {
	max-width: 1200px;
	margin: 0 auto;
	padding: 48px 20px 60px;
}

.pxp-archivo-cabecera {
	margin: 0 0 28px;
}

.pxp-archivo-etiqueta {
	display: inline-block;
	margin: 0 0 14px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--pxp-azul-suave, #e4f2fa);
	color: var(--pxp-marino, #0d3b60);
	font-size: 13px;
	font-weight: 600;
}

.pxp-archivo-titulo {
	margin: 0 0 12px;
	color: var(--pxp-marino, #0d3b60);
	font-size: clamp( 26px, 3.4vw, 40px );
	line-height: 1.18;
}

.pxp-archivo-titulo em {
	color: var(--pxp-azul, #35a3d9);
	font-style: italic;
}

.pxp-archivo-entradilla {
	max-width: 720px;
	color: var(--pxp-apagado, #64798a);
}

.pxp-archivo-entradilla p {
	margin: 0 0 8px;
}

@media (max-width: 782px) {
	.pxp-hero {
		min-height: 260px;
		padding: 44px 18px;
	}
}

/* -------------------------------------------------------------------- *
 * Contraste y tamaños
 *
 * El tema y Elementor traen sus propias reglas para los encabezados, con
 * más peso que las del plugin: por eso los títulos salían enormes y del
 * color del tema (ilegibles sobre la cabecera oscura y sobre la caja
 * azul). Estas reglas van marcadas para que manden dentro de la ficha,
 * sin tocar nada de fuera.
 * -------------------------------------------------------------------- */

.pxp-single {
	background: linear-gradient(180deg, #eef6fb 0%, #ffffff 55%);
}

/* Cabecera de la ficha. */
.pxp-single .pxp-hero-velo {
	background: linear-gradient(180deg, rgba(9, 40, 66, 0.72), rgba(9, 40, 66, 0.86));
}

.pxp-single .pxp-hero-rotulo {
	color: rgba(255, 255, 255, 0.88) !important;
	font-size: 12px !important;
	font-weight: 600;
}

.pxp-single .pxp-hero-titulo {
	color: #fff !important;
	font-size: clamp( 24px, 3vw, 38px ) !important;
	line-height: 1.15 !important;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.pxp-single .pxp-hero-sub {
	color: rgba(255, 255, 255, 0.9) !important;
	font-size: 14px !important;
}

/* Cabecera del archivo con vídeo. El tema pinta los titulares en azul marino
 * con más peso que el plugin, y sobre el vídeo no había quien los leyera. Las
 * mismas reglas que ya arreglaban la cabecera de la ficha, pero para /proyectos/. */
.pxp-archivo .pxp-hero-rotulo,
.pxp .pxp-hero-video .pxp-hero-rotulo {
	color: rgba(255, 255, 255, 0.88) !important;
	font-size: 13px !important;
	font-weight: 600;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.pxp-archivo .pxp-hero-titulo,
.pxp .pxp-hero-video .pxp-hero-titulo {
	color: #fff !important;
	font-size: clamp( 28px, 4vw, 46px ) !important;
	line-height: 1.15 !important;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.pxp-archivo .pxp-hero-sub,
.pxp-archivo .pxp-hero-sub p,
.pxp-archivo .pxp-hero-sub a,
.pxp .pxp-hero-video .pxp-hero-sub,
.pxp .pxp-hero-video .pxp-hero-sub p,
.pxp .pxp-hero-video .pxp-hero-sub a {
	color: rgba(255, 255, 255, 0.92) !important;
	font-size: 15px !important;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

/* Cajas del lateral. */
.pxp .pxp-caja .pxp-caja-titulo {
	font-size: 18px !important;
	line-height: 1.3 !important;
	color: var(--pxp-marino) !important;
}

.pxp .pxp-caja-cta .pxp-cta-titulo {
	font-size: 18px !important;
	line-height: 1.3 !important;
	color: #fff !important;
}

.pxp .pxp-caja-cta .pxp-cta-texto {
	color: rgba(255, 255, 255, 0.92) !important;
	font-size: 14px !important;
}

.pxp .pxp-caja-cta .pxp-cta-boton {
	color: #fff !important;
	background: var(--pxp-azul);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.pxp .pxp-caja-cta .pxp-cta-boton:hover {
	color: var(--pxp-marino) !important;
	background: #fff;
}

/* -------------------------------------------------------------------- *
 * Fondos decorativos para fichas y archivo
 * -------------------------------------------------------------------- */

/* Fondo por defecto del sitio — sin cambios. */
.pxp-fondo-defecto {
	background: transparent;
}

/* Acuarela en azul corporativo — manchas suaves. */
.pxp-fondo-acuarela {
	background-color: #f0f5f9;
	background-image:
		radial-gradient(circle at 20% 30%, rgba(53, 163, 217, 0.15) 0%, transparent 40%),
		radial-gradient(circle at 80% 70%, rgba(13, 59, 96, 0.08) 0%, transparent 50%),
		radial-gradient(circle at 40% 80%, rgba(53, 163, 217, 0.1) 0%, transparent 45%);
	background-attachment: fixed;
}

/* Manchas de tinta en azul marino. */
.pxp-fondo-manchas {
	background-color: #f8f9fa;
	background-image:
		url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><filter id="b"><feTurbulence type="fractalNoise" baseFrequency="0.03" numOctaves="3" seed="2" /></filter></defs><g filter="url(%23b)"><ellipse cx="200" cy="150" rx="120" ry="90" fill="rgba(13,59,96,0.06)" /><ellipse cx="1000" cy="700" rx="150" ry="110" fill="rgba(53,163,217,0.05)" /><ellipse cx="600" cy="400" rx="100" ry="80" fill="rgba(13,59,96,0.04)" /></g></svg>');
	background-attachment: fixed;
	background-size: cover;
}

/* Sol naciente en el horizonte. */
.pxp-fondo-sol-naciente {
	background: linear-gradient(180deg, #f0f5f9 0%, #e8f0f7 25%, #fef5e7 50%, #f0f5f9 75%, #f0f5f9 100%);
	background-attachment: fixed;
	position: relative;
}

.pxp-fondo-sol-naciente::before {
	content: "";
	position: fixed;
	bottom: 30%;
	left: 50%;
	width: 150px;
	height: 150px;
	margin-left: -75px;
	background: radial-gradient(circle, rgba(53, 163, 217, 0.2) 0%, rgba(53, 163, 217, 0.05) 70%, transparent 100%);
	border-radius: 50%;
	pointer-events: none;
	z-index: 0;
}

/* Montañas nevadas en acuarela. */
.pxp-fondo-montanas {
	background-color: #f0f5f9;
	background-image:
		/* Cielo */
		linear-gradient(180deg, #e8eef6 0%, #f0f5f9 40%, transparent 100%),
		/* Montañas de atrás (claras) */
		url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,350 L200,250 L400,300 L600,200 L800,280 L1000,220 L1200,300 L1200,600 L0,600 Z" fill="rgba(180,210,240,0.2)" /><path d="M0,400 L150,320 L300,370 L450,300 L600,350 L750,290 L900,340 L1050,310 L1200,380 L1200,600 L0,600 Z" fill="rgba(150,190,230,0.25)" /></svg>');
	background-attachment: fixed;
	background-size: cover;
	background-position: center;
}

/* Textura de papel pintado. */
.pxp-fondo-papel {
	background-color: #f9fafb;
	background-image:
		repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(13, 59, 96, 0.02) 2px, rgba(13, 59, 96, 0.02) 4px),
		repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(13, 59, 96, 0.02) 2px, rgba(13, 59, 96, 0.02) 4px),
		radial-gradient(circle at 30% 40%, rgba(53, 163, 217, 0.04) 0%, transparent 50%);
	background-attachment: fixed;
}

/* Especificidades para que los fondos aparezcan en ficha y archivo. */
.pxp-single.pxp-fondo-acuarela,
.pxp-single.pxp-fondo-manchas,
.pxp-single.pxp-fondo-sol-naciente,
.pxp-single.pxp-fondo-montanas,
.pxp-single.pxp-fondo-papel,
.pxp-archivo.pxp-fondo-acuarela,
.pxp-archivo.pxp-fondo-manchas,
.pxp-archivo.pxp-fondo-sol-naciente,
.pxp-archivo.pxp-fondo-montanas,
.pxp-archivo.pxp-fondo-papel {
	background-attachment: fixed;
}

/* El sol naciente necesita un z-index para que esté detrás del contenido. */
.pxp-single.pxp-fondo-sol-naciente {
	position: relative;
	z-index: 1;
}

.pxp-single.pxp-fondo-sol-naciente::before {
	z-index: -1;
}
