/* =============================================================================
   Widget: Profic Hero SEO
   Figma Design-Profic-Mike Desktop 2:2980
     Hero 1280×598 · pad 96/120/140 · gap cols ~0 + visual pl 130
     Title Light 48 / #E8E8E8 · Sub Light 20 / #969696 / tracking 1%
     Derecha: nodo Usuario (Frame 88 CODE_INSTANCE)
   Breakpoints proyecto: 1280 / 800 / ≤799
   ============================================================================= */

/* Dark: artboard #090511. Light no pinta el lienzo oscuro. */
body:has(.profic-hero-seo-section):not(:has(.profic-hero-seo-section--light)) {
	background-color: #090511;
}

/* !important: gana al custom CSS de página con degradado oscuro que traen las plantillas dark */
body:has(.profic-hero-seo-section--light) {
	background: #f8f8f8 !important;
}

/* Sin el overlay de fondo del contenedor Elementor que envuelve al hero light */
.e-con:has(> .elementor-widget-profic_hero_seo .profic-hero-seo-section--light)::before {
	display: none !important;
}

/* Light: sin scrim oscuro del header (mismo criterio que single-post.css) */
body:has(.profic-hero-seo-section--light) .profic-menu-wrapper::before {
	display: none;
}

body:has(.profic-hero-seo-section--light) .elementor-location-header > .e-con {
	background: transparent !important;
}

.elementor-widget-profic_hero_seo:not(:has(.profic-hn-section)),
.elementor-widget-profic_hero_seo:not(:has(.profic-hn-section)):not(:last-child),
.elementor-widget-profic_hero_seo:not(:has(.profic-hn-section)) > .elementor-widget-container {
	margin: 0 !important;
	margin-block-end: 0 !important;
	padding: 0 !important;
}

.profic-hero-seo-section {
	position: relative;
	isolation: isolate;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow: visible;
	background: transparent;
	/* Igual que Hero Home: aire bajo menú fixed
	 * Mobile: 160 · Tablet/Desktop: 186 (= 90 offset frame + 96 inset Figma) */
	padding: 160px 18px 70px;
	/* Sin z-index: el glow inferior baja hasta el Slider y debe quedar detrás de las secciones siguientes */
	z-index: auto;
}

@media (min-width: 800px) {
	.profic-hero-seo-section {
		padding: 186px 60px 120px;
	}
}

@media (min-width: 1280px) {
	.profic-hero-seo-section {
		/* Design 2:2980: inset 96 + offset menú 90 → top 186; sides 120; pb 140 */
		padding: 186px 120px 140px;
		min-height: 0;
	}
}

/* WP Admin Bar — mismo criterio que Hero Home */
body.admin-bar .profic-hero-seo-section {
	padding-top: calc(160px + 32px);
}

@media (min-width: 800px) {
	body.admin-bar .profic-hero-seo-section {
		padding-top: calc(186px + 32px);
	}
}

@media screen and (max-width: 782px) {
	body.admin-bar .profic-hero-seo-section {
		padding-top: calc(160px + 46px);
	}
}

/* Fondos anclados al artboard 1280 (como Hero Home) */
.profic-hero-seo-backgrounds {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 1280px;
	margin-left: -640px;
	z-index: 0;
	pointer-events: none;
	overflow: visible;
}

.profic-hero-seo-glow {
	position: absolute;
	pointer-events: none;
	box-sizing: border-box;
}

.profic-hero-seo-glow img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

/*
 * Coordenadas relativas a la sección (artboard y=0); el frame Hero de Figma arranca en y=90.
 * Rectangle 428:6545: caja 2382×1073 en (-245, 90+2014), capa 1073×2382 rotada -90°.
 */
.profic-hero-seo-glow--bottom {
	left: 409.5px;
	top: 1449.5px;
	width: 1073px;
	height: 2382px;
	border-radius: 1068px;
	overflow: hidden;
	filter: blur(198px);
	transform: rotate(-90deg);
}

/* FONDO Gradiente 428:6546: caja 1879×1825 en (467, 90-1257), capa 1363×1464 rotada -112.88°. */
.profic-hero-seo-glow--top {
	left: 725px;
	top: -986.5px;
	width: 1363px;
	height: 1464px;
	filter: blur(194px);
	opacity: 0.92;
	transform: rotate(-112.88deg);
}

.profic-hero-seo-line {
	position: absolute;
	pointer-events: none;
}

.profic-hero-seo-line img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Linea 428:6547: (358, 90-50) */
.profic-hero-seo-line--a {
	left: 358px;
	top: 40px;
	width: 1052px;
	height: 923px;
}

/* Linea 428:6548: caja 1384×1399 en (-104, 90-515), capa 1052×923 rotada 49.85° */
.profic-hero-seo-line--b {
	left: 61.5px;
	top: -186.5px;
	width: 1052px;
	height: 923px;
	transform: rotate(49.85deg);
	transform-origin: center;
}

@media (max-width: 1279px) {
	.profic-hero-seo-line--a,
	.profic-hero-seo-line--b {
		opacity: 0.35;
		transform: scale(0.72);
		transform-origin: top right;
	}

	.profic-hero-seo-line--b {
		transform: rotate(49.85deg) scale(0.65);
	}
}

@media (max-width: 799px) {
	.profic-hero-seo-glow--top {
		left: 10%;
		top: -30%;
		width: 420px;
		height: 420px;
	}

	.profic-hero-seo-glow--bottom {
		top: auto;
		left: -30%;
		bottom: -20%;
		width: 520px;
		height: 520px;
	}

	.profic-hero-seo-line {
		display: none;
	}
}

/* Layout del texto — el de Diálogo es el estándar para las tres animaciones.
   Mobile y tablet: columna, texto centrado. Desktop: fila, texto a la izquierda. */
.profic-hero-seo-container {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1040px;
	margin: 0 auto;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 106px;
}

@media (min-width: 1280px) {
	.profic-hero-seo-container {
		flex-direction: row;
		align-items: center;
		justify-content: center;
		gap: 106px;
	}
}

.profic-hero-seo-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 36px;
	box-sizing: border-box;
	width: 100%;
	max-width: 255px;
	padding: 30px 0;
	text-align: center;
}

@media (min-width: 800px) {
	.profic-hero-seo-content {
		flex: 0 0 auto;
		width: 100%;
		max-width: 640px;
		padding: 0;
	}
}

@media (min-width: 1280px) {
	.profic-hero-seo-content {
		align-items: flex-start;
		width: 482px;
		max-width: 482px;
		text-align: left;
	}
}

.profic-hero-seo-section .profic-hero-seo-title,
.profic-hero-seo-section h1.profic-hero-seo-title {
	margin: 0;
	padding: 0;
	width: 100%;
	font-family: "Amsi Pro", sans-serif;
	font-weight: 300;
	font-style: normal;
	font-size: 32px;
	line-height: 36.8px;
	letter-spacing: 0;
	color: #e8e8e8;
	text-align: center;
	word-break: break-word;
	-webkit-font-smoothing: antialiased;
}

@media (min-width: 800px) {
	.profic-hero-seo-section .profic-hero-seo-title,
	.profic-hero-seo-section h1.profic-hero-seo-title {
		font-size: 48px;
		line-height: 1;
	}
}

@media (min-width: 1280px) {
	.profic-hero-seo-section .profic-hero-seo-title,
	.profic-hero-seo-section h1.profic-hero-seo-title {
		text-align: left;
	}
}

.profic-hero-seo-section .profic-hero-seo-subtitle,
.profic-hero-seo-section p.profic-hero-seo-subtitle {
	margin: 0;
	padding: 0;
	width: 100%;
	max-width: none;
	font-family: "Amsi Pro", sans-serif;
	font-weight: 300;
	font-size: 12px;
	line-height: 18px;
	letter-spacing: 0;
	color: #d8d8d8;
	text-align: center;
	word-break: break-word;
}

@media (min-width: 800px) {
	.profic-hero-seo-section .profic-hero-seo-subtitle,
	.profic-hero-seo-section p.profic-hero-seo-subtitle {
		font-size: 20px;
		line-height: 1.5;
		letter-spacing: 0.2px;
	}
}

@media (min-width: 1280px) {
	.profic-hero-seo-section .profic-hero-seo-subtitle,
	.profic-hero-seo-section p.profic-hero-seo-subtitle {
		width: 482px;
		max-width: 482px;
		text-align: left;
	}
}

.profic-hero-seo-cta {
	display: flex;
	align-items: center;
	justify-content: center;
}

@media (min-width: 1280px) {
	.profic-hero-seo-cta {
		justify-content: flex-start;
	}
}

.profic-hero-seo-cta .profic-hero-btn {
	min-width: 148px;
}

/* Visual derecha — Figma Hero Design pl 130 · Frame 88 animado */
.profic-hero-seo-visual {
	position: relative;
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 520px;
	width: 100%;
	box-sizing: border-box;
}

@media (min-width: 800px) {
	.profic-hero-seo-visual {
		justify-content: center;
		min-height: 280px;
		padding-left: 0;
	}
}

@media (min-width: 1280px) {
	.profic-hero-seo-visual {
		justify-content: flex-end;
		min-height: 362px;
		padding-left: 0;
	}
}

.profic-hero-seo-visual-img {
	display: block;
	max-width: 100%;
	height: auto;
	object-fit: contain;
}

/* Diagrama animado — desktop ~465×264 · mobile vertical ~400×520 */
.profic-hseo-diagram {
	position: relative;
	width: 100%;
	max-width: 400px;
	height: 520px;
	margin: 0 auto;
	overflow: visible;
}

@media (min-width: 800px) {
	.profic-hseo-diagram {
		width: 465px;
		max-width: 100%;
		height: 264px;
		margin: 0;
	}
}

/* En tablet el stage de 465px queda centrado, pero el dibujo
   (Usuario en 0, Marca en 320) carga 43px hacia la izquierda. */
@media (min-width: 800px) and (max-width: 1279px) {
	.profic-hseo-diagram {
		margin-inline: auto;
		transform: translateX(43px);
	}
}

.profic-hseo-rotonda-glow {
	position: absolute;
	left: 0;
	top: 0;
	width: 0;
	height: 0;
	pointer-events: none;
	z-index: 0;
	will-change: transform, opacity;
}

.profic-hseo-rotonda-glow-layer {
	position: absolute;
	left: 0;
	top: 0;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.profic-hseo-rotonda-glow-layer--out {
	width: 700px;
	height: 700px;
	background: radial-gradient(
		circle,
		rgba(93, 15, 236, 0.15) 0%,
		rgba(93, 15, 236, 0.08) 20%,
		rgba(93, 15, 236, 0.04) 40%,
		rgba(93, 15, 236, 0.015) 60%,
		transparent 75%
	);
	filter: blur(60px);
}

.profic-hseo-rotonda-glow-layer--mid {
	width: 500px;
	height: 500px;
	background: radial-gradient(
		circle,
		rgba(93, 15, 236, 0.22) 0%,
		rgba(93, 15, 236, 0.12) 25%,
		rgba(93, 15, 236, 0.05) 50%,
		rgba(93, 15, 236, 0.015) 70%,
		transparent 85%
	);
	filter: blur(45px);
}

.profic-hseo-rotonda-glow-layer--core {
	width: 300px;
	height: 300px;
	background: radial-gradient(
		circle,
		rgba(93, 15, 236, 0.32) 0%,
		rgba(93, 15, 236, 0.18) 30%,
		rgba(93, 15, 236, 0.08) 55%,
		rgba(93, 15, 236, 0.025) 75%,
		transparent 90%
	);
	filter: blur(30px);
}

.profic-hseo-node {
	position: absolute;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.profic-hseo-node--user {
	left: 50%;
	top: 40px;
	transform: translateX(-50%);
	width: 50px;
}

.profic-hseo-node--client {
	left: 50%;
	top: 420px;
	transform: translateX(-50%);
	width: 59px;
}

@media (min-width: 800px) {
	.profic-hseo-node--user {
		left: 0;
		top: 50%;
		transform: translateY(-50%);
		width: 50px;
	}

	.profic-hseo-node--client {
		left: 320px;
		top: 107px;
		transform: none;
		width: 59px;
	}
}

.profic-hseo-ico-user {
	display: block;
	width: 50px;
	height: 58px;
}

.profic-hseo-ico-client {
	display: block;
	width: 59px;
	height: 49px;
}

.profic-hseo-node-label {
	font-family: "Amsi Pro", sans-serif;
	font-weight: 400;
	font-size: 13px;
	line-height: 1;
	color: rgba(255, 255, 255, 0.5);
	white-space: nowrap;
	text-align: center;
}

.profic-hseo-arrow {
	position: absolute;
	z-index: 3;
	width: 40px;
	height: 40px;
	opacity: 0;
	pointer-events: none;
	will-change: opacity;
}

.profic-hseo-arrow svg {
	display: none;
	width: 40px;
	height: 40px;
}

.profic-hseo-arrow .profic-hseo-arrow-v {
	display: block;
}

.profic-hseo-arrow--in {
	left: 50%;
	top: 140px;
	transform: translateX(-50%);
}

.profic-hseo-arrow--out {
	left: 50%;
	top: 340px;
	transform: translateX(-50%);
}

@media (min-width: 800px) {
	.profic-hseo-arrow .profic-hseo-arrow-v {
		display: none;
	}

	.profic-hseo-arrow .profic-hseo-arrow-h {
		display: block;
	}

	.profic-hseo-arrow--in {
		left: 100px;
		top: 110px;
		transform: none;
	}

	.profic-hseo-arrow--out {
		left: 260px;
		top: 110px;
		transform: none;
	}
}

.profic-hseo-orbit-ico {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 4;
	opacity: 0;
	pointer-events: none;
	will-change: transform, opacity;
}

.profic-hseo-orbit-ico--ia {
	width: 44.32px;
	height: 44.32px;
}

.profic-hseo-orbit-ico--google {
	width: 44.74px;
	height: 44.74px;
}

.profic-hseo-orbit-ico svg {
	display: block;
	width: 100%;
	height: 100%;
}

@media (prefers-reduced-motion: reduce) {
	.profic-hseo-rotonda-glow,
	.profic-hseo-orbit-ico,
	.profic-hseo-arrow {
		display: none !important;
	}
}

/* =============================================================================
   Página Servicio SEO (Figma 428:6543) — fondos de widgets compartidos.
   Solo aplica donde está el Hero SEO; Home conserva sus fondos.
   Coords en px del artboard 1280; rotaciones Figma → rotate(-deg) con origin 0 0.
   ============================================================================= */
@media (min-width: 1280px) {
	/* El artboard Figma recorta los glows: sin esto el del Form alarga el scroll de la página */
	body:has(.profic-hero-seo-section) .elementor-widget-theme-post-content {
		overflow: clip;
	}

	/*
	 * Slider 428:6769 — legado para páginas que aún usan la variante "Home / Nosotros".
	 * La variante "Servicio SEO" del widget ya trae esta geometría; las otras no se tocan.
	 */
	body:has(.profic-hero-seo-section) .profic-testimonial-slider-wrapper--violet {
		min-height: 791px;
	}

	body:has(.profic-hero-seo-section) .profic-testimonial-slider-wrapper--violet .profic-testimonial-slider-quote--right {
		top: 484px;
	}

	body:has(.profic-hero-seo-section) .profic-testimonial-slider-wrapper--violet .profic-testimonial-slider-line-bg.show-desktop {
		display: none;
	}

	/* Linea de fondo 428:6771 (frame con clip) */
	body:has(.profic-hero-seo-section) .profic-testimonial-slider-wrapper--violet .profic-testimonial-slider-backgrounds::before {
		content: "";
		position: absolute;
		left: 60px;
		top: 534px;
		width: 1220px;
		height: 428px;
		background: url("https://test-profic.dahseo.com/wp-content/themes/hello-elementor-child/assets/images/servicio-seo-slider-linea.svg") no-repeat 0 0 / 100% 100%;
	}

	/* Casos de éxito 428:6805 — frame x=191; capas detrás de todo el contenido */
	body:has(.profic-hero-seo-section) .profic-casos-exito-backgrounds {
		z-index: -1;
	}

	body:has(.profic-hero-seo-section) .profic-casos-exito-backgrounds::before,
	body:has(.profic-hero-seo-section) .profic-casos-exito-backgrounds::after {
		content: "";
		position: absolute;
		background: url("https://test-profic.dahseo.com/wp-content/themes/hello-elementor-child/assets/images/fondo-gradiente.webp") no-repeat center / cover;
		filter: blur(193.55px);
		transform-origin: 0 0;
	}

	/* FONDO Gradiente 428:6806 — 1646×1904 en (1347, -214) rot -30 */
	body:has(.profic-hero-seo-section) .profic-casos-exito-backgrounds::before {
		left: 1538px;
		top: -214px;
		width: 1646px;
		height: 1904px;
		transform: rotate(30deg);
	}

	/* FONDO Gradiente 428:6807 — 1723×1993 en (-406, 1950) rot 151 · opacity .7 */
	body:has(.profic-hero-seo-section) .profic-casos-exito-backgrounds::after {
		left: -215px;
		top: 1950px;
		width: 1723px;
		height: 1993px;
		opacity: 0.7;
		transform: rotate(-151deg);
	}

	/* Vector 1 (Stroke) 428:6808 — arco superior */
	body:has(.profic-hero-seo-section) .profic-casos-exito-wrapper::before {
		content: "";
		position: absolute;
		left: calc(50% - 640px);
		top: -8px;
		width: 1280px;
		height: 188px;
		z-index: -1;
		pointer-events: none;
		background: url("https://test-profic.dahseo.com/wp-content/themes/hello-elementor-child/assets/images/servicio-seo-casos-arco.svg") no-repeat 0 0 / 100% 100%;
	}

	/* Botonn a 99px de las cards (sin el pad 60 de Home) */
	body:has(.profic-hero-seo-section) .profic-casos-exito-footer {
		padding-top: 0;
	}

	/* Partner 428:6908 — 512 de alto, ICON en y=0 */
	body:has(.profic-hero-seo-section) .profic-partner-wrapper {
		min-height: 0;
		padding-top: 0;
		padding-bottom: 129px;
	}

	body:has(.profic-hero-seo-section) .profic-partner-backgrounds {
		min-height: 0;
	}

	/* FONDO - Linea 428:6909 — vector en y=164.5+100.5 */
	body:has(.profic-hero-seo-section) .profic-partner-line-bg.show-desktop {
		top: 265px;
	}

	/* Blog 428:6934 — Cards pegadas al Título (y=244) */
	body:has(.profic-hero-seo-section) .profic-blog-home-section {
		gap: 8px;
	}

	/* Vector 1 (Stroke) 428:6935 y=-51 · 428:6936 rot 180 → caja y=538 */
	body:has(.profic-hero-seo-section) .profic-blog-home-stroke--top.show-desktop {
		top: -51px;
		transform: none;
	}

	body:has(.profic-hero-seo-section) .profic-blog-home-stroke--bottom.show-desktop {
		top: 538px;
		transform: none;
	}

	/* Frame 1867: la card A crece ~13px por el ancho del webfont */
	body:has(.profic-hero-seo-section) .profic-casos-exito-wrapper {
		padding-bottom: 107px;
	}

	/* Form 428:6946 — 930 de alto, contenido en y=100+120 */
	/* overflow-y clip: el degradado rotado ::before llega ~2600px abajo y, sin recorte,
	   se ve bajo el footer (editor) o alarga la página. clip no crea contexto de apilamiento. */
	/* !important: .profic-fondos-armonicos fuerza overflow: visible !important (profic-elementor.css). */
	body:has(.profic-hero-seo-section) .profic-contacto-wrapper {
		--profic-contacto-pad-top: 220px;
		--profic-contacto-pad-bottom: 173px;
		overflow-x: visible !important;
		overflow-y: clip !important;
	}

	/* Form 428:6946 — sin líneas (capa oculta en Figma) ni glows de Home */
	body:has(.profic-hero-seo-section) .profic-contacto-bg-glow,
	body:has(.profic-hero-seo-section) .profic-contacto-line-bg {
		display: none !important;
	}

	/* FONDO Gradiente 428:6959 — 2613×1465 en (-224, 100+1163) rot 25 · opacity .92 */
	body:has(.profic-hero-seo-section) .profic-contacto-wrapper::before {
		content: "";
		position: absolute;
		left: calc(50% - 640px - 224px);
		top: 1263px;
		width: 2613px;
		height: 1465px;
		z-index: -1;
		pointer-events: none;
		opacity: 0.92;
		background: url("https://test-profic.dahseo.com/wp-content/themes/hello-elementor-child/assets/images/fondo-gradiente.webp") no-repeat center / cover;
		filter: blur(193.55px);
		transform-origin: 0 0;
		transform: rotate(-25deg);
	}
}

/* =============================================================================
   Variante "Plataformas IA"
   Desktop/Tablet Figma 2:4491 — 450×257.5, 4 logos + persona
   Mobile Figma 2:5468 — 450×344.5, suma un Google arriba
   El trazo (Linea Movimiento) recorre cada línea hacia el centro.
   ============================================================================= */
.profic-hseo-ia {
	position: relative;
	width: min(450px, 100%);
	aspect-ratio: 450 / 257.5;
}

/*
 * Linea Movimiento — el trazo no es una línea continua.
 * Arranca magenta en el extremo del centro, se apaga, y un tramo
 * vuelve a aparecer más adelante. Predeterminado lo deja ~al 30%;
 * Hover (la línea de Gemini en el frame) lo corre hasta ~el 80%.
 */
@property --hseo-ia-fade {
	syntax: "<percentage>";
	inherits: false;
	initial-value: 15.6%;
}
@property --hseo-ia-bead {
	syntax: "<percentage>";
	inherits: false;
	initial-value: 30.5%;
}
@property --hseo-ia-tail {
	syntax: "<percentage>";
	inherits: false;
	initial-value: 44.4%;
}

.profic-hseo-ia__line {
	--hseo-ia-fade: 15.6%;
	--hseo-ia-bead: 30.5%;
	--hseo-ia-tail: 44.4%;
	position: absolute;
	z-index: 1;
	left: 50.522%;
	top: 78.641%;
	width: 38.889%;
	height: 1px;
	transform-origin: left center;
	transform: translateY(-50%) rotate(var(--hseo-ia-rot));
	background-color: transparent;
	background-image: linear-gradient(
		90deg,
		#b71694 0%,
		rgba(183, 22, 148, 0) var(--hseo-ia-fade),
		#b71694 var(--hseo-ia-bead),
		rgba(183, 22, 148, 0) var(--hseo-ia-tail),
		transparent 100%
	);
	filter: drop-shadow(0 2px 2px rgba(22, 30, 183, 0.1));
	animation: profic-hseo-ia-bead 2.8s ease-in-out infinite alternate;
	animation-delay: var(--hseo-ia-delay, 0s);
	pointer-events: none;
}

.profic-hseo-ia__line--chatgpt { --hseo-ia-rot: 180deg; --hseo-ia-delay: 0s; }
.profic-hseo-ia__line--claude { --hseo-ia-rot: -117.92deg; --hseo-ia-delay: -0.7s; }
.profic-hseo-ia__line--google { --hseo-ia-rot: -63.31deg; --hseo-ia-delay: -1.4s; }
.profic-hseo-ia__line--gemini { --hseo-ia-rot: 0deg; --hseo-ia-delay: -2.1s; }
.profic-hseo-ia__line--google-top { display: none; }

.profic-hseo-ia__tile {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20%;
	aspect-ratio: 1;
	border-radius: 22.22%;
	background: #f8f8f8;
	box-shadow: 0 3px 17px rgba(22, 30, 183, 0.1);
}

.profic-hseo-ia__tile img {
	display: block;
	width: 34%;
	height: auto;
}

.profic-hseo-ia__tile--chatgpt { left: 0; top: 61.165%; }
.profic-hseo-ia__tile--claude { left: 22.222%; top: 0; }
.profic-hseo-ia__tile--google { left: 58.333%; top: 0; width: 19.444%; aspect-ratio: 87.5 / 90; }
.profic-hseo-ia__tile--gemini { left: 80%; top: 61.165%; }
.profic-hseo-ia__tile--google-top { display: none; }

.profic-hseo-ia__hub {
	position: absolute;
	z-index: 3;
	left: 38.3%;
	top: 57.282%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24.444%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: #f8f8f8;
	box-shadow: 0 3px 17px rgba(22, 30, 183, 0.15);
}

.profic-hseo-ia__hub img {
	display: block;
	width: 27.7%;
	height: auto;
}

/* Light — Frame 128 (2181:3756): círculo navegador 110 + halo "Color rosa" 195.8 centrado, sube 3.75px */
.profic-hseo-ia__hub--browser {
	background: none;
	box-shadow: none;
	transform: translateY(-3.41%);
}

.profic-hseo-ia__hub--browser .profic-hseo-ia__hub-glow {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 178%;
	max-width: none;
	height: auto;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.profic-hseo-ia__hub--browser .profic-hseo-ia__hub-icon {
	position: relative;
	width: 100%;
	height: auto;
}

/*
 * Light — Linea Mov 1–4 (2181:3736/3741/3746/3751): franja de 2px sin trazo base,
 * recorta una elipse #B71694 con blur 9.7. Predeterminado = bajo el logo,
 * Variante 2 = bajo el centro; las cuatro cambian a la vez y el halo del centro
 * pasa de r47 a r84 (Frame 128 Variante 2). Figma no exporta la duración.
 * El perfil del gradiente es la gaussiana de la elipse muestreada en 5 pasos:
 * horizontales 26×29 → paso 6.5px; diagonales 99×38 → paso 9.5px y más intensas.
 */
@property --hseo-ia-pos {
	syntax: "<percentage>";
	inherits: false;
	initial-value: 100%;
}

.profic-hero-seo-section--light .profic-hseo-ia__line {
	--hseo-ia-pos: 100%;
	--hseo-ia-k: 1;
	--hseo-ia-b: 0%;
	--hseo-ia-step: 3.55%;
	--hseo-ia-a0: 0.71;
	--hseo-ia-a1: 0.63;
	--hseo-ia-a2: 0.43;
	--hseo-ia-a3: 0.22;
	--hseo-ia-a4: 0.08;
	--hseo-ia-c: calc(var(--hseo-ia-pos) * var(--hseo-ia-k) + var(--hseo-ia-b));
	height: 2px;
	filter: none;
	background-image: linear-gradient(
		90deg,
		rgb(183 22 148 / 0) calc(var(--hseo-ia-c) - 5 * var(--hseo-ia-step)),
		rgb(183 22 148 / var(--hseo-ia-a4)) calc(var(--hseo-ia-c) - 4 * var(--hseo-ia-step)),
		rgb(183 22 148 / var(--hseo-ia-a3)) calc(var(--hseo-ia-c) - 3 * var(--hseo-ia-step)),
		rgb(183 22 148 / var(--hseo-ia-a2)) calc(var(--hseo-ia-c) - 2 * var(--hseo-ia-step)),
		rgb(183 22 148 / var(--hseo-ia-a1)) calc(var(--hseo-ia-c) - var(--hseo-ia-step)),
		rgb(183 22 148 / var(--hseo-ia-a0)) var(--hseo-ia-c),
		rgb(183 22 148 / var(--hseo-ia-a1)) calc(var(--hseo-ia-c) + var(--hseo-ia-step)),
		rgb(183 22 148 / var(--hseo-ia-a2)) calc(var(--hseo-ia-c) + 2 * var(--hseo-ia-step)),
		rgb(183 22 148 / var(--hseo-ia-a3)) calc(var(--hseo-ia-c) + 3 * var(--hseo-ia-step)),
		rgb(183 22 148 / var(--hseo-ia-a4)) calc(var(--hseo-ia-c) + 4 * var(--hseo-ia-step)),
		rgb(183 22 148 / 0) calc(var(--hseo-ia-c) + 5 * var(--hseo-ia-step))
	);
	animation: profic-hseo-ia-signal 3s ease-in-out infinite;
	animation-delay: 0s;
}

.profic-hero-seo-section--light .profic-hseo-ia__line--claude,
.profic-hero-seo-section--light .profic-hseo-ia__line--google {
	--hseo-ia-step: 5.19%;
	--hseo-ia-a0: 0.91;
	--hseo-ia-a1: 0.8;
	--hseo-ia-a2: 0.48;
	--hseo-ia-a3: 0.16;
	--hseo-ia-a4: 0.02;
}

.profic-hero-seo-section--light .profic-hseo-ia__hub-glow {
	animation: profic-hseo-ia-hub-pulse 3s ease-in-out infinite;
}

/*
 * Geometría Group 9 (450×257.5): origen en el extremo del centro, rotada hacia el logo.
 * Mobile (2181:12164, 337.5×193.125) es el mismo grupo al 75%, así que vale en todos los anchos.
 */
.profic-hero-seo-section--light .profic-hseo-ia__line--gemini {
	left: 53.778%;
	top: 79.903%;
	width: 40.667%;
	--hseo-ia-rot: 0deg;
}

.profic-hero-seo-section--light .profic-hseo-ia__line--chatgpt {
	left: 43.333%;
	top: 79.903%;
	width: 40.667%;
	--hseo-ia-rot: 180deg;
	--hseo-ia-k: 0.967;
}

.profic-hero-seo-section--light .profic-hseo-ia__line--google {
	left: 53.182%;
	top: 67.274%;
	width: 40.667%;
	--hseo-ia-rot: -60deg;
	--hseo-ia-k: 0.913;
	--hseo-ia-b: 6%;
}

.profic-hero-seo-section--light .profic-hseo-ia__line--claude {
	left: 47.638%;
	top: 67.662%;
	width: 40.667%;
	--hseo-ia-rot: -120deg;
	--hseo-ia-k: 0.913;
	--hseo-ia-b: 6%;
}

/* Viaje logo → centro y desvanecido bajo el círculo; el reinicio queda oculto bajo el logo */
@keyframes profic-hseo-ia-signal {
	0% {
		--hseo-ia-pos: 100%;
		opacity: 1;
	}
	50% {
		--hseo-ia-pos: 0%;
		opacity: 1;
	}
	60%,
	100% {
		--hseo-ia-pos: 0%;
		opacity: 0;
	}
}

/* Halo Color rosa: r47/blur 25.45 → r84/blur 53.3 (caja 195.8 → 381.2) al llegar la señal */
@keyframes profic-hseo-ia-hub-pulse {
	0%,
	42% {
		transform: translate(-50%, -50%) scale(1);
	}
	65% {
		transform: translate(-50%, -50%) scale(1.947);
	}
	100% {
		transform: translate(-50%, -50%) scale(1);
	}
}

/*
 * Hover en un logo (desktop/tablet): solo su línea lleva la señal al centro, reiniciada
 * desde el logo; las demás se apagan. El nombre de keyframes distinto fuerza el reinicio.
 */
@media (hover: hover) and (min-width: 800px) and (prefers-reduced-motion: no-preference) {
	.profic-hero-seo-section--light .profic-hseo-ia:has(.profic-hseo-ia__tile:hover) .profic-hseo-ia__line {
		animation: none;
		opacity: 0;
	}

	.profic-hero-seo-section--light .profic-hseo-ia:has(.profic-hseo-ia__tile--chatgpt:hover) .profic-hseo-ia__line--chatgpt,
	.profic-hero-seo-section--light .profic-hseo-ia:has(.profic-hseo-ia__tile--claude:hover) .profic-hseo-ia__line--claude,
	.profic-hero-seo-section--light .profic-hseo-ia:has(.profic-hseo-ia__tile--google:hover) .profic-hseo-ia__line--google,
	.profic-hero-seo-section--light .profic-hseo-ia:has(.profic-hseo-ia__tile--gemini:hover) .profic-hseo-ia__line--gemini {
		animation: profic-hseo-ia-signal-hover 3s ease-in-out infinite;
	}

	.profic-hero-seo-section--light .profic-hseo-ia:has(.profic-hseo-ia__tile:hover) .profic-hseo-ia__hub-glow {
		animation-name: profic-hseo-ia-hub-pulse-hover;
	}

	.profic-hero-seo-section--light .profic-hseo-ia__hub--browser {
		transition: transform 0.3s ease-out;
	}

	.profic-hero-seo-section--light .profic-hseo-ia__hub--browser:hover {
		transform: translateY(-3.41%) scale(1.05);
	}
}

@keyframes profic-hseo-ia-signal-hover {
	0% {
		--hseo-ia-pos: 100%;
		opacity: 1;
	}
	50% {
		--hseo-ia-pos: 0%;
		opacity: 1;
	}
	60%,
	100% {
		--hseo-ia-pos: 0%;
		opacity: 0;
	}
}

@keyframes profic-hseo-ia-hub-pulse-hover {
	0%,
	42% {
		transform: translate(-50%, -50%) scale(1);
	}
	65% {
		transform: translate(-50%, -50%) scale(1.947);
	}
	100% {
		transform: translate(-50%, -50%) scale(1);
	}
}

/* Mobile light: anula el layout de 5 logos del modo dark; mismo grupo escalado (sombra 2.25/12.75) */
@media (max-width: 799px) {
	.profic-hero-seo-section--light .profic-hseo-ia {
		aspect-ratio: 450 / 257.5;
	}

	.profic-hero-seo-section--light .profic-hseo-ia__tile {
		box-shadow: 0 2.25px 12.75px rgba(22, 30, 183, 0.1);
	}

	.profic-hero-seo-section--light .profic-hseo-ia__tile--claude,
	.profic-hero-seo-section--light .profic-hseo-ia__tile--google {
		top: 0;
	}

	.profic-hero-seo-section--light .profic-hseo-ia__tile--chatgpt,
	.profic-hero-seo-section--light .profic-hseo-ia__tile--gemini {
		top: 61.165%;
	}

	.profic-hero-seo-section--light .profic-hseo-ia__hub {
		top: 57.282%;
	}

	.profic-hero-seo-section--light .profic-hseo-ia__tile--google-top,
	.profic-hero-seo-section--light .profic-hseo-ia__line--google-top {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.profic-hero-seo-section--light .profic-hseo-ia__line,
	.profic-hero-seo-section--light .profic-hseo-ia__hub-glow {
		animation: none;
	}
}

@keyframes profic-hseo-ia-bead {
	0% {
		--hseo-ia-fade: 15.6%;
		--hseo-ia-bead: 30.5%;
		--hseo-ia-tail: 44.4%;
	}
	45% {
		--hseo-ia-fade: 42.3%;
		--hseo-ia-bead: 51.9%;
		--hseo-ia-tail: 68.3%;
	}
	100% {
		--hseo-ia-fade: 60%;
		--hseo-ia-bead: 80%;
		--hseo-ia-tail: 100%;
	}
}

@media (max-width: 799px) {
	.profic-hseo-ia {
		aspect-ratio: 450 / 344.5;
	}

	.profic-hseo-ia__line {
		top: 84.035%;
	}

	.profic-hseo-ia__tile--claude,
	.profic-hseo-ia__tile--google {
		top: 25.254%;
	}

	.profic-hseo-ia__tile--chatgpt,
	.profic-hseo-ia__tile--gemini {
		top: 70.973%;
	}

	.profic-hseo-ia__hub {
		top: 68.07%;
	}

	.profic-hseo-ia__tile--google-top,
	.profic-hseo-ia__line--google-top {
		display: flex;
	}

	.profic-hseo-ia__line--google-top {
		display: block;
		width: 55.06%;
		--hseo-ia-rot: -99.3deg;
		--hseo-ia-delay: -2.1s;
	}

	.profic-hseo-ia__tile--google-top {
		left: 31.889%;
		top: 0;
		width: 19.444%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.profic-hseo-ia__line {
		animation: none;
		--hseo-ia-fade: 42.3%;
		--hseo-ia-bead: 51.9%;
		--hseo-ia-tail: 68.3%;
	}

	.profic-hseo-ia__line--gemini {
		--hseo-ia-fade: 60%;
		--hseo-ia-bead: 80%;
		--hseo-ia-tail: 100%;
	}
}

/* =============================================================================
   Diálogo — la burbuja cambia de tamaño; el texto de al lado no.
   ============================================================================= */
.profic-hero-seo-section--dialogo .profic-hero-seo-visual {
	flex: none;
	width: 100%;
	max-width: 339px;
	height: 260.25px;
	min-height: 0;
	padding: 0;
}

.profic-hseo-dialog {
	position: relative;
	width: 100%;
	height: 100%;
}

.profic-hseo-dialog__bubble {
	position: absolute;
	left: 50%;
	bottom: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-sizing: border-box;
	width: 100%;
	max-width: 339px;
	height: 98.25px;
	padding: 7.5px;
	border-radius: 30px;
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	transform: translateX(-50%);
	animation: profic-hseo-dialog-float 6s ease-in-out infinite;
}

.profic-hseo-dialog__bubble::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 0.9px solid rgba(255, 255, 255, 0.1);
	border-radius: 30px;
	pointer-events: none;
}

.profic-hseo-dialog__text {
	box-sizing: border-box;
	width: 100%;
	padding: 15px 15px 7.5px;
}

.profic-hseo-dialog__text p {
	margin: 0;
	font-family: "Amsi Pro", sans-serif;
	font-weight: 400;
	font-size: 10.5px;
	line-height: 1.3;
	color: #ffffff;
	white-space: pre-wrap;
	word-break: break-word;
}

.profic-hseo-dialog__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
	width: 100%;
	height: 33.75px;
	padding-bottom: 3.75px;
}

.profic-hseo-dialog__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #ffffff;
	cursor: pointer;
	text-decoration: none;
}

.profic-hseo-dialog__btn svg {
	display: block;
	width: 100%;
	height: 100%;
}

.profic-hseo-dialog__btn:hover {
	transform: scale(1.08);
}

@media (min-width: 800px) {
	.profic-hero-seo-section--dialogo .profic-hero-seo-visual {
		width: 452px;
		max-width: 452px;
		height: 347px;
		margin-inline: auto;
		padding-left: 0;
	}

	.profic-hseo-dialog__bubble {
		width: 452px;
		max-width: 452px;
		height: 131px;
		padding: 10px;
	}

	.profic-hseo-dialog__bubble::after {
		border-width: 1.2px;
	}

	.profic-hseo-dialog__text {
		padding: 20px 20px 10px;
	}

	.profic-hseo-dialog__text p {
		font-size: 14px;
	}

	.profic-hseo-dialog__actions {
		height: 45px;
		padding-bottom: 5px;
	}

	.profic-hseo-dialog__btn {
		width: 40px;
		height: 40px;
	}
}

@media (min-width: 1280px) {
	.profic-hero-seo-section--dialogo .profic-hero-seo-visual {
		width: 467px;
		max-width: 467px;
		height: 347px;
		min-height: 347px;
	}
}

@keyframes profic-hseo-dialog-float {
	0%,
	100% {
		transform: translateX(-50%) translateY(0);
	}
	50% {
		transform: translateX(-50%) translateY(-10px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.profic-hseo-dialog__bubble {
		animation: none;
	}
}

/* =============================================================================
   Apariencia Light — Figma Hero AI Search 112:5869 (WPFIG copia)
   Lienzo #F8F8F8, texto #090511, botón contorno #B71694.
   Los arcos rosa son la sombra superior de dos óvalos #F8F8F8 del mismo tono que el lienzo.
   Coordenadas relativas al artboard 1280 (frame Hero en y=90).
   ============================================================================= */
.profic-hero-seo-section--light .profic-hero-seo-glow {
	display: none;
}

.profic-hero-seo-section--light .profic-hero-seo-backgrounds::before,
.profic-hero-seo-section--light .profic-hero-seo-backgrounds::after {
	content: "";
	position: absolute;
	width: 1415px;
	height: 788px;
	border-radius: 955px;
	background: #f8f8f8;
	pointer-events: none;
}

/*
 * Fondo Textura 1 (112:5721, opacidad 0.6): Group 18 en (475.6, -434.3), 1292.4×995.1.
 * Cae fuera del artboard 1280; se ve arriba a la derecha en pantallas más anchas.
 * Queda debajo de los dos óvalos.
 */
.profic-hero-seo-backgrounds img.profic-hero-seo-textura {
	position: absolute;
	z-index: -1;
	left: 475.6px;
	top: -434.3px;
	width: 1292.4px;
	max-width: none;
	height: 995.1px;
	opacity: 0.6;
	pointer-events: none;
}

/* Fondo sombra rosa 1 (112:5870): (-738, 90-166) */
.profic-hero-seo-section--light .profic-hero-seo-backgrounds::before {
	left: -738px;
	top: -76px;
	box-shadow: 0 -29px 34.4px rgba(183, 22, 148, 0.15);
}

/* Fondo sombra rosa 2 (112:5871): caja 1615×1435 en (-1460, 90-807), óvalo rotado 33.29°; va encima del 1 */
.profic-hero-seo-section--light .profic-hero-seo-backgrounds::after {
	left: -1359.8px;
	top: -393.3px;
	box-shadow: 0 -29px 15.4px rgba(183, 22, 148, 0.09);
	transform: rotate(33.29deg);
}

.profic-hero-seo-section--light .profic-hero-seo-title,
.profic-hero-seo-section--light h1.profic-hero-seo-title,
.profic-hero-seo-section--light .profic-hero-seo-subtitle,
.profic-hero-seo-section--light p.profic-hero-seo-subtitle {
	color: #090511;
}

/* Boton IA (6414:33834): default fill #B71694 → hover ghost con stroke #B71694 */
.profic-hero-seo-section--light .profic-hero-btn {
	background-color: #b71694;
	color: #ffffff;
	border-color: #b71694;
}

.profic-hero-seo-section--light .profic-hero-btn:hover,
.profic-hero-seo-section--light .profic-hero-btn:focus-visible {
	background-color: transparent;
	color: #090511;
	border-color: #b71694;
}

.profic-hero-seo-section--light .profic-hero-btn:active {
	background-color: rgba(9, 5, 17, 0.06);
	color: #090511;
	border-color: #b71694;
}

.profic-hero-seo-section--light .profic-hseo-node-label {
	color: rgba(9, 5, 17, 0.55);
}

.profic-hero-seo-section--light .profic-hseo-dialog__bubble {
	background: #ffffff;
	box-shadow: 0 3px 17px rgba(22, 30, 183, 0.1);
}

.profic-hero-seo-section--light .profic-hseo-dialog__bubble::after {
	border-color: rgba(9, 5, 17, 0.08);
}

	.profic-hero-seo-section--light .profic-hseo-dialog__text p,
	.profic-hero-seo-section--light .profic-hseo-dialog__btn {
		color: #090511;
	}

/* =============================================================================
   Plataformas IA — solo el gráfico. El texto usa el layout común del hero.
   ============================================================================= */
.profic-hero-seo-section--ia .profic-hero-seo-visual {
	flex: none;
	width: 100%;
	min-height: 0;
	padding: 0;
	justify-content: center;
}

@media (min-width: 800px) {
	.profic-hero-seo-section--ia .profic-hero-seo-visual {
		flex: 0 0 450px;
		width: 450px;
		max-width: 100%;
		margin-inline: auto;
		justify-content: center;
	}
}

@media (min-width: 1280px) {
	.profic-hero-seo-section--ia .profic-hero-seo-visual {
		margin-inline: 0;
		justify-content: flex-end;
	}
}
