/* ==============================> CASOS DE ÉXITO */

/* -> Grid */
.casos-exito{
	display: grid;
	grid-template-columns: repeat(var(--casos-columnas, 4), 1fr);
	gap: 24px;
}

/* -> Tarjeta */
.casos-exito__item{
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #ececec;
	border-radius: 18px;
	overflow: hidden;
	-webkit-transition: -webkit-transform .35s ease, box-shadow .35s ease;
	transition: transform .35s ease, box-shadow .35s ease;
	will-change: transform;
}
.casos-exito__item:hover{
	-webkit-transform: translateY(-6px);
	transform: translateY(-6px);
	box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
}

/* -> Imagen */
.casos-exito__media{
	border-radius: 12px;
	overflow: hidden;
}
.casos-exito__imagen{
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
	-webkit-transition: -webkit-transform .5s ease;
	transition: transform .5s ease;
}
.casos-exito__item:hover .casos-exito__imagen{
	-webkit-transform: scale(1.05);
	transform: scale(1.05);
}

/* -> Contenido */
.casos-exito__contenido{
	padding: 16px;
}
.casos-exito__titulo{
	margin: 0 0 10px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: #1a1a1a;
}

/* -> Enlace */
.casos-exito__enlace{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	color: var(--e-global-color-primary);
	-webkit-transition: gap .3s ease, opacity .3s ease;
	transition: gap .3s ease, opacity .3s ease;
}
.casos-exito__enlace:hover{
	gap: 14px;
	opacity: .85;
}
.casos-exito__flecha{
	font-size: 13px;
	-webkit-transition: -webkit-transform .3s ease;
	transition: transform .3s ease;
}
.casos-exito__enlace:hover .casos-exito__flecha{
	-webkit-transform: translateX(3px);
	transform: translateX(3px);
}

/* ==============================> CASOS DE ÉXITO · POPUP */

.casos-exito__popup{
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 99999;
	opacity: 0;
	visibility: hidden;
	-webkit-transition: opacity .35s ease, visibility .35s ease;
	transition: opacity .35s ease, visibility .35s ease;
}
.casos-exito__popup--activo{
	opacity: 1;
	visibility: visible;
}

/* -> Fondo */
.casos-exito__overlay{
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .78);
	cursor: pointer;
}

/* -> Ventana */
.casos-exito__ventana{
	position: relative;
	width: 100%;
	max-width: 900px;
	background: #000000;
	border-radius: 14px;
	overflow: hidden;
	-webkit-transform: scale(.92);
	transform: scale(.92);
	-webkit-transition: -webkit-transform .35s ease;
	transition: transform .35s ease;
}
.casos-exito__popup--activo .casos-exito__ventana{
	-webkit-transform: scale(1);
	transform: scale(1);
}

/* -> Video */
.casos-exito__video{
	position: relative;
	width: 100%;
	padding-top: 56.25%;
}
.casos-exito__video iframe{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* -> Cerrar */
.casos-exito__cerrar-btn{
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 18px;
	text-decoration: none;
	color: #1a1a1a;
	background: rgba(255, 255, 255, .9);
	-webkit-transition: background .3s ease, -webkit-transform .3s ease;
	transition: background .3s ease, transform .3s ease;
}
.casos-exito__cerrar-btn:hover{
	background: #ffffff;
	-webkit-transform: rotate(90deg);
	transform: rotate(90deg);
}

/* -> Información */
.casos-exito__info{
	padding: 16px 20px 20px;
	background: #ffffff;
}
.casos-exito__popup-titulo{
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 700;
	color: #1a1a1a;
}
.casos-exito__popup-desc{
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #555555;
	white-space: pre-line;
}

/* -> Bloqueo de scroll */
body.casos-exito-bloqueo{
	overflow: hidden;
}

/* ==============================> RESPONSIVE (768px) */
/* -> Casos de éxito */
@media (max-width: 768px){

	.casos-exito{
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.casos-exito__imagen{
		height: 190px;
	}

	.casos-exito__ventana{
		max-width: 100%;
	}
}
