/* KBO Footer para Elementor — estilos base.
   Los controles de Elementor sobreescriben estas reglas (tienen mayor especificidad). */

@font-face {
	font-family: "KBO Outfit";
	src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

.kbo-foot {
	--kbo-accent: #1ea7e1;
	--kbo-maxw: 1350px;
	--kbo-fill-a: #001221;
	--kbo-fill-b: #093349;
	--kbo-stroke: rgba(70, 175, 225, 0.22);
	--kbo-stroke-w: 1px;
	--kbo-glow: rgba(36, 151, 185, 0.25);
	--kbo-glow-size: 300px;
	--kbo-dur: 6s;
	--kbo-hide: 37%;

	position: relative;
	box-sizing: border-box;
	display: block;
	width: 100%;
	margin: 0;
	padding: 90px 24px 0;
	overflow: hidden;
	isolation: isolate;
	background-color: #000f1d;
	color: #d6eeff;
	font-family: inherit;
	line-height: 1.5;
	text-align: left;
}

.kbo-foot *,
.kbo-foot *::before,
.kbo-foot *::after {
	box-sizing: border-box;
}

/* ---------- Contenido centrado (máx. 1350 px) ---------- */

.kbo-foot__wrap {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--kbo-maxw);
	margin: 0 auto;
}

.kbo-foot__grid {
	display: grid;
	grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
	column-gap: 56px;
	row-gap: 40px;
	align-items: start;
}

/* El PHP agrega kbo-foot--cols-N (N = marca + columnas visibles) */
.kbo-foot--cols-1 .kbo-foot__grid {
	grid-template-columns: minmax(0, 1fr);
}

.kbo-foot--cols-2 .kbo-foot__grid {
	grid-template-columns: 1.6fr minmax(0, 1fr);
}

.kbo-foot--cols-3 .kbo-foot__grid {
	grid-template-columns: 1.6fr repeat(2, minmax(0, 1fr));
}

.kbo-foot--cols-4 .kbo-foot__grid {
	grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
}

.kbo-foot--cols-5 .kbo-foot__grid {
	grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr));
}

/* ---------- Marca ---------- */

.kbo-foot__logolink {
	display: inline-block;
	line-height: 0;
	text-decoration: none;
}

.kbo-foot__logo {
	display: block;
	height: 54px;
	width: auto;
	max-width: 100%;
	border: 0;
}

.kbo-foot__brandtext {
	display: inline-block;
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
	color: #fff;
}

.kbo-foot__desc {
	max-width: 320px;
	margin: 18px 0 0;
	font-size: 15px;
	line-height: 1.7;
	color: rgba(214, 238, 255, 0.68);
}

/* ---------- Columnas ---------- */

.kbo-foot__title {
	margin: 0 0 20px;
	padding: 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #fff;
}

.kbo-foot__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kbo-foot__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.kbo-foot__link,
.kbo-foot__text {
	font-size: 15px;
	line-height: 1.5;
	color: rgba(214, 238, 255, 0.72);
}

.kbo-foot__link {
	display: inline;
	text-decoration: none;
	background-image: linear-gradient(var(--kbo-ul, var(--kbo-accent)), var(--kbo-ul, var(--kbo-accent)));
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 1px;
	padding-bottom: 3px;
	transition: color 0.25s ease, background-size 0.35s ease;
}

.kbo-foot__link:hover,
.kbo-foot__link:focus-visible {
	color: #fff;
}

.kbo-foot:not(.kbo-foot--ul) .kbo-foot__link {
	background-image: none;
}

.kbo-foot--ul .kbo-foot__link:hover,
.kbo-foot--ul .kbo-foot__link:focus-visible {
	background-size: 100% 1px;
}

/* ---------- Barra inferior ---------- */

.kbo-foot__bot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 72px;
	padding: 34px 0 44px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.kbo-foot__copy {
	font-size: 13px;
	line-height: 1.6;
	color: #d6eeff;
}

.kbo-foot__col--social {
	min-width: 0;
}

.kbo-foot__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kbo-foot__social-item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.kbo-foot__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.04);
	color: #fff;
	font-size: 16px;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

a.kbo-foot__social-link:hover,
a.kbo-foot__social-link:focus-visible {
	background-color: var(--kbo-accent);
	border-color: var(--kbo-accent);
	color: #fff;
	transform: translateY(-3px);
}

.kbo-foot__social-link i,
.kbo-foot__social-link svg {
	width: 1em;
	height: 1em;
	font-size: 1em;
	line-height: 1;
	fill: currentColor;
}

/* Solo en el editor: red todavía sin enlace */
.kbo-foot__social-link--empty {
	border-style: dashed;
	opacity: 0.55;
}

/* ---------- Palabra KBO gigante ---------- */

.kbo-foot__wordbox {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 0;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	height: 100%;
	max-width: var(--kbo-maxw);
	margin: 0 auto;
	container-type: inline-size;
	pointer-events: none;
	user-select: none;
	-webkit-user-select: none;
}

.kbo-foot__word {
	flex: none;
	margin: 0;
	padding: 0;
	font-family: "KBO Outfit", "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 20vw; /* respaldo */
	font-size: 23cqw;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
	white-space: nowrap;

	/* sube para ocultar por abajo --kbo-hide % de la altura de las letras (métricas Outfit) */
	transform: translateY(calc(13% + var(--kbo-hide) * 0.7));

	/* relleno: degradado de 4 paradas que barre de derecha a izquierda */
	color: transparent;
	-webkit-text-fill-color: transparent;
	background-image: linear-gradient(
		90deg,
		var(--kbo-fill-a) 0%,
		var(--kbo-fill-b) 33.333%,
		var(--kbo-fill-a) 66.667%,
		var(--kbo-fill-b) 100%
	);
	background-size: 300% 100%;
	background-repeat: repeat;
	background-position: 0% 50%;
	-webkit-background-clip: text;
	background-clip: text;

	/* contorno fino (deja ver los contornos superpuestos de la fuente variable) */
	-webkit-text-stroke: var(--kbo-stroke-w) var(--kbo-stroke);

	animation: kbo-sweep var(--kbo-dur) linear infinite;
	will-change: background-position;
}

@keyframes kbo-sweep {
	from {
		background-position: 0% 50%;
	}
	to {
		background-position: 150% 50%;
	}
}

.kbo-foot--static .kbo-foot__word,
.kbo-foot.is-paused .kbo-foot__word {
	animation-play-state: paused;
}

.kbo-foot--static .kbo-foot__word {
	animation: none;
}

/* ---------- Resplandor que sigue al mouse ---------- */

.kbo-foot__glow {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.45s ease;
	background: radial-gradient(
		circle var(--kbo-glow-size) at var(--kbo-mx, 50%) var(--kbo-my, 50%),
		var(--kbo-glow),
		transparent 70%
	);
}

.kbo-foot.is-pointer .kbo-foot__glow {
	opacity: 1;
}

/* ---------- Responsive (respaldo; los controles de Elementor mandan) ---------- */

@media (max-width: 1024px) {
	.kbo-foot .kbo-foot__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.kbo-foot .kbo-foot__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.kbo-foot__bot {
		margin-top: 48px;
		padding-bottom: 36px;
	}

	.kbo-foot__word {
		font-size: 30vw;
		font-size: 38cqw;
	}
}

@media (prefers-reduced-motion: reduce) {
	.kbo-foot__word {
		animation: none;
	}

	.kbo-foot__glow,
	.kbo-foot__link,
	.kbo-foot__social-link {
		transition: none;
	}
}
