/* =============================================================================
   Widget: Profic Casos de Éxito (Home)
   Figma 70:1493 / 70:1492 / 70:1491 + Sites REFLOW
   Desktop: pad 140/0/120, Frame90 full 1280, Card A 1040, Card B pad 120
   Tablet:  pad 140/96/120, cards 608 stacked gap 24
   Mobile:  pad 120/0/120, cards pad 40/30, gap 30
   ============================================================================= */

.elementor-widget-profic_casos_exito,
.elementor-widget-profic_casos_exito:not(:last-child),
.elementor-widget-profic_casos_exito > .elementor-widget-container {
	margin: 0 !important;
	margin-block-end: 0 !important;
	padding: 0 !important;
	max-width: 100%;
	width: 100%;
}

.profic-casos-exito-wrapper {
	position: relative;
	width: 100%;
	padding: 120px 0;
	background-color: transparent;
	overflow: visible;
	isolation: auto;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 99px;
}

@media (min-width: 800px) and (max-width: 1279px) {
	.profic-casos-exito-wrapper {
		padding: 140px 96px 120px;
	}
}

@media (min-width: 1280px) {
	.profic-casos-exito-wrapper {
		/* Sin pad lateral: Frame 90 es full-bleed 1280 (Card B pad 120) */
		padding: 140px 0 120px;
	}
}

/* ----- Fondos ----- */
.profic-casos-exito-backgrounds {
	position: absolute;
	top: 0;
	left: 50%;
	width: 375px;
	min-height: 100%;
	height: 100%;
	margin-left: -187.5px;
	pointer-events: none;
	z-index: 0;
	overflow: visible;
}

@media (min-width: 800px) and (max-width: 1279px) {
	.profic-casos-exito-backgrounds {
		width: 800px;
		margin-left: -400px;
	}
}

@media (min-width: 1280px) {
	.profic-casos-exito-backgrounds {
		width: 1280px;
		margin-left: -640px;
	}
}

.profic-casos-exito-stroke-bg,
.profic-casos-exito-line-bg {
	position: absolute;
	pointer-events: none;
	display: none;
	opacity: 1;
}

.profic-casos-exito-stroke-bg svg,
.profic-casos-exito-line-bg svg {
	display: block;
	width: 100%;
	height: 100%;
}

.profic-casos-exito-stroke-bg.show-desktop {
	left: 0;
	top: 1210.5px;
	width: 1281px;
	height: 301.16px;
}

.profic-casos-exito-line-bg.show-desktop {
	left: -131px;
	top: 1323.5px;
	width: 1600px;
	height: 1116px;
}

.profic-casos-exito-stroke-bg.show-tablet {
	left: -20.86px;
	top: 865.73px;
	width: 840.71px;
	height: 199.53px;
}

.profic-casos-exito-line-bg.show-tablet {
	left: -371px;
	top: 1639.5px;
	width: 1600px;
	height: 1116px;
}

.profic-casos-exito-stroke-bg.show-mobile {
	left: -538px;
	top: 1387.58px;
	width: 1453px;
	height: 243px;
}

.profic-casos-exito-line-bg.show-mobile {
	left: -283px;
	top: 1471.5px;
	width: 1600px;
	height: 1116px;
}

@media (max-width: 799px) {
	.profic-casos-exito-stroke-bg.show-desktop,
	.profic-casos-exito-stroke-bg.show-tablet,
	.profic-casos-exito-line-bg.show-desktop,
	.profic-casos-exito-line-bg.show-tablet {
		display: none;
	}
	.profic-casos-exito-stroke-bg.show-mobile,
	.profic-casos-exito-line-bg.show-mobile {
		display: block;
	}
}

@media (min-width: 800px) and (max-width: 1279px) {
	.profic-casos-exito-stroke-bg.show-desktop,
	.profic-casos-exito-stroke-bg.show-mobile,
	.profic-casos-exito-line-bg.show-desktop,
	.profic-casos-exito-line-bg.show-mobile {
		display: none;
	}
	.profic-casos-exito-stroke-bg.show-tablet,
	.profic-casos-exito-line-bg.show-tablet {
		display: block;
	}
}

@media (min-width: 1280px) {
	.profic-casos-exito-stroke-bg.show-tablet,
	.profic-casos-exito-stroke-bg.show-mobile,
	.profic-casos-exito-line-bg.show-tablet,
	.profic-casos-exito-line-bg.show-mobile {
		display: none !important;
	}
	.profic-casos-exito-stroke-bg.show-desktop,
	.profic-casos-exito-line-bg.show-desktop {
		display: block;
	}
}

/* ----- Cabecera — Título gap 47, pad 24 ----- */
.profic-casos-exito-header {
	position: relative;
	width: 100%;
	max-width: 1088px; /* 1280 − 96×2 */
	padding: 0 24px;
	margin: 0;
	text-align: center;
	z-index: 2;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 47px;
}

.profic-casos-exito-title {
	margin: 0;
	padding: 0;
	font-family: "Amsi Pro", sans-serif;
	font-weight: 300;
	font-size: 34px;
	line-height: 40.8px;
	color: #ffffff;
}

.profic-casos-exito-subtitle {
	margin: 0;
	padding: 0;
	font-family: "Amsi Pro", sans-serif;
	font-weight: 300;
	font-size: 14px;
	line-height: 21px;
	letter-spacing: 0.01em;
	color: #d8d8d8;
	max-width: 327px;
}

@media (min-width: 800px) {
	.profic-casos-exito-title {
		font-size: 36px;
		line-height: 43.2px;
	}
	.profic-casos-exito-subtitle {
		font-size: 15px;
		line-height: 22.5px;
		letter-spacing: 0.01em;
		max-width: 560px;
	}
}

@media (min-width: 1280px) {
	.profic-casos-exito-title {
		font-size: 45px;
		line-height: 54px;
	}
	.profic-casos-exito-subtitle {
		font-size: 17px;
		line-height: 25.5px;
		letter-spacing: 0.01em;
		max-width: 628px;
	}
}

/* ----- Lista — gaps Frame 90: M 185 · T 60 · D 40 ----- */
.profic-casos-exito-list {
	position: relative;
	width: 100%;
	max-width: 1280px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 185px;
	z-index: 2;
	box-sizing: border-box;
}

@media (min-width: 800px) and (max-width: 1279px) {
	.profic-casos-exito-list {
		gap: 60px;
	}
}

@media (min-width: 1280px) {
	.profic-casos-exito-list {
		gap: 40px;
	}
}

/* ----- Card — radius 42 ----- */
.profic-case-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	/* Mobile Card A: pad 40/30, gap 30 */
	gap: 30px;
	width: 100%;
	max-width: 375px;
	margin: 0 auto;
	padding: 40px 30px;
	border-radius: 42px;
	box-sizing: border-box;
	will-change: transform, opacity;
}

/* Mobile Card B (Farmashop) — Figma 202:5079 / 202:5081:
 * Frame D y=-21.5 → logo visible a ~22px del top del card;
 * Frame D abusa con Frame C (gap 0); texto inset 30 (Grupo x=30). */
.profic-case-card.layout-mockup_left {
	padding: 40px 0;
}

.profic-case-card.layout-mockup_left .profic-case-card-text-col {
	padding: 0 30px;
	box-sizing: border-box;
}

@media (max-width: 799px) {
	.profic-case-card.layout-mockup_left {
		padding: 22px 0 0;
		gap: 0;
	}
}

@media (max-width: 479px) {
	.profic-casos-exito-subtitle {
		max-width: none;
		padding: 0 24px;
	}

	/* Card se queda en 375 (pad 30 → texto 315) como Figma 1:1664.
	 * max-width:100% ensanchaba el título a 3 líneas en iPhone 16 Pro Max. */
}

@media (prefers-reduced-motion: reduce) {
	.profic-case-card {
		will-change: auto;
	}
}

@media (min-width: 800px) and (max-width: 1279px) {
	.profic-case-card {
		/* Tablet: 608, stack; gap cruzado wrap = 24 */
		max-width: 608px;
		width: 100%;
		gap: 24px;
		padding: 40px 0;
		align-items: center;
	}

	.profic-case-card.layout-mockup_left {
		padding: 40px 12px;
	}

	.profic-case-card.layout-mockup_left .profic-case-card-text-col {
		padding: 0;
	}
}

@media (min-width: 1280px) {
	.profic-case-card {
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		gap: 90px;
		max-width: 1040px;
		width: 100%;
		padding: 40px 0;
	}

	.profic-case-card.layout-mockup_left {
		flex-direction: row-reverse;
		justify-content: flex-end;
		max-width: 1280px;
		padding: 40px 120px;
		gap: 90px;
	}

	.profic-case-card.layout-mockup_left .profic-case-card-text-col {
		padding: 0;
	}
}

/* ----- Text col = Grupo Caso gap 24 -----
 * Mobile: izquierda (Figma 202:5038).
 * Tablet 800–1279: centrado (Figma 202:4677) — logo, título, desc, stats, btn.
 * Este bloque va DESPUÉS de la base para que no lo pise align-items: flex-start. */
.profic-case-card-text-col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 28px;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

@media (min-width: 800px) and (max-width: 1279px) {
	.profic-casos-exito-wrapper .profic-case-card-text-col {
		max-width: 100%;
		align-items: center;
		text-align: center;
	}

	.profic-casos-exito-wrapper .profic-case-card-client-logo {
		width: 100%;
		justify-content: center;
	}

	.profic-casos-exito-wrapper h3.profic-case-card-title,
	.profic-casos-exito-wrapper p.profic-case-card-desc,
	.profic-casos-exito-wrapper .profic-case-stat-val,
	.profic-casos-exito-wrapper .profic-case-stat-lbl {
		text-align: center;
	}

	.profic-casos-exito-wrapper .profic-case-card-stats {
		justify-content: center;
		margin-inline: auto;
	}

	.profic-casos-exito-wrapper .profic-case-card-action {
		display: flex;
		justify-content: center;
	}
}

@media (min-width: 1280px) {
	.profic-case-card-text-col {
		width: 450px;
		max-width: 450px;
		flex: 0 0 450px;
	}
}

/* Logo — Figma 202:5039 UMS 86×15 · 202:5082 Farmashop 126×23
 * height del wrapper = alto del asset (si no, gap 24 del flex suma de más). */
.profic-case-card-client-logo {
	margin: 0;
	height: auto;
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.profic-case-card:not(.layout-mockup_left) .profic-case-card-client-logo {
	height: 15px;
}

.profic-case-card.layout-mockup_left .profic-case-card-client-logo {
	height: 23px;
}

.profic-case-client-logo-img {
	height: auto;
	max-height: 23px;
	width: auto;
	max-width: 126px;
	object-fit: contain;
}

/* Logo UMS / similar — Figma 86×15 */
.profic-case-card:not(.layout-mockup_left) .profic-case-client-logo-img {
	max-height: 15px;
	max-width: 86px;
}

.profic-case-client-logo-text {
	font-family: "Amsi Pro", sans-serif;
	font-weight: 700;
	font-size: 18px;
	letter-spacing: 1.5px;
	color: rgba(255, 255, 255, 0.45);
	text-transform: uppercase;
}

/* Título — Design-Profic-Mike:
 *   Mobile  202:5042 — caja 315×152 → Light 32 / lh 1.2 (pad 0)
 *   Tablet+ ≥800 — 34 / 40.8 (sin cambiar desktop/tablet actuales del archivo)
 */
.profic-casos-exito-wrapper h3.profic-case-card-title {
	margin: 0;
	padding: 0;
	width: 100%;
	font-family: 'Amsi Pro', sans-serif;
	font-weight: 300;
	font-size: 32px;
	line-height: 1.2;
	color: #ffffff;
}

@media (min-width: 800px) {
	.profic-casos-exito-wrapper h3.profic-case-card-title {
		font-size: 34px;
		line-height: 40.8px;
	}
}

/* Desc — Design-Profic-Mike Mobile 202:5043:
 *   caja 315×90 → Light 12 / lh 1.5 / LS 0 / #969696 / pad 0
 *   (gap 24 viene del flex de .profic-case-card-text-col, no del padding del p)
 */
.profic-casos-exito-wrapper p.profic-case-card-desc {
	margin: 0;
	padding: 0;
	width: 100%;
	font-family: 'Amsi Pro', sans-serif;
	font-weight: 300;
	font-size: 12px;
	line-height: 1.5;
	letter-spacing: 0;
	color: #969696;
}

@media (min-width: 800px) {
	.profic-casos-exito-wrapper p.profic-case-card-desc {
		font-size: 15px;
		line-height: 22.5px;
		letter-spacing: 0;
	}
}

@media (min-width: 1280px) {
	.profic-casos-exito-wrapper p.profic-case-card-desc {
		font-size: 18px;
		line-height: 26.64px;
	}
}

/*
 * Stats — Frame 16: fila valores + fila labels (pad-bottom 12).
 * Grid 2 col: alinea cada label bajo su valor (Figma labels 157 + gap 25).
 */
.profic-case-card-stats {
	display: grid;
	grid-template-columns: 157px 157px;
	column-gap: 25px;
	row-gap: 0;
	align-items: start;
	justify-content: start;
	width: max-content;
	max-width: 100%;
	padding: 7px 0 12px;
	box-sizing: border-box;
	margin: 0;
}

.profic-case-card-stats-values,
.profic-case-card-stats-labels {
	display: contents;
}

/* Card B — labels gap 18 M / 80 T+D; columns fijas mín. (no max-content: tembla en count-up) */
.profic-case-card.layout-mockup_left .profic-case-card-stats {
	grid-template-columns: minmax(0, max-content) minmax(0, max-content);
	column-gap: 18px;
}

@media (min-width: 800px) {
	.profic-case-card.layout-mockup_left .profic-case-card-stats {
		column-gap: 80px;
	}
}

.profic-case-stat-val {
	margin: 0;
	padding: 0;
	font-family: "Amsi Pro", sans-serif;
	font-size: 44px;
	font-weight: 200;
	line-height: 52.8px;
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
	display: inline-block;
	flex: 0 0 auto;
	min-width: 0;
	/* Evita temblor al count-up: dígitos mismo ancho + ancho reservado vía JS */
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
	box-sizing: border-box;
	text-align: left;
	white-space: nowrap;
}

@media (min-width: 800px) {
	.profic-case-stat-val {
		font-size: 48px;
		line-height: 57.6px;
	}
}

@media (min-width: 800px) and (max-width: 1279px) {
	.profic-casos-exito-wrapper .profic-case-stat-val {
		text-align: center;
	}
}

@media (min-width: 1280px) {
	.profic-case-stat-val {
		font-size: 64px;
		line-height: 76.8px;
	}
}

/* Figma "Violeta CLARO": linear 0% #4700D6 → 100% #7235EB */
.val-grad-1,
.val-grad-2 {
	background-image: linear-gradient(180deg, #4700d6 0%, #7235eb 100%);
	-webkit-text-fill-color: transparent;
}

.profic-case-stat-lbl {
	margin: 0;
	padding: 0;
	font-family: "Amsi Pro", sans-serif;
	font-weight: 400;
	font-size: 12px;
	line-height: 14.88px;
	color: #969696;
	width: 157px;
	max-width: 157px;
	min-width: 0;
	box-sizing: border-box;
}

@media (min-width: 800px) {
	.profic-case-stat-lbl {
		font-size: 13px;
		line-height: 16.12px;
	}
}

.profic-case-card.layout-mockup_left .profic-case-stat-lbl {
	width: auto;
	max-width: 157px;
}

.profic-case-card-action {
	margin: 0;
	width: 100%;
	flex-shrink: 0;
}

/* Boton Exito — Figma 108×50, pad 15/24 */
.profic-case-card-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	text-decoration: none;
	font-family: "Amsi Pro", sans-serif;
	font-weight: 300;
	font-size: 16px;
	line-height: 16px;
	color: #ffffff;
	width: auto;
	min-width: 108px;
	height: 50px;
	padding: 15px 24px;
	border: 1.5px solid rgba(255, 255, 255, 0.22);
	border-radius: 53px;
	background-color: transparent;
	cursor: pointer;
	box-shadow: none;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.profic-case-card-btn:hover {
	background-color: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.35);
}

/* Visual — Card A mobile 315 · Card B mobile 375 · T/D 500 */
.profic-case-card-visual-col {
	position: relative;
	flex: 0 0 auto;
	width: 100%;
	max-width: 315px;
	aspect-ratio: 1 / 1;
	overflow: visible;
	align-self: center;
}

.profic-case-card.layout-mockup_left .profic-case-card-visual-col {
	max-width: 375px;
	width: 100%;
}

@media (min-width: 800px) {
	.profic-case-card-visual-col,
	.profic-case-card.layout-mockup_left .profic-case-card-visual-col {
		max-width: 500px;
		width: 500px;
	}
}

@media (min-width: 1280px) {
	.profic-case-card-visual-col {
		flex: 0 0 500px;
		width: 500px;
		max-width: 500px;
	}
}

.profic-case-card-graph-bg {
	position: absolute;
	pointer-events: none;
	z-index: 1;
	inset: auto;
}

.profic-case-card-graph-bg svg {
	width: 100%;
	height: 100%;
	display: block;
	position: absolute;
	top: 0;
	left: 0;
}

.mockup-type-macbook .profic-case-card-graph-bg {
	left: 6%;
	top: 6%;
	width: 63.4%;
	height: 65.6%;
}

.mockup-type-macbook .profic-case-card-mockup-frame {
	left: 37.8%;
	top: 58.4%;
	width: 62.6%;
	height: 39.6%;
	right: auto;
	bottom: auto;
}

.mockup-type-iphone .profic-case-card-graph-bg {
	left: 8.32%;
	top: 7.71%;
	width: 83.46%;
	height: 66.12%;
}

.mockup-type-iphone .profic-case-card-mockup-frame {
	left: -1.2%;
	top: 46%;
	width: 44.4%;
	height: 48.4%;
	right: auto;
	bottom: auto;
}

/* Mobile — Figma Card A Frame B 1:1682 (315×315) y Card B Frame C 1:1723 (375×375).
 * Los % de arriba son composición desktop (mockup a la derecha); acá el radar
 * llena el cuadrado y el MacBook queda centrado abajo, solapando el gráfico. */
@media (max-width: 799px) {
	.mockup-type-macbook .profic-case-card-graph-bg {
		left: 0;
		top: calc(-5.67 / 315 * 100%);
		width: 100%;
		height: calc(326.34 / 315 * 100%);
	}

	.mockup-type-macbook .profic-case-card-mockup-frame {
		left: calc(34 / 315 * 100%);
		top: calc(211.91 / 315 * 100%);
		width: calc(246 / 315 * 100%);
		height: calc(155 / 315 * 100%);
	}

	.mockup-type-iphone .profic-case-card-graph-bg {
		left: calc(42 / 375 * 100%);
		top: calc(18.91 / 375 * 100%);
		width: calc(291 / 375 * 100%);
		height: calc(230 / 375 * 100%);
	}

	.mockup-type-iphone .profic-case-card-mockup-frame {
		left: calc(31 / 375 * 100%);
		top: calc(56.91 / 375 * 100%);
		width: calc(156 / 375 * 100%);
		height: calc(170 / 375 * 100%);
	}

	.profic-case-card:not(.layout-mockup_left) .profic-case-card-action {
		display: flex;
		justify-content: center;
	}
}

.profic-case-card-mockup-frame {
	position: absolute;
	z-index: 2;
	transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
	will-change: transform;
}

.profic-case-card-visual-col:hover .profic-case-card-mockup-frame {
	transform: scale(1.04) translate3d(0, -6px, 0);
}

@media (prefers-reduced-motion: reduce) {
	.profic-case-card-visual-col:hover .profic-case-card-mockup-frame {
		transform: none;
	}
}

.profic-case-card-mockup-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

/* Botonn — pad-top M0 / T24 / D60 (además del gap 99 de sección) */
.profic-casos-exito-footer {
	position: relative;
	margin: 0;
	padding: 0;
	z-index: 2;
	display: flex;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
}

@media (min-width: 800px) and (max-width: 1279px) {
	.profic-casos-exito-footer {
		padding: 24px 0 0;
	}
}

@media (min-width: 1280px) {
	.profic-casos-exito-footer {
		padding: 60px 0 0;
	}
}

/* CTA global: profic-cta-btn.css */
