.noticia-codigo-pagina {
    width: min(100% - 40px, 1120px);
    margin: 28px auto 48px;
    padding: 28px 20px;
    border-radius: 4px;
    background: #f3f6f5;
    color: #192a31;
    font-family: Georgia, 'Times New Roman', serif;
}

.noticia-codigo-cabecera {
    margin-bottom: 24px;
}

.noticia-codigo-tipo {
    margin: 0 0 10px;
    color: #087e83;
    font: 700 12px/1.4 sans-serif;
    text-transform: uppercase;
}

.noticia-codigo-cabecera h1 {
    max-width: 900px;
    margin: 0;
    font-size: 38px;
    line-height: 1.12;
}

.noticia-codigo-subtitulo {
    max-width: 850px;
    margin: 12px 0 0;
    color: #53646b;
    font-size: 21px;
    line-height: 1.45;
}

.noticia-codigo-metadatos {
    margin: 14px 0 18px;
    color: #53646b;
    font: 14px/1.5 sans-serif;
}

.noticia-codigo-imagen {
    display: block;
    width: 100%;
    max-height: 580px;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    background: #e3e9e7;
    object-fit: cover;
}

#contenido-noticia-codigo {
    display: block;
    width: 100%;
    min-height: 900px;
    border: 0;
    border-radius: 4px;
    background: #fff;
}

.noticia-codigo-imagen-principal {
    width: 100%;
    margin: 0 0 1rem;
    overflow: hidden;
    border-radius: 8px;
    background: #f1f5f9;
}

.noticia-codigo-imagen-principal img {
    display: block;
    width: 100%;
    max-height: 620px;
    object-fit: cover;
}

.noticia-codigo-imagen-principal figcaption {
    padding: .65rem .9rem;
    color: #475569;
    font-size: .9rem;
    line-height: 1.4;
    text-align: center;
}

#error-noticia-codigo {
    position: fixed;
    inset: 16px 16px auto;
    margin: 0;
    border-left: 4px solid #a63b32;
    padding: 12px 16px;
    background: #fff1ef;
    color: #76251f;
    font: 16px/1.5 sans-serif;
}

@media (max-width: 600px) {
    .noticia-codigo-pagina {
        width: calc(100% - 28px);
        margin: 18px auto 32px;
        padding: 20px 14px;
    }

    .noticia-codigo-cabecera h1 {
        font-size: 30px;
    }

    .noticia-codigo-subtitulo {
        font-size: 18px;
    }

    #contenido-noticia-codigo {
        min-height: 720px;
    }
}
