/* ==========================================================
   ENTRADA DEL BLOG - single-post.php
   Hereda la paleta y el ritmo tipográfico de podcast-hub.css
   y whitepaper-hub.css.
   ========================================================== */

.art-page-template {
    --art-cyan: #53AEC3;
    --art-cyan-dark: #326B78;
    --art-cyan-band: rgba(83, 174, 195, .3);
    --art-black: #000000;
    --art-ink: #141414;
    --art-muted: #4a5a60;
    --art-white: #FFFFFF;
    --art-container: 1150px;
    --art-font: "Lato", Arial, Helvetica, sans-serif;
    --art-font-title: "Roboto", Arial, Helvetica, sans-serif;

    width: 100%;
    font-family: var(--art-font);
    color: var(--art-ink);
}

.art-page-template *,
.art-page-template *::before,
.art-page-template *::after {
    box-sizing: border-box;
}

.art-container {
    max-width: var(--art-container);
    margin: 0 auto;
    padding: 0 20px;
}


/* ----------------------------------------------------------
   Hero

   Rótulo de sección, igual en todas las entradas. Va pegado al
   header, como en whitepaper y podcast.
   ---------------------------------------------------------- */

body.single-post .site-main,
.art-page-template {
    margin-top: 0;
    padding-top: 0;
}

.art-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 300px;
    width: 100vw;
    margin-top: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 40px 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    overflow: hidden;
}

.art-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(50, 107, 120, .90) 0%, rgba(50, 107, 120, .78) 100%);
}

.art-hero .art-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Es un <p>, no un encabezado: el H1 de la página es el título del
   artículo. Se le da tamaño de titular solo con CSS. */
.art-hero__title {
    margin: 0;
    max-width: 900px;
    font-family: var(--art-font-title);
    font-size: 46px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--art-white);
}


/* ----------------------------------------------------------
   Cabecera del artículo
   ---------------------------------------------------------- */

.art-entry {
    padding: 60px 0 70px;
}

.art-entry__head {
    margin-bottom: 34px;
}

.art-title {
    margin: 0 0 14px;
    font-family: var(--art-font);
    font-size: 38px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--art-cyan);
}

.art-meta {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--art-ink);
}

.art-featured {
    margin: 0 0 40px;
}

.art-featured__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}


/* ----------------------------------------------------------
   Cuerpo del artículo

   the_content() devuelve HTML arbitrario desde el editor, así que
   aquí se estilan los descendientes en vez de clases propias.
   Los encabezados van en cian y las secciones respiran más que en
   la versión de Elementor, que era lo que pedía marketing.
   ---------------------------------------------------------- */

.art-content {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    color: var(--art-ink);
}

.art-content > *:first-child {
    margin-top: 0;
}

.art-content > *:last-child {
    margin-bottom: 0;
}

.art-content p {
    margin: 0 0 22px;
}

.art-content h2,
.art-content h3,
.art-content h4 {
    font-family: var(--art-font);
    font-weight: 600;
    line-height: 1.3;
    color: var(--art-cyan);
}

.art-content h2 {
    margin: 54px 0 16px;
    font-size: 28px;
}

.art-content h3 {
    margin: 42px 0 14px;
    font-size: 23px;
}

.art-content h4 {
    margin: 34px 0 12px;
    font-size: 19px;
}

.art-content ul,
.art-content ol {
    margin: 0 0 22px;
    padding-left: 22px;
}

.art-content li {
    margin: 0 0 8px;
}

.art-content a {
    color: var(--art-cyan-dark);
    text-decoration: underline;
}

.art-content a:hover,
.art-content a:focus-visible {
    color: var(--art-cyan);
}

.art-content strong,
.art-content b {
    font-weight: 700;
}

.art-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.art-content figure {
    margin: 40px 0;
}

.art-content figcaption {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--art-muted);
}

.art-content blockquote {
    margin: 40px 0;
    padding: 6px 0 6px 22px;
    border-left: 4px solid var(--art-cyan);
    font-size: 19px;
    font-style: italic;
    line-height: 1.6;
    color: var(--art-cyan-dark);
}

.art-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Las tablas y los bloques de código no deben ensanchar la página. */
.art-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.art-content pre {
    overflow-x: auto;
}


/* ----------------------------------------------------------
   Compartir
   ---------------------------------------------------------- */

.art-share {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 52px;
}

.art-share__label {
    font-size: 15px;
    font-weight: 400;
    color: var(--art-ink);
}

.art-share__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.art-share__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background-color: var(--art-black);
    color: var(--art-white);
    text-decoration: none;
    transition: background-color .2s ease, transform .2s ease;
}

.art-share__link:hover,
.art-share__link:focus-visible {
    background-color: var(--art-cyan-dark);
    color: var(--art-white);
    transform: translateY(-2px);
}

.art-share__link svg {
    display: block;
    width: 18px;
    height: 18px;
}


/* ----------------------------------------------------------
   Últimas noticias

   Banda a sangre en azul claro. Usa el mismo tono que el bloque
   de noticias de la portada, para que las dos rejillas se lean
   como el mismo componente.
   ---------------------------------------------------------- */

.art-related {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 58px 0 66px;
    background-color: var(--art-cyan-band);
    overflow: hidden;
}

.art-related__title {
    margin: 0 0 40px;
    font-family: var(--art-font);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    color: var(--art-cyan);
}

.art-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

/* Tarjeta sin fondo propio: el diseño las apoya directamente sobre
   la banda azul, a diferencia de las tarjetas blancas de la portada. */
.art-card {
    display: flex;
    flex-direction: column;
}

.art-card__media {
    display: block;
    margin-bottom: 16px;
    border-radius: 6px;
    overflow: hidden;
    line-height: 0;
}

.art-card__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.art-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.art-card__title {
    margin: 0 0 10px;
    font-family: var(--art-font);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--art-ink);
}

.art-card__title a {
    color: inherit;
    text-decoration: none;
}

.art-card__title a:hover,
.art-card__title a:focus-visible {
    text-decoration: underline;
}

.art-card__excerpt {
    margin: 0 0 18px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--art-ink);
}

/* Al fondo de la tarjeta: todos los botones quedan a la misma altura
   aunque los títulos ocupen distinto número de líneas. */
.art-card__cta {
    display: inline-block;
    align-self: flex-start;
    margin-top: auto;
    padding: 10px 24px;
    border-radius: 6px;
    background-color: var(--art-black);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    color: var(--art-white);
    transition: background-color .2s ease;
}

.art-card__cta:hover,
.art-card__cta:focus-visible {
    background-color: var(--art-cyan-dark);
    color: var(--art-white);
}


/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */

@media (max-width: 1024px) {
    .art-hero {
        min-height: 240px;
    }

    .art-hero__title {
        font-size: 36px;
    }

    .art-title {
        font-size: 30px;
    }

    .art-content h2 {
        font-size: 24px;
        margin-top: 46px;
    }

    .art-content h3 {
        font-size: 20px;
    }

    .art-related__title {
        font-size: 30px;
    }

    .art-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .art-hero {
        min-height: 190px;
        padding: 30px 0;
    }

    .art-hero__title {
        font-size: 27px;
    }

    .art-hero__title br {
        display: none;
    }

    .art-entry {
        padding: 40px 0 48px;
    }

    .art-title {
        font-size: 25px;
    }

    .art-featured {
        margin-bottom: 30px;
    }

    .art-content {
        font-size: 15px;
    }

    .art-content h2 {
        font-size: 21px;
        margin-top: 38px;
    }

    .art-content h3 {
        font-size: 18px;
        margin-top: 30px;
    }

    .art-content blockquote {
        font-size: 17px;
    }

    /* En móvil la fila de compartir se centra: pegada a la derecha
       queda descolgada cuando el texto ocupa todo el ancho. */
    .art-share {
        justify-content: center;
        margin-top: 40px;
    }

    .art-related {
        padding: 44px 0 50px;
    }

    .art-related__title {
        font-size: 25px;
        margin-bottom: 30px;
    }

    .art-related__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
}
