/* ==================================================
   ARCHIVO: assets/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;
}

.compartir-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    padding: 0 0 10px 0;
    max-width: 100%;
    flex-wrap: wrap;
    font-family: var(--font-primary);
}

.compartir-izquierda {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.compartir-derecha {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.google-follow-top-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #5f6368;
    font-size: 12px;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 16px;
    background: #f1f3f4;
    transition: var(--transition, all 0.3s ease);
    font-family: var(--font-primary);
}

.google-follow-top-link:hover {
    background: #e8eaed;
    color: var(--color-text, #1a1a2e);
}

.google-follow-top-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.google-follow-top-link span {
    font-weight: 500;
}

.share-btn-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #999;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition, all 0.3s ease);
    cursor: pointer;
}

.share-btn-mini:hover {
    color: var(--secondary, #333);
    background: rgba(0, 120, 135, 0.06);
    transform: scale(1.1);
}

.share-btn-mini i {
    font-size: 14px;
}

.share-btn-mini svg,
.share-btn svg {
    width: 14px;
    height: 14px;
    display: block;
}

/* === AUDIO PLAYER === */
.audio-player-discreto {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 6px 14px 6px 10px;
    background: #f5f7fa;
    border-radius: 30px;
    border: 1px solid #e8eaed;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.audio-player-discreto:hover {
    border-color: var(--secondary, #333);
    background: #f0fbfc;
}

.audio-btn-discreto {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px 5px 10px;
    background: var(--secondary, #333);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    letter-spacing: 0.2px;
}

.audio-btn-discreto:hover {
    background: var(--secondary-dark);
    transform: scale(1.02);
}

.audio-btn-discreto:active {
    transform: scale(0.96);
}

.audio-btn-discreto i {
    font-size: 12px;
}

.audio-btn-discreto.playing {
    background: #e74c3c;
}

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

.audio-tiempo-discreto {
    font-size: 12px;
    color: #5f6368;
    font-weight: 500;
    min-width: 35px;
    font-family: var(--font-primary);
}

.audio-separador-discreto {
    color: #ddd;
    font-size: 12px;
}

.audio-estado-discreto {
    font-size: 12px;
    color: #5f6368;
    font-weight: 400;
    min-width: 50px;
    font-family: var(--font-primary);
}

.audio-estado-discreto.leyendo {
    color: var(--secondary, #333);
    font-weight: 500;
}

.audio-estado-discreto.pausado {
    color: #f39c12;
    font-weight: 500;
}

.audio-estado-discreto.error {
    color: #e74c3c;
    font-weight: 500;
}

.audio-btn-mini-discreto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    color: #5f6368;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.audio-btn-mini-discreto:hover {
    background: var(--secondary, #333);
    color: white;
    border-color: var(--secondary, #333);
    transform: scale(1.05);
}

.audio-btn-mini-discreto:active {
    transform: scale(0.9);
}

.tts-player-wrapper {
    width: auto;
    position: relative;
}

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

.tts-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: #2563eb;
    border-radius: 2px;
    transition: width 0.3s linear;
}

.tts-info-tooltip {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 12px 14px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    width: 280px;
    font-size: 12px;
    color: #4b5563;
    line-height: 1.4;
    z-index: 100;
}

.tts-info-tooltip.active {
    display: block;
    animation: ttsFadeDown 0.2s ease;
}

@keyframes ttsFadeDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.tts-info-tooltip strong {
    color: #111827;
    display: block;
    margin-bottom: 4px;
}

/* === NOTICIA META === */
.noticia-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    padding: 15px 0 20px 0;
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-muted, #888);
    font-family: var(--font-primary);
    max-width: 100%;
}

.noticia-meta > div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-autor {
    font-weight: 400;
    color: var(--text-muted, #888);
}

.meta-autor .autor-nombre {
    color: var(--text-muted, #888);
    font-weight: 500;
}

.meta-autor a.autor-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.meta-autor .autor-avatar-mini {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.meta-autor .autor-avatar-inicial {
    background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
    color: #007887;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.meta-autor a.autor-link .autor-nombre {
    transition: color 0.2s ease;
}

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

.meta-ciudad {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    color: var(--text-muted, #888);
    font-weight: 400;
}

.meta-ciudad span { font-weight: 400; }
.meta-fecha { color: var(--text-muted, #888); }
.meta-fuente { color: var(--text-muted, #888); }

/* === IMÁGENES === */
.imagen-principal {
    margin: 0 0 25px 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;
}

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

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

.columna-derecha {
    position: relative;
    align-self: stretch;
    height: 100%;
}

.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 .icono-campana { font-size: 1.6rem; margin-bottom: 6px; opacity: 0.7; }
.banner-whatsapp-telegram .icono-campana span { display: inline-block; animation: pulse-icon 2s ease-in-out infinite; }

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.banner-whatsapp-telegram h3 { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 600; color: #333; margin: 0 0 4px 0; line-height: 1.3; }
.banner-whatsapp-telegram p { font-family: 'Inter', sans-serif; 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 .btn-whatsapp {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 20px; background: #25D366; color: #ffffff;
    text-decoration: none; border-radius: 50px;
    font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.85rem;
    transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(37, 211, 102, 0.20);
}

.banner-whatsapp-telegram .btn-whatsapp:hover { transform: scale(1.03); box-shadow: 0 4px 15px rgba(37, 211, 102, 0.30); }
.banner-whatsapp-telegram .btn-whatsapp i { font-size: 1.1rem; }

.banner-whatsapp-telegram .btn-telegram {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 20px; background: #0088cc; color: #ffffff;
    text-decoration: none; border-radius: 50px;
    font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.85rem;
    transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(0, 136, 204, 0.20);
}

.banner-whatsapp-telegram .btn-telegram:hover { transform: scale(1.03); box-shadow: 0 4px 15px rgba(0, 136, 204, 0.30); }
.banner-whatsapp-telegram .btn-telegram i { font-size: 1.1rem; }

.banner-whatsapp-telegram .btn-bluesky {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 20px; background: #0085ff; color: #ffffff;
    text-decoration: none; border-radius: 50px;
    font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.85rem;
    transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(0, 133, 255, 0.20);
}

.banner-whatsapp-telegram .btn-bluesky:hover { transform: scale(1.03); box-shadow: 0 4px 15px rgba(0, 133, 255, 0.30); background: #0074e0; }
.banner-whatsapp-telegram .btn-bluesky svg { width: 16px; height: 16px; flex-shrink: 0; }

/* === Ú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; }

/* === COMPARTIR BOTTOM === */
.compartir-bottom {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 25px 0 10px 0;
    border-top: 1px solid #eee;
    margin-top: 30px;
    max-width: 100%;
    font-family: var(--font-primary);
}

.compartir-botones { display: flex; gap: 8px; flex-wrap: wrap; }

.share-btn {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    border: none; background: transparent; color: #999;
    font-size: 14px; text-decoration: none;
    transition: var(--transition, all 0.3s ease); cursor: pointer;
}

.share-btn:hover { color: var(--secondary, #333); background: rgba(0, 120, 135, 0.06); transform: scale(1.1); }
.share-btn:active { transform: scale(0.95); }

/* === 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: 'Inter', sans-serif; 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: 'Inter', sans-serif; }
.sobre-autor-link {
    display: inline-flex; align-items: center; gap: 5px;
    color: #007887; font-weight: 600; font-size: 13px;
    text-decoration: none; font-family: 'Inter', sans-serif;
}
.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; }

    .compartir-top { flex-direction: column; align-items: stretch; }
    .compartir-derecha { margin-left: 0; width: 100%; }
    .tts-player-wrapper { width: 100%; }
    .audio-player-discreto { width: 100%; padding: 5px 10px 5px 8px; gap: 6px; border-radius: 25px; }
    .audio-btn-discreto { font-size: 12px; padding: 4px 10px 4px 8px; }
    .audio-btn-discreto i { font-size: 11px; }
    .audio-tiempo-discreto { font-size: 11px; min-width: 30px; }
    .audio-estado-discreto { font-size: 11px; min-width: 40px; }
    .audio-separador-discreto { display: none; }
    .audio-btn-mini-discreto { width: 24px; height: 24px; font-size: 10px; }

    .noticia-meta { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 13px; padding: 15px 0 20px 0; margin-bottom: 20px; }
    .meta-autor .autor-avatar-mini { width: 24px; height: 24px; border-width: 1.5px; }
    .meta-autor .autor-avatar-inicial { font-size: 11px; }
    .share-btn-mini { width: 28px; height: 28px; font-size: 12px; }
    .share-btn-mini svg { width: 12px; height: 12px; }
    .google-follow-top-link { font-size: 10px; padding: 3px 8px; }
    .google-follow-top-link svg { width: 14px; height: 14px; }

    .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; }
    .imagen-unica img { border-radius: 0 !important; max-height: 320px; }
    .pie-foto { font-size: 12px; padding: 0 5px; }

    .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; }
    .compartir-bottom { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 0 10px 0; }
    .share-btn { width: 36px; height: 36px; font-size: 15px; }
    .share-btn svg { width: 15px; height: 15px; }
    .compartir-botones { gap: 8px; }

    .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; }
    .banner-whatsapp-telegram .btn-whatsapp, .banner-whatsapp-telegram .btn-telegram, .banner-whatsapp-telegram .btn-bluesky { padding: 6px 16px !important; font-size: 0.75rem !important; gap: 5px !important; }
    .banner-whatsapp-telegram .btn-whatsapp i, .banner-whatsapp-telegram .btn-telegram i { font-size: 0.9rem !important; }
    .banner-whatsapp-telegram .btn-bluesky svg { width: 14px !important; height: 14px !important; }
    .banner-whatsapp-telegram .botones { flex-direction: row; gap: 8px !important; }
    .banner-whatsapp-telegram .icono-campana { font-size: 1.3rem !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 { font-size: 11px; padding: 8px 0 12px 0; gap: 4px; }
    .meta-autor .autor-avatar-mini { width: 22px; height: 22px; }
    .meta-autor .autor-avatar-inicial { font-size: 10px; }
    .share-btn-mini { width: 24px; height: 24px; font-size: 10px; }
    .share-btn-mini svg { width: 11px; height: 11px; }
    .google-follow-top-link { font-size: 9px; padding: 2px 6px; gap: 4px; }
    .google-follow-top-link svg { width: 12px; height: 12px; }

    .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; }
    .imagen-unica img { border-radius: 0 !important; max-height: 240px; }
    .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; }

    .share-btn { width: 32px; height: 32px; font-size: 14px; }
    .share-btn svg { width: 13px; height: 13px; }
    .compartir-botones { gap: 6px; }

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

    .banner-whatsapp-telegram { padding: 14px 14px !important; margin: 16px 0 12px 0 !important; }
    .banner-whatsapp-telegram h3 { font-size: 0.85rem !important; }
    .banner-whatsapp-telegram p { font-size: 0.75rem !important; margin-bottom: 8px !important; }
    .banner-whatsapp-telegram .btn-whatsapp, .banner-whatsapp-telegram .btn-telegram, .banner-whatsapp-telegram .btn-bluesky { padding: 5px 12px !important; font-size: 0.7rem !important; gap: 4px !important; }
    .banner-whatsapp-telegram .btn-whatsapp i, .banner-whatsapp-telegram .btn-telegram i { font-size: 0.8rem !important; }
    .banner-whatsapp-telegram .btn-bluesky svg { width: 12px !important; height: 12px !important; }
    .banner-whatsapp-telegram .botones { gap: 6px !important; }
    .banner-whatsapp-telegram .icono-campana { font-size: 1.1rem !important; }

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

@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; }
}

/* ==========================================
   YouTube Shorts — Vertical 9:16 optimizado
   ========================================== */

/* El figure que envuelve el vídeo */
figure.imagen-principal:has(.video-container.is-short) {
    display: flex;
    justify-content: center;
    background: #f5f7fa;
    padding: 0;
    margin: 0 0 25px 0;
}

/* Contenedor del Short */
.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;
    /* Sobrescribimos cualquier padding heredado */
    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;
}

/* Móvil: ocupa todo el ancho */
@media (max-width: 768px) {
    .video-container.is-short {
        max-width: 100%;
        aspect-ratio: 9 / 16;
    }
}