/* ─── Páginas de error/sistema FUNJOSE (404, 500, offline, búsqueda) ───────
   Usado por 404.php (y las páginas equivalentes que se agreguen después)
   ──────────────────────────────────────────────────────────────────────── */

.fj-error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 620px;
    margin: 0 auto;
    padding: 120px 28px 140px;
    animation: fj-error-fadein 0.7s ease both;
}

.fj-error-page__code {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(3.5rem, 9vw, 6rem);
    line-height: 1;
    color: var(--global-palette1, #fea900);
    margin: 0 0 8px;
}

.fj-error-page__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    color: #1A1860;
    line-height: 1.25;
    margin: 0 0 20px;
}

.fj-error-page__desc {
    font-size: 1.125rem;
    color: #555c74;
    line-height: 1.7;
    margin: 0 0 36px;
    max-width: 480px;
}

.fj-error-page__home {
    margin-bottom: 44px;
}

.fj-error-page__search {
    width: 100%;
    max-width: 420px;
}

.fj-error-page__search .search-form {
    display: flex;
    gap: 10px;
    width: 100%;
}

.fj-error-page__search .search-form label {
    flex: 1;
    margin: 0;
}

.fj-error-page__search .search-field {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 18px;
    border: 2px solid #e2e4ee;
    border-radius: 16px;
    font-size: 1rem;
    color: #1A1860;
}

.fj-error-page__search .search-field:focus {
    outline: none;
    border-color: #1A1860;
}

.fj-error-page__search .search-submit {
    padding: 12px 24px;
    border: none;
    border-radius: 16px;
    background: #1A1860;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.fj-error-page__search .search-submit:hover {
    background: #252b7a;
}

@keyframes fj-error-fadein {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media screen and (max-width: 719px) {
    .fj-error-page {
        padding: 90px 24px 100px;
    }
    .fj-error-page__search .search-form {
        flex-direction: column;
    }
}
