/* ==========================================================================
   Frusófia Animated Hero
   ========================================================================== */

.fahs {
	position: relative;
	width: 100%;
}

.fahs .fahs-swiper {
	width: 100%;
	overflow: hidden;
}

/* --- Slide: dos columnas --- */
.fahs-slide {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Capa de superposición sobre el fondo, por debajo del contenido y del PNG. */
.fahs-overlay {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.fahs-slide.fahs-image-left {
	flex-direction: row-reverse;
}

.fahs-content-col {
	position: relative;
	flex: 0 0 45%;
	max-width: 100%;
	box-sizing: border-box;
	z-index: 2;
}

.fahs-image-col {
	position: relative;
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	overflow: hidden;
	z-index: 1;
}

.fahs-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.fahs-title {
	margin: 0 0 16px;
	line-height: 1.05;
}

.fahs-text {
	margin: 0 0 28px;
	line-height: 1.6;
}

.fahs-text p:last-child {
	margin-bottom: 0;
}

.fahs-button-wrap {
	display: block;
}

.fahs-button {
	display: inline-block;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
	border: none;
	line-height: 1.2;
}

.fahs-button:hover {
	transform: translateY(-1px);
}

.fahs-image {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

/* ==========================================================================
   Animaciones de entrada
   ========================================================================== */

/* Estado base: oculto hasta que el slide se active. */
.fahs-anim {
	opacity: 0;
	will-change: transform, opacity;
}

/* "Ninguna" o vacío: siempre visible. */
.fahs-anim[data-fahs-anim=""] {
	opacity: 1;
}

/* Cuando el slide está activo, se disparan las animaciones. */
.fahs-slide.fahs-active .fahs-anim[data-fahs-anim="fade-in"]     { animation: fahsFadeIn    var(--fahs-dur,800ms) var(--fahs-ease,ease) var(--fahs-delay,0ms) both; }
.fahs-slide.fahs-active .fahs-anim[data-fahs-anim="fade-up"]     { animation: fahsFadeUp    var(--fahs-dur,800ms) var(--fahs-ease,ease) var(--fahs-delay,0ms) both; }
.fahs-slide.fahs-active .fahs-anim[data-fahs-anim="fade-down"]   { animation: fahsFadeDown  var(--fahs-dur,800ms) var(--fahs-ease,ease) var(--fahs-delay,0ms) both; }
.fahs-slide.fahs-active .fahs-anim[data-fahs-anim="fade-left"]   { animation: fahsFadeLeft  var(--fahs-dur,800ms) var(--fahs-ease,ease) var(--fahs-delay,0ms) both; }
.fahs-slide.fahs-active .fahs-anim[data-fahs-anim="fade-right"]  { animation: fahsFadeRight var(--fahs-dur,800ms) var(--fahs-ease,ease) var(--fahs-delay,0ms) both; }
.fahs-slide.fahs-active .fahs-anim[data-fahs-anim="zoom-in"]     { animation: fahsZoomIn    var(--fahs-dur,800ms) var(--fahs-ease,ease) var(--fahs-delay,0ms) both; }
.fahs-slide.fahs-active .fahs-anim[data-fahs-anim="zoom-out"]    { animation: fahsZoomOut   var(--fahs-dur,800ms) var(--fahs-ease,ease) var(--fahs-delay,0ms) both; }
.fahs-slide.fahs-active .fahs-anim[data-fahs-anim="slide-left"]  { animation: fahsSlideLeft var(--fahs-dur,800ms) var(--fahs-ease,ease) var(--fahs-delay,0ms) both; }
.fahs-slide.fahs-active .fahs-anim[data-fahs-anim="slide-right"] { animation: fahsSlideRight var(--fahs-dur,800ms) var(--fahs-ease,ease) var(--fahs-delay,0ms) both; }
.fahs-slide.fahs-active .fahs-anim[data-fahs-anim="rotate-in"]   { animation: fahsRotateIn  var(--fahs-dur,800ms) var(--fahs-ease,ease) var(--fahs-delay,0ms) both; }

@keyframes fahsFadeIn    { from { opacity: 0; } to { opacity: 1; } }
@keyframes fahsFadeUp    { from { opacity: 0; transform: translateY(40px); }  to { opacity: 1; transform: none; } }
@keyframes fahsFadeDown  { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: none; } }
@keyframes fahsFadeLeft  { from { opacity: 0; transform: translateX(60px); }  to { opacity: 1; transform: none; } }
@keyframes fahsFadeRight { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: none; } }
@keyframes fahsZoomIn    { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes fahsZoomOut   { from { opacity: 0; transform: scale(1.15); } to { opacity: 1; transform: none; } }
@keyframes fahsSlideLeft { from { opacity: 0; transform: translateX(120px); }  to { opacity: 1; transform: none; } }
@keyframes fahsSlideRight{ from { opacity: 0; transform: translateX(-120px); } to { opacity: 1; transform: none; } }
@keyframes fahsRotateIn  { from { opacity: 0; transform: rotate(-8deg) scale(.9); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Flechas
   ========================================================================== */
.fahs-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: rgba(255, 255, 255, .65);
	border: none;
	border-radius: 50%;
	color: #1f4736;
	cursor: pointer;
	transition: background-color .25s ease, opacity .25s ease;
}

.fahs-arrow:hover {
	background: rgba(255, 255, 255, .95);
}

.fahs-arrow-prev { left: 16px; }
.fahs-arrow-next { right: 16px; }

.fahs-arrow.swiper-button-disabled {
	opacity: .35;
	pointer-events: none;
}

/* ==========================================================================
   Puntos (pagination)
   ========================================================================== */
.fahs .swiper-pagination {
	position: absolute;
	bottom: 18px;
	left: 0;
	width: 100%;
	text-align: center;
	z-index: 10;
}

.fahs .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	opacity: .4;
	transition: opacity .25s ease, transform .25s ease;
}

.fahs .swiper-pagination-bullet-active {
	opacity: 1;
	transform: scale(1.25);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.fahs-content-col { flex-basis: 50%; }
}

@media (max-width: 767px) {
	.fahs-slide,
	.fahs-slide.fahs-image-left {
		flex-direction: column-reverse;
		text-align: center;
	}

	.fahs-content-col,
	.fahs-image-col {
		flex-basis: auto !important;
		width: 100%;
	}

	.fahs-content {
		align-items: center;
	}

	.fahs-image { max-width: 70% !important; margin: 0 auto; }

	.fahs-arrow-prev { left: 8px; }
	.fahs-arrow-next { right: 8px; }
}

/* Respeta la preferencia de reducir movimiento. */
@media (prefers-reduced-motion: reduce) {
	.fahs-anim { opacity: 1 !important; animation: none !important; }
}
