/**
 * C+ — Vista Newsroom
 * Estructura inspirada en BussJets; tokens, tipografía y componentes de C+.
 */

.view-newsroom {
    --newsroom-blue: #2727E1;
    --newsroom-blue-hover: #1a1ab0;
    --newsroom-ink: #111111;
    --newsroom-muted: #606060;
    --newsroom-surface: #EEF2FF;
    --newsroom-line: #dbe1f4;
    --newsroom-font: 'Archivo', sans-serif;
}

/* =========================================
   Banner compact (mismo patrón que otras vistas C+)
   ========================================= */
.banner-home--compact {
    min-height: unset;
    background: none;
    display: block;
    padding: 0;
}

.banner-home--compact__bg {
    width: 100%;
    height: auto;
    display: block;
}

.banner-compact__inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(2rem, 5vw, 4rem);
    padding-top: clamp(5rem, 12vw, 10rem);
    box-sizing: border-box;
}

.banner-compact__title-wrap {
    position: relative;
    display: inline-block;
}

.banner-compact__sparkle {
    position: absolute;
    top: -55%;
    right: -6%;
    width: clamp(40px, 6vw, 80px);
    height: auto;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .banner-compact__sparkle {
        display: none;
    }
}

.banner-compact__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    max-width: 980px;
}

.banner-compact__eyebrow {
    font-family: var(--newsroom-font);
    font-size: clamp(1rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #111111;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0;
}

.banner-compact__title {
    font-family: var(--newsroom-font);
    font-size: clamp(1.35rem, 3.8vw, 3.35rem);
    font-weight: 900;
    color: #2727E1;
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
    white-space: nowrap;
}

.banner-compact__trazo {
    width: clamp(180px, 40vw, 520px);
    height: auto;
    display: block;
    margin: 0;
}

.banner-compact__desc {
    font-family: var(--newsroom-font);
    font-size: clamp(0.9rem, 1.4vw, 1.15rem);
    font-weight: 400;
    color: #111111;
    line-height: 1.55;
    margin: 0.5rem 0 0;
    max-width: 38rem;
}

.banner-compact__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.75rem;
    color: #ffffff;
    font-family: var(--newsroom-font);
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    padding: 0.75rem 2.25rem;
    border-radius: 999px;
    background: #2727E1;
    transition: background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.banner-compact__cta:hover {
    background: #1a1ab0;
    transform: translateY(-2px);
}

/* =========================================
   Intro — mismas proporciones que who_we_are (Plan Design)
   ========================================= */
.mkt-problem--media-first .mkt-problem__media {
    flex: 0 0 38%;
    max-width: 38%;
}

.mkt-problem--media-first .mkt-problem__content {
    flex: 1 1 58%;
    max-width: 640px;
}

.mkt-problem--media-first .mkt-problem__media img,
.view-newsroom .mkt-problem__media img {
    border-radius: 0;
}

.mkt-problem__lead {
    margin-bottom: 0.65rem;
}

.mkt-problem__body {
    margin-bottom: 0.75rem;
}

.mkt-problem__body:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .mkt-problem--media-first .mkt-problem__media,
    .mkt-problem--media-first .mkt-problem__content {
        flex: none;
        max-width: 100%;
    }
}

/* =========================================
   Stories
   ========================================= */
.newsroom-stories {
    background: var(--newsroom-surface);
    padding: 4rem 0;
    width: 100%;
}

.newsroom-stories__inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
    box-sizing: border-box;
}

.newsroom-stories__head {
    text-align: center;
    margin: 0 0 clamp(2.5rem, 5vw, 3.75rem);
}

.newsroom-stories__title {
    font-family: var(--newsroom-font);
    font-size: clamp(1.15rem, 2.2vw, 1.7rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--newsroom-blue);
    margin: 0;
}

.newsroom-stories__trazo {
    display: block;
    width: clamp(100px, 14vw, 180px);
    height: auto;
    margin: 0.55rem auto 0;
}

.newsroom-stories__list {
    display: flex;
    flex-direction: column;
    gap: clamp(1.75rem, 3.2vw, 2.75rem);
}

.newsroom-story {
    display: grid;
    grid-template-columns: minmax(280px, 500px) minmax(0, 1fr);
    gap: clamp(1.35rem, 3vw, 2.5rem);
    align-items: center;
}

.newsroom-story__media {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    min-height: 0;
    aspect-ratio: 21 / 10;
    border-radius: 1.5rem;
    overflow: hidden;
    background: #e5e7eb;
}

.newsroom-story__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.newsroom-story:hover .newsroom-story__media img {
    transform: scale(1.04);
}

.newsroom-story__body {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: clamp(1rem, 2vw, 1.75rem);
    min-width: 0;
    padding: 0.15rem 0 1.15rem;
    border-bottom: 1px solid #1a1a3e;
}

.newsroom-story__copy {
    flex: 1 1 auto;
    min-width: 0;
}

.newsroom-story__title {
    font-family: var(--newsroom-font);
    font-size: clamp(0.92rem, 1.2vw, 1.08rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #1a1a3e;
    margin: 0 0 0.55rem;
    line-height: 1.35;
}

.newsroom-story__text {
    font-family: var(--newsroom-font);
    font-size: clamp(0.88rem, 1.05vw, 1rem);
    font-weight: 400;
    line-height: 1.55;
    color: var(--newsroom-muted);
    margin: 0;
}

.newsroom-story__read,
.newsroom-stories__more,
.newsroom-card__read,
.newsroom-highlight__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--newsroom-font);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 999px;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.newsroom-story__read {
    align-self: flex-end;
    margin-top: 0;
    flex-shrink: 0;
    font-size: 0.68rem;
    padding: 0.48rem 1.1rem;
    background: var(--newsroom-blue);
    color: #ffffff;
    border: 2px solid var(--newsroom-blue);
}

.newsroom-story__read:hover,
.newsroom-story__read:focus {
    background: var(--newsroom-blue-hover);
    border-color: var(--newsroom-blue-hover);
    color: #ffffff;
    transform: translateY(-2px);
}

.newsroom-stories__action {
    display: flex;
    justify-content: center;
    margin-top: clamp(2rem, 3.5vw, 2.75rem);
}

.newsroom-stories__more {
    font-size: clamp(0.82rem, 1vw, 0.95rem);
    padding: 0.7rem 2.1rem;
    background: var(--newsroom-blue);
    color: #ffffff;
    border: 2px solid var(--newsroom-blue);
}

.newsroom-stories__more:hover,
.newsroom-stories__more:focus {
    background: var(--newsroom-blue-hover);
    border-color: var(--newsroom-blue-hover);
    color: #ffffff;
    transform: translateY(-2px);
}

.newsroom-story--skeleton {
    min-height: 140px;
    border-radius: 16px;
    background: linear-gradient(90deg, #e8ecfb 25%, #dce2f8 37%, #e8ecfb 63%);
    background-size: 400% 100%;
    animation: newsroom-shimmer 1.4s ease-in-out infinite;
    border-top: 0;
}

@media (max-width: 720px) {
    .newsroom-story {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .newsroom-story__media {
        max-width: 100%;
        aspect-ratio: 21 / 10;
        border-radius: 1.35rem;
    }

    .newsroom-story__body {
        flex-wrap: wrap;
        padding-bottom: 0.95rem;
    }

    .newsroom-story__read {
        margin-left: auto;
    }
}

/* =========================================
   Highlight
   ========================================= */
.newsroom-highlight {
    background: var(--newsroom-blue);
    padding: 4rem 0;
    width: 100%;
}

.newsroom-highlight[hidden] {
    display: none !important;
}

.newsroom-highlight__inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
    box-sizing: border-box;
}

.newsroom-highlight__head {
    text-align: center;
    margin-bottom: clamp(2rem, 3.5vw, 2.75rem);
}

.newsroom-highlight__title {
    font-family: var(--newsroom-font);
    font-size: clamp(1.25rem, 2.4vw, 1.85rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin: 0;
}

.newsroom-highlight__trazo {
    display: block;
    width: clamp(100px, 14vw, 180px);
    height: auto;
    margin: 0.55rem auto 0;
    filter: brightness(0) invert(1);
}

.newsroom-highlight .newsroom-empty {
    flex: 1 1 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 3rem) 1.5rem;
    text-align: center;
    font-family: var(--newsroom-font);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.08);
    border: 1px dashed rgba(255, 255, 255, 0.28);
    border-radius: 16px;
}

.newsroom-highlight__grid {
    --newsroom-cols: 4;
    --newsroom-gap: clamp(0.9rem, 1.6vw, 1.35rem);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: var(--newsroom-gap);
}

.newsroom-card {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    flex: 0 0 calc((100% - (var(--newsroom-cols) - 1) * var(--newsroom-gap)) / var(--newsroom-cols));
    max-width: calc((100% - (var(--newsroom-cols) - 1) * var(--newsroom-gap)) / var(--newsroom-cols));
    min-width: 0;
    height: 100%;
    align-self: stretch;
    background: #ffffff;
    border-radius: 1.35rem;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(17, 17, 17, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.newsroom-highlight .newsroom-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(17, 17, 17, 0.18);
}

.newsroom-card__media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #e5e7eb;
}

.newsroom-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.newsroom-card:hover .newsroom-card__media img {
    transform: scale(1.04);
}

.newsroom-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    padding: clamp(1rem, 1.5vw, 1.25rem) clamp(0.9rem, 1.3vw, 1.15rem) clamp(1.15rem, 1.7vw, 1.4rem);
}

.newsroom-card__title {
    font-family: var(--newsroom-font);
    font-size: clamp(0.78rem, 0.95vw, 0.9rem);
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #1a1a3e;
    margin: 0;
    width: 100%;
    min-height: calc(1.3em * 3);
    max-height: calc(1.3em * 3);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.newsroom-card__line {
    display: block;
    width: 2.25rem;
    height: 3px;
    background: #1a1a3e;
    margin: 0.65rem 0 0.75rem;
}

.newsroom-card__text {
    font-family: var(--newsroom-font);
    font-size: clamp(0.78rem, 0.92vw, 0.88rem);
    line-height: 1.5;
    font-weight: 400;
    color: var(--newsroom-muted);
    margin: 0 0 1.1rem;
    width: 100%;
    min-height: calc(1.5em * 3);
    max-height: calc(1.5em * 3);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.newsroom-card__read {
    margin-top: auto;
    align-self: center;
    font-size: 0.68rem;
    padding: 0.45rem 1.15rem;
    background: var(--newsroom-blue);
    color: #ffffff;
    border: 2px solid var(--newsroom-blue);
}

.newsroom-card__read:hover,
.newsroom-card__read:focus {
    background: var(--newsroom-blue-hover);
    border-color: var(--newsroom-blue-hover);
    color: #ffffff;
    transform: translateY(-2px);
}

.newsroom-highlight__action {
    display: flex;
    justify-content: center;
    margin-top: clamp(2rem, 3.5vw, 2.75rem);
}

.newsroom-highlight__more {
    font-size: clamp(0.82rem, 1vw, 0.95rem);
    padding: 0.7rem 2.1rem;
    background: #ffffff;
    color: var(--newsroom-blue);
    border: 2px solid #ffffff;
}

.newsroom-highlight__more:hover,
.newsroom-highlight__more:focus {
    background: transparent;
    color: #ffffff;
    transform: translateY(-2px);
}

.newsroom-empty {
    flex: 1 1 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 3rem) 1.5rem;
    text-align: center;
    font-family: var(--newsroom-font);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
    color: var(--newsroom-muted);
    background: #ffffff;
    border: 1px dashed var(--newsroom-line);
    border-radius: 16px;
}

.newsroom-card--skeleton {
    pointer-events: none;
    min-height: 280px;
    background: linear-gradient(90deg, #e8ecfb 25%, #dce2f8 37%, #e8ecfb 63%);
    background-size: 400% 100%;
    animation: newsroom-shimmer 1.4s ease-in-out infinite;
}

@keyframes newsroom-shimmer {
    from { background-position: 100% 0; }
    to { background-position: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
    .newsroom-card--skeleton,
    .newsroom-story--skeleton,
    .newsroom-card__media img,
    .newsroom-story__media img {
        animation: none;
        transition: none;
    }
}

.newsroom-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1024px) {
    .newsroom-highlight__grid {
        --newsroom-cols: 2;
    }
}

@media (max-width: 600px) {
    .newsroom-highlight__grid {
        --newsroom-cols: 1;
        max-width: 360px;
        margin: 0 auto;
    }
}

/* =========================================
   Artículo (detalle)
   ========================================= */
.view-article {
    --article-accent: #2727E1;
    --article-ink: #111111;
    --article-body: #606060;
}

.article-hero {
    background: #ffffff;
    padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem) 0;
}

.article-hero__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.article-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--newsroom-font);
    font-size: clamp(0.78rem, 0.95vw, 0.88rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.article-hero__back:hover,
.article-hero__back:focus {
    color: var(--newsroom-blue);
}

.article-hero__date {
    font-family: var(--newsroom-font);
    font-size: clamp(0.78rem, 0.95vw, 0.88rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--newsroom-muted);
    margin: clamp(1.25rem, 2.5vw, 1.75rem) 0 0;
}

.article-hero__title {
    font-family: var(--newsroom-font);
    font-size: clamp(1.75rem, 3.2vw, 2.75rem);
    font-weight: 800;
    line-height: 1.18;
    color: var(--newsroom-ink);
    text-transform: uppercase;
    margin: clamp(0.75rem, 1.5vw, 1rem) 0 0;
}

.article-detail {
    background: #ffffff;
    padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem);
}

.article-detail__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.article-detail__inner p {
    font-family: var(--newsroom-font);
    font-size: 1.05rem;
    line-height: 1.75;
    font-weight: 400;
    color: var(--newsroom-muted);
    margin: 0 0 1.35rem;
}

.article-detail__inner p:last-child {
    margin-bottom: 0;
}

.article-detail__inner a {
    color: var(--newsroom-blue);
    text-decoration: underline;
}

.article-detail__inner ul,
.article-detail__inner ol {
    font-family: var(--newsroom-font);
    font-size: 1.05rem;
    line-height: 1.75;
    font-weight: 400;
    color: var(--newsroom-muted);
    margin: 0 0 1.35rem;
    padding-left: 1.5rem;
}

.article-detail__inner li {
    margin-bottom: 0.5rem;
}

.article-title--kicker {
    font-family: var(--newsroom-font);
    font-size: clamp(0.78rem, 0.95vw, 0.9rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--newsroom-blue);
    margin: 0 0 0.85rem;
    text-align: center;
}

.article-title--hero {
    font-family: var(--newsroom-font);
    font-size: clamp(1.65rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--newsroom-ink);
    margin: clamp(1.75rem, 3vw, 2.5rem) 0 clamp(0.85rem, 1.5vw, 1.15rem);
    text-align: center;
    text-transform: uppercase;
}

.article-detail__inner > .article-title--hero:first-child,
.article-detail__inner > .article-title--kicker:first-child {
    margin-top: 0;
}

.article-title--hero::after {
    content: '';
    display: block;
    width: clamp(3.5rem, 6vw, 5rem);
    height: 4px;
    background: var(--newsroom-blue);
    margin: clamp(0.85rem, 1.5vw, 1.15rem) auto 0;
}

.article-title--section {
    font-family: var(--newsroom-font);
    font-size: clamp(1.2rem, 1.9vw, 1.6rem);
    font-weight: 800;
    line-height: 1.28;
    color: var(--newsroom-ink);
    margin: clamp(1.75rem, 3vw, 2.25rem) 0 clamp(0.7rem, 1.2vw, 0.9rem);
}

.article-title--sub {
    font-family: var(--newsroom-font);
    font-size: clamp(1.02rem, 1.4vw, 1.2rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--newsroom-blue);
    margin: clamp(1.35rem, 2.2vw, 1.75rem) 0 clamp(0.5rem, 1vw, 0.7rem);
}

.article-media {
    margin: clamp(1.75rem, 3vw, 2.5rem) 0;
}

.article-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.article-media figcaption {
    font-family: var(--newsroom-font);
    font-size: clamp(0.78rem, 0.95vw, 0.88rem);
    font-weight: 400;
    color: var(--newsroom-muted);
    margin-top: 0.75rem;
    text-align: center;
}

/* =========================================
   Responsive banner + 2000px
   ========================================= */
@media (max-width: 900px) {
    .banner-compact__inner {
        padding: clamp(1.5rem, 6vw, 2.5rem);
        padding-top: clamp(4.5rem, 18vw, 7rem);
    }

    .banner-compact__title {
        white-space: normal;
        font-size: clamp(1.35rem, 7.2vw, 2.4rem);
    }
}

@media (max-width: 500px) {
    .banner-home--compact {
        min-height: 110vw;
    }

    .banner-compact__title {
        font-size: clamp(1.15rem, 8vw, 1.85rem);
        white-space: normal;
    }

    .banner-compact__eyebrow {
        font-size: clamp(0.75rem, 3.5vw, 1rem);
    }

    .banner-compact__desc {
        font-size: clamp(0.75rem, 3vw, 0.9rem);
    }

    .banner-compact__cta {
        font-size: 0.8rem;
        padding: 0.6rem 1.5rem;
    }

    .banner-compact__trazo {
        width: clamp(110px, 55vw, 220px);
    }
}

@media (min-width: 2000px) {
    .banner-compact__content {
        max-width: 1400px;
    }

    .banner-compact__title {
        font-size: 5.4rem;
    }

    .banner-compact__eyebrow {
        font-size: 1.9rem;
    }

    .banner-compact__desc {
        font-size: 1.35rem;
    }

    .banner-compact__trazo {
        width: 650px;
    }

    .banner-compact__sparkle {
        width: 120px;
    }

    .banner-compact__cta {
        font-size: 1.1rem;
        padding: 1rem 3rem;
    }

    .mkt-problem--media-first .mkt-problem__media {
        flex: 0 0 35%;
        max-width: 35%;
    }

    .mkt-problem--media-first .mkt-problem__content {
        flex: 1 1 62%;
        max-width: 780px;
    }

    .mkt-problem__lead {
        margin-bottom: 0.85rem;
    }

    .mkt-problem__body {
        margin-bottom: 0.9rem;
    }

    .newsroom-stories {
        padding: 6rem 0;
    }

    .newsroom-stories__inner,
    .newsroom-highlight__inner {
        max-width: 1900px;
        padding: 0 clamp(4rem, 7vw, 9rem);
    }
}

@media (min-width: 2560px) {
    .banner-compact__content {
        max-width: 1700px;
    }

    .banner-compact__title {
        font-size: 6.6rem;
    }

    .banner-compact__eyebrow {
        font-size: 2.2rem;
    }

    .banner-compact__desc {
        font-size: 1.6rem;
    }

    .banner-compact__trazo {
        width: 850px;
    }

    .banner-compact__cta {
        font-size: 1.25rem;
        padding: 1.1rem 3.5rem;
    }

    .mkt-problem--media-first .mkt-problem__media {
        flex: 0 0 32%;
        max-width: 32%;
    }

    .mkt-problem--media-first .mkt-problem__content {
        flex: 1 1 65%;
        max-width: 920px;
    }

    .mkt-problem__lead {
        margin-bottom: 1rem;
    }

    .mkt-problem__body {
        margin-bottom: 1rem;
    }

    .newsroom-stories__inner {
        max-width: 2300px;
        padding: 0 10rem;
    }
}
