/* ==================================================
   ARCHIVO: /css/noticia.css
   CSS específico de la página de noticia individual
   ================================================== */

:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
    --secondary: #007887;
    --secondary-dark: #005a66;
    --text-muted: #888888;
}

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

.noticia-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.noticia-main {
    padding: 30px 0 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    overflow: visible !important;
}

.noticia-articulo {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    overflow: visible !important;
}

.ante-titulo {
    color: var(--secondary, #333);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    font-family: var(--font-primary);
    max-width: 100%;
    padding: 0;
}

.noticia-titulo {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin: 0 0 16px 0;
    color: var(--color-text, #1a1a2e);
    max-width: 100%;
    padding: 0;
}

.noticia-subtitulo {
    font-family: var(--font-primary);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--color-text-light, #666);
    line-height: 1.4;
    margin: 0 0 25px 0;
    letter-spacing: -0.01em;
    max-width: 100%;
    padding: 0;
}

/* ==================================================
   IMAGEN PRINCIPAL + PIE DE FOTO
   ================================================== */
.imagen-fullwidth-wrap {
    width: 100%;
    margin: 8px 0 0 0;
    padding: 0;
}

.imagen-fullwidth-wrap .imagen-principal {
    position: relative;
    margin: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.imagen-fullwidth-wrap .pie-foto-full {
    font-size: 13px;
    color: #777;
    line-height: 1.5;
    padding: 8px 12px;
    margin: 0;
    font-style: italic;
    background: #f8f9fa;
    border-top: 1px solid #eef0f3;
    text-align: center;
    font-family: var(--font-primary);
}

.imagen-principal {
    margin: 0;
    overflow: hidden;
    background: #f5f7fa;
    width: 100%;
    padding: 0;
    border-radius: 0 !important;
}

.imagen-principal img,
.imagen-principal .slide-item img,
.imagen-principal .imagen-unica img,
.imagen-principal .video-container,
.imagen-principal .galeria-slider {
    border-radius: 0 !important;
}

.slider-container {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 320px;
    max-height: 600px;
    background: #f5f7fa;
}

.slide-item {
    width: 100%;
    height: 100%;
    min-height: 320px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #f5f7fa;
}

.slide-item img {
    width: 100%;
    height: auto;
    min-height: 320px;
    max-height: 600px;
    object-fit: contain;
    object-position: top center;
    display: block;
    border-radius: 0 !important;
    background: #f5f7fa;
}

.imagen-unica {
    cursor: default;
    position: relative;
    width: 100%;
    background: #f5f7fa;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 200px;
}

.imagen-unica img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    object-position: top center;
    display: block;
    border-radius: 0 !important;
    background: #f5f7fa;
}

.slide-item img.vertical,
.imagen-unica img.vertical {
    width: auto;
    max-width: 70%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 0 !important;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.galeria-slider {
    position: relative;
    border-radius: 0 !important;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}

.slider-btn:hover { background: rgba(0,0,0,0.9); }
.slider-btn-left { left: 15px; }
.slider-btn-right { right: 15px; }

.slider-indicator {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    z-index: 2;
    pointer-events: none;
    font-family: var(--font-primary);
}

.media-icon-badge-large,
.media-icon-badge-carrusel {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1.5px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.media-icon-badge-small {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 1.5px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.pie-foto {
    font-size: 0.875rem;
    color: #555;
    margin-top: 10px;
    text-align: left;
    font-style: italic;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    gap: 8px;
    font-family: var(--font-primary);
    border-bottom: none;
}

/* YouTube Shorts vertical 9:16 */
figure.imagen-principal:has(.video-container.is-short) {
    display: flex;
    justify-content: center;
    background: #f5f7fa;
    padding: 0;
    margin: 0 0 25px 0;
}

.video-container.is-short {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 9 / 16;
    margin: 0 auto;
    background: #000;
    border-radius: 0 !important;
    overflow: hidden;
    padding-bottom: 0 !important;
    height: auto !important;
}

.video-container.is-short iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0 !important;
    display: block;
}

.imagen-unica-wrapper {
    display: table;
    margin: 0 auto 25px auto;
    max-width: 100%;
    width: auto;
    background: #f5f7fa;
}

.imagen-unica-wrapper .imagen-unica {
    display: block;
    width: auto;
    min-height: 0;
    background: transparent;
    cursor: default;
    position: relative;
}

.imagen-unica-wrapper .imagen-unica img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    object-position: top center;
    border-radius: 0 !important;
    background: #f5f7fa;
}

.imagen-unica-wrapper .pie-foto {
    display: table-caption;
    caption-side: bottom;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    padding: 0 10px;
    margin-top: 0;
    border-bottom: none;
}

/* ==================================================
   META (autor · ciudad · fecha · fuente)
   ================================================== */
.noticia-meta-nueva {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    font-size: 14px;
    color: #555;
    margin: 14px 0 16px 0;
    padding: 0 0 14px 0;
    border-bottom: 1px solid #eef0f3;
    font-family: var(--font-primary);
}

.noticia-meta-nueva .meta-sep {
    color: #c8ccd3;
    font-weight: 700;
    user-select: none;
}

.noticia-meta-nueva .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.noticia-meta-nueva .meta-item i {
    color: #888;
    font-size: 12px;
}

.noticia-meta-nueva .autor-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #111;
    text-decoration: none;
    font-weight: 600;
}

.noticia-meta-nueva .autor-link:hover { color: #c0392b; }

.noticia-meta-nueva .autor-avatar-mini {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
    background: #eee;
}

.noticia-meta-nueva .autor-avatar-inicial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.noticia-meta-nueva .meta-fuente { color: #888; font-style: italic; }
.noticia-meta-nueva .fecha-corta { display: none; }
.noticia-meta-nueva .fecha-larga { display: inline; }

/* ==================================================
   BARRA COMPARTIR: REDES (IZQ) · TTS (CENTRO) · GOOGLE (DER)
   ================================================== */
.compartir-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 15px;
    margin: 0 0 16px 0;
    padding: 0;
    width: 100%;
}

.compartir-bar .share-icons {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
    order: 1;
}

.compartir-bar .share-btn-clean {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #1a1a1a;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    flex-shrink: 0;
}

.compartir-bar .share-btn-clean:hover { background: #e0e0e0; }

/* TTS en el centro */
.compartir-bar .tts-row-center {
    order: 2;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    width: auto;
    font-family: var(--font-primary);
}

/* Google a la derecha */
.compartir-bar .google-follow-inline {
    order: 3;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 16px;
    background: #fff;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13.5px;
    transition: all 0.25s ease;
    box-sizing: border-box;
    white-space: nowrap;
    height: 42px;
    border: 1px solid #e0e0e0;
    margin-left: 0;
    font-family: var(--font-primary);
}

.compartir-bar .google-follow-inline:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.compartir-bar .google-follow-inline svg { flex-shrink: 0; width: 16px; height: 16px; }

/* ==================================================
   NARRACIÓN IA
   ================================================== */
.tts-player-wrapper {
    display: inline-block;
    position: relative;
    width: auto;
}

.audio-player-discreto {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f5f7fa;
    border: 1px solid #e5e8ee;
    border-radius: 999px;
    padding: 5px 10px 5px 5px;
    font-size: 12.5px;
    color: #444;
    width: auto;
}

.audio-btn-discreto {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    transition: background 0.2s;
    flex-shrink: 0;
    font-family: var(--font-primary);
}

.audio-btn-discreto:hover { background: #333; }
.audio-btn-discreto.playing { background: #c0392b; }

.audio-tiempo-discreto,
.audio-separador-discreto,
.audio-estado-discreto { color: #666; font-size: 12px; }

.audio-separador-discreto { color: #ccc; }
.audio-estado-discreto.leyendo { color: #c0392b; font-weight: 600; }

.audio-btn-mini-discreto {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 12.5px;
    padding: 0;
    margin-left: 2px;
    flex-shrink: 0;
}

.audio-btn-mini-discreto:hover { color: #000; }

.tts-progress-bar-container {
    display: none;
    width: 100%;
    height: 3px;
    background: #e5e8ee;
    border-radius: 999px;
    margin-top: 6px;
    overflow: hidden;
}

.tts-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: #c0392b;
    transition: width 0.3s ease;
}

/* ==================================================
   POPOVER COMPARTIR + MODAL INFO IA
   ================================================== */
.share-popover-overlay,
.tts-info-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9998;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.share-popover-overlay.active,
.tts-info-overlay.active { display: flex; }

.share-popover,
.tts-info-modal {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    z-index: 9999;
    animation: popIn 0.2s ease;
    font-family: var(--font-primary);
}

.tts-info-modal { max-width: 420px; }

@keyframes popIn {
    from { transform: scale(0.96); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.share-popover-header,
.tts-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
    border-radius: 14px 14px 0 0;
}

.share-popover-header h3,
.tts-info-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.share-popover-close,
.tts-info-close {
    background: none;
    border: none;
    font-size: 26px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}

.share-popover-close:hover,
.tts-info-close:hover { color: #333; }

.share-popover-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 8px 12px;
}

.share-popover-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 15px;
    border-radius: 8px;
    transition: background 0.15s;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    text-align: left;
    width: 100%;
}

.share-popover-item:hover { background: #f5f5f5; }

.share-popover-item .pop-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: #1a1a1a;
    flex-shrink: 0;
}

.share-popover-item:hover .pop-icon { background: #e0e0e0; }

.tts-info-body {
    padding: 20px;
    font-size: 14px;
    line-height: 1.65;
    color: #333;
}

.tts-info-body p { margin: 0 0 12px 0; }
.tts-info-body p:last-child { margin-bottom: 0; }

.tts-info-footer {
    padding: 14px 20px 18px 20px;
    display: flex;
    justify-content: flex-end;
}

.btn-entendido {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.btn-entendido:hover { background: #333; }

/* ==================================================
   BARRA COMPARTIR (bottom)
   ================================================== */
.compartir-bottom {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

.compartir-bottom .share-icons {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.compartir-bottom .share-btn-clean {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #1a1a1a;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.compartir-bottom .share-btn-clean:hover { background: #e0e0e0; }

/* ==================================================
   CONTENEDOR IMAGEN + BANNER
   ================================================== */
.contenedor-imagen-banner {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    margin-bottom: 25px;
    width: 100%;
    align-items: start;
    overflow: visible;
}

.columna-izquierda {
    display: flex;
    flex-direction: column;
    gap: 25px;
    min-width: 0;
}

.columna-derecha {
    position: relative;
    align-self: start;
    height: auto;
}

.banner-lateral-320 {
    position: -webkit-sticky;
    position: sticky;
    top: 114px;
    width: 320px;
    max-width: 320px;
    z-index: 1;
}

.banner-slot {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.banner-placeholder {
    width: 320px;
    min-height: 100px;
    background: #f5f7fa;
    border: 2px dashed #d0d7de;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #999;
    font-family: var(--font-primary, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.banner-slot .banner-publicidad { margin: 0 0 20px 0; width: 100%; }
.banner-slot .banner-publicidad:last-child { margin-bottom: 0; }
.banner-slot .banner-publicidad .container { padding: 0; max-width: 100%; }
.banner-slot .banner-publicidad .banner-contenido { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.banner-slot .banner-publicidad img { display: block; max-width: 100%; height: auto; border-radius: 6px; margin: 0 auto; }
.banner-slot .banner-publicidad a { display: block; text-decoration: none; }

/* ==================================================
   CONTENIDO
   ================================================== */
.contenido-noticia {
    font-size: 1.375rem;
    line-height: 1.80rem;
    color: var(--color-text, #1a1a2e);
    font-family: var(--font-primary);
    max-width: 100%;
    padding: 0;
}

.contenido-noticia p { margin: 0 0 1.4em 0; max-width: 100%; line-height: 1.80rem; }
.contenido-noticia p:last-child { margin-bottom: 0; }
.contenido-noticia p:empty { display: none; }

.contenido-noticia h2 { font-size: 1.8rem; font-weight: 700; margin: 1.8em 0 0.4em 0; line-height: 1.2; max-width: 100%; color: var(--color-text, #1a1a2e); }
.contenido-noticia h3 { font-size: 1.4rem; font-weight: 600; margin: 1.5em 0 0.3em 0; max-width: 100%; color: var(--color-text, #1a1a2e); }
.contenido-noticia h4 { font-size: 1.15rem; font-weight: 600; margin: 1.2em 0 0.2em 0; max-width: 100%; color: var(--color-text, #1a1a2e); }
.contenido-noticia h5 { font-size: 1rem; font-weight: 600; margin: 1em 0 0.2em 0; max-width: 100%; color: var(--color-text, #1a1a2e); }
.contenido-noticia h6 { font-size: 0.9rem; font-weight: 600; margin: 0.8em 0 0.2em 0; max-width: 100%; color: var(--color-text, #1a1a2e); text-transform: uppercase; letter-spacing: 0.5px; }

.contenido-noticia h2 + p,
.contenido-noticia h3 + p,
.contenido-noticia h4 + p,
.contenido-noticia h5 + p,
.contenido-noticia h6 + p { margin-top: 0; }

.contenido-noticia .sumario {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--secondary, #007887);
    padding: 0.8em 1.2em;
    margin: 0.5em 0 0.5em 0;
    border-left: 4px solid var(--secondary, #007887);
    background: #f8fbfc;
    border-radius: 0 6px 6px 0;
    max-width: 100%;
    font-family: var(--font-serif);
}

.contenido-noticia .sumario + p { margin-top: 0.3em; }

.contenido-noticia blockquote {
    background: #f8f9fa;
    padding: 20px 28px;
    border-left: 4px solid var(--secondary, #333);
    margin: 1.5em 0 1.2em 0;
    font-style: italic !important;
    border-radius: 0 8px 8px 0;
    max-width: 100%;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #444;
}

.contenido-noticia blockquote p { margin-bottom: 0.2em; }
.contenido-noticia blockquote p:last-child { font-style: normal !important; font-weight: 700 !important; color: var(--color-text, #1a1a2e); }
.contenido-noticia blockquote + p { margin-top: 0.3em; }

.contenido-noticia img { max-width: 100%; height: auto; border-radius: 8px; margin: 1.5em 0; }
.contenido-noticia ul, .contenido-noticia ol { margin: 0.5em 0 1.4em 24px; max-width: 100%; }
.contenido-noticia li { margin-bottom: 0.3em; }
.contenido-noticia .text-muted { color: #6c757d; }

/* ==================================================
   ETIQUETAS
   ================================================== */
.etiquetas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    padding: 15px 0;
    margin-top: 20px;
    border-top: 1px solid #eee;
    font-family: var(--font-primary);
}

.etiquetas-label {
    font-weight: 500;
    color: #8a8a8a;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    padding-left: 11px;
}

.etiquetas-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5px;
    height: 12px;
    background: #007887;
    border-radius: 2px;
}

.etiquetas-lista {
    color: #555;
    font-size: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.etiqueta-link {
    display: inline-block;
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    padding: 0;
    transition: color 0.2s ease;
}

.etiqueta-link:hover {
    color: var(--secondary, #007887);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.etiqueta-sep { color: #ccc; font-size: 0.95rem; padding: 0 6px; user-select: none; }

/* ==================================================
   BANNER REDES SOCIALES
   ================================================== */
.banner-whatsapp-telegram {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 18px 24px;
    margin: 30px 0 20px 0;
    border: 1px solid #e9ecef;
    text-align: center;
}

.banner-whatsapp-telegram h3 {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.banner-whatsapp-telegram p {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.banner-whatsapp-telegram p strong { color: #555; font-weight: 600; }

.banner-whatsapp-telegram .botones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.banner-whatsapp-telegram .botones a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.banner-whatsapp-telegram .botones a:hover {
    transform: scale(1.03);
}

.banner-whatsapp-telegram .botones a i,
.banner-whatsapp-telegram .botones a svg {
    font-size: 1.1rem;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.banner-whatsapp-telegram .btn-whatsapp { background: #25D366; box-shadow: 0 2px 8px rgba(37, 211, 102, 0.20); }
.banner-whatsapp-telegram .btn-whatsapp:hover { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.30); background: #20bd5a; }

.banner-whatsapp-telegram .btn-telegram { background: #0088cc; box-shadow: 0 2px 8px rgba(0, 136, 204, 0.20); }
.banner-whatsapp-telegram .btn-telegram:hover { box-shadow: 0 4px 15px rgba(0, 136, 204, 0.30); background: #1d8dbf; }

.banner-whatsapp-telegram .btn-bluesky { background: #0085ff; box-shadow: 0 2px 8px rgba(0, 133, 255, 0.20); }
.banner-whatsapp-telegram .btn-bluesky:hover { box-shadow: 0 4px 15px rgba(0, 133, 255, 0.30); background: #0074e0; }

.banner-whatsapp-telegram .btn-facebook { background: #1877f2; box-shadow: 0 2px 8px rgba(24, 119, 242, 0.20); }
.banner-whatsapp-telegram .btn-facebook:hover { box-shadow: 0 4px 15px rgba(24, 119, 242, 0.30); background: #0f5bc4; }

.banner-whatsapp-telegram .btn-youtube { background: #FF0000; box-shadow: 0 2px 8px rgba(255, 0, 0, 0.20); }
.banner-whatsapp-telegram .btn-youtube:hover { box-shadow: 0 4px 15px rgba(255, 0, 0, 0.30); background: #d90000; }

.banner-whatsapp-telegram .btn-threads { background: #000; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.20); }
.banner-whatsapp-telegram .btn-threads:hover { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.30); background: #1a1a1a; }

/* ==================================================
   ÚLTIMAS NOTICIAS
   ================================================== */
.ultimas-noticias {
    margin: 30px 0 20px;
    padding: 18px 22px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid var(--secondary, #333);
}

.ultimas-noticias h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--color-text);
    font-family: var(--font-primary);
}

.ultimas-noticias ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 20px;
}

.ultimas-noticias li { padding: 5px 0; border-bottom: 1px dashed #e9ecef; }
.ultimas-noticias li:last-child { border-bottom: none; }
.ultimas-noticias a { color: var(--secondary, #333); text-decoration: none; font-family: var(--font-primary); font-size: 0.9rem; }
.ultimas-noticias a:hover { text-decoration: underline; color: #000; }

/* ==================================================
   LIGHTBOX
   ================================================== */
#lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(255,255,255,0.2);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-close:hover { background: rgba(255,255,255,0.4); }

.lightbox-contador {
    position: absolute;
    top: 25px;
    left: 30px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    background: rgba(0,0,0,0.5);
    padding: 5px 12px;
    border-radius: 4px;
    font-family: var(--font-primary);
}

.lightbox-imagen-container {
    position: relative;
    max-width: 90%;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-imagen-container img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 6px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.8);
    object-fit: contain;
}

.lightbox-pie {
    color: #ddd;
    font-size: 14px;
    margin-top: 12px;
    text-align: left !important;
    width: 100%;
    padding: 0 10px;
    font-style: normal !important;
    line-height: 1.4;
    font-family: var(--font-primary);
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-btn:hover { background: rgba(255,255,255,0.4); }
.lightbox-btn-left { left: 20px; }
.lightbox-btn-right { right: 20px; }

/* ==================================================
   NOTICIAS RELACIONADAS
   ================================================== */
.noticias-relacionadas { max-width: 100%; margin: 50px 0 0; padding: 0; }

.noticias-relacionadas h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 28px;
    color: var(--color-text, #1a1a2e);
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.noticias-relacionadas h3::before {
    content: '';
    display: block;
    width: 4px;
    height: 28px;
    background: var(--secondary, #333);
    border-radius: 2px;
}

.noticias-relacionadas h3 i { color: var(--secondary, #333); font-size: 1.1rem; }

.relacionadas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.relacionada-card { background: transparent; border-radius: 0; overflow: hidden; box-shadow: none; transition: none; }
.relacionada-card a { text-decoration: none; color: inherit; display: block; }

.relacionada-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: 6px;
    margin-bottom: 8px;
}

.relacionada-sin-imagen {
    height: 200px;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    margin-bottom: 8px;
}

.relacionada-sin-imagen i { font-size: 36px; color: #bbb; }

.relacionada-card h4 {
    font-size: 15px;
    font-weight: 600;
    padding: 0;
    margin: 0 0 4px 0;
    line-height: 1.3;
    color: var(--color-text, #1a1a2e);
    font-family: var(--font-primary);
}

.relacionada-card h4:hover { color: #333; }
.relacionada-card .portada-ante { font-family: var(--font-primary); font-weight: 600; color: #1a1a2e; }
.relacionada-card .portada-ante::after { content: ". "; }
.relacionada-card .fecha { display: none !important; }

/* ==================================================
   SOBRE EL AUTOR
   ================================================== */
.sobre-autor-box {
    margin: 30px 0 20px;
    padding: 18px 22px;
    background: #f8f9fa;
    border-left: 3px solid var(--secondary, #007887);
    border-radius: 8px;
}

.sobre-autor-inner { display: flex; gap: 16px; align-items: center; }
.sobre-autor-avatar { flex-shrink: 0; text-decoration: none; display: block; }

.sobre-autor-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    display: block;
}

.sobre-autor-inicial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
    color: #007887;
    font-size: 26px;
    font-weight: 700;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.sobre-autor-info { flex: 1; min-width: 0; }

.sobre-autor-label {
    display: block;
    margin: 0 0 3px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #6c757d;
    font-weight: 700;
}

.sobre-autor-nombre { margin: 0 0 6px; font-size: 17px; line-height: 1.3; font-family: var(--font-primary); font-weight: 700; }
.sobre-autor-nombre a { color: #1a1a1a; text-decoration: none; }
.sobre-autor-nombre a:hover { color: #007887; }
.sobre-autor-bio { margin: 0 0 10px; font-size: 13px; line-height: 1.55; color: #555; font-family: var(--font-primary); }

.sobre-autor-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #007887;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    font-family: var(--font-primary);
}

.sobre-autor-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ==================================================
   MEDIA QUERIES
   ================================================== */
@media (max-width: 1200px) {
    .noticia-titulo { font-size: 2.5rem; }
    .slider-container { min-height: 280px; max-height: 500px; }
    .slide-item { min-height: 280px; }
    .slide-item img { min-height: 280px; max-height: 500px; }
    .imagen-unica img { max-height: 500px; }
}

@media (max-width: 992px) {
    .noticia-titulo { font-size: 2.2rem; }
    .relacionadas-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .slider-container { min-height: 240px; max-height: 420px; }
    .slide-item { min-height: 240px; }
    .slide-item img { min-height: 240px; max-height: 420px; }
    .imagen-unica img { max-height: 420px; }

    .contenedor-imagen-banner { grid-template-columns: 1fr; gap: 20px; align-items: start; }
    .columna-derecha { order: 2; height: auto; align-self: auto; }
    .banner-lateral-320 { position: static; width: 100%; max-width: 320px; margin: 0 auto; }
    .banner-placeholder { width: 100%; max-width: 320px; }
}

@media (max-width: 768px) {
    .noticia-main { padding: 15px 20px 30px; }
    .noticia-titulo { font-size: 1.8rem; }
    .noticia-subtitulo { font-size: 1.1rem; }
    .ante-titulo { font-size: 11px; }

    .noticia-meta-nueva {
        font-size: 12.5px;
        gap: 4px 6px;
        margin: 12px 0 14px 0;
        padding-bottom: 10px;
        justify-content: center;
        flex-wrap: nowrap;
        white-space: nowrap;
    }
    .noticia-meta-nueva .autor-avatar-mini { width: 18px; height: 18px; }
    .noticia-meta-nueva .autor-link { gap: 5px; }
    .noticia-meta-nueva .meta-item { gap: 3px; }
    .noticia-meta-nueva .meta-item i { font-size: 10px; }
    .noticia-meta-nueva .fecha-larga { display: none; }
    .noticia-meta-nueva .fecha-corta { display: inline; }

    /* COMPARTIR BAR: en móvil el TTS baja a su línea */
    .compartir-bar { flex-wrap: wrap; justify-content: space-between; gap: 10px; }
    .compartir-bar .share-icons { order: 1; gap: 6px; }
    .compartir-bar .share-btn-clean { width: 38px; height: 38px; font-size: 15px; }
    .compartir-bar .google-follow-inline { order: 2; height: 38px; padding: 0 12px; font-size: 11.5px; gap: 5px; }
    .compartir-bar .google-follow-inline svg { width: 14px; height: 14px; }
    .compartir-bar .tts-row-center { order: 3; flex: 0 0 100%; justify-content: center; margin-top: 8px; }

    /* NARRACIÓN */
    .audio-player-discreto { padding: 4px 8px 4px 4px; font-size: 11.5px; gap: 6px; }
    .audio-btn-discreto { padding: 4px 10px; font-size: 11.5px; gap: 5px; }
    .audio-tiempo-discreto,
    .audio-separador-discreto,
    .audio-estado-discreto { font-size: 11px; }
    .audio-btn-mini-discreto { font-size: 11.5px; }

    .compartir-bottom .share-btn-clean { width: 38px; height: 38px; font-size: 15px; }

    .share-popover-overlay,
    .tts-info-overlay { padding: 16px; }
    .share-popover { max-height: calc(100vh - 32px); }
    .share-popover-header,
    .tts-info-header { padding: 14px 16px; }
    .share-popover-header h3,
    .tts-info-header h3 { font-size: 15px; }
    .share-popover-grid { padding: 6px 8px; }
    .share-popover-item { padding: 12px 10px; font-size: 14px; gap: 10px; }
    .share-popover-item .pop-icon { width: 36px; height: 36px; font-size: 15px; }
    .tts-info-body { padding: 16px; font-size: 13px; }
    .tts-info-footer { padding: 12px 16px 16px 16px; }
    .btn-entendido { padding: 9px 20px; font-size: 13px; }

    .contenido-noticia { font-size: 1.1rem; line-height: 1.5rem; }
    .contenido-noticia p { margin: 0 0 1.2em 0; }
    .contenido-noticia h2 { font-size: 1.4rem; margin: 1.5em 0 0.3em 0; }
    .contenido-noticia h3 { font-size: 1.2rem; margin: 1.2em 0 0.2em 0; }
    .contenido-noticia h4 { font-size: 1.05rem; margin: 1em 0 0.2em 0; }
    .contenido-noticia .sumario { font-size: 1.2rem; padding: 0.6em 1em; margin: 0.4em 0 0.4em 0; }
    .contenido-noticia blockquote { padding: 15px 20px; font-size: 0.95rem; margin: 1.2em 0 1em 0; }

    .imagen-principal { margin: 0 !important; border-radius: 0 !important; padding: 0; }
    .imagen-principal img,
    .imagen-principal .slide-item img,
    .imagen-principal .imagen-unica img { border-radius: 0 !important; }
    .video-container { border-radius: 0 !important; }
    .galeria-slider { border-radius: 0 !important; }
    .slider-container { min-height: 200px; max-height: 360px; }
    .slide-item { min-height: 200px; }
    .slide-item img { min-height: 200px; max-height: 360px; }
    .imagen-unica img { max-height: 360px; }
    .slide-item img.vertical, .imagen-unica img.vertical { max-width: 85%; }
    .slider-btn { width: 32px; height: 32px; font-size: 14px; }
    .slider-indicator { bottom: 35px; right: 10px; font-size: 11px; padding: 3px 8px; }
    .pie-foto { font-size: 12px; padding: 0 5px; }
    .imagen-fullwidth-wrap .pie-foto-full { font-size: 12px; padding: 6px 10px; }

    .lightbox-close { top: 15px; right: 20px; font-size: 28px; width: 38px; height: 38px; }
    .lightbox-contador { top: 18px; left: 20px; font-size: 13px; padding: 4px 10px; }
    .lightbox-btn { width: 38px; height: 38px; font-size: 16px; }

    .etiquetas { padding: 15px 0 8px 0; gap: 4px 10px; margin-top: 20px; }
    .etiquetas-label { font-size: 0.62rem; letter-spacing: 0.9px; padding-left: 9px; }
    .etiquetas-label::before { height: 10px; width: 2px; }
    .etiqueta-link { font-size: 12px; }
    .etiqueta-sep { font-size: 12px; padding: 0 4px; }

    .noticias-relacionadas { margin: 30px 0 0; padding: 0; }
    .noticias-relacionadas h3 { font-size: 1rem; margin-bottom: 18px; }
    .noticias-relacionadas h3::before { height: 22px; }
    .relacionadas-grid { grid-template-columns: 1fr; gap: 15px; }
    .relacionada-card img, .relacionada-sin-imagen { height: 200px; }
    .relacionada-card h4 { font-size: 14px; }

    .ultimas-noticias { padding: 15px 18px; margin: 20px 0 15px; }
    .ultimas-noticias h3 { font-size: 1rem; }

    .banner-whatsapp-telegram { padding: 16px 18px !important; margin: 20px 0 14px 0 !important; }
    .banner-whatsapp-telegram h3 { font-size: 0.9rem !important; }
    .banner-whatsapp-telegram p { font-size: 0.8rem !important; margin-bottom: 10px !important; line-height: 1.35 !important; }

    .banner-whatsapp-telegram .botones {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px !important;
        max-width: 360px;
        margin: 0 auto;
    }

    .banner-whatsapp-telegram .botones a {
        justify-content: center;
        padding: 7px 10px !important;
        font-size: 0.75rem !important;
        gap: 5px !important;
        width: 100%;
    }

    .banner-whatsapp-telegram .botones a i,
    .banner-whatsapp-telegram .botones a svg {
        font-size: 0.85rem !important;
    }

    .sobre-autor-box { padding: 16px 18px; margin: 25px 0 15px; }
    .sobre-autor-inner { gap: 14px; align-items: center; }
    .sobre-autor-avatar img, .sobre-autor-inicial { width: 56px; height: 56px; font-size: 22px; }
    .sobre-autor-nombre { font-size: 16px; }
    .sobre-autor-bio { font-size: 12.5px; }
}

@media (max-width: 480px) {
    .noticia-main { padding: 10px 16px 20px; }
    .noticia-titulo { font-size: 1.5rem; margin: 0 0 10px 0; }
    .noticia-subtitulo { font-size: 0.95rem; margin: 0 0 12px 0; }
    .ante-titulo { font-size: 10px; margin-bottom: 6px; letter-spacing: 1px; }

    .noticia-meta-nueva { font-size: 11.5px; gap: 3px 5px; }
    .noticia-meta-nueva .autor-avatar-mini { width: 16px; height: 16px; }

    .contenido-noticia { font-size: 0.95rem; line-height: 1.3rem; }
    .contenido-noticia p { margin: 0 0 1em 0; }
    .contenido-noticia h2 { font-size: 1.3rem; margin: 1.2em 0 0.2em 0; }
    .contenido-noticia h3 { font-size: 1.1rem; margin: 1em 0 0.2em 0; }
    .contenido-noticia h4 { font-size: 0.95rem; margin: 0.8em 0 0.2em 0; }
    .contenido-noticia .sumario { font-size: 1rem; padding: 0.5em 0.8em; margin: 0.3em 0 0.3em 0; border-left-width: 3px; }
    .contenido-noticia blockquote { padding: 12px 16px; font-size: 0.9rem; margin: 1em 0 0.8em 0; }

    .slider-container { min-height: 180px; max-height: 300px; }
    .slide-item { min-height: 180px; }
    .slide-item img { min-height: 180px; max-height: 300px; }
    .imagen-unica img { max-height: 300px; }
    .slide-item img.vertical, .imagen-unica img.vertical { max-width: 90%; }
    .slider-btn { width: 28px; height: 28px; font-size: 12px; }
    .slider-btn-left { left: 8px; }
    .slider-btn-right { right: 8px; }
    .slider-indicator { bottom: 10px; right: 10px; font-size: 10px; padding: 2px 6px; }
    .pie-foto { font-size: 11px; padding: 0 5px; }

    .lightbox-close { top: 12px; right: 15px; font-size: 24px; width: 32px; height: 32px; }
    .lightbox-contador { top: 14px; left: 15px; font-size: 11px; padding: 3px 8px; }
    .lightbox-btn { width: 32px; height: 32px; font-size: 14px; }
    .lightbox-btn-left { left: 10px; }
    .lightbox-btn-right { right: 10px; }

    .compartir-bar .share-btn-clean { width: 36px; height: 36px; font-size: 14px; }
    .compartir-bar .google-follow-inline { font-size: 10.5px; padding: 0 10px; height: 36px; }
    .compartir-bottom .share-btn-clean { width: 36px; height: 36px; font-size: 14px; }

    .relacionada-card img, .relacionada-sin-imagen { height: 180px; }
    .relacionada-card h4 { font-size: 13px; }

    .banner-whatsapp-telegram { padding: 14px 12px !important; margin: 16px 0 12px 0 !important; }
    .banner-whatsapp-telegram h3 { font-size: 0.85rem !important; }
    .banner-whatsapp-telegram p { font-size: 0.72rem !important; line-height: 1.35 !important; margin-bottom: 10px !important; }
    .banner-whatsapp-telegram .botones { gap: 6px !important; max-width: 100%; }

    .banner-whatsapp-telegram .botones a {
        padding: 6px 8px !important;
        font-size: 0.7rem !important;
        gap: 4px !important;
        border-radius: 40px;
    }

    .banner-whatsapp-telegram .botones a i,
    .banner-whatsapp-telegram .botones a svg {
        font-size: 0.78rem !important;
    }

    .banner-placeholder { max-width: 100%; min-height: 100px; }

    .share-popover-item { font-size: 13px; padding: 10px 8px; }
    .share-popover-item .pop-icon { width: 32px; height: 32px; font-size: 14px; }
}

@media (max-width: 375px) {
    .noticia-titulo { font-size: 1.3rem; }
    .noticia-subtitulo { font-size: 0.85rem; }
    .contenido-noticia { font-size: 0.9rem; line-height: 1.2rem; }
    .contenido-noticia p { margin: 0 0 0.8em 0; }
    .contenido-noticia h2 { font-size: 1.1rem; }
    .contenido-noticia h3 { font-size: 0.95rem; }
    .contenido-noticia .sumario { font-size: 0.9rem; padding: 0.4em 0.6em; }
    .slider-container { min-height: 150px; max-height: 250px; }
    .slide-item { min-height: 150px; }
    .slide-item img { min-height: 150px; max-height: 250px; }
    .imagen-unica img { max-height: 250px; }
    .relacionada-card img, .relacionada-sin-imagen { min-height: 160px; height: 160px; }
    .pie-foto { font-size: 10px; }
}

@media (max-width: 768px) {
    .imagen-unica-wrapper .imagen-unica img { max-height: 360px; }
    .imagen-unica-wrapper .pie-foto { font-size: 12px; padding: 0 5px; }
}
@media (max-width: 480px) {
    .imagen-unica-wrapper .imagen-unica img { max-height: 300px; }
    .imagen-unica-wrapper .pie-foto { font-size: 11px; padding: 0 5px; }
}
@media (max-width: 375px) {
    .imagen-unica-wrapper .imagen-unica img { max-height: 250px; }
    .imagen-unica-wrapper .pie-foto { font-size: 10px; }
}

/* ==================================================
   SOLUCIÓN DEFINITIVA PARA IMÁGENES VERTICALES EN PC
   ================================================== */

@media (min-width: 993px) {
    /* 1. Contenedor principal con fondo suave y centrado */
    .imagen-fullwidth-wrap .imagen-principal {
        background: #f0f2f5;
        border-radius: 8px;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 400px;
        max-height: 600px;
        overflow: hidden;
    }

    /* 2. Imágenes VERTICALES: completas, sin recortes */
    .imagen-principal .imagen-unica img.vertical,
    .imagen-principal .slide-item img.vertical {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 600px;
        object-fit: contain;
        object-position: center;
        display: block;
        margin: 0 auto;
    }

    /* 3. Imágenes HORIZONTALES: llenan el ancho */
    .imagen-principal .imagen-unica img:not(.vertical),
    .imagen-principal .slide-item img:not(.vertical) {
        width: 100%;
        height: auto;
        max-height: 600px;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    /* 4. Galería (slider) */
    .galeria-slider {
        border-radius: 8px;
        background: #f0f2f5;
    }
    .galeria-slider .slide-item {
        background: #f0f2f5;
    }
    .galeria-slider .slide-item img.vertical {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 600px;
        object-fit: contain;
        margin: 0 auto;
    }
    .galeria-slider .slide-item img:not(.vertical) {
        width: 100%;
        height: auto;
        max-height: 600px;
        object-fit: cover;
    }
}

/* ==================================================
   LAYOUT PC: BANNER STICKY FUNCIONAL
   ================================================== */

@media (min-width: 993px) {
    .contenedor-imagen-banner {
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: 30px;
        margin-bottom: 25px;
        width: 100%;
        align-items: start;
        /* IMPORTANTE: sin overflow para que sticky funcione */
        overflow: visible;
    }

    .columna-izquierda {
        display: flex;
        flex-direction: column;
        gap: 25px;
        min-width: 0;
    }

    .columna-izquierda .imagen-fullwidth-wrap {
        width: 100%;
        margin: 0;
    }

    /* La columna derecha debe tener altura completa para permitir el sticky */
    .columna-derecha {
        position: relative;
        align-self: stretch; /* Ocupa toda la altura de la fila */
        height: auto;
        min-height: 100%;
    }

    /* El banner sticky */
    .banner-lateral-320 {
        position: -webkit-sticky;
        position: sticky;
        top: 90px; /* Ajusta según la altura de tu header */
        width: 320px;
        max-width: 320px;
        z-index: 10;
        /* Sin overflow para que sticky funcione */
        overflow: visible;
    }

    /* Aseguramos que los ancestros no rompan el sticky */
    .noticia-main,
    .noticia-articulo,
    .contenedor-imagen-banner,
    .columna-derecha {
        overflow: visible !important;
    }
}

@media (max-width: 992px) {
    .contenedor-imagen-banner {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .columna-derecha {
        order: 2;
        height: auto;
        align-self: auto;
    }

    .banner-lateral-320 {
        position: static;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .columna-izquierda .imagen-fullwidth-wrap {
        width: 100%;
    }
}