/* =========================================================
   BLOG / NOTICIAS ESTÁNDAR
   ========================================================= */

.blog-shell {
    padding: 2rem 0 9rem;
    text-transform: none;
}

.blog-shell *,
.blog-shell *::before,
.blog-shell *::after {
    box-sizing: border-box;
}

.blog-page-header {
    border-bottom: 1px solid #333;
    margin-bottom: 5rem;
    padding-bottom: 2.5rem;
}

.blog-page-title {
    margin: 0;
    font-size: 4.6rem;
    line-height: 1;
    text-transform: none;
}

.blog-page-description {
    max-width: 82rem;
    margin-top: 2rem;
}

.blog-page-description p:last-child {
    margin-bottom: 0;
}

.blog-main {
    padding-right: 5rem;
}

.blog-sidebar {
    border-left: 1px solid #333;
    padding-left: 4rem;
}

.blog-card {
    display: grid;
    grid-template-columns: minmax(22rem, 38%) minmax(0, 1fr);
    gap: 3.5rem;
    border-bottom: 1px solid #333;
    margin-bottom: 5rem;
    padding-bottom: 5rem;
}

.blog-card:not(:has(.blog-post__image)) {
    grid-template-columns: 1fr;
}

.blog-post__image {
    margin: 0;
}

.blog-post__image a {
    display: block;
}

.blog-post__featured-image {
    display: block;
    width: 100%;
    height: auto;
}

.blog-card .blog-post__featured-image {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.blog-post__header {
    margin-bottom: 2.5rem;
}

.blog-post__title {
    margin: 0 0 1.2rem;
    overflow-wrap: anywhere;
    font-size: 3.2rem;
    line-height: 1.08;
    text-transform: none;
}

.blog-post__title a {
    color: inherit;
}

.blog-post__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.8rem;
    color: #aaa;
    font-size: 1.3rem;
    line-height: 1.4;
}

.blog-post__meta a {
    color: #aaa;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.blog-post__excerpt p,
.blog-post__content p,
.blog-post__content li {
    line-height: 1.65;
    text-transform: none;
}

.blog-post__excerpt p:last-child {
    margin-bottom: 0;
}

.blog-post__read-more {
    margin: 2.5rem 0 0;
}

.blog-post__read-more a {
    display: inline-block;
    border-bottom: 1px solid #fff;
    padding-bottom: 0.25rem;
}

.blog-post__footer {
    margin-top: 2.5rem;
    font-size: 1.25rem;
}

.blog-post--single .blog-post__image {
    margin-bottom: 4rem;
}

.blog-post--single .blog-post__header {
    margin-bottom: 4rem;
}

.blog-post--single .blog-post__title {
    font-size: 5rem;
}

.blog-post--single .blog-post__content {
    max-width: 82rem;
}

.blog-post--single .blog-post__content p {
    margin-bottom: 2.6rem;
}

.blog-post--single .blog-post__content h2,
.blog-post--single .blog-post__content h3,
.blog-post--single .blog-post__content h4 {
    margin-top: 4.5rem;
    margin-bottom: 2rem;
    text-transform: none;
}

.blog-post--single .blog-post__content ul,
.blog-post--single .blog-post__content ol {
    margin: 0 0 2.6rem 2.4rem;
}

.blog-post--single .blog-post__content blockquote {
    border-left: 3px solid #fff;
    margin: 4rem 0;
    padding: 0.5rem 0 0.5rem 3rem;
}

.blog-post--single .blog-post__content blockquote p:last-child {
    margin-bottom: 0;
}

.blog-post--single .blog-post__content a {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.blog-post--single .blog-post__content img {
    height: auto;
}

.blog-post--single .blog-post__content .aligncenter {
    display: block;
    margin: 3rem auto;
}

.blog-post--single .blog-post__content .alignleft {
    float: left;
    margin: 0.6rem 3rem 2rem 0;
}

.blog-post--single .blog-post__content .alignright {
    float: right;
    margin: 0.6rem 0 2rem 3rem;
}

.blog-post--single .blog-post__content::after {
    content: "";
    display: table;
    clear: both;
}

.blog-post--single .wp-caption {
    max-width: 100%;
}

.blog-post--single .wp-caption-text {
    margin: 1rem 0 0;
    color: #aaa;
    font-size: 1.2rem;
    line-height: 1.45;
}

.blog-post__tags {
    border-top: 1px solid #333;
    margin-top: 4rem;
    padding-top: 2rem;
    font-size: 1.35rem;
}

.blog-post__tags a {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

/* Sidebar */

.blog-sidebar .widget {
    border-bottom: 1px solid #333;
    margin-bottom: 3.5rem;
    padding-bottom: 3.5rem;
}

.blog-sidebar .widget:last-child {
    margin-bottom: 0;
}

.blog-sidebar .widget-title {
    margin: 0 0 2rem;
    font-size: 2.2rem;
    line-height: 1.1;
    text-transform: none;
}

.blog-sidebar .widget ul {
    list-style: none;
    margin: 0;
}

.blog-sidebar .widget li {
    border-top: 1px solid #222;
    padding: 1rem 0;
    font-size: 1.35rem;
    line-height: 1.45;
}

.blog-sidebar .widget li:first-child {
    border-top: 0;
    padding-top: 0;
}

.blog-sidebar .widget li:last-child {
    padding-bottom: 0;
}

.blog-sidebar .widget a {
    color: #fff;
}

.blog-sidebar .search-form {
    display: flex;
    width: 100%;
}

.blog-sidebar .search-form label {
    flex: 1;
    margin: 0;
}

.blog-sidebar .search-field {
    width: 100%;
    min-height: 4.2rem;
    border: 1px solid #555;
    border-right: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    padding: 0.8rem 1.2rem;
    font-family: inherit;
    font-size: 1.3rem;
}

.blog-sidebar .search-submit {
    min-height: 4.2rem;
    border: 1px solid #fff;
    border-radius: 0;
    background: #fff;
    color: #000;
    cursor: pointer;
    padding: 0.8rem 1.4rem;
    font-family: inherit;
    font-size: 1.2rem;
}

/* Paginación y navegación entre noticias */

.blog-shell .navigation {
    clear: both;
    margin-top: 5rem;
}

.blog-shell .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
}

.blog-shell .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4rem;
    min-height: 4rem;
    border: 1px solid #444;
    padding: 0.7rem 1rem;
}

.blog-shell .page-numbers.current {
    border-color: #fff;
    background: #fff;
    color: #000;
}

.blog-shell .post-navigation {
    border-top: 1px solid #333;
    margin-top: 6rem;
    padding-top: 3rem;
}

.blog-shell .post-navigation .nav-previous,
.blog-shell .post-navigation .nav-next {
    width: calc(50% - 1.5rem);
}

.blog-shell .post-navigation .nav-next {
    margin-left: auto;
    text-align: right;
}

.blog-shell .post-navigation .nav-label {
    display: block;
    margin-bottom: 0.6rem;
    color: #999;
    font-size: 1.15rem;
}

.blog-shell .post-navigation .nav-title {
    display: block;
    font-size: 1.4rem;
    line-height: 1.35;
}

/* Resultados que no son entradas */

.blog-list > article:not(.blog-post) {
    border-bottom: 1px solid #333;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
}

.blog-list > article:not(.blog-post) .entry-title {
    margin-bottom: 1.5rem;
    text-transform: none;
}

.blog-list > article:not(.blog-post) .entry-summary {
    text-transform: none;
}

/* Accesibilidad */

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    white-space: nowrap;
}

.screen-reader-text:focus {
    z-index: 100000;
    top: 5px;
    left: 5px;
    width: auto;
    height: auto;
    clip: auto !important;
    clip-path: none;
    background: #fff;
    color: #000;
    padding: 1rem 1.5rem;
}

/* Responsive */

@media (max-width: 47.8025em) {
    .blog-shell {
        padding-bottom: 6rem;
    }

    .blog-page-header {
        margin-bottom: 4rem;
    }

    .blog-page-title {
        font-size: 5rem;
    }

    .blog-main {
        padding-right: 1.3rem;
    }

    .blog-sidebar {
        border-top: 1px solid #333;
        border-left: 0;
        margin-top: 5rem;
        padding-top: 4rem;
        padding-left: 1.3rem;
    }

    .blog-card {
        display: block;
        margin-bottom: 5rem;
        padding-bottom: 5rem;
    }

    .blog-card .blog-post__image {
        margin-bottom: 3rem;
    }

    .blog-post__title {
        font-size: 4rem;
    }

    .blog-post--single .blog-post__title {
        font-size: 5rem;
    }

    .blog-post--single .blog-post__content .alignleft,
    .blog-post--single .blog-post__content .alignright {
        float: none;
        display: block;
        margin: 3rem auto;
    }

    .blog-shell .post-navigation .nav-links {
        display: block;
    }

    .blog-shell .post-navigation .nav-previous,
    .blog-shell .post-navigation .nav-next {
        width: 100%;
    }

    .blog-shell .post-navigation .nav-next {
        margin-top: 3rem;
        text-align: left;
    }
}

/* =========================================================
   AJUSTE AL ANCHO Y ESTILO DE LA PÁGINA CONCIERTOS
   ========================================================= */

/*
 * La página Conciertos utiliza un contenido centrado al 80%.
 * Aplicamos la misma proporción al blog y a las noticias.
 */
.blog-shell > .gc {
    width: 80%;
    max-width: none;
    margin-right: auto;
    margin-left: auto;
    padding-right: 0;
    padding-left: 0;
}

/*
 * Reparto interior: noticia y sidebar.
 */
.blog-main {
    width: 66.66667%;
    padding-right: 4rem;
}

.blog-sidebar {
    width: 33.33333%;
    padding-left: 4rem;
}

/*
 * Tipografía coherente con el tema:
 * títulos como Conciertos y texto con la máquina de escribir.
 */
.blog-page-title,
.blog-post__title,
.blog-sidebar .widget-title {
    font-family: 'Champion', sans-serif;
    font-weight: normal;
}

.blog-post__meta,
.blog-post__excerpt,
.blog-post__content,
.blog-post__tags,
.blog-sidebar .widget,
.blog-sidebar .search-field,
.blog-sidebar .search-submit {
    font-family: 'Typewriter', monospace;
}

/*
 * La imagen ocupa el ancho de la columna de la noticia,
 * no el ancho completo de la pantalla.
 */
.blog-post--single .blog-post__image,
.blog-post--single .blog-post__header,
.blog-post--single .blog-post__content,
.blog-post--single .blog-post__tags,
.blog-post--single .blog-post__footer {
    width: 100%;
    max-width: none;
}

/*
 * Ajustes para pantallas intermedias.
 */
@media (min-width: 47.8125em) and (max-width: 81.24em) {
    .blog-shell > .gc {
        width: 88%;
    }

    .blog-main {
        padding-right: 3rem;
    }

    .blog-sidebar {
        padding-left: 3rem;
    }
}

/*
 * En móvil recuperamos el ancho completo con los márgenes
 * habituales del propio tema.
 */
@media (max-width: 47.8025em) {
    .blog-shell > .gc {
        width: 100%;
        max-width: 100%;
        padding-right: 1.3rem;
        padding-left: 1.3rem;
    }

    .blog-main,
    .blog-sidebar {
        width: 100%;
        padding-right: 1.3rem;
        padding-left: 1.3rem;
    }
}

/* =========================================================
   LISTADO DE NOTICIAS: IMAGEN ARRIBA + TÍTULOS MÁS PEQUEÑOS
   ========================================================= */

/*
 * Cada noticia del listado pasa de dos columnas
 * a una composición vertical: imagen, título y extracto.
 */
.blog-list .blog-card {
    display: block;
    grid-template-columns: none;
}

.blog-list .blog-card .blog-post__image {
    width: 100%;
    margin: 0 0 2.6rem;
}

.blog-list .blog-card .blog-post__featured-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.blog-list .blog-card .blog-post__body {
    width: 100%;
}

/*
 * Tamaños exclusivos de la sección Noticias.
 * No afectan a Conciertos, Artistas, páginas ni tienda.
 */
.blog-shell .blog-page-title {
    font-size: 3.8rem;
    line-height: 1;
}

.blog-shell .blog-card .blog-post__title {
    font-size: 2.7rem;
    line-height: 1.08;
}

.blog-shell .blog-post--single .blog-post__title {
    font-size: 4rem;
    line-height: 1.05;
}

.blog-shell .blog-post__content h2 {
    font-size: 2.8rem;
    line-height: 1.12;
}

.blog-shell .blog-post__content h3 {
    font-size: 2.2rem;
    line-height: 1.15;
}

/*
 * En móvil reducimos un poco más los titulares.
 */
@media (max-width: 47.8025em) {
    .blog-shell .blog-page-title {
        font-size: 3.4rem;
    }

    .blog-shell .blog-card .blog-post__title {
        font-size: 2.5rem;
    }

    .blog-shell .blog-post--single .blog-post__title {
        font-size: 3.4rem;
    }

    .blog-shell .blog-post__content h2 {
        font-size: 2.5rem;
    }

    .blog-shell .blog-post__content h3 {
        font-size: 2rem;
    }
}

/* =========================================================
   CUERPO DE NOTICIAS A 16 PX
   ========================================================= */

/*
 * Tamaño del texto principal, igual que en el resto de páginas.
 * Se aplica solo al contenido y extractos de Noticias.
 */
.blog-shell .blog-post__excerpt,
.blog-shell .blog-post__content {
    font-size: 16px;
    line-height: 1.65;
}

.blog-shell .blog-post__excerpt p,
.blog-shell .blog-post__content p,
.blog-shell .blog-post__content li {
    font-size: 16px;
    line-height: 1.65;
}

/* =========================================================
   JERARQUÍA DE TÍTULOS MÁS CONTENIDA EN NOTICIAS
   ========================================================= */

/*
 * H1 de la noticia: pasa al tamaño que tenía anteriormente el H2.
 */
.blog-shell .blog-post--single .blog-post__title {
    font-size: 2.8rem;
    line-height: 1.1;
}

/*
 * H2 proporcionalmente más pequeño.
 */
.blog-shell .blog-post__content h2 {
    font-size: 2.2rem;
    line-height: 1.15;
}

/*
 * H3 mantiene la jerarquía inferior.
 */
.blog-shell .blog-post__content h3 {
    font-size: 1.8rem;
    line-height: 1.2;
}

@media (max-width: 47.8025em) {
    .blog-shell .blog-post--single .blog-post__title {
        font-size: 2.6rem;
    }

    .blog-shell .blog-post__content h2 {
        font-size: 2rem;
    }

    .blog-shell .blog-post__content h3 {
        font-size: 1.7rem;
    }
}

/* =========================================================
   SIDEBAR: LÍNEAS UNIFORMES SIN CAMBIAR TAMAÑOS
   ========================================================= */

/*
 * Cada bloque del sidebar termina con una sola línea.
 */
.blog-shell .blog-sidebar .widget {
    border-bottom: 1px solid #2b2b2b;
    margin: 0 0 3rem;
    padding: 0 0 3rem;
}

.blog-shell .blog-sidebar .widget:last-child {
    margin-bottom: 0;
}

.blog-shell .blog-sidebar .widget-title {
    margin: 0 0 2rem;
}

/*
 * Últimas noticias:
 * se conservan las miniaturas de 90 × 70 px
 * y los tamaños anteriores de título y fecha.
 */
.blog-shell .widget-ultimas-noticias .ultima-noticia {
    display: flex;
    gap: 1.4rem;
    align-items: flex-start;
    border-bottom: 1px solid #2b2b2b;
    margin: 0 0 1.5rem;
    padding: 0 0 1.5rem;
}

/*
 * La última noticia no añade otra línea.
 * El borde final ya pertenece al propio widget.
 */
.blog-shell .widget-ultimas-noticias .ultima-noticia:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.blog-shell .ultima-noticia__imagen {
    display: block;
    flex: 0 0 90px;
    width: 90px;
}

.blog-shell .ultima-noticia__thumbnail {
    display: block;
    width: 90px;
    height: 70px;
    object-fit: cover;
}

.blog-shell .ultima-noticia__contenido {
    flex: 1;
    min-width: 0;
}

.blog-shell .ultima-noticia__titulo {
    margin: 0 0 0.6rem;
    font-family: 'Typewriter', monospace;
    font-size: 14px;
    line-height: 1.35;
    text-transform: none;
}

.blog-shell .ultima-noticia__titulo a {
    color: #fff;
}

.blog-shell .ultima-noticia__fecha {
    display: block;
    color: #999;
    font-family: 'Typewriter', monospace;
    font-size: 12px;
    line-height: 1.3;
}

/*
 * Categorías, archivos y demás listas:
 * una línea uniforme entre elementos, sin líneas dobles.
 */
.blog-shell .blog-sidebar .widget ul {
    margin: 0;
    padding: 0;
}

.blog-shell .blog-sidebar .widget li {
    border-top: 0;
    border-bottom: 1px solid #2b2b2b;
    margin: 0;
    padding: 1.2rem 0;
}

.blog-shell .blog-sidebar .widget li:first-child {
    padding-top: 0;
}

.blog-shell .blog-sidebar .widget li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.blog-shell .widget-ultimas-noticias,
.blog-shell .ultimas-noticias-lista {
    border: 0;
    margin: 0;
    padding: 0;
}
