:root {
    color-scheme: light;
    font-family: Montserrat, Arial, sans-serif;
    background: #f5f8fc;
}

* { box-sizing: border-box; }

body {
    min-width: 320px;
    margin: 0;
    color: #172033;
    background: #f5f8fc;
}

.public-news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(18px, 5vw, 72px);
    border-bottom: 1px solid #dce4ed;
    background: #fff;
}

.public-news-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #003b7a;
    text-decoration: none;
}

.public-news-brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.public-news-brand strong,
.public-news-brand small {
    display: block;
}

.public-news-brand strong { font-size: 15px; }
.public-news-brand small { margin-top: 2px; color: #667085; font-size: 10px; }
.public-news-header nav { display: flex; align-items: center; gap: 9px; }
.public-news-header nav a { padding: 10px 13px; border-radius: 9px; color: #006fd6; font-size: 11px; font-weight: 800; text-decoration: none; }
.public-news-header nav a:hover { color: #fff; background: #006fd6; }

@media (max-width: 560px) {
    .public-news-header { align-items: flex-start; flex-direction: column; gap: 10px; }
    .public-news-header nav { width: 100%; }
    .public-news-header nav a { flex: 1; text-align: center; }
}

.preview-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
    padding: 10px clamp(18px, 4vw, 64px);
    border-bottom: 1px solid #dce4ed;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 5px 20px rgba(16, 24, 40, .06);
    backdrop-filter: blur(10px);
}

.preview-toolbar-brand,
.preview-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.preview-toolbar-logo {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    color: #fff;
    background: #003b7a;
    font-size: 14px;
    font-weight: 800;
}

.preview-toolbar strong,
.preview-toolbar small { display: block; }

.preview-toolbar strong {
    color: #003b7a;
    font-size: 15px;
}

.preview-toolbar small {
    margin-top: 2px;
    color: #667085;
    font-size: 11px;
}

.preview-toolbar-actions a {
    padding: 11px 15px;
    border-radius: 10px;
    color: #fff;
    background: #006fd6;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.preview-toolbar-actions .preview-toolbar-secondary {
    color: #006fd6;
    background: #eaf3fa;
}

.preview-toolbar-actions .preview-toolbar-logout {
    color: #003b7a;
    border: 1px solid #c9d7e6;
    background: #fff;
}

.preview-toolbar-actions .preview-toolbar-logout:hover {
    color: #fff;
    border-color: #003b7a;
    background: #003b7a;
}

.site-preview-page {
    width: 100%;
    padding: clamp(28px, 5vw, 80px) clamp(18px, 5vw, 80px);
}

.site-news {
    width: min(1480px, 100%);
    margin: 0 auto;
}

.site-news-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
    padding-bottom: 14px;
    border-bottom: 4px solid #0ba9cb;
}

.site-news-eyebrow,
.site-news-category {
    color: #0ba9cb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.site-news-heading h1 {
    margin: 4px 0 0;
    color: #101828;
    font-size: clamp(29px, 3vw, 44px);
    line-height: 1.06;
}

.site-news-all {
    flex: 0 0 auto;
    color: #006fd6;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.site-news-all:hover,
.site-news-all:focus-visible {
    color: #003b7a;
    transform: translateY(-2px);
}

/* Un único bloque editorial, sin tarjetas flotantes. */
.site-news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(300px, .95fr);
    grid-template-rows: repeat(2, auto);
    column-gap: clamp(26px, 3vw, 46px);
    row-gap: clamp(26px, 2.4vw, 36px);
    align-items: start;
}

.site-news-card {
    min-width: 0;
    background: transparent;
}

.site-news-main { grid-row: 1 / span 2; }

.site-news-media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    background: #eaf3fa;
    line-height: 0;
}

.site-news-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    transition: transform .35s ease, filter .35s ease;
}

.site-news-media:hover img,
.site-news-media:focus-visible img {
    filter: brightness(1.035);
    transform: scale(1.035);
}

.site-news-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: inherit;
    color: #fff;
    background: linear-gradient(135deg, #003b7a, #0ba9cb);
    font-size: clamp(22px, 3vw, 38px);
    font-weight: 800;
    line-height: 1;
}

.site-news-body {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding-top: 18px;
}

.site-news-card h2 {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: clamp(19px, 1.55vw, 27px);
    line-height: 1.24;
}

.site-news-card h2 a {
    display: inline-block;
    color: #1d2939;
    text-decoration: none;
    transform: scale(1);
    transform-origin: left center;
    transition: color .22s ease, transform .22s ease;
}

.site-news-card h2 a:hover,
.site-news-card h2 a:focus-visible {
    color: #006fd6;
    transform: scale(1.025);
}

.site-news-main h2 {
    font-size: clamp(28px, 2.7vw, 43px);
    line-height: 1.14;
}

.site-news-summary {
    margin: 0;
    color: #667085;
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.6;
}

.site-news-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(30px, 4vw, 58px) clamp(22px, 3vw, 38px);
}

.site-news-list .site-news-card h2 {
    font-size: clamp(18px, 1.45vw, 24px);
}

.site-category-index {
    display: grid;
    gap: clamp(52px, 6vw, 86px);
}

.site-category-index-section {
    min-width: 0;
}

.site-category-index-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
    padding-bottom: 11px;
    border-bottom: 4px solid #0ba9cb;
}

.site-category-index-heading > a {
    flex: 0 0 auto;
    color: #006fd6;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.site-category-index-heading > a:hover,
.site-category-index-heading > a:focus-visible {
    color: #003b7a;
    transform: translateY(-2px);
}

.site-category-index-heading h2 {
    margin: 0;
    color: #101828;
    font-size: clamp(27px, 2.5vw, 40px);
    line-height: 1.05;
    text-transform: uppercase;
}

.site-category-index-grid {
    display: grid;
    gap: clamp(22px, 2.6vw, 38px);
}

.site-category-layout-uniform .site-category-index-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.site-category-layout-editorial .site-category-index-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, auto);
}

.site-category-layout-editorial .is-category-main {
    grid-column: span 2;
    grid-row: span 2;
}

.site-category-layout-editorial .site-category-index-card:nth-child(2) {
    grid-column: span 2;
}

.site-category-index-card {
    min-width: 0;
}

.site-category-index-media {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 11px;
    overflow: hidden;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, #003b7a, #0ba9cb);
    text-decoration: none;
}

.site-category-index-media img,
.site-category-index-media span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.site-category-index-media img {
    object-fit: cover;
    transition: transform .32s ease, filter .32s ease;
}

.site-category-index-media:hover img,
.site-category-index-media:focus-visible img {
    filter: brightness(1.04);
    transform: scale(1.04);
}

.site-category-index-label {
    color: #0ba9cb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.site-category-index-card h3 {
    margin: 6px 0 0;
    font-size: clamp(16px, 1.3vw, 21px);
    line-height: 1.26;
}

.site-category-index-card h3 a {
    display: inline-block;
    color: #1d2939;
    text-decoration: none;
    transform-origin: left center;
    transition: color .2s ease, transform .2s ease;
}

.site-category-index-card h3 a:hover,
.site-category-index-card h3 a:focus-visible {
    color: #006fd6;
    transform: scale(1.02);
}

.site-category-layout-editorial .is-category-main h3 {
    font-size: clamp(21px, 2vw, 31px);
}

.site-category-archive-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(28px, 3vw, 44px) clamp(22px, 2.6vw, 38px);
}

.site-category-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 42px;
}

.site-category-pagination a {
    padding: 10px 14px;
    border-radius: 10px;
    color: #fff;
    background: #006fd6;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.site-category-pagination span {
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

/* Valoración privada al final de la noticia */
.article-reaction {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin-top: clamp(38px, 6vw, 76px);
    padding: clamp(24px, 4vw, 38px);
    border-top: 3px solid #0ba9cb;
    border-bottom: 1px solid #dce4ed;
    text-align: center;
}

.article-reaction > p {
    margin: 0;
    color: #101828;
    font-family: Montserrat, Arial, sans-serif;
    font-size: clamp(18px, 2vw, 25px);
    font-weight: 800;
}

.article-reaction > small {
    color: #667085;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 11px;
    line-height: 1.5;
}

.article-like-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 7px 20px 7px 9px;
    border: 1px solid #bed8ee;
    border-radius: 999px;
    color: #003b7a;
    background: #fff;
    box-shadow: 0 10px 26px rgba(0, 59, 122, .1);
    cursor: pointer;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.article-like-button:hover,
.article-like-button:focus-visible {
    border-color: #0ba9cb;
    box-shadow: 0 13px 30px rgba(0, 111, 214, .16);
    transform: translateY(-2px);
}

.article-like-button:disabled {
    cursor: wait;
    opacity: .72;
}

.article-like-button.is-liked {
    color: #fff;
    border-color: #006fd6;
    background: linear-gradient(135deg, #003b7a, #006fd6);
}

.article-like-image-wrap {
    position: relative;
    display: grid;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    place-items: center;
}

.article-like-image-wrap img {
    display: block;
    width: 50px;
    height: 50px;
    object-fit: contain;
    transform-origin: center;
}

.article-like-spark {
    position: absolute;
    top: 3px;
    right: 1px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5bbeff;
    opacity: 0;
}

.article-like-button.is-animating .article-like-image-wrap img {
    animation: mdptv-like-bounce .58s ease;
}

.article-like-button.is-animating .article-like-spark {
    animation: mdptv-like-spark .58s ease;
}

@keyframes mdptv-like-bounce {
    0% { transform: scale(1) rotate(0); }
    38% { transform: scale(1.2) rotate(-5deg); }
    70% { transform: scale(.96) rotate(2deg); }
    100% { transform: scale(1) rotate(0); }
}

@keyframes mdptv-like-spark {
    0%, 100% { opacity: 0; transform: scale(.4); box-shadow: none; }
    45% { opacity: 1; transform: scale(1.15); box-shadow: 14px 5px 0 #0ba9cb, -9px -9px 0 #006fd6; }
}

@media (prefers-reduced-motion: reduce) {
    .article-like-button,
    .article-like-button.is-animating .article-like-image-wrap img,
    .article-like-button.is-animating .article-like-spark {
        animation: none;
        transition: none;
    }
}

.site-news-empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 80px 24px;
    border: 1px dashed #b8c2cf;
    border-radius: 20px;
    color: #667085;
    background: #fff;
    text-align: center;
}

.site-news-empty strong {
    color: #003b7a;
    font-size: 20px;
}

.site-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 295px);
    gap: clamp(30px, 3vw, 48px);
    align-items: start;
    width: min(1480px, calc(100% - clamp(36px, 8vw, 128px)));
    margin: 0 auto;
    padding: clamp(30px, 5vw, 70px) 0 clamp(50px, 7vw, 100px);
}

.site-article-layout .site-public-article {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.site-article-layout .preview-article {
    width: 100%;
    max-width: none;
    margin: 0;
}

.site-article-layout > .site-related {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    align-self: start;
    min-width: 0;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
}

.site-related-heading {
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 3px solid #0ba9cb;
}

.site-related-heading span,
.site-related-category {
    color: #0ba9cb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.site-related-heading h2 {
    margin: 4px 0 0;
    color: #101828;
    font-size: clamp(22px, 1.75vw, 28px);
    line-height: 1.05;
    text-transform: uppercase;
}

.site-related-list {
    display: grid;
    gap: 22px;
}

.site-related-item {
    min-width: 0;
}

.site-related-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 9px;
    overflow: hidden;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, #003b7a, #0ba9cb);
    text-decoration: none;
}

.site-related-media img,
.site-related-media > span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.site-related-media img {
    object-fit: cover;
    transition: transform .3s ease, filter .3s ease;
}

.site-related-media:hover img,
.site-related-media:focus-visible img {
    filter: brightness(1.04);
    transform: scale(1.04);
}

.site-related-item h3 {
    margin: 5px 0 0;
    font-size: clamp(15px, 1.05vw, 18px);
    line-height: 1.28;
}

.site-related-item h3 a {
    display: inline-block;
    color: #1d2939;
    text-decoration: none;
    transform-origin: left center;
    transition: color .2s ease, transform .2s ease;
}

.site-related-item h3 a:hover,
.site-related-item h3 a:focus-visible {
    color: #006fd6;
    transform: scale(1.02);
}

.site-category-news {
    width: min(1480px, calc(100% - clamp(36px, 8vw, 128px)));
    margin: 0 auto;
    padding: 0 0 clamp(55px, 7vw, 100px);
}

.site-category-news-heading {
    margin-bottom: 26px;
    padding-bottom: 11px;
    border-bottom: 4px solid #0ba9cb;
}

.site-category-news-heading h2 {
    margin: 0;
    color: #101828;
    font-size: clamp(27px, 2.4vw, 38px);
    line-height: 1.05;
    text-transform: uppercase;
}

.site-category-news-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(22px, 2.6vw, 38px);
}

.site-category-news-item {
    min-width: 0;
}

.site-category-news-media {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 11px;
    overflow: hidden;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #003b7a, #0ba9cb);
    text-decoration: none;
}

.site-category-news-media img,
.site-category-news-media span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.site-category-news-media img {
    object-fit: cover;
    transition: transform .3s ease, filter .3s ease;
}

.site-category-news-media:hover img,
.site-category-news-media:focus-visible img {
    filter: brightness(1.04);
    transform: scale(1.04);
}

.site-category-news-label {
    color: #0ba9cb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.site-category-news-item h3 {
    margin: 6px 0 0;
    font-size: clamp(16px, 1.25vw, 20px);
    line-height: 1.25;
}

.site-category-news-item h3 a {
    display: inline-block;
    color: #1d2939;
    text-decoration: none;
    transform-origin: left center;
    transition: color .2s ease, transform .2s ease;
}

.site-category-news-item h3 a:hover,
.site-category-news-item h3 a:focus-visible {
    color: #006fd6;
    transform: scale(1.02);
}

@media (max-width: 900px) {
    .site-news-layout { grid-template-columns: minmax(0, 1.4fr) minmax(260px, .9fr); }
    .site-news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-article-layout { grid-template-columns: minmax(0, 1fr) minmax(225px, 260px); }
    .site-category-news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .site-category-layout-uniform .site-category-index-grid,
    .site-category-layout-editorial .site-category-index-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
    }
    .site-category-layout-editorial .is-category-main,
    .site-category-layout-editorial .site-category-index-card:nth-child(2) {
        grid-column: auto;
        grid-row: auto;
    }
    .site-category-archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .preview-toolbar { min-height: 62px; }
    .preview-toolbar small { display: none; }
    .preview-toolbar-actions { gap: 7px; }
    .preview-toolbar-actions a { padding: 9px 11px; font-size: 10px; }
    .preview-toolbar-secondary { display: none; }
    .site-preview-page { padding-top: 28px; }
    .site-news-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
    .site-news-layout,
    .site-news-list { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
    .site-news-main { grid-row: auto; }
    .site-news-main h2 { font-size: 27px; }
    .site-article-layout {
        grid-template-columns: minmax(0, 1fr);
        width: min(100% - 36px, 900px);
    }
    .site-related {
        position: static;
        padding-top: 14px;
        border-top: 1px solid #dce4ed;
    }
    .site-related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-category-news { width: min(100% - 36px, 900px); }
    .site-category-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-category-index { gap: 50px; }
    .site-category-index-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
    .site-category-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 430px) {
    .preview-toolbar-brand strong { font-size: 12px; }
    .preview-toolbar-logo { width: 39px; height: 39px; }
    .site-related-list { grid-template-columns: minmax(0, 1fr); }
    .site-category-news-grid { grid-template-columns: minmax(0, 1fr); }
    .site-category-layout-uniform .site-category-index-grid,
    .site-category-layout-editorial .site-category-index-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .site-category-archive-grid { grid-template-columns: minmax(0, 1fr); }
    .site-category-pagination { flex-wrap: wrap; gap: 10px; }
}

/* ==========================================================
   CONTENIDO EMBEBIDO: HLS, IFRAME Y WIDGET
   ========================================================== */

.mdptv-embed-block {
    width: 100%;
    max-width: 100%;
    margin: 24px auto;
}

.mdptv-embed-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.mdptv-hls-player,
.mdptv-embed-iframe,
.mdptv-embed-widget {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    border: 0;
    background: #000;
}

.mdptv-hls-player {
    object-fit: contain !important;
    object-position: center;
}
