.wp-block-fisiobioacu-hero-home.fba-hero,
.wp-block-fisiobioacu-hero-main.fba-hero,
.wp-block-fisiobioacu-hero-secondary.fba-hero {
	--fba-hero-magenta: var(--fba-magenta, #f0008a);
	--fba-hero-berenjena: var(--fba-berenjena, #7e2c7f);
	--fba-hero-marfil: var(--fba-marfil, #fffaf3);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: none !important;
	margin: 0 auto;
	padding: clamp(18px, 3vw, 44px) clamp(20px, 4vw, 48px);
	background: transparent;
}

.fba-hero--align-top { justify-content: flex-start; }
.fba-hero--align-center { justify-content: center; }
.fba-hero--align-bottom { justify-content: flex-end; }

.fba-hero__title {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: none !important;
	margin: 0 0 clamp(16px, 2vw, 24px);
	padding: 0;
	font-family: Cardo, Georgia, serif;
	font-size: clamp(40px, 4.2vw, 56px);
	font-weight: 700 !important;
	line-height: 1.06;
	letter-spacing: -.025em;
	color: var(--fba-hero-berenjena) !important;
	text-align: center;
	text-wrap: balance;
	overflow-wrap: break-word;
}

.fba-hero__title-start { color: var(--fba-hero-magenta) !important; }
.fba-hero__title-accent,
.fba-hero__title-end { color: var(--fba-hero-berenjena) !important; }
.fba-hero__title > span:empty { display: none; }
.fba-hero--main .fba-hero__title { font-size: clamp(40px, 4.2vw, 56px); }
.fba-hero--secondary .fba-hero__title { font-size: clamp(38px, 3.8vw, 54px); }

.fba-hero__central {
	position: relative;
	z-index: 2;
	width: 100%;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	font-family: "Atkinson Hyperlegible Next", system-ui, sans-serif;
	color: var(--fba-hero-berenjena);
}

.fba-hero__central > :first-child { margin-block-start: 0; }
.fba-hero__central > :last-child { margin-block-end: 0; }
.fba-hero__lead {
	margin: 0 0 clamp(12px, 1.5vw, 18px);
	font-family: Cardo, Georgia, serif !important;
	font-size: clamp(30px, 2.35vw, 34px) !important;
	font-weight: 700 !important;
	line-height: 1.2;
	letter-spacing: -.012em;
	color: var(--fba-hero-berenjena) !important;
	text-wrap: balance;
}
.fba-hero--secondary .fba-hero__lead { font-size: clamp(30px, 2.35vw, 34px) !important; }

.fba-hero__actions {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(8px, 1.3vw, 18px);
	width: 100%;
	margin: 0;
	padding: clamp(16px, 2vw, 26px) 0 0;
}

.fba-hero__actions > :only-child { grid-column: 1 / -1; }
.fba-hero__actions > :nth-child(3) { grid-column: 1 / -1; }

.fba-hero__action {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(5px, .8vw, 12px);
	box-sizing: border-box;
	min-width: 0;
	min-height: 56px;
	padding: 10px clamp(8px, 1.1vw, 18px);
	border: 2px solid transparent;
	border-radius: 12px;
	font: 700 clamp(16px, 1.3vw, 20px)/1.25 "Atkinson Hyperlegible Next", system-ui, sans-serif;
	text-align: center;
	text-decoration: none;
	overflow-wrap: anywhere;
	box-shadow: none;
	transition: background-color .18s, color .18s, border-color .18s, box-shadow .18s;
}

.fba-hero__action.is-primary {
	background: linear-gradient(110deg, var(--fba-magenta-intenso, #b80069), var(--fba-hero-berenjena));
	color: var(--fba-hero-marfil);
	box-shadow: 0 4px 12px rgba(78, 31, 79, .14);
}

.fba-hero__action.is-secondary {
	border-color: var(--fba-hero-magenta);
	border-radius: 999px;
	background: transparent;
	color: var(--fba-hero-berenjena);
}

.fba-hero__action.is-whatsapp { background: var(--fba-turquesa-marca, #20cec7); color: #2b2b2b; }
.fba-hero__action.is-dudas { background: var(--fba-hero-berenjena); color: var(--fba-hero-marfil); }
.fba-hero__action[class*="has-icon-"]::before {
	content: "";
	display: block;
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	background: center/contain no-repeat;
}
.fba-hero__action.has-icon-calendar::before { background-image: url('../../assets/media/icons/calendar.svg'); }
.fba-hero__action.has-icon-whatsapp::before { background-image: url('../../assets/media/icons/whatsapp.svg'); }
.fba-hero__action.has-icon-question::before { background-image: url('../../assets/media/icons/question.svg'); }
.fba-hero__action.is-primary.has-icon-calendar::before,
.fba-hero__action.is-dudas.has-icon-question::before { filter: brightness(0) invert(1); }
.fba-hero__action.has-arrow::after { content: "→"; flex: 0 0 auto; }

.fba-hero__action:focus-visible {
	outline: 3px solid var(--fba-hero-marfil);
	outline-offset: 2px;
	box-shadow: 0 0 0 6px var(--fba-hero-berenjena);
}

@media (hover: hover) and (pointer: fine) {
	.fba-hero__action.is-primary:hover { box-shadow: 0 0 0 2px var(--fba-hero-magenta), 0 5px 17px rgba(78, 31, 79, .2); }
	.fba-hero__action.is-secondary:hover { background: #b80069; color: var(--fba-hero-marfil); }
	.fba-hero__action.is-whatsapp:hover { border-color: var(--fba-hero-berenjena); }
	.fba-hero__action.is-dudas:hover { background: var(--fba-berenjena-intenso, #9a2fa0); }
}

/* Un único sistema técnico con tres modos visuales. */
.fba-hero--layout-editorial {
	min-height: clamp(280px, 32vw, 470px);
	background: linear-gradient(145deg, rgba(255,250,243,.98), rgba(216,193,216,.2));
}

.fba-hero--layout-graphic {
	position: relative;
	isolation: isolate;
	min-height: clamp(340px, 38vw, 560px);
	overflow: hidden;
	background: var(--fba-hero-marfil);
}
.fba-hero--layout-graphic::before,
.fba-hero--layout-graphic::after {
	content: "";
	position: absolute;
	z-index: 0;
	pointer-events: none;
}
.fba-hero--layout-graphic.has-graphic-waves::before {
	inset: auto -8% -42% 28%;
	height: 82%;
	border: clamp(36px, 7vw, 92px) solid rgba(32,206,199,.18);
	border-radius: 50%;
	transform: rotate(-8deg);
}
.fba-hero--layout-graphic.has-graphic-blobs::before {
	inset: -30% -8% auto auto;
	width: min(48vw, 620px);
	aspect-ratio: 1;
	border-radius: 43% 57% 62% 38%;
	background: rgba(240,0,138,.09);
}
.fba-hero--layout-graphic.has-graphic-blobs::after {
	inset: auto auto -48% -8%;
	width: min(38vw, 470px);
	aspect-ratio: 1;
	border-radius: 60% 40% 45% 55%;
	background: rgba(32,206,199,.12);
}
.fba-hero--layout-graphic.has-graphic-minimal::before {
	top: 0;
	right: 0;
	width: clamp(8px, 1.2vw, 16px);
	height: 100%;
	background: linear-gradient(var(--fba-hero-magenta), var(--fba-turquesa-marca, #20cec7));
}

/* Foto de fondo: cada breakpoint puede usar su medio o heredar el de escritorio. */
.fba-hero--layout-background-photo.has-background-image {
	position: relative;
	isolation: isolate;
	min-height: var(--fba-hero-background-min-height, 680px);
	padding: 44px 48px !important;
	background: var(--fba-hero-marfil);
}
.fba-hero--main.has-background-image { --fba-hero-background-min-height: 620px; }
.fba-hero--secondary.has-background-image { --fba-hero-background-min-height: 520px; }
.fba-hero__background-media {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
}
.fba-hero__background-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--fba-hero-focus-desktop, 72% 50%);
}
.fba-hero--layout-background-photo.has-background-overlay::before {
	content: "";
	position: absolute;
	inset: 24px auto 24px 24px;
	z-index: 1;
	width: calc(52% + 24px);
	border-radius: 24px;
	pointer-events: none;
	background: rgba(255,250,243,var(--fba-hero-overlay-opacity,0));
}
.fba-hero--layout-background-photo.has-overlay-dark::before { background: rgba(43,43,43,var(--fba-hero-overlay-opacity,0)); }
.fba-hero--layout-background-photo.has-overlay-brand::before { background: rgba(126,44,127,var(--fba-hero-overlay-opacity,0)); }
.fba-hero--content-desktop-center.has-background-overlay::before { left: 50%; right: auto; transform: translateX(-50%); }
.fba-hero--content-desktop-right.has-background-overlay::before { left: auto; right: 24px; transform: none; }
.fba-hero.has-background-image .fba-hero__title { width: 52%; margin-bottom: 22px; font-size: clamp(38px, 4.2vw, 60px) !important; text-align: left; }
.fba-hero.has-background-image .fba-hero__central { width: 50%; }
.fba-hero.has-background-image .fba-hero__actions { width: 52%; padding-top: 22px; }

.fba-hero--content-desktop-center.has-background-image .fba-hero__title,
.fba-hero--content-desktop-center.has-background-image .fba-hero__central,
.fba-hero--content-desktop-center.has-background-image .fba-hero__actions { margin-inline: auto; text-align: center; }
.fba-hero--content-desktop-right.has-background-image .fba-hero__title,
.fba-hero--content-desktop-right.has-background-image .fba-hero__central,
.fba-hero--content-desktop-right.has-background-image .fba-hero__actions { margin-left: auto; }

@media (min-width: 601px) and (max-width: 1024px) {
	.fba-hero--layout-background-photo.has-background-image {
		min-height: 720px;
		padding: 32px !important;
	}
	.fba-hero__background-image { object-position: var(--fba-hero-focus-tablet, 60% 50%); }
	.fba-hero--layout-background-photo.has-background-overlay::before { inset-block: 20px; width: calc(52% + 20px); }
	.fba-hero--content-tablet-left.has-background-overlay::before { left: 20px; right: auto; transform: none; }
	.fba-hero--content-tablet-center.has-background-overlay::before { left: 50%; right: auto; transform: translateX(-50%); }
	.fba-hero--content-tablet-right.has-background-overlay::before { left: auto; right: 20px; transform: none; }
	.fba-hero.has-background-image .fba-hero__title { width: 52%; font-size: 42px !important; }
	.fba-hero.has-background-image .fba-hero__central { width: 48%; }
	.fba-hero.has-background-image .fba-hero__actions { width: 52%; grid-template-columns: 1fr; }
	.fba-hero--content-tablet-left.has-background-image .fba-hero__title,
	.fba-hero--content-tablet-left.has-background-image .fba-hero__central,
	.fba-hero--content-tablet-left.has-background-image .fba-hero__actions { margin-right: auto; margin-left: 0; text-align: left; }
	.fba-hero--content-tablet-center.has-background-image .fba-hero__title,
	.fba-hero--content-tablet-center.has-background-image .fba-hero__central,
	.fba-hero--content-tablet-center.has-background-image .fba-hero__actions { margin-inline: auto; text-align: center; }
	.fba-hero--content-tablet-right.has-background-image .fba-hero__title,
	.fba-hero--content-tablet-right.has-background-image .fba-hero__central,
	.fba-hero--content-tablet-right.has-background-image .fba-hero__actions { margin-right: 0; margin-left: auto; text-align: left; }
}

@media (max-width: 600px) {
	.fba-hero--layout-background-photo.has-background-image {
		min-height: 620px;
		padding: 300px 24px 28px !important;
	}
	.fba-hero__background-image { object-position: var(--fba-hero-focus-mobile, 73% 0%); }
	.fba-hero--layout-background-photo.has-background-overlay::before {
		inset: 280px 16px 16px;
		width: auto;
		transform: none;
	}
	.fba-hero--mobile-content-top.has-background-image {
		padding: 28px 24px 300px !important;
	}
	.fba-hero--mobile-content-top.has-background-overlay::before {
		inset: 16px 16px 280px;
	}
	.fba-hero--mobile-below-image.has-background-image {
		--fba-hero-mobile-media-height: min(177.88vw, 720px);
		min-height: 0;
		padding: calc(var(--fba-hero-mobile-media-height) + 28px) 24px 28px !important;
	}
	.fba-hero--mobile-below-image.has-background-image .fba-hero__background-media {
		inset: 0 0 auto;
		height: var(--fba-hero-mobile-media-height);
	}
	.fba-hero--mobile-below-image.has-background-overlay::before { display: none; }
	.fba-hero.has-background-image .fba-hero__title,
	.fba-hero.has-background-image .fba-hero__central,
	.fba-hero.has-background-image .fba-hero__actions { width: 100%; }
	.fba-hero--content-mobile-left.has-background-image .fba-hero__title,
	.fba-hero--content-mobile-left.has-background-image .fba-hero__central,
	.fba-hero--content-mobile-left.has-background-image .fba-hero__actions { text-align: left; }
	.fba-hero--content-mobile-center.has-background-image .fba-hero__title,
	.fba-hero--content-mobile-center.has-background-image .fba-hero__central,
	.fba-hero--content-mobile-center.has-background-image .fba-hero__actions { text-align: center; }
	.fba-hero--content-mobile-right.has-background-image .fba-hero__title,
	.fba-hero--content-mobile-right.has-background-image .fba-hero__central,
	.fba-hero--content-mobile-right.has-background-image .fba-hero__actions { text-align: right; }
	.fba-hero.has-background-image .fba-hero__title { font-size: 34px !important; }
	.fba-hero__title { font-size: clamp(31px, 8.6vw, 42px); line-height: 1.13; }
	.fba-hero--secondary .fba-hero__title { font-size: clamp(29px, 8vw, 38px); }
	.fba-hero__actions { grid-template-columns: 1fr; gap: 8px; }
	.fba-hero__action { min-height: 44px; padding: 8px; font-size: clamp(16px, 3.7vw, 17px); }
	.fba-hero__action[class*="has-icon-"]::before { flex-basis: 17px; width: 17px; height: 17px; }
}

@media (prefers-reduced-motion: reduce) {
	.fba-hero__action { transition: none; }
}
