main {
    max-width: 1500px;
    margin: auto;
    padding: 10px;
    margin-top: 30px;
}

main>p {
    margin-top: 0;
    font-size: 0.8em;
}

h1 {
    font-size: 1.7em;
    margin-bottom: 8px;
}

@media screen and (max-width: 1300px) {
    main {
        padding: 20px;
    }
}

/*------ PAGINA NOTICIAS -----*/
.noticias {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.noticias__goBack {
    padding: 0;
    background-color: rgb(88, 88, 88);
    border-color: var(--core-background-color);
}

.noticias__goBack a {
    display: block;
    text-decoration: none;
    padding: 2px 15px;
    font-size: 0.8em;
    color: var(--core-background-color);
}

.noticias__buscador {
    display: flex;
    gap: 10px;
}

.noticias__buscador input {
    padding: 10px;
    height: fit-content;
}

.noticias__buscador button {
    width: fit-content;
    font-size: 0.8em;
    padding: 5px 18px;
}

.noticias__buscador button[type="reset"] {
    padding: 0;
    background-color: #6b6b6b;
    border-color: #6b6b6b;
}

.noticias__buscador button[type="reset"] a {
    text-decoration: none;
    color: #fff;
    padding: 5px 18px;

    & * {
        pointer-events: none;
    }
}

.noticias__buscador-botones {
    display: flex;
    gap: 5px;
}

.noticias__tag{
    width: fit-content;
    display: flex;
    align-items: center;
    padding: 2px 9px;
    border: .5px solid var(--border-contrast-color);
    border-radius: 4px;
    font-size: .7em;
}

.noticias__tag span{
    margin: 0;
    margin-right: 20px;
}
.noticias__tag a{
    display: block;
    line-height: 100%;
}


.noticias__not-found span {
    font-size: 0.8em;
    opacity: 0.8;
}

.noticias__not-found a {
    display: block;
    text-decoration: none;
    padding: 4px 15px;
    margin-top: 20px;
    font-size: 0.8em;
    background-color: var(--pico-primary);
    color: #fff;
    width: fit-content;
}

.noticias__paginacion {
    display: flex;
    gap: 10px;
    margin-top: 50px;
    margin-left: 10px;
}
.noticias__paginacion a {
    display: block;
    padding: 3px 12px;
    background-color: var(--menu-border-color);
    color: var(--pico-h1-color);
}

/*------------- LISTADO DE NOTICIAS ---------*/
/* NOTICIA SIMPLE */
.noticia-simple {
    width: 100%;
    display: flex;
    gap: 15px;
    text-decoration: none;
}

.noticia-simple:hover h4 {
    text-decoration: underline;
}

.noticia-simple__img {
    width: 310px;
    height: 230px;
    flex-shrink: 0;
}

.noticia-simple__img img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.noticia-simple__info h4 {
    font-size: 1.1em;
    padding-top: 0;
    margin-bottom: 10px;
}

.noticia-simple__info span {
    font-size: 0.7em;
    opacity: 0.95;
}

.noticia-simple__info p {
    font-size: 0.7em;
    max-height: 100px;
    overflow: hidden;
    color: var(--pico-h4-color);
}

/* NOTICIA EN GRILLAS */
.noticia-grilla {
    width: 320px;
    text-decoration: none;
}

.noticia-grilla:hover h4 {
    text-decoration: underline;
}

.noticia-grilla__img {
    width: 320px;
    height: 210px;
}

.noticia-grilla__img img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.noticia-grilla__info h4 {
    margin-bottom: 0;
    margin-top: 7px;
    font-size: 0.9em;
    padding: 5px 5px 0 5px;
}

.noticia-grilla__info span {
    font-size: 0.7em;
    opacity: 0.92;
    padding-left: 5px;
}

@media screen and (max-width: 700px) {

    .noticia-grilla__info span,
    .noticia-grilla__info h4 {
        padding: 0;
    }

    .noticia-simple {
        flex-direction: column;
        gap: 0;
    }

    .noticia-simple__img {
        width: 200px;
        height: 150px;
    }
}

@media screen and (max-width: 480px) {
    .noticia-grilla {
        width: 100%;
    }

    .noticia-grilla__img {
        width: 100%;
    }

    .noticia-grilla__info span,
    .noticia-grilla__info h4 {
        padding: 0;
    }
}

/*------- PAGINA DE NOTICIA -----*/
.noticia {
    margin-top: 20px;
    max-width: 1000px;
    margin: auto;
}

.noticia h1 {
    font-size: 1.3em;
    margin-bottom: 10px;
}

/* Contenido */
.noticia__contenido {
    margin-top: 50px;
}

.noticia__contenido img {
    max-width: 800px;
    width:100%;
    margin: 15px 0;
}

.noticia__contenido h2, .noticia__contenido h3, .noticia__contenido h4, .noticia__contenido h5{
    margin-top: 30px;
}

.noticia__contenido iframe {
    max-width: 600px;
    height: 400px;
    width: 100%;
    margin: 20px 0;
}

.noticia p,
.noticia__contenido div,
.noticia__contenido ul {
    font-size: 0.8em;
}

.noticia__contenido ul {
    margin-top: 8px;
}

.noticia__contenido li {
    list-style: disc;
}

.noticia__contenido p {
    margin-bottom: 10px;
}

.noticia__contenido a {
    text-decoration: none;
    background-color: transparent !important;
}

.noticia__img {
    width: 100%;
}

/* Lista de etiquetas */
.noticia__etiquetas-titulo {
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid var(--menu-border-color);
    font-size: 1.1em;
}

.noticia__etiquetas {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.noticia__etiqueta {
    color: var(--border-contrast-color);
    border: 1px solid var(--border-contrast-color);
    border-radius: 5px;
    padding: 2px 10px;
    display: flex;
    gap: 7px;
    text-decoration: none;
    align-items: center;
    transition: transform 0.3s;
}

.noticia__etiqueta:hover {
    transform: scale(1.06);
}

.noticia__etiqueta .circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.noticia__etiqueta span {
    font-size: 0.7em;
}

@media screen and (max-width: 580px) {
    .noticia__contenido iframe {
        height: 250px;
    }
}