/* =============================================================================
   Widget: Profic Footer (Figma Pixel Perfect - Node 1:1113 / 2:473 overlap)
   ============================================================================= */

.elementor-widget-profic_footer {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.profic-footer-wrapper {
	position: relative;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow: hidden;
	box-sizing: border-box;
	background-color: transparent !important;
	/* Solapa con Contacto (pb M274 / T410 / D160) — overlap < pb */
	--profic-footer-overlap: 56px;
	margin-top: calc(-1 * var(--profic-footer-overlap)) !important;
	pointer-events: none;
	isolation: isolate;
	z-index: 10;
}

@media (min-width: 800px) and (max-width: 1279px) {
	.profic-footer-wrapper {
		--profic-footer-overlap: 72px;
	}
}

@media (min-width: 1280px) {
	.profic-footer-wrapper {
		--profic-footer-overlap: 88px;
	}
}

.profic-footer-inner {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow: hidden;
	pointer-events: auto;
}

/* =============================================================================
   FOOTER A (Figma 1:1115 - #090511, rounded-tl-[110px], mb-[-55px])
   ============================================================================= */

.profic-footer-a {
	background-color: #090511;
	border-top-left-radius: 110px;
	margin-bottom: -55px;
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.profic-footer-a-inner {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 80px 24px;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.profic-footer-a-inner {
		/* Tablet 1:1481 — PÁRRAFOS 640 @ x=80 y=120 */
		padding: 120px 80px;
	}
}

@media (min-width: 1280px) {
	.profic-footer-a-inner {
		padding: 120px 80px;
	}
}

.profic-footer-parrafos {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: flex-start;
	justify-content: space-between;
	width: 100%;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.profic-footer-parrafos {
		gap: 60px;
		justify-content: space-between;
	}
}

@media (min-width: 1280px) {
	.profic-footer-parrafos {
		gap: 80px;
		justify-content: space-between;
	}
}

/* Frame 30 (Logotipo Profic) */
.profic-footer-frame30 {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	position: relative;
	flex-shrink: 0;
	width: 112px;
}

.profic-footer-logo-img {
	width: 112px;
	height: auto;
	display: block;
}

@media (min-width: 1280px) {
	.profic-footer-frame30 {
		width: 149px;
	}

	.profic-footer-logo-img {
		width: 149px;
	}
}

.profic-footer-capa1 {
	height: 22px;
	position: relative;
	flex-shrink: 0;
	width: 112px;
}

.profic-footer-logo-svg {
	position: absolute;
	display: block;
	inset: 0;
	width: 100%;
	height: 100%;
}

@media (min-width: 1280px) {
	.profic-footer-capa1 {
		width: 149px;
		height: 29.291px;
	}
}

/* Enlaces de Bloques */
.profic-footer-frame70,
.profic-footer-frame71,
.profic-footer-frame72 {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	position: relative;
	flex-shrink: 0;
}

.profic-footer-text-block {
	display: flex;
	flex-direction: column;
	font-family: "Amsi Pro", sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 12px;
	line-height: 1;
	color: #ffffff;
	justify-content: center;
	white-space: nowrap;
}

@media (min-width: 768px) {
	.profic-footer-text-block {
		font-size: 14px;
	}
}

@media (min-width: 1280px) {
	.profic-footer-text-block {
		font-size: 16px;
	}
}

.profic-footer-text-block p {
	margin: 0 0 14px 0;
	padding: 0;
	line-height: 1;
}

.profic-footer-text-block p:last-child {
	margin-bottom: 0;
}

.profic-footer-text-block a {
	color: #ffffff;
	text-decoration: none;
	transition: opacity 0.25s ease, color 0.25s ease;
}

.profic-footer-text-block a:hover {
	opacity: 0.75;
	color: #c084fc;
}

/* =============================================================================
   FOOTER B (Figma 1:1126 - #090511, Mail & Social Media)
   ============================================================================= */

.profic-footer-b {
	background-color: #090511;
	position: relative;
	flex-shrink: 0;
	width: 100%;
	box-sizing: border-box;
}

.profic-footer-b-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 50px 24px 100px;
	gap: 40px;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.profic-footer-b-container {
		flex-direction: row;
		padding: 50px 48px 120px;
		gap: 120px;
	}
}

@media (min-width: 1280px) {
	.profic-footer-b-container {
		flex-direction: row;
		padding: 50px 80px 120px;
		gap: 160px;
	}
}

/* Bloque Mail */
.profic-footer-mail {
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: center;
	justify-content: center;
	position: relative;
	flex-shrink: 0;
}

.profic-footer-icon-mail {
	width: 28px;
	height: 17px;
	position: relative;
	flex-shrink: 0;
}

.profic-footer-icon-mail svg {
	display: block;
	width: 100%;
	height: 100%;
}

.profic-footer-mail-link {
	font-family: "Amsi Pro", sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 13px;
	line-height: 1;
	color: #ffffff;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity 0.25s ease, color 0.25s ease;
}

.profic-footer-mail-link:hover {
	opacity: 0.8;
	color: #c084fc;
}

/* Bloque Redes Sociales */
.profic-footer-social-media {
	display: flex;
	height: 61px;
	align-items: center;
	justify-content: center;
	position: relative;
	flex-shrink: 0;
}

.profic-footer-frame37 {
	display: flex;
	gap: 33px;
	align-items: center;
	justify-content: center;
	position: relative;
	flex-shrink: 0;
	cursor: pointer;
}

.profic-footer-social-icon {
	display: block;
	position: relative;
	flex-shrink: 0;
	text-decoration: none;
	opacity: 1;
	transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), color 0.25s ease;
}

.profic-footer-social-icon:hover {
	transform: translateY(-2px);
	filter: none;
}

.profic-footer-social-icon:hover svg path {
	fill: #c084fc;
}

.profic-footer-social-icon:hover svg stop {
	stop-color: #c084fc;
}

.profic-footer-social-icon.social-x {
	width: 23px;
	height: 22px;
}

.profic-footer-social-icon.social-yt {
	width: 30px;
	height: 20px;
}

.profic-footer-social-icon.social-in {
	width: 20px;
	height: 20px;
}

.profic-footer-social-icon.social-ig {
	width: 23px;
	height: 22px;
}

.profic-footer-social-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* =============================================================================
   FIGMA SMART ANIMATE ENTRANCE (cubic-bezier(0.45, 1.45, 0.8, 1) - 1.2s)
   ============================================================================= */

@keyframes figmaFooterOpacity {
	0% {
		opacity: 0;
		transform: translateY(35px) scale(0.93);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* Estado inicial (oculto antes de entrar en viewport) */
.profic-footer-wrapper .profic-footer-frame30,
.profic-footer-wrapper .profic-footer-frame70,
.profic-footer-wrapper .profic-footer-frame71,
.profic-footer-wrapper .profic-footer-frame72,
.profic-footer-wrapper .profic-footer-mail,
.profic-footer-wrapper .profic-footer-social-media {
	opacity: 0;
	transform: translateY(35px) scale(0.93);
	will-change: opacity, transform;
}

/* Activación al hacer scroll (clase .in-view agregada por IntersectionObserver) */
.profic-footer-wrapper.in-view .profic-footer-frame30 {
	animation: figmaFooterOpacity 1.2s cubic-bezier(0.45, 1.45, 0.8, 1) forwards;
	animation-delay: 0.1s;
}

.profic-footer-wrapper.in-view .profic-footer-frame70 {
	animation: figmaFooterOpacity 1.2s cubic-bezier(0.45, 1.45, 0.8, 1) forwards;
	animation-delay: 0.2s;
}

.profic-footer-wrapper.in-view .profic-footer-frame71 {
	animation: figmaFooterOpacity 1.2s cubic-bezier(0.45, 1.45, 0.8, 1) forwards;
	animation-delay: 0.3s;
}

.profic-footer-wrapper.in-view .profic-footer-frame72 {
	animation: figmaFooterOpacity 1.2s cubic-bezier(0.45, 1.45, 0.8, 1) forwards;
	animation-delay: 0.4s;
}

.profic-footer-wrapper.in-view .profic-footer-mail {
	animation: figmaFooterOpacity 1.2s cubic-bezier(0.45, 1.45, 0.8, 1) forwards;
	animation-delay: 0.45s;
}

.profic-footer-wrapper.in-view .profic-footer-social-media {
	animation: figmaFooterOpacity 1.2s cubic-bezier(0.45, 1.45, 0.8, 1) forwards;
	animation-delay: 0.5s;
}

/* Fallback para el Editor de Elementor */
.elementor-editor-active .profic-footer-wrapper .profic-footer-frame30,
.elementor-editor-active .profic-footer-wrapper .profic-footer-frame70,
.elementor-editor-active .profic-footer-wrapper .profic-footer-frame71,
.elementor-editor-active .profic-footer-wrapper .profic-footer-frame72,
.elementor-editor-active .profic-footer-wrapper .profic-footer-mail,
.elementor-editor-active .profic-footer-wrapper .profic-footer-social-media {
	opacity: 1;
	transform: none;
}

/* Figma Footer mobile 1:1843 / Footer A 1:1845 — both top radii 110px.
   Desktop (≥1280) and tablet (800–1279) keep existing rules. */
@media (max-width: 799px) {
	.elementor-widget-profic_footer {
		overflow: visible;
	}

	.profic-footer-wrapper {
		--profic-footer-overlap: 38px;
		overflow: visible;
	}

	.profic-footer-inner {
		overflow: visible;
	}

	.profic-footer-a {
		border-top-left-radius: 110px;
		border-top-right-radius: 110px;
		overflow: hidden;
	}

	.profic-footer-a-inner {
		padding: 120px 32px;
		align-items: center;
		justify-content: center;
	}

	.profic-footer-parrafos {
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: flex-start;
		gap: 70px;
		width: 100%;
	}

	.profic-footer-frame30,
	.profic-footer-frame70,
	.profic-footer-frame71,
	.profic-footer-frame72 {
		align-items: center;
		width: auto;
		max-width: 100%;
	}

	.profic-footer-text-block {
		font-size: 16px;
		line-height: 1;
		text-align: center;
		align-items: center;
		white-space: normal;
	}

	.profic-footer-text-block p {
		margin: 0 0 16px 0;
	}

	.profic-footer-b-container {
		flex-direction: column;
		padding: 28px 24px 120px;
		gap: 45px;
	}
}
