/*--------------------------------------------------------------
# 3D Parallax Cards - Oferta Educativa
--------------------------------------------------------------*/

.cuoh-card3d-wrapper {
	perspective: 1000px;
	flex: 1 1 300px;
	max-width: 250px;
	height: 420px;
	margin: 15px;
}

.cuoh-card3d {
	position: relative;
	width: 100%;
	height: 100%;
	background: #1a1a1a;
	border-radius: 20px;
	overflow: hidden;
	transform-style: preserve-3d;
	transition:
		transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
		box-shadow 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
		border-color 0.3s;
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.08);
	cursor: pointer;
}

.cuoh-card3d-wrapper:hover .cuoh-card3d {
	transform: rotateY(10deg) rotateX(8deg) translateY(-10px);
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
	border-color: rgba(173, 153, 30, 0.6);
}

.cuoh-card3d-bg {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-size: cover;
	background-position: center;
	transition:
		transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
		filter 0.5s ease;
	filter: brightness(0.5) saturate(0.85);
	z-index: 1;
}

.cuoh-card3d-wrapper:hover .cuoh-card3d-bg {
	transform: scale(1.12) translateZ(-15px);
	filter: brightness(0.35) saturate(1.1);
}

.cuoh-card3d-video {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition:
		transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
		filter 0.5s ease;
	filter: brightness(0.5) saturate(0.85);
	z-index: 1;
}

.cuoh-card3d-wrapper:hover .cuoh-card3d-video {
	transform: scale(1.12) translateZ(-15px);
	filter: brightness(0.35) saturate(1.1);
}

.cuoh-card3d-content {
	position: relative;
	z-index: 2;
	height: 100%;
	padding: 35px 25px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	color: #fff;
	transform: translateZ(30px);
	transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cuoh-card3d-icon {
	font-size: 28px;
	color: #f5f5f557;
	margin-bottom: auto;
	transform: translateZ(50px);
	transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cuoh-card3d-title {
	font-size: 2rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 12px;
	font-family: 'Raleway', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transform: translateZ(40px) scale(1);
	transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
	text-align: center;
}

.cuoh-card3d-wrapper:hover .cuoh-card3d-title {
	transform: translateZ(80px) scale(1.15);
}

.cuoh-card3d-description {
	font-size: 1.2rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 25px;
	opacity: 0.85;
	max-height: 150px;
	overflow: hidden;
	transform: translateZ(30px);
	transition:
		transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
		opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
		max-height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
		margin-bottom 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cuoh-card3d-wrapper:hover .cuoh-card3d-description {
	opacity: 0;
	max-height: 0;
	margin-bottom: 0;
	transform: translateZ(0);
	pointer-events: none;
}

.cuoh-card3d-btn {
	align-self: anchor-center;
	padding: 8px 22px;
	background: #ad991e;
	color: #fff !important;
	text-transform: uppercase;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 1px;
	border-radius: 30px;
	text-decoration: none;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	transform: translateZ(25px);
	transition:
		background 0.3s,
		transform 0.5s,
		box-shadow 0.3s;
	text-align: center;
}

.cuoh-card3d-btn:hover {
	background: #d4af37;
	box-shadow: 0 6px 15px rgba(173, 153, 30, 0.45);
	text-decoration: none !important;
}

/* Soporte responsive adicional */
@media (max-width: 768px) {
	.cuoh-card3d-wrapper {
		flex: 1 1 230px;
		max-width: 250px;
		height: 350px;
		margin: 5px;
	}
	.cuoh-card3d-description {
		display: none !important;
	}
	.cuoh-card3d-icon {
		transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.5s ease;
	}
	.cuoh-card3d-btn {
		position: absolute;
		bottom: 35px;
		left: 50%;
		transform: translateX(-50%) translateZ(25px) scale(1);
		transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
		opacity: 1;
		white-space: nowrap;
	}
	.cuoh-card3d-title {
		position: absolute;
		bottom: 90px;
		left: 25px;
		right: 25px;
		margin: 0;
		transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
		transform: translateZ(40px) scale(1);
	}
	.cuoh-card3d-wrapper:hover .cuoh-card3d-title {
		bottom: 50%;
		transform: translateY(-10px) translateZ(80px) scale(1.15);
	}
	.cuoh-card3d-wrapper:hover .cuoh-card3d-btn {
		bottom: 50%;
		transform: translateX(-50%) translateY(100%) translateY(10px) translateZ(80px) scale(1.1);
		opacity: 1;
	}
	.cuoh-card3d-wrapper:hover .cuoh-card3d-icon {
		opacity: 0;
		transform: translateY(-20px) translateZ(0);
		pointer-events: none;
	}
}
