/* Vidas – Productos propios ("Demos disponibles", página Tech)
 * Escritorio (captura ×1.73 = columna de 1392): etiqueta común; a ~1.1cqw titular de 4.6cqw (~64px) en dos tonos
 *   (negrita + fina) y, a su altura desde el 58.3% de la columna, párrafo Light 20/29.
 *   A ~116px, carrusel de tarjetas de 673×552 (radio 18) con 22px entre ellas: caben dos y la tercera asoma por la
 *   derecha hasta el borde de la pantalla. Zona visual de 329px; título de tarjeta SemiBold 40/45.6, texto 20/28.
 * Tablet: tarjetas al 60% de la columna. Móvil: textos apilados y tarjetas al 86% (la siguiente asoma).
 * Las gráficas nuevas (studio, flow, clínica) son SVG de 390×190 (el dibujo del diseño) que escalan con la tarjeta.
 * Puntos del carrusel en todos los dispositivos. Con enlace, en escritorio aparece "Solicitar demo" bajo la tarjeta al
 *   pasar el ratón (Regular 20px subrayado, a 26px de la tarjeta).
 * Fondo degradado y espacios como en Blog.
 */

.vpp {
	--vpp-label: #000;
	--vpp-strong: #000;
	--vpp-light: #000;
	--vpp-text: #000;
	--vpp-card-title: #000;
	--vpp-card-text: #000;
	--vpp-card-bg: #fff;
	--vpp-pill-text: #000;
	--vpp-pill-bg: #fff;
	--vpp-pill-border: #000;
	--vpp-b1-text: #000;
	--vpp-b1-bg: #fff;
	--vpp-b1-border: #000;
	--vpp-b2-text: #fff;
	--vpp-b2-bg: #4e20e4;
	--vpp-g-primary: #4e20e4;
	--vpp-g-cyan: #c4effc;
	--vpp-g-grey: #eeeeee;
	--vpp-g-line: #000;
	--vpp-g-dark: #000;
	--vpp-g-icon: #fff;
	--vpp-dot: rgba(0, 0, 0, 0.2);
	--vpp-dot-on: #4e20e4;
	--vpp-cta: #000;
	--vpp-speed: 50;
	--vpp-max: 1392px;
	--vpp-pad: 60px;

	/* geometría de las tarjetas (escritorio, captura ×1.753 = frame 1512) */
	--vpp-visual-h: 329px;               /* el título de la tarjeta empieza a 329px de su borde */
	--vpp-card-pad: 46px;
	--vpp-pill-h: 77px;
	--vpp-pill-top: 130px;
	--vpp-pill-gap: 32px;
	--vpp-flag-k: 0.70;                  /* bandera respecto al alto de la píldora */

	position: relative;
	width: 100%;
	padding-left: var(--vpp-pad);
	padding-right: var(--vpp-pad);
	box-sizing: border-box;
	overflow-x: clip;                    /* el carrusel llega al borde de la pantalla sin crear scroll en la página */
	font-family: "Soleil", sans-serif;
}

.vpp__inner {
	max-width: var(--vpp-max);
	margin: 0 auto;
	container-type: inline-size;
}

/* ---------- Etiqueta (la de siempre) ---------- */
.vpp__label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-weight: 400;
	font-size: 16px;
	line-height: 26px;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--vpp-label);
}

.vpp__asterisk {
	display: block;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
}

.vpp__label-text {
	display: block;
}

/* ---------- Titular | párrafo ---------- */
.vpp__row {
	display: grid;
	grid-template-columns: var(--vpp-text-x, 58.3%) minmax(0, 1fr);
	align-items: start;
	margin-top: var(--vpp-gap-label, 1.1cqw);
}

.vpp__row.is-solo {
	grid-template-columns: minmax(0, 1fr);
}

.vpp__inner > .vpp__row:first-child {
	margin-top: 0;
}

.vpp__heading {
	grid-column: 1;
	margin: 0;
	padding: 0 3cqw 0 0;
	font-family: inherit;
	font-size: 4.6cqw;
	line-height: 1.03;
	letter-spacing: -0.02em;
}

.vpp__strong {
	font-weight: 600;
	color: var(--vpp-strong);
}

.vpp__light {
	font-weight: 300;
	color: var(--vpp-light);
}

.vpp__text {
	grid-column: 2;
	margin: 0.3cqw 0 0;
	padding: 0;
	font-family: inherit;
	font-weight: 300;
	font-size: 20px;
	line-height: 29px;
	letter-spacing: -0.005em;
	color: var(--vpp-text);
}

/* ---------- Carrusel (todos los dispositivos) ---------- */
.vpp__viewport {
	margin-top: var(--vpp-title-gap, 116px);
	margin-left: calc(50cqw - 50vw);     /* de borde a borde de la pantalla… (100cqw = ancho de la columna) */
	margin-right: calc(50cqw - 50vw);
	padding: 0 calc(50vw - 50cqw);       /* …con la primera tarjeta alineada a la columna */
	scroll-padding: 0 calc(50vw - 50cqw);
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	cursor: grab;
}

.vpp__viewport::-webkit-scrollbar {
	display: none;
}

.vpp__inner > .vpp__viewport:first-child {
	margin-top: 0;
}

.vpp__viewport.is-dragging {
	scroll-snap-type: none;
	cursor: grabbing;
	user-select: none;
}

.vpp__viewport.is-dragging .vpp__card {
	pointer-events: none;
}

.vpp__rail {
	display: flex;
	gap: var(--vpp-cards-gap, 22px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.vpp__rail::after {
	content: "";
	flex: 0 0 1px;
}

.vpp__slide {
	position: relative;
	display: flex;
	flex: 0 0 var(--vpp-card-w, calc((100% - 2 * var(--vpp-cards-gap, 22px)) / 2));
	min-width: 0;
	margin: 0;
	padding: 0;
	scroll-snap-align: start;
}

/* ---------- Tarjeta ---------- */
.vpp__card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 552px;
	overflow: hidden;
	border-radius: 18px;
	background: var(--vpp-card-bg);
	box-sizing: border-box;
	isolation: isolate;
}

.vpp__visual {
	position: relative;
	flex: 0 0 auto;
	height: var(--vpp-visual-h);
	overflow: hidden;
}

.vpp__body {
	padding: 0 var(--vpp-card-pad) var(--vpp-card-pad);
}

.vpp__card-title {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-weight: 600;
	font-size: 40px;
	line-height: 45.6px;
	letter-spacing: -0.02em;
	color: var(--vpp-card-title);
}

.vpp__em {
	font-style: italic;
	font-weight: 700;
}

.vpp__card-text {
	margin: 33px 0 0;
	padding: 0;
	font-family: inherit;
	font-weight: 300;
	font-size: 20px;
	line-height: 28px;
	letter-spacing: -0.01em;
	color: var(--vpp-card-text);
}

.vpp__card-title + .vpp__card-text {
	margin-top: 33px;
}

.vpp__body > .vpp__card-text:first-child {
	margin-top: 0;
}

.vpp .vpp__card-link {
	position: absolute;
	inset: 0;
	z-index: 5;
	border-radius: inherit;
	background: none;
}

.vpp .vpp__card-link:focus-visible {
	outline: 2px solid var(--vpp-dot-on);
	outline-offset: -2px;
}

.vpp .vpp__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
}

/* ---------- Texto del enlace bajo la tarjeta (solo escritorio, al pasar el ratón) ---------- */
.vpp .vpp__cta {
	display: none;
}

@media (hover: hover) and (min-width: 1025px) {
	.vpp__viewport.has-cta .vpp__rail {
		padding-bottom: 64px;               /* sitio para el texto, así no salta nada al aparecer */
	}

	/* Puente invisible: mientras el ratón está sobre la tarjeta, la zona de debajo (hasta el texto) también cuenta
	 * como "encima", así se puede bajar a hacer clic sin que el texto desaparezca por el camino. */
	.vpp__viewport.has-cta .vpp__slide:hover::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		height: 64px;
	}

	.vpp .vpp__cta,
	.vpp .vpp__cta:visited {
		position: absolute;
		left: 50%;
		top: calc(100% + 26px);
		z-index: 1;
		display: inline-block;
		padding: 0 0 4px;
		font-family: inherit;
		font-weight: 400;
		font-size: 20px;
		line-height: 1.2;
		letter-spacing: -0.01em;
		white-space: nowrap;
		color: var(--vpp-cta);
		text-decoration: none;
		background: linear-gradient(currentColor, currentColor) 50% 100% / 0% 1px no-repeat;
		opacity: 0;
		visibility: hidden;
		transform: translate(-50%, -8px);
		/* al salir espera un momento antes de irse (tolera un movimiento torcido del ratón) */
		transition: opacity 0.3s ease 0.25s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.25s, background-size 0.4s ease 0.25s, visibility 0s linear 0.55s;
	}

	.vpp .vpp__slide:hover .vpp__cta,
	.vpp .vpp__slide:focus-within .vpp__cta {
		opacity: 1;
		visibility: visible;
		transform: translate(-50%, 0);
		background-size: 100% 1px;
		transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), background-size 0.5s cubic-bezier(0.65, 0, 0.35, 1) 0.1s, visibility 0s;
	}

	.vpp .vpp__cta:hover {
		color: var(--vpp-cta);
		text-decoration: none;
	}
}

/* ---------- Puntos ---------- */
.vpp__pager {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 2px;
	margin-top: 26px;
}

.vpp__pager.is-hidden {
	display: none;
}

.vpp .vpp__page,
.vpp .vpp__page:hover,
.vpp .vpp__page:focus {
	position: relative;
	display: block;
	width: auto;
	min-width: 0;
	height: 24px;
	min-height: 0;
	margin: 0;
	padding: 0 4px;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	line-height: 0;
	cursor: pointer;
}

.vpp .vpp__page::before {
	content: "";
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--vpp-dot);
	transition: width 0.4s cubic-bezier(0.65, 0, 0.35, 1), background-color 0.3s ease;
}

.vpp .vpp__page.is-active::before {
	width: 26px;
	background: var(--vpp-dot-on);
}

.vpp .vpp__page:focus-visible {
	outline: 2px solid var(--vpp-dot-on);
	outline-offset: 0;
	border-radius: 999px;
}

/* ---------- Marquesina de idiomas (de borde a borde de la tarjeta) ---------- */
.vpp__marquee {
	position: absolute;
	left: 0;
	right: 0;
	top: var(--vpp-pill-top);
	overflow: hidden;
}

.vpp__track {
	display: flex;
	width: max-content;
	will-change: transform;
}

.vpp__group {
	display: flex;
	flex: 0 0 auto;
	gap: var(--vpp-pill-gap);
	margin: 0;
	padding: 0 var(--vpp-pill-gap) 0 0;     /* la separación también entre la última y la primera de la copia */
	list-style: none;
}

.vpp__pill {
	display: inline-flex;
	align-items: center;
	gap: calc(var(--vpp-pill-h) * 0.23);
	height: var(--vpp-pill-h);
	margin: 0;
	padding: 0 calc(var(--vpp-pill-h) * 0.5) 0 calc(var(--vpp-pill-h) * 0.13);
	border: 1px solid var(--vpp-pill-border);
	border-radius: 999px;
	background: var(--vpp-pill-bg);
	box-sizing: border-box;
	font-family: inherit;
	font-weight: 400;
	font-size: calc(var(--vpp-pill-h) * 0.4);
	line-height: 1;
	white-space: nowrap;
	color: var(--vpp-pill-text);
}

.vpp__flag {
	display: block;
	flex: 0 0 auto;
	width: calc(var(--vpp-pill-h) * var(--vpp-flag-k));
	height: calc(var(--vpp-pill-h) * var(--vpp-flag-k));
	border-radius: 50%;
	overflow: hidden;
	background: #ddd;
}

.vpp__flag svg,
.vpp__flag-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------- Chat (escritorio: burbujas de 91px, texto 16/24) ---------- */
.vpp__chat {
	position: absolute;
	inset: 0;
}

.vpp__bubble {
	position: absolute;
	display: flex;
	align-items: center;
	min-height: 91px;
	max-width: calc(100% - 2 * var(--vpp-card-pad));
	padding: 21px 40px;
	border-radius: 999px;
	box-sizing: border-box;
	font-family: inherit;
	font-weight: 300;
	font-size: 16px;
	line-height: 24px;
	letter-spacing: -0.01em;
}

.vpp__bubble--1 {
	left: 46px;
	top: 49px;
	border: 1px solid var(--vpp-b1-border);
	background: var(--vpp-b1-bg);
	color: var(--vpp-b1-text);
}

.vpp__bubble--2 {
	right: 40px;
	top: 168px;
	background: var(--vpp-b2-bg);
	color: var(--vpp-b2-text);
}

/* el texto "fantasma" reserva el tamaño final; el texto escrito va encima */
.vpp__ghost {
	visibility: hidden;
	white-space: nowrap;
}

.vpp__typed {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	padding: inherit;
	white-space: nowrap;
}

.vpp__bubble .vpp__dots {
	position: absolute;
	left: 50%;
	top: 50%;
	display: flex;
	gap: 6px;
	transform: translate(-50%, -50%);
	opacity: 0;
}

.vpp__bubble .vpp__dots i {
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.55;
}

/* colas: blanca abajo a la izquierda, morada abajo a la derecha (25×25) */
.vpp__tail {
	position: absolute;
	bottom: -24px;
	width: 25px;
	height: 25px;
	overflow: visible;
}

.vpp__bubble--1 .vpp__tail { left: 49px; }
.vpp__bubble--2 .vpp__tail { right: 51px; }

.vpp__bubble--1 .vpp__tail-fill { fill: var(--vpp-b1-bg); transform: translateY(-1.5px); }
.vpp__bubble--1 .vpp__tail-line { stroke: var(--vpp-b1-border); stroke-width: 1; vector-effect: non-scaling-stroke; transform: translateY(-1px); }
.vpp__bubble--2 .vpp__tail-fill { fill: var(--vpp-b2-bg); transform: translateY(-1.5px); }
.vpp__bubble--2 .vpp__tail-line { stroke: none; }

.vpp__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Gráficas en SVG (studio, flow, clínica) ---------- */
.vpp__svg {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.vpp__g-grey    { fill: var(--vpp-g-grey); }
.vpp__g-cyan    { fill: var(--vpp-g-cyan); }
.vpp__g-primary { fill: var(--vpp-g-primary); }
.vpp__g-ico     { fill: var(--vpp-g-icon); }
.vpp__g-dark    { fill: var(--vpp-g-dark); }

.vpp__g-bubble,
.vpp__g-ring {
	fill: var(--vpp-card-bg);
	stroke: var(--vpp-g-line);
	stroke-opacity: 0.55;
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
}

.vpp__g-stroke {
	fill: none;
	stroke: var(--vpp-g-line);
	stroke-opacity: 0.55;
	stroke-width: 1;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
}

.vpp__g-route {
	fill: none;
	stroke: var(--vpp-g-line);
	stroke-opacity: 0.3;
	stroke-width: 1.6;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
}

.vpp__g-ico-stroke {
	fill: none;
	stroke: var(--vpp-g-icon);
	stroke-width: 1.2;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.vpp__g-door {
	fill: none;
	stroke: var(--vpp-g-icon);
	stroke-width: 1.2;
	vector-effect: non-scaling-stroke;
}

.vpp__g-land {
	fill: none;
	stroke: var(--vpp-g-line);
	stroke-opacity: 0.55;
	stroke-width: 1;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.vpp__f-pax {
	opacity: 0;
}

/* Presupuestos */
.vpp__b-dash {
	stroke: var(--vpp-g-cyan);
	stroke-width: 4.6;
	stroke-linecap: round;
}

.vpp__b-sym {
	fill: var(--vpp-g-line);
	font-family: inherit;
	font-weight: 300;
	font-size: 22px;
}

.vpp__b-euro {
	fill: none;
	stroke: var(--vpp-g-line);
	stroke-width: 1.1;
	stroke-linecap: butt;
	vector-effect: non-scaling-stroke;
}

.vpp__b-text {
	fill: var(--vpp-card-text);
	font-family: inherit;
	font-weight: 300;
	font-size: 11.2px;
	letter-spacing: -0.01em;
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.vpp {
		--vpp-visual-h: 240px;
		--vpp-card-pad: 32px;
		--vpp-pill-h: 56px;
		--vpp-pill-top: 94px;
		--vpp-pill-gap: 24px;
	}

	.vpp__heading { font-size: 5.6cqw; }
	.vpp__text { font-size: 18px; line-height: 27px; }

	.vpp__viewport { margin-top: var(--vpp-title-gap, 80px); }
	.vpp__rail { gap: var(--vpp-cards-gap, 18px); }
	.vpp__slide { flex-basis: var(--vpp-card-w, 60%); }

	.vpp__card { min-height: 400px; }
	.vpp__card-title { font-size: 29px; line-height: 33px; }
	.vpp__card-text,
	.vpp__card-title + .vpp__card-text { margin-top: 22px; font-size: 16px; line-height: 22px; }

	.vpp__bubble { min-height: 66px; padding: 14px 28px; font-size: 13px; line-height: 18px; }
	.vpp__bubble--1 { left: 32px; top: 34px; }
	.vpp__bubble--2 { right: 28px; top: 122px; }
	.vpp__tail { bottom: -17px; width: 18px; height: 18px; }
	.vpp__bubble--1 .vpp__tail { left: 35px; }
	.vpp__bubble--2 .vpp__tail { right: 37px; }
}

/* ---------- Móvil ---------- */
@media (max-width: 767px) {
	.vpp {
		--vpp-pad: 17px;
		--vpp-visual-h: 169px;
		--vpp-card-pad: 24px;
		--vpp-pill-h: 36px;
		--vpp-pill-top: 72px;
		--vpp-pill-gap: 20px;
		--vpp-speed: 35;
		--vpp-flag-k: 0.78;
	}

	.vpp__label {
		gap: 8px;
		font-size: 11px;
		line-height: 18px;
	}

	.vpp__asterisk {
		width: 14px;
		height: 14px;
	}

	.vpp__row {
		display: block;
		margin-top: var(--vpp-gap-label, 3cqw);
	}

	.vpp__heading {
		padding: 0;
		font-size: 10.6cqw;
		line-height: 1.06;
	}

	.vpp__br {
		display: none;
	}

	.vpp__text {
		margin-top: 5cqw;
		padding-left: var(--vpp-text-x, 0%);
		font-size: 17px;
		line-height: 25px;
	}

	.vpp__viewport { margin-top: var(--vpp-title-gap, 44px); }
	.vpp__rail { gap: var(--vpp-cards-gap, 14px); }
	.vpp__slide { flex-basis: var(--vpp-card-w, 86%); }

	.vpp__card {
		min-height: 0;
		border-radius: 14px;
	}

	.vpp__body {
		padding: 0 24px 23px;
	}

	.vpp__card-title {
		font-size: 26px;
		line-height: 31px;
	}

	.vpp__card-title .vpp__br {
		display: inline;
	}

	.vpp__card-text,
	.vpp__card-title + .vpp__card-text {
		margin-top: 16px;
		font-size: 15px;
		line-height: 19.3px;
	}

	.vpp__pager {
		margin-top: 18px;
	}

	.vpp__bubble {
		min-height: 50px;
		padding: 9px 20px;
		font-size: 13px;
		line-height: 16.5px;
	}

	.vpp__bubble--1 { left: 23px; top: 26px; }
	.vpp__bubble--2 { right: 19px; top: 80px; }

	.vpp__bubble .vpp__dots { gap: 4px; }
	.vpp__bubble .vpp__dots i { width: 5px; height: 5px; }

	.vpp__tail { bottom: -13px; width: 20px; height: 14px; }
	.vpp__bubble--1 .vpp__tail { left: 24px; }
	.vpp__bubble--2 .vpp__tail { right: 42px; }
}

@media (prefers-reduced-motion: reduce) {
	.vpp__bubble .vpp__dots { display: none; }
	.vpp .vpp__page::before { transition: none; }
}