/**
 * CTA Animated Button Component
 *
 * Applied via the "Animated" block style on core/button.
 * Hover effect: background slides in from left,
 * text and icon slide up to reveal second color layer.
 */

.wp-block-button.is-style-animated .wp-block-button__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	background-color: var(--wp--preset--color--accent);
	border-radius: 6px;
	overflow: hidden;
	text-decoration: none;
	cursor: pointer;
	padding: 0;
	border: none;
}

.wp-block-button.is-style-animated .cta-animated__shadow {
	position: absolute;
	left: 0;
	top: 0;
	width: 0;
	height: 100%;
	background-color: var(--wp--preset--color--tertiary);
	border-radius: 6px;
	transition: width 0.4s ease;
	z-index: 1;
}

.wp-block-button.is-style-animated .wp-block-button__link:hover .cta-animated__shadow {
	width: 100%;
}

.wp-block-button.is-style-animated .cta-animated__link {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
}

.wp-block-button.is-style-animated .cta-animated__text-wrap {
	height: 20px;
	overflow: hidden;
}

.wp-block-button.is-style-animated .cta-animated__text-wrap span {
	display: block;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--normal);
	font-weight: 400;
	line-height: 20px;
	white-space: nowrap;
	transition: transform 0.4s ease;
}

.wp-block-button.is-style-animated .cta-animated__text-wrap span:first-child {
	color: var(--wp--preset--color--tertiary);
}

.wp-block-button.is-style-animated .cta-animated__text-wrap span:last-child {
	color: var(--wp--preset--color--accent);
}

.wp-block-button.is-style-animated .wp-block-button__link:hover .cta-animated__text-wrap span {
	transform: translateY(-20px);
}

.wp-block-button.is-style-animated .cta-animated__icon-wrap {
	width: 20px;
	height: 20px;
	overflow: hidden;
	flex-shrink: 0;
}

.wp-block-button.is-style-animated .cta-animated__icon-wrap svg {
	display: block;
	width: 20px;
	height: 20px;
	transition: transform 0.4s ease;
}

.wp-block-button.is-style-animated .cta-animated__icon-wrap svg:first-child {
	color: var(--wp--preset--color--tertiary);
}

.wp-block-button.is-style-animated .cta-animated__icon-wrap svg:last-child {
	color: var(--wp--preset--color--accent);
}

.wp-block-button.is-style-animated .wp-block-button__link:hover .cta-animated__icon-wrap svg {
	transform: translateY(-20px);
}

/* --- Secondary variant (tertiary bg, accent text → hover: accent bg, tertiary text) --- */

.wp-block-button.is-style-animated-secondary .wp-block-button__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	background-color: var(--wp--preset--color--tertiary);
	border-radius: 6px;
	overflow: hidden;
	text-decoration: none;
	cursor: pointer;
	padding: 0;
	border: none;
}

.wp-block-button.is-style-animated-secondary .cta-animated__shadow {
	position: absolute;
	left: 0;
	top: 0;
	width: 0;
	height: 100%;
	background-color: var(--wp--preset--color--accent);
	border-radius: 6px;
	transition: width 0.4s ease;
	z-index: 1;
}

.wp-block-button.is-style-animated-secondary .wp-block-button__link:hover .cta-animated__shadow {
	width: 100%;
}

.wp-block-button.is-style-animated-secondary .cta-animated__link {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
}

.wp-block-button.is-style-animated-secondary .cta-animated__text-wrap {
	height: 20px;
	overflow: hidden;
}

.wp-block-button.is-style-animated-secondary .cta-animated__text-wrap span {
	display: block;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--normal);
	font-weight: 400;
	line-height: 20px;
	white-space: nowrap;
	transition: transform 0.4s ease;
}

.wp-block-button.is-style-animated-secondary .cta-animated__text-wrap span:first-child {
	color: var(--wp--preset--color--accent);
}

.wp-block-button.is-style-animated-secondary .cta-animated__text-wrap span:last-child {
	color: var(--wp--preset--color--tertiary);
}

.wp-block-button.is-style-animated-secondary .wp-block-button__link:hover .cta-animated__text-wrap span {
	transform: translateY(-20px);
}

.wp-block-button.is-style-animated-secondary .cta-animated__icon-wrap {
	width: 20px;
	height: 20px;
	overflow: hidden;
	flex-shrink: 0;
}

.wp-block-button.is-style-animated-secondary .cta-animated__icon-wrap svg {
	display: block;
	width: 20px;
	height: 20px;
	transition: transform 0.4s ease;
}

.wp-block-button.is-style-animated-secondary .cta-animated__icon-wrap svg:first-child {
	color: var(--wp--preset--color--accent);
}

.wp-block-button.is-style-animated-secondary .cta-animated__icon-wrap svg:last-child {
	color: var(--wp--preset--color--tertiary);
}

.wp-block-button.is-style-animated-secondary .wp-block-button__link:hover .cta-animated__icon-wrap svg {
	transform: translateY(-20px);
}

/* --- Menu White variant (tertiary bg, corporativo 01 text → hover: accent bg, tertiary text) --- */

.wp-block-button.is-style-animated-menu-white .wp-block-button__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	background-color: var(--wp--preset--color--tertiary);
	border-radius: 6px;
	overflow: hidden;
	text-decoration: none;
	cursor: pointer;
	padding: 0;
	border: none;
}

.wp-block-button.is-style-animated-menu-white .cta-animated__shadow {
	position: absolute;
	left: 0;
	top: 0;
	width: 0;
	height: 100%;
	background-color: var(--wp--preset--color--accent);
	border-radius: 6px;
	transition: width 0.4s ease;
	z-index: 1;
}

.wp-block-button.is-style-animated-menu-white .wp-block-button__link:hover .cta-animated__shadow {
	width: 100%;
}

.wp-block-button.is-style-animated-menu-white .cta-animated__link {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 12px;
}

.wp-block-button.is-style-animated-menu-white .cta-animated__text-wrap {
	height: 20px;
	overflow: hidden;
}

.wp-block-button.is-style-animated-menu-white .cta-animated__text-wrap span {
	display: block;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--normal);
	font-weight: 400;
	line-height: 20px;
	white-space: nowrap;
	transition: transform 0.4s ease;
}

.wp-block-button.is-style-animated-menu-white .cta-animated__text-wrap span:first-child {
	color: var(--wp--preset--color--corporativo-01);
}

.wp-block-button.is-style-animated-menu-white .cta-animated__text-wrap span:last-child {
	color: var(--wp--preset--color--tertiary);
}

.wp-block-button.is-style-animated-menu-white .wp-block-button__link:hover .cta-animated__text-wrap span {
	transform: translateY(-20px);
}

.wp-block-button.is-style-animated-menu-white .cta-animated__icon-wrap {
	width: 20px;
	height: 20px;
	overflow: hidden;
	flex-shrink: 0;
}

.wp-block-button.is-style-animated-menu-white .cta-animated__icon-wrap svg {
	display: block;
	width: 20px;
	height: 20px;
	transition: transform 0.4s ease;
}

.wp-block-button.is-style-animated-menu-white .cta-animated__icon-wrap svg:first-child {
	color: var(--wp--preset--color--corporativo-01);
}

.wp-block-button.is-style-animated-menu-white .cta-animated__icon-wrap svg:last-child {
	color: var(--wp--preset--color--tertiary);
}

.wp-block-button.is-style-animated-menu-white .wp-block-button__link:hover .cta-animated__icon-wrap svg {
	transform: translateY(-20px);
}
