@layer components {
    /* Página 404 (Magento_Cms::default/no-route.phtml) */
    .elg-404 {
        max-width: 640px;
        margin: 0 auto;
        padding: 5rem 1.5rem 6rem;
        text-align: center;
    }
    .elg-404-code {
        font-size: clamp(4rem, 12vw, 7rem);
        font-weight: 700;
        line-height: 1;
        color: rgb(20 24 51 / 0.15);
        margin: 0 0 0.5rem 0;
    }
    .elg-404-title {
        max-width: 380px;
        margin: 0 auto 1.5rem;
        font-size: clamp(1.5rem, 4vw, 2rem);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        line-height: 1.3;
        color: rgb(20 24 51);
    }
    .elg-404-text {
        max-width: 460px;
        margin: 0 auto 2.5rem;
        font-size: 0.8125rem;
        line-height: 1.6;
        color: rgb(20 24 51 / 0.75);
    }
    .elg-404-actions {
        display: flex;
        justify-content: center;
        gap: 1rem;
    }
    .elg-404-actions .elg-btn {
        min-width: 200px;
    }
    @media (max-width: 640px) {
        .elg-404 { padding: 3rem 1.5rem 4rem; }
        .elg-404-actions {
            flex-direction: column;
            align-items: stretch;
        }
        .elg-404-actions .elg-btn {
            min-width: 0;
            width: 100%;
        }
    }
}

/* La página CMS "no-route" tiene layout 2columns-right en BD: aunque
   cms_noroute_index.xml quita los sidebars, el grid de Hyvä seguiría
   reservando la columna derecha. Fuera de @layer para ganar al page-layout. */
body.cms-noroute-index .columns {
    grid-template-columns: minmax(0px, 1fr);
}
