.intro-hero {
	padding: 2rem 0 4rem;
}

.intro-hero__inner {
	display: flex;
	flex-direction: column;
	gap: 3rem;
}

.hero-media {
	position: relative;
	width: 100%;
	height: clamp(280px, 38vw, 450px);
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
	background: #0f172a;
	isolation: isolate;
}

.hero-media__backdrop {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.hero-media__backdrop-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	filter: blur(18px) saturate(1.08) brightness(0.92);
	transform: scale(1.12);
	transform-origin: center;
}

.hero-media__foreground {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.hero-media__image {
	width: auto;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
	display: block;
}

.hero-media__image--water {
	animation: wpc-water-deformation 12s infinite ease-out;
	transform-origin: center center;
}

.swirl-overlay--capacitaciones {
	position: absolute;
	top: 71%;
	left: 48%;
	width: 100px;
	height: 100px;
	margin-left: -50px;
	margin-top: -50px;
	background: repeating-conic-gradient(
		from 0deg,
		rgba(255, 255, 255, 0.95) 0deg,
		transparent 45deg,
		rgba(255, 255, 255, 0.95) 90deg
	);
	border-radius: 50%;
	z-index: 10;
	animation: wpc-swirl-capacitaciones 7s infinite cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
}

@keyframes wpc-swirl-capacitaciones {
	0%, 5% { transform: scale(0) rotate(0deg); opacity: 1; }
	71% { transform: scale(40) rotate(360deg); opacity: 0; }
	100% { transform: scale(40) rotate(360deg); opacity: 0; }
}

/* Remolino Proyectos — WEBMENTE/proyectos.html */
.swirl-overlay--proyectos {
	position: absolute;
	top: 7%;
	right: 28%;
	width: 100px;
	height: 100px;
	background: repeating-conic-gradient(
		transparent 0deg 45deg,
		rgba(255, 255, 255, 0.8) 45deg 90deg
	);
	border-radius: 50%;
	z-index: 10;
	animation: wpc-swirl-proyectos 8s infinite cubic-bezier(0.25, 0.1, 0.25, 1);
	pointer-events: none;
	transform-origin: center;
}

@keyframes wpc-swirl-proyectos {
	0%, 5% { transform: scale(0) rotate(0deg); opacity: 1; }
	70%, 90% { transform: scale(40) rotate(135deg); opacity: 0; }
	100% { transform: scale(0) rotate(135deg); opacity: 0; }
}

/* Burbujas Tecnología — WEBMENTE/soluciones.html */
.bubbles-overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 10;
	overflow: hidden;
}

.bubbles-overlay__veil {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	animation: wpc-fade-veil 9s infinite ease-in-out;
}

.bubble {
	position: absolute;
	top: 50%;
	left: 25%;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.3));
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	border: 1px solid rgba(255, 255, 255, 0.9);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.7);
	animation: wpc-bubble-anim 9s infinite cubic-bezier(0.25, 0.1, 0.25, 1);
	animation-delay: var(--d, 0s);
}

@keyframes wpc-fade-veil {
	0% { opacity: 1; }
	45%, 94% { opacity: 0; }
	100% { opacity: 1; }
}

@keyframes wpc-bubble-anim {
	0% {
		transform: translate(-50%, -50%) scale(0.25);
		opacity: 1;
	}
	45%, 94% {
		transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(var(--s));
		opacity: 0;
	}
	95% {
		transform: translate(-50%, -50%) scale(0.25);
		opacity: 0;
	}
	100% {
		transform: translate(-50%, -50%) scale(0.25);
		opacity: 1;
	}
}

@keyframes wpc-water-deformation {
	0% { filter: brightness(1) contrast(1); }
	10% { filter: brightness(1.08) contrast(1.05); }
	20% { filter: brightness(1.03) contrast(1.02); }
	30% { filter: brightness(1.1) contrast(1.06); }
	40% { filter: brightness(1.04) contrast(1.03); }
	50% { filter: brightness(1.07) contrast(1.04); }
	65%, 100% { filter: brightness(1) contrast(1); }
}

.ripple-container {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: auto;
	z-index: 6;
}

.ripple {
	position: absolute;
	top: 30%;
	left: 40%;
	width: 0;
	height: 0;
	background: transparent;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.6);
	box-shadow: 0 0 20px rgba(255, 255, 255, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.3);
	transform: translate(-50%, -50%);
	animation: wpc-water-ripple 12s cubic-bezier(0.1, 0.4, 0.8, 1) forwards;
	opacity: 0;
	pointer-events: none;
}

.ripple.auto {
	animation: wpc-water-ripple-auto 12s infinite ease-out;
}

.ripple.auto:nth-child(2) { animation-delay: 1.5s; }
.ripple.auto:nth-child(3) { animation-delay: 3s; }
.ripple.auto:nth-child(4) { animation-delay: 4.5s; }

@keyframes wpc-water-ripple-auto {
	0% { width: 0; height: 0; opacity: 0.9; border-width: 6px; }
	50%, 100% { width: 1600px; height: 1600px; opacity: 0; border-width: 0; }
}

@keyframes wpc-water-ripple {
	0% { width: 0; height: 0; opacity: 0.9; border-width: 6px; }
	100% { width: 1600px; height: 1600px; opacity: 0; border-width: 0; }
}

.intro-hero__grid {
	display: flex;
	gap: 4rem;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	flex-wrap: wrap;
}

.intro-hero__grid--start {
	align-items: flex-start;
}

.intro-hero__content {
	flex: 1;
	min-width: min(100%, 300px);
}

.intro-hero__badge {
	display: inline-block;
	padding: 0.5rem 1rem;
	background: rgba(231, 125, 36, 0.1);
	color: var(--text-primary);
	border-radius: 50px;
	font-weight: 700;
	font-size: 0.9rem;
	margin-bottom: 1.5rem;
}

.intro-hero__title {
	font-size: clamp(2.25rem, 4vw, 3.5rem);
	line-height: 1.1;
	margin: 0 0 1.5rem;
	font-weight: 400;
}

.intro-hero__subtitle {
	font-size: 1.25rem;
	color: var(--text-secondary);
	margin: 0 0 1.5rem;
	max-width: 90%;
}

.intro-hero__subtitle:last-of-type {
	margin-bottom: 0;
}

.intro-hero__ofrecemos {
	margin-top: 3rem;
}

.intro-hero__ofrecemos h2 {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	margin: 0 0 1rem;
	font-weight: 800;
}

.intro-hero__ofrecemos p {
	margin: 0;
	font-size: 1.2rem;
	color: var(--text-secondary);
	max-width: 100%;
}

.card-body__lead {
	font-size: 1.1rem;
	margin: 0 0 0.5rem;
}

.card-body__lead strong {
	color: #333;
}

.intro-hero__visual {
	flex: 1;
	display: flex;
	justify-content: center;
	perspective: 1000px;
	min-width: min(100%, 300px);
}

.decorative-card {
	width: 100%;
	max-width: 400px;
	border-radius: 20px;
	transform: translateX(0);
	transition: transform 0.5s ease, background-color 0.4s ease;
	background: rgba(255, 255, 255, 0.8);
}

.decorative-card:hover {
	transform: translateX(-15px);
	background-color: rgba(241, 245, 249, 0.95);
}

.card-header {
	padding: 1rem;
	border-bottom: 1px solid var(--glass-border);
	display: flex;
	gap: 0.5rem;
}

.dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
}

.dot.brand-cyan { background: var(--primary); }
.dot.brand-orange { background: var(--accent-1); }
.dot.brand-yellow { background: var(--accent-2); }
.dot.brand-purple { background: var(--accent-3); }

.card-body {
	padding: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.intro-hero .stat-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	background: rgba(255, 255, 255, 0.5);
	border-radius: 12px;
	transition: transform 0.3s ease, background 0.3s ease;
}

.intro-hero .stat-row:hover {
	transform: translateX(10px);
	background: #fff;
}

.intro-hero .stat-row h2 {
	font-size: 1.1rem;
	margin: 0 0 0.2rem;
	font-weight: 600;
}

.intro-hero .stat-row p {
	font-size: 0.9rem;
	color: var(--text-secondary);
	margin: 0;
}

.icon-glow {
	flex-shrink: 0;
	font-size: 1.5rem;
	color: var(--primary);
	background: rgba(28, 178, 194, 0.1);
	padding: 1rem;
	border-radius: 12px;
}

@media (max-width: 900px) {
	.intro-hero__grid {
		flex-direction: column;
		text-align: center;
	}

	.intro-hero__subtitle {
		margin-inline: auto;
	}

	.intro-hero__visual {
		width: 100%;
	}

	.decorative-card {
		max-width: 100%;
	}

	.decorative-card:hover {
		transform: none;
	}
}

/* Elementor sobrescribe img { height: auto } — restaurar capas blur + ripples */
.elementor-widget-wpc_intro_hero .hero-media,
.elementor-widget-wpc_home_full .hero-media,
.elementor-widget-wpc_proyectos_intro .hero-media,
.elementor-widget-wpc_proyectos_full .hero-media,
.elementor-widget-wpc_capacitaciones_intro .hero-media,
.elementor-widget-wpc_capacitaciones_full .hero-media,
.elementor-widget-wpc_tecnologia_intro .hero-media,
.elementor-widget-wpc_tecnologia_full .hero-media,
.intro-hero .hero-media {
	min-height: clamp(280px, 38vw, 450px);
}

.elementor-widget-wpc_intro_hero .hero-media__backdrop-image,
.elementor-widget-wpc_home_full .hero-media__backdrop-image,
.elementor-widget-wpc_proyectos_intro .hero-media__backdrop-image,
.elementor-widget-wpc_proyectos_full .hero-media__backdrop-image,
.elementor-widget-wpc_capacitaciones_intro .hero-media__backdrop-image,
.elementor-widget-wpc_capacitaciones_full .hero-media__backdrop-image,
.elementor-widget-wpc_tecnologia_intro .hero-media__backdrop-image,
.elementor-widget-wpc_tecnologia_full .hero-media__backdrop-image,
.intro-hero .hero-media__backdrop-image {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
}

.elementor-widget-wpc_intro_hero .hero-media__image,
.elementor-widget-wpc_home_full .hero-media__image,
.elementor-widget-wpc_proyectos_intro .hero-media__image,
.elementor-widget-wpc_proyectos_full .hero-media__image,
.elementor-widget-wpc_capacitaciones_intro .hero-media__image,
.elementor-widget-wpc_capacitaciones_full .hero-media__image,
.elementor-widget-wpc_tecnologia_intro .hero-media__image,
.elementor-widget-wpc_tecnologia_full .hero-media__image,
.intro-hero .hero-media__image {
	width: auto !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.elementor-widget-wpc_intro_hero .hero-media.reveal,
.elementor-widget-wpc_home_full .hero-media.reveal,
.elementor-widget-wpc_proyectos_intro .hero-media.reveal,
.elementor-widget-wpc_proyectos_full .hero-media.reveal,
.elementor-widget-wpc_capacitaciones_intro .hero-media.reveal,
.elementor-widget-wpc_capacitaciones_full .hero-media.reveal,
.elementor-widget-wpc_tecnologia_intro .hero-media.reveal,
.elementor-widget-wpc_tecnologia_full .hero-media.reveal {
	opacity: 1;
	transform: scale(1);
}

.elementor-widget-wpc_intro_hero .ripple-container,
.elementor-widget-wpc_home_full .ripple-container,
.elementor-widget-wpc_proyectos_intro .ripple-container,
.elementor-widget-wpc_proyectos_full .ripple-container,
.elementor-widget-wpc_capacitaciones_intro .ripple-container,
.elementor-widget-wpc_capacitaciones_full .ripple-container,
.elementor-widget-wpc_tecnologia_intro .ripple-container,
.elementor-widget-wpc_tecnologia_full .ripple-container {
	z-index: 6;
}
