﻿:root {
    /* Cambia esta imagen por tu asset */
    --nx-error-bg: url("../img/errors/404-bg.jpg");
    /* Overlay para opacar la imagen */
    --nx-error-overlay: rgba(14, 18, 20, .55);
    /* Tipografía/colores */
    --nx-error-text: rgba(255,255,255,.92);
    --nx-error-muted: rgba(255,255,255,.72);
}

.nx-error-page {
    margin: 0;
    background: #0b0f12;
    color: var(--nx-error-text);
}

/* HERO full screen con fondo */
.nx-error-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    /* Imagen */
    background-image: var(--nx-error-bg);
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    /* Para centrar horizontal y “casi” centrar vertical */
    display: flex;
    align-items: center;
    padding: 72px 0; /* aire arriba/abajo */
}

/* Overlay encima del background */
.nx-error-overlay {
    position: absolute;
    inset: 0;
    background: var(--nx-error-overlay);
    z-index: 0;
}

/* Contenido encima del overlay */
.nx-error-content {
    position: relative;
    z-index: 1;
    /* Este “sube” un poco el bloque (no totalmente centrado) */
    transform: translateY(-28px);
}

/* 404 pequeño arriba */
.nx-error-code {
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-size: 2.95rem;
    color: rgba(255,255,255,.85);
    margin-bottom: 12px;
}

/* Título grande */
.nx-error-title {
    font-weight: 800;
    font-size: clamp(2.6rem, 5.6vw, 4.4rem);
    line-height: 1.05;
    color: #fff;
    margin: 0;
}

/* Subtítulo */
.nx-error-subtitle {
    margin-top: 14px;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    color: var(--nx-error-muted);
}

/* Link “Back to home” */
.nx-error-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: rgba(255,255,255,.9);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 999px;
    /* sutil “chip” sobre la foto */
    background: rgba(0,0,0,.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.14);
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

    .nx-error-link:hover {
        color: #fff;
        background: rgba(0,0,0,.26);
        border-color: rgba(255,255,255,.22);
        transform: translateY(-1px);
    }

    .nx-error-link:active {
        transform: translateY(0);
    }

/* Opcional */
.nx-error-meta {
    color: rgba(255,255,255,.62);
    font-size: .95rem;
}

/* Mobile tweaks */
@media (max-width: 576px) {
    .nx-error-hero {
        padding: 56px 0;
        background-position: center bottom;
    }
    .nx-error-code {
        font-size: 1.95rem;
    }
    .nx-error-content {
        transform: translateY(-16px);
    }
}
