/* ==========================================================================
   Página 404.

   Misma familia tipográfica y paleta que el resto del tema (blanco, tinta
   #111111 y grises de apoyo). El «404» grande va en tono muy claro para que
   funcione como marca de agua sin competir con el titular.

   La hoja se encola con `enqueue_block_assets`, así que también se ve en el
   lienzo del Editor del sitio al editar la plantilla.
   ========================================================================== */

body .error-404,
.error-404,
.error-404 *,
.error-404 *::before,
.error-404 *::after {
	box-sizing: border-box;
}

body .error-404 {
	margin: 0;
	padding: clamp( 72px, 12vh, 140px ) 24px clamp( 88px, 14vh, 160px );
	background: #FFFFFF;
	text-align: center;
}

body .error-404__inner {
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
}

/* WordPress añade margen superior a los hijos de los grupos en flujo. */
body .error-404__inner > * {
	margin-block-start: 0;
}

body .error-404__code {
	margin: 0 0 10px;
	font-family: 'Archivo', sans-serif;
	font-size: clamp( 96px, 16vw, 176px );
	font-weight: 800;
	line-height: 0.78;
	letter-spacing: -0.05em;
	color: #EFEEE9;
	-webkit-user-select: none;
	user-select: none;
}

body .error-404__title {
	margin: 0 0 18px;
	font-family: 'Archivo', sans-serif;
	font-size: clamp( 26px, 3.2vw, 40px );
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: #111111;
}

body .error-404__text {
	max-width: 46ch;
	margin: 0 auto 32px;
	font-family: 'Archivo', sans-serif;
	font-size: 15.5px;
	line-height: 1.75;
	color: #555550;
}

body .error-404 .error-404__acciones {
	display: flex;
	justify-content: center;
	margin: 0;
}

body .error-404__acciones .wp-block-button__link {
	display: inline-block;
	padding: 14px 28px;
	border: 1px solid #111111;
	border-radius: 0;
	background: #111111;
	color: #FFFFFF;
	font-family: 'Archivo', sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.2s ease, color 0.2s ease;
}

body .error-404__acciones .wp-block-button__link:hover,
body .error-404__acciones .wp-block-button__link:focus {
	background: #FFFFFF;
	color: #111111;
}

@media ( max-width: 600px ) {
	body .error-404 {
		padding: 56px 20px 72px;
	}

	body .error-404__text {
		font-size: 15px;
	}

	body .error-404__acciones .wp-block-button__link {
		width: 100%;
	}
}
