/* ==========================================================================
   Toscano – Footer (shader)
   Contenido: Figma "Footer" (nodo 454:1211). Layout y fondo animado inspirados
   en la referencia shader-footer (logo gigante arriba, columnas, barra legal).
   Prefijo .tft — selectores con dos clases para ganar al Kit de Elementor.
   ========================================================================== */

.tft {
	--tft-base: var(--toscano-brand-deep, #032d35);
	--tft-accent: var(--toscano-brand-teal, #009a9d);
	--tft-logo: #ffffff;
	--tft-logo-opacity: 1;
	--tft-fade-bottom: .08; /* opacidad del pie de las letras */
	--tft-fade-stop: 100%;  /* altura (desde abajo) en la que el logo ya es opaco */
	--tft-title: #ffffff;
	--tft-text: rgba(255, 255, 255, .78);
	--tft-link: #ffffff;
	--tft-link-hover: #7fd8da;
	--tft-line: rgba(255, 255, 255, .16);
	--tft-social-border: rgba(255, 255, 255, .28);
	--tft-social-hover-bg: #ffffff;
	--tft-social-hover-color: var(--toscano-brand-deep, #032d35);
	--tft-max: 1200px;

	position: relative;
	box-sizing: border-box;
	width: 100%;
	overflow: hidden;
	isolation: isolate;
	padding: 64px 20px 28px;
	/* Respaldo sin WebGL: mismo espíritu que el shader (primera línea para navegadores sin color-mix) */
	background: var(--tft-base);
	background:
		radial-gradient(120% 90% at 30% 85%, color-mix(in srgb, var(--tft-accent) 55%, transparent) 0%, transparent 55%),
		radial-gradient(90% 70% at 85% 70%, color-mix(in srgb, var(--tft-accent) 35%, transparent) 0%, transparent 60%),
		var(--tft-base);
	color: var(--tft-text);
	font-family: "Inter", sans-serif;
	-webkit-font-smoothing: antialiased;
	word-break: break-word;
}

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

.tft .tft__shader {
	position: absolute;
	inset: 0;
	z-index: -1;
	display: block;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity .8s ease;
	pointer-events: none;
}

.tft.tft--gl .tft__shader {
	opacity: 1;
}

.tft .tft__inner {
	position: relative;
	max-width: var(--tft-max);
	margin: 0 auto;
}

/* ---------- Logo gigante ---------- */

.tft .tft__logo {
	display: block;
	width: 100%;
	margin: 0 0 88px;
	color: var(--tft-logo);
	opacity: var(--tft-logo-opacity);
	line-height: 0;
	text-decoration: none;
}

.tft .tft__logo svg,
.tft .tft__logo img {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
	/* Degradado: las letras se desvanecen hacia abajo (menos peso visual) */
	-webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, var(--tft-fade-bottom)) 0%, #000 var(--tft-fade-stop));
	mask-image: linear-gradient(to top, rgba(0, 0, 0, var(--tft-fade-bottom)) 0%, #000 var(--tft-fade-stop));
}

.tft a.tft__logo:hover {
	color: var(--tft-logo);
}

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

.tft .tft__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) repeat(var(--tft-cols, 4), minmax(0, 1fr));
	gap: 40px;
	align-items: start;
}

.tft .tft__title {
	margin: 0 0 24px;
	padding: 0;
	font-family: "Inter", sans-serif;
	font-size: 20px;            /* Negrita/h6 */
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	color: var(--tft-title);
}

.tft .tft__about-text {
	max-width: 320px;
	margin: 0;
	font-size: 16px;            /* Regular/Párrafo */
	font-weight: 400;
	line-height: 1.59;
	color: var(--tft-text);
}

.tft .tft__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.tft .tft__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--tft-social-border);
	border-radius: 8px;
	color: var(--tft-link);
	font-size: 17px;
	line-height: 1;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.tft .tft__social a:hover,
.tft .tft__social a:focus-visible {
	background: var(--tft-social-hover-bg);
	border-color: var(--tft-social-hover-bg);
	color: var(--tft-social-hover-color);
}

.tft .tft__social svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}

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

.tft .tft__links li {
	margin: 0;
	padding: 0;
	font-size: 16px;            /* Regular/Párrafo */
	font-weight: 400;
	line-height: 1.59;
	color: var(--tft-text);
}

.tft .tft__links a {
	color: var(--tft-link);
	text-decoration: none;
	transition: color .2s ease;
}

.tft .tft__links a:hover,
.tft .tft__links a:focus-visible {
	color: var(--tft-link-hover);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tft a:focus-visible {
	outline: 2px solid var(--tft-link-hover);
	outline-offset: 3px;
}

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

.tft .tft__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	margin-top: 96px;
	padding-top: 24px;
	border-top: 1px solid var(--tft-line);
	font-size: 13px;            /* Regular/Párrafo pequeño */
	line-height: 1.47;
	color: var(--tft-text);
}

.tft .tft__copy {
	margin: 0;
}

.tft .tft__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tft .tft__legal a {
	color: var(--tft-text);
	text-decoration: none;
	transition: color .2s ease;
}

.tft .tft__legal a:hover,
.tft .tft__legal a:focus-visible {
	color: var(--tft-link);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.tft .tft__logo {
		margin-bottom: 64px;
	}

	.tft .tft__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 40px 32px;
	}

	.tft .tft__about {
		grid-column: 1 / -1;
	}

	.tft .tft__about-text {
		max-width: 520px;
	}
}

@media (max-width: 767px) {
	.tft {
		padding-top: 48px;
	}

	.tft .tft__logo {
		margin-bottom: 48px;
	}

	.tft .tft__title {
		margin-bottom: 16px;
		font-size: 18px;
	}

	.tft .tft__links {
		gap: 8px;
	}

	.tft .tft__links li,
	.tft .tft__about-text {
		font-size: 15px;
	}

	.tft .tft__bottom {
		flex-direction: column;
		align-items: flex-start;
		margin-top: 56px;
	}
}

@media (max-width: 480px) {
	.tft .tft__grid {
		gap: 32px 20px;         /* columnas de enlaces de dos en dos; la presentación, a todo el ancho */
	}

	.tft .tft__links li {
		font-size: 14px;
	}
}

@media (max-width: 340px) {
	.tft .tft__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
