/*
 * Ajustes sobre el CSS publicado por Webflow (assets/css/webflow.css, que no se toca).
 *
 * Aquí viven solo las piezas que en Webflow resolvía su JavaScript:
 * estados iniciales y finales de las animaciones, marquesinas y el campo
 * trampa del formulario. Los valores salen de la configuración original.
 */

/* ---------------------------------------------------------------------
 * Estados iniciales (Webflow los escribía en línea en el HTML).
 * Solo con JavaScript activo: sin JS el contenido se ve completo.
 * ------------------------------------------------------------------- */
.w-mod-js [data-ix="load-nav"],
.w-mod-js [data-ix="load-hero"],
.w-mod-js [data-ix="quote"] {
	opacity: 0;
}

.w-mod-js [data-ix="appear"] {
	opacity: 0;
	transform: translate3d(0, 30px, 0);
}

.w-mod-js [data-ix="bio-left"] {
	opacity: 0;
	transform: translate3d(-40px, 0, 0);
}

.w-mod-js [data-ix="bio-right"] {
	opacity: 0;
	transform: translate3d(40px, 0, 0);
}

/* Páginas de proyecto. */
.w-mod-js [data-ix="load-nav-delay"] {
	opacity: 0;
}

.w-mod-js [data-ix="load-cover"] {
	opacity: 0;
	transform: translate3d(0, 15px, 0);
}

.w-mod-js [data-ix="appear-ease"],
.w-mod-js [data-ix="appear-linear"] {
	opacity: 0;
	transform: translate3d(0, 30px, 0);
}

/* Artículos de Manners of Design. */
.w-mod-js [data-ix="manners-title"],
.w-mod-js [data-ix="manners-date"],
.w-mod-js [data-ix="manners-text"] {
	opacity: 0;
	transform: translate3d(0, 30px, 0);
}

/* ---------------------------------------------------------------------
 * Entradas (site.js agrega .ix-in).
 * ------------------------------------------------------------------- */

/* "Page load Opacity": barra a los 1,5 s y nombre a los 1,8 s, 1 s lineal. */
.w-mod-js [data-ix="load-nav"].ix-in {
	opacity: 1;
	transition: opacity 1000ms linear 1500ms;
}

.w-mod-js [data-ix="load-hero"].ix-in {
	opacity: 1;
	transition: opacity 1000ms linear 1800ms;
}

/* "Quote Scroll". */
.w-mod-js [data-ix="quote"].ix-in {
	opacity: 1;
	transition: opacity 1000ms linear;
}

/* "Projects Scroll": opacidad lineal y subida de 30 px con ease-in-out. */
.w-mod-js .home-projects-new.ix-in,
.w-mod-js [data-ix="appear"].ix-in {
	opacity: 1;
	transform: translate3d(0, 0, 0);
	transition: opacity 1000ms linear, transform 1000ms cubic-bezier(0.42, 0, 0.58, 1);
}

/* "Bio & Photo Animation": entran desde los lados, 1 s lineal. */
.w-mod-js [data-ix="bio-left"].ix-in,
.w-mod-js [data-ix="bio-right"].ix-in {
	opacity: 1;
	transform: translate3d(0, 0, 0);
	transition: opacity 1000ms linear, transform 1000ms linear;
}

/* Páginas de proyecto: "Navbar white appears" (a los 0,5 s, 1 s lineal),
   "Portada appears" (al 1 s: opacidad lineal y subida de 15 px con ease) y
   "Project appears" (al entrar en pantalla: opacidad lineal, subida de 30 px
   con ease en el bloque principal y lineal en el resto). */
.w-mod-js [data-ix="load-nav-delay"].ix-in {
	opacity: 1;
	transition: opacity 1000ms linear 500ms;
}

.w-mod-js [data-ix="load-cover"].ix-in {
	opacity: 1;
	transform: translate3d(0, 0, 0);
	transform-style: preserve-3d;
	transition: opacity 1000ms linear 1000ms, transform 1000ms ease 1000ms;
}

.w-mod-js [data-ix="appear-ease"].ix-in {
	opacity: 1;
	transform: translate3d(0, 0, 0);
	transform-style: preserve-3d;
	transition: opacity 1000ms linear, transform 1000ms ease;
}

.w-mod-js [data-ix="appear-linear"].ix-in {
	opacity: 1;
	transform: translate3d(0, 0, 0);
	transform-style: preserve-3d;
	transition: opacity 1000ms linear, transform 1000ms linear;
}

/* Artículos ("Projects Scroll" de Webflow sobre el título): título y fechas
   suben 30 px en 1 s (opacidad lineal, ease-in-out); al terminar, los textos. */
.w-mod-js [data-ix="manners-title"].ix-in,
.w-mod-js [data-ix="manners-date"].ix-in,
.w-mod-js [data-ix="manners-text"].ix-in {
	opacity: 1;
	transform: translate3d(0, 0, 0);
	/* Webflow deja este valor al animar; cambia levemente cómo se dibuja el texto. */
	transform-style: preserve-3d;
	transition: opacity 1000ms linear, transform 1000ms cubic-bezier(0.42, 0, 0.58, 1);
}

.w-mod-js [data-ix="manners-text"].ix-in {
	transition-delay: 1000ms;
}

/* "Back Rotate": la flecha de "Back" gira media vuelta al pasar el mouse. */
[data-ix="back-rotate"] .link-block-2 {
	transition: transform 500ms ease;
}

[data-ix="back-rotate"]:hover .link-block-2 {
	transform: rotate(180deg);
}

/* Video propio (MP4) en la caja de video de Webflow, igual que un iframe. */
.w-video video.at-video-file {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #000;
}

/* ---------------------------------------------------------------------
 * Artículos: botones "English / Español" sobre el título (no existen en
 * Webflow). Mismo lenguaje que el sitio: Poppins, borde negro y esquinas
 * redondeadas como el botón "Start a project"; el idioma activo, en negro.
 * ------------------------------------------------------------------- */
.at-article-lang {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 22px;
}

.at-article-lang-button {
	color: #000;
	border: 1.5px solid #000;
	border-radius: 6px;
	padding: 7px 14px 8px;
	font-family: Poppins, sans-serif;
	font-size: .9rem;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}

.at-article-lang-button:hover {
	background-color: #0000000f;
}

.at-article-lang-button[aria-pressed="true"] {
	color: #fff;
	background-color: #000;
}

.at-article-lang-button:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}

/* Solo se ve el bloque del idioma elegido (la bibliografía, siempre). */
.at-lang-en [data-at-lang="es"],
.at-lang-es [data-at-lang="en"] {
	display: none;
}

/* ---------------------------------------------------------------------
 * Página 404 (no existe en Webflow con diseño propio): misma tipografía y
 * piezas que las páginas de proyecto (título de 90 px, textos de 18-20 px,
 * línea negra) y un botón con borde como los del sitio.
 * ------------------------------------------------------------------- */
.at-404 .project-container {
	padding-top: 4vh;
}

.at-404-label {
	color: #000000a6;
	margin-bottom: 6px;
	font-size: 18px;
	font-weight: 400;
}

.at-404 .project-heading {
	margin-top: 0;
	line-height: 1.05;
}

.at-404-text {
	color: #000;
	max-width: 36em;
	margin-bottom: 30px;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.5;
}

.at-404-button {
	color: #000;
	border: 2px solid #000;
	border-radius: 8px;
	padding: 10px 22px 12px;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
	display: inline-block;
}

.at-404-button:hover {
	color: #fff;
	background-color: #000;
}

.at-404-button:focus-visible {
	outline: 2px solid #000;
	outline-offset: 3px;
}

.at-404 .div-block-line-divider {
	margin-top: 70px;
}

@media screen and (max-width: 479px) {
	.at-404-text,
	.at-404-button {
		font-size: 17px;
	}
}

/* ---------------------------------------------------------------------
 * Marquesinas ("Text carrusel" y "Footer carrusel"): 12 s, lineal, sin fin.
 * ------------------------------------------------------------------- */
@keyframes at-marquee {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(-50.16%, 0, 0); }
}

@keyframes at-marquee-footer {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(-40.08%, 0, 0); }
}

[data-ix="marquee"] {
	animation: at-marquee 12s linear infinite;
}

[data-ix="marquee-footer"] {
	animation: at-marquee-footer 12s linear infinite;
}

/* ---------------------------------------------------------------------
 * Formulario: campo trampa para bots, invisible para las personas.
 * ------------------------------------------------------------------- */
.at-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------------------------------------------------------------------
 * Fondo animado del hero (hero.min.js dibuja en este canvas).
 * ------------------------------------------------------------------- */
.spline-scene-2 canvas {
	display: block;
	width: 100%;
	height: 100%;
}
