/**
 * AJF Courses Hero Widget
 * Styles scoped to .ajf-courses-hero to avoid affecting the rest of the site.
 */

.ajf-courses-hero {
	position: relative;
	width: 100%;
	min-height: 610px;
	margin-top: 96px;
	overflow: hidden;
	background: #f8fafd;
	border-radius: 0 0 44px 44px;
	box-shadow: 0 16px 30px -14px rgba(15, 23, 42, 0.30);
	isolation: isolate;
}

.ajf-courses-hero,
.ajf-courses-hero * {
	box-sizing: border-box;
}

.ajf-courses-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	min-height: inherit;
	padding: 70px 0 70px 110px;
	display: flex;
	align-items: center;
}

.ajf-courses-hero__content {
	position: relative;
	z-index: 3;
	width: 48%;
	max-width: 650px;
}

.ajf-courses-hero__title {
	margin: 0 0 24px;
	padding: 0;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 110px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.055em;
	color: #061127;
}

.ajf-courses-hero__description {
	max-width: 555px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.55;
	color: #0f172a;
}

.ajf-courses-hero__description p {
	margin: 0;
}

.ajf-courses-hero__features {
	position: relative;
	display: flex;
	align-items: center;
	gap: 34px;
	margin-top: 82px;
	max-width: 720px;
}

.ajf-courses-hero__feature {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
	text-decoration: none;
	color: inherit;
}

.ajf-courses-hero__feature:hover,
.ajf-courses-hero__feature:focus {
	text-decoration: none;
}

.ajf-courses-hero__feature:not(:last-child) {
	padding-right: 34px;
}

.ajf-courses-hero__feature:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 50%;
	right: 0;
	width: 1px;
	height: 42px;
	transform: translateY(-50%);
	background-color: #d8dee8;
}

.ajf-courses-hero__feature-icon {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
	width: 54px;
	height: 54px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1.4px solid #e9a524;
	border-radius: 999px;
	color: #f4a71d;
	background: rgba(255, 255, 255, 0.44);
}

.ajf-courses-hero__feature-icon svg {
	width: 24px;
	height: 24px;
	display: block;
	fill: currentColor;
}

.ajf-courses-hero__feature-icon i {
	font-size: 24px;
	line-height: 1;
}

.ajf-courses-hero__feature-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.ajf-courses-hero__feature-title {
	display: block;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	color: #061127;
	white-space: nowrap;
}

.ajf-courses-hero__feature-text {
	display: block;
	max-width: 130px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
	color: #0f172a;
}

.ajf-courses-hero__visual {
	position: absolute;
	z-index: 1;
	top: 0;
	right: 0;
	bottom: 0;
	width: 58%;
	height: 100%;
	overflow: hidden;
	pointer-events: none;
}

.ajf-courses-hero__visual::before {
	content: '';
	position: absolute;
	z-index: 2;
	top: 0;
	left: 0;
	width: 22%;
	height: 100%;
	background: linear-gradient(90deg, #f8fafd 0%, rgba(248, 250, 253, 0.92) 30%, rgba(248, 250, 253, 0) 100%);
	pointer-events: none;
}

.ajf-courses-hero__image {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center right;
}

@media (max-width: 1200px) {
	.ajf-courses-hero__inner {
		padding-left: 72px;
	}

	.ajf-courses-hero__title {
		font-size: 92px;
	}

	.ajf-courses-hero__description {
		max-width: 470px;
	}

	.ajf-courses-hero__features {
		gap: 20px;
	}

	.ajf-courses-hero__feature:not(:last-child) {
		padding-right: 20px;
	}
}

@media (max-width: 1024px) {
	.ajf-courses-hero {
		min-height: 560px;
		margin-top: 82px;
	}

	.ajf-courses-hero__inner {
		padding: 60px 32px 60px 52px;
	}

	.ajf-courses-hero__content {
		width: 54%;
	}

	.ajf-courses-hero__title {
		font-size: 78px;
	}

	.ajf-courses-hero__description {
		font-size: 16px;
		max-width: 420px;
	}

	.ajf-courses-hero__visual {
		width: 48%;
	}

	.ajf-courses-hero__visual::before {
		width: 30%;
	}

	.ajf-courses-hero__features {
		align-items: flex-start;
		flex-direction: column;
		gap: 18px;
		margin-top: 52px;
	}

	.ajf-courses-hero__feature:not(:last-child) {
		padding-right: 0;
	}

	.ajf-courses-hero__feature:not(:last-child)::after {
		display: none;
	}

	.ajf-courses-hero__feature-text {
		max-width: 260px;
	}
}

@media (max-width: 767px) {
	.ajf-courses-hero {
		min-height: 760px;
		margin-top: 72px;
		border-radius: 0 0 28px 28px;
	}

	.ajf-courses-hero__inner {
		min-height: inherit;
		padding: 44px 22px;
		display: block;
	}

	.ajf-courses-hero__content {
		width: 100%;
		max-width: none;
	}

	.ajf-courses-hero__title {
		font-size: 56px;
		letter-spacing: -0.045em;
		margin-bottom: 18px;
	}

	.ajf-courses-hero__description {
		max-width: none;
		font-size: 16px;
		line-height: 1.55;
	}

	.ajf-courses-hero__features {
		width: 100%;
		display: grid;
		grid-template-columns: 1fr;
		gap: 18px;
		margin-top: 36px;
	}

	.ajf-courses-hero__feature {
		width: 100%;
		gap: 14px;
	}

	.ajf-courses-hero__feature-icon {
		width: 48px;
		height: 48px;
	}

	.ajf-courses-hero__feature-icon svg {
		width: 22px;
		height: 22px;
	}

	.ajf-courses-hero__feature-icon i {
		font-size: 22px;
	}

	.ajf-courses-hero__feature-title {
		font-size: 13px;
	}

	.ajf-courses-hero__feature-text {
		max-width: none;
		font-size: 13px;
	}

	.ajf-courses-hero__visual {
		position: relative;
		width: calc(100% + 44px);
		height: 300px;
		margin: 34px -22px -44px;
	}

	.ajf-courses-hero__visual::before {
		top: -1px;
		left: 0;
		width: 100%;
		height: 34%;
		background: linear-gradient(180deg, #f8fafd 0%, rgba(248, 250, 253, 0.86) 34%, rgba(248, 250, 253, 0) 100%);
	}

	.ajf-courses-hero__image {
		object-position: center center;
	}
}

@media (max-width: 420px) {
	.ajf-courses-hero__title {
		font-size: 48px;
	}

	.ajf-courses-hero__visual {
		height: 270px;
	}
}

/* Animaciones editables desde Elementor */
.ajf-courses-hero {
	--ajf-phoenix-duration: 6s;
	--ajf-phoenix-float: 14px;
	--ajf-benefits-duration: 700ms;
	--ajf-benefits-stagger: 130ms;
}

.ajf-courses-hero__visual,
.ajf-courses-hero__image,
.ajf-courses-hero__feature,
.ajf-courses-hero__feature-icon {
	will-change: transform, opacity, filter;
}

.ajf-courses-hero--phoenix-animate .ajf-courses-hero__image {
	transform-origin: 58% 45%;
	animation-duration: var(--ajf-phoenix-duration);
	animation-timing-function: ease-in-out;
	animation-iteration-count: infinite;
	animation-fill-mode: both;
}

.ajf-courses-hero--phoenix-animation-float .ajf-courses-hero__image {
	animation-name: ajfPhoenixFloat;
}

.ajf-courses-hero--phoenix-animation-float-glow .ajf-courses-hero__image {
	animation-name: ajfPhoenixFloatGlow;
}

.ajf-courses-hero--phoenix-animation-breath .ajf-courses-hero__image {
	animation-name: ajfPhoenixBreath;
}

.ajf-courses-hero--phoenix-hover .ajf-courses-hero__visual {
	transition: transform 450ms ease, filter 450ms ease;
}

.ajf-courses-hero--phoenix-hover:hover .ajf-courses-hero__visual {
	transform: scale(1.012) translateY(-3px);
	filter: saturate(1.06) contrast(1.03);
}

.ajf-courses-hero--benefits-animate .ajf-courses-hero__feature {
	opacity: 0;
	animation-duration: var(--ajf-benefits-duration);
	animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
	animation-fill-mode: both;
	animation-delay: calc(var(--ajf-feature-index, 0) * var(--ajf-benefits-stagger));
}

.ajf-courses-hero--benefits-animation-fade-up .ajf-courses-hero__feature {
	animation-name: ajfBenefitFadeUp;
}

.ajf-courses-hero--benefits-animation-fade-left .ajf-courses-hero__feature {
	animation-name: ajfBenefitFadeLeft;
}

.ajf-courses-hero--benefits-animation-zoom .ajf-courses-hero__feature {
	animation-name: ajfBenefitZoom;
}

.ajf-courses-hero--benefits-hover .ajf-courses-hero__feature,
.ajf-courses-hero--benefits-hover .ajf-courses-hero__feature-icon {
	transition: transform 260ms ease, box-shadow 260ms ease, background-color 260ms ease;
}

.ajf-courses-hero--benefits-hover .ajf-courses-hero__feature:hover,
.ajf-courses-hero--benefits-hover .ajf-courses-hero__feature:focus-visible {
	transform: translateY(-4px);
}

.ajf-courses-hero--benefits-hover .ajf-courses-hero__feature:hover .ajf-courses-hero__feature-icon,
.ajf-courses-hero--benefits-hover .ajf-courses-hero__feature:focus-visible .ajf-courses-hero__feature-icon {
	transform: scale(1.07) rotate(-3deg);
	background-color: rgba(255, 255, 255, 0.72);
	box-shadow: 0 10px 24px -16px rgba(15, 23, 42, 0.55);
}

@keyframes ajfPhoenixFloat {
	0%, 100% {
		transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
	}
	50% {
		transform: translate3d(0, calc(var(--ajf-phoenix-float) * -1), 0) rotate(0.55deg) scale(1.006);
	}
}

@keyframes ajfPhoenixFloatGlow {
	0%, 100% {
		transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
		filter: drop-shadow(0 0 0 rgba(244, 167, 29, 0));
	}
	50% {
		transform: translate3d(0, calc(var(--ajf-phoenix-float) * -1), 0) rotate(0.65deg) scale(1.012);
		filter: drop-shadow(0 18px 28px rgba(244, 167, 29, 0.22));
	}
}

@keyframes ajfPhoenixBreath {
	0%, 100% {
		transform: scale(1) rotate(0deg);
	}
	50% {
		transform: scale(1.025) rotate(0.35deg);
	}
}

@keyframes ajfBenefitFadeUp {
	0% {
		opacity: 0;
		transform: translateY(24px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes ajfBenefitFadeLeft {
	0% {
		opacity: 0;
		transform: translateX(-24px);
	}
	100% {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes ajfBenefitZoom {
	0% {
		opacity: 0;
		transform: scale(0.92);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ajf-courses-hero--phoenix-animate .ajf-courses-hero__image,
	.ajf-courses-hero--benefits-animate .ajf-courses-hero__feature {
		animation: none !important;
		opacity: 1;
		transform: none;
	}

	.ajf-courses-hero--phoenix-hover .ajf-courses-hero__visual,
	.ajf-courses-hero--benefits-hover .ajf-courses-hero__feature,
	.ajf-courses-hero--benefits-hover .ajf-courses-hero__feature-icon {
		transition: none !important;
	}
}
