/*******************************************************************************
 * *
 * NOTICIAS EN LA PARTE PÚBLICA                                              *
 * *
 *******************************************************************************/

/*LISTADO DE NOTICIAS*/

/* --- HEADER "GRANOTA" --- */
.news-hero {
    background: #e60000;
    background: linear-gradient(135deg, #e60000 0%, #b30000 100%);
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.news-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 10px 0;
    letter-spacing: -1px;
}

.news-hero-badge {
    background: #5e0202;
    padding: 5px 15px;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 50px;
}

.news-hero-divider {
    width: 60px;
    height: 4px;
    background: #5e0202;
    margin: 20px auto;
}

/* --- CONTENEDOR DE NOTICIAS --- */
.noticias-container-rectangular {
    max-width: 1100px;
    margin: -50px auto 80px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.public-alert-ok {
    margin-bottom: 24px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #e7f8ec;
    border: 1px solid #b6e2c5;
    color: #17603a;
    text-align: center;
    font-weight: 700;
}

.noticias-filter-bar {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    font-weight: 700;
    color: #444;
    border-left: 5px solid #e60000;
}

.noticias-container-rectangular.estado-vacio-como-partidos-noticias {
    border-radius: 14px;
    padding-top: 24px;
    padding-bottom: 24px;
}

/* --- CAJA RECTANGULAR --- */
.noticia-row {
    display: flex;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.noticia-row:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(230, 0, 0, 0.1);
}

.noticia-img-box {
    width: 380px;
    min-width: 380px;
    height: 260px;
    position: relative;
}

.noticia-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.noticia-category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e60000;
    color: white;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 800;
    border-radius: 4px;
}

/* --- TEXTO ORDENADO --- */
.noticia-info-box {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.noticia-meta-top {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #888;
}

.noticia-meta-top i {
    color: #e60000;
    margin-right: 5px;
}

.noticia-title-bold {
    font-size: 1.6rem;
    font-weight: 800;
    /* Negrita potente */
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.2;
    text-transform: uppercase;
}

.noticia-subtitle-line {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-leer-noticia {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 46px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
    padding: 0 18px;
    border-radius: 14px;
    background: #b91c1c;
    border: none;
}

.btn-leer-noticia:hover {
    color: #fff;
    background: #dc2626;
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
}

.noticia-action {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.public-card-action {
    margin: 0;
}

.public-hide-button {
    border: 1px solid #d97706;
    background: #fff;
    color: #b45309;
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.public-hide-button:hover {
    background: #d97706;
    color: #fff;
    transform: translateY(-1px);
}


/* Para ver la noticia públicamente */

/* Contenedor Principal */
.articulo-noticia {
    max-width: 980px;
    margin: 60px auto 120px;
    padding: 34px 34px 36px;
    font-family: 'Inter', -apple-system, sans-serif;
    color: #1f2937;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

/* Header */
.articulo-header {
    text-align: center;
    margin-bottom: 50px;
}

.articulo-meta {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    font-weight: 700;
}

.categoria-badge {
    background: #e60000;
    color: white;
    padding: 4px 14px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.fecha-top {
    color: #718096;
}

.titulo-noticia {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    color: #1a202c;
    margin-bottom: 25px;
    letter-spacing: -1.5px;
}

.articulo-subtitulo {
    font-size: 1.35rem;
    line-height: 1.6;
    color: #4a5568;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Caja de Autor */
.autor-box {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
    padding: 15px 30px;
}

.autor-avatar {
    width: 45px;
    height: 45px;
    background: #2d3748;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

.autor-detalles {
    text-align: left;
}

.nombre-autor {
    display: block;
    font-weight: 700;
    color: #1a202c;
}

.rol-autor {
    display: block;
    font-size: 0.75rem;
    color: #a0aec0;
    text-transform: uppercase;
}

/* Imagen Principal */
.articulo-imagen-wrap {
    margin: 0 0 60px;
    /* Se expande más allá del texto para impacto visual */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
}

.articulo-imagen-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* Cuerpo del Texto */
.articulo-cuerpo {
    font-size: 1.25rem;
    line-height: 1.9;
    color: #2d3748;
}

.texto-contenido::first-letter {
    float: left;
    font-size: 4.8rem;
    font-weight: 900;
    line-height: 0.8;
    margin: 10px 15px 0 0;
    color: #e60000;
}

/* Footer y Compartir */
.articulo-footer {
    margin-top: 80px;
    border-top: 2px solid #f7fafc;
    padding-top: 50px;
}

.navegacion-final {
    display: flex;
    justify-content: center;
}

.caja-compartir {
    background: linear-gradient(180deg, #fff7f5 0%, #fff1f2 100%);
    border: 1px solid #f3d8d3;
    box-shadow: 0 18px 36px rgba(127, 29, 29, 0.08);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.caja-compartir:hover {
    transform: translateY(-8px);
    border-color: rgba(220, 38, 38, 0.18);
    box-shadow: 0 24px 44px rgba(127, 29, 29, 0.14);
}

.caja-compartir h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: #111827;
}

.caja-compartir p {
    color: #6b7280;
    margin-bottom: 25px;
}

.social-flex {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    min-width: 170px;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.2;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s, box-shadow 0.2s;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.18);
}

.fb {
    background: #1877f2;
}

.tw {
    background: #1da1f2;
}

.wa {
    background: #25d366;
}

.btn-regresar-lista {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    transition: 0.3s;
    padding: 14px 22px;
    border-radius: 999px;
    border: 1px solid rgba(185, 28, 28, 0.18);
    background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
    box-shadow: 0 16px 34px rgba(220, 38, 38, 0.22);
}

.btn-regresar-lista:hover {
    color: #fff;
    border-color: rgba(239, 68, 68, 0.28);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.28);
}

.pie-pagina {
    margin-top: 0;
}

/* =========================
   Modo oscuro SOLO Noticias
   ========================= */
html[data-theme="dark"] .public-news-hero {
    background: radial-gradient(circle at 22% 12%, #7f1d1d 0%, #1f2937 45%, #020617 100%);
}

html[data-theme="dark"] .public-news-hero-badge {
    background: #111827;
    border: 1px solid #374151;
    color: #fecaca;
}

html[data-theme="dark"] .public-news-hero h1 {
    color: #f8fafc;
}

html[data-theme="dark"] .public-news-hero p {
    color: #e2e8f0;
}

html[data-theme="dark"] .public-news-hero-divider {
    background: #f87171;
}

html[data-theme="dark"] .noticias-container-rectangular {
    background: transparent;
    border-radius: 0;
    padding-top: 0;
    padding-bottom: 0;
}

html[data-theme="dark"] .public-alert-ok {
    background: #052e1a;
    border-color: #166534;
    color: #bbf7d0;
}

html[data-theme="dark"] .noticias-filter-bar {
    background: #0f172a;
    color: #e2e8f0;
    border-left-color: #ef4444;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.45);
}

html[data-theme="dark"] .noticia-row {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.55);
}

html[data-theme="dark"] .noticia-row:hover {
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.72);
}

html[data-theme="dark"] .noticia-category-tag {
    background: #dc2626;
}

html[data-theme="dark"] .noticia-meta-top {
    color: #cbd5e1;
}

html[data-theme="dark"] .noticia-meta-top i {
    color: #f87171;
}

html[data-theme="dark"] .noticia-title-bold {
    color: #f8fafc;
}

html[data-theme="dark"] .noticia-subtitle-line {
    color: #cbd5e1;
}

html[data-theme="dark"] .btn-leer-noticia {
    background: #b91c1c;
    color: #fff;
}

html[data-theme="dark"] .public-hide-button {
    background: #111827;
    border-color: #f59e0b;
    color: #fbbf24;
}

html[data-theme="dark"] .public-hide-button:hover {
    background: #f59e0b;
    color: #111827;
}

html[data-theme="dark"] .noticias-container-rectangular .pagination .page-link {
    background: #1d4ed8;
    border-color: #1e40af;
    color: #f8fafc;
}

html[data-theme="dark"] .noticias-container-rectangular .pagination .page-link:hover {
    background: #2563eb;
}

html[data-theme="dark"] .noticias-container-rectangular .pagination .disabled .page-link,
html[data-theme="dark"] .noticias-container-rectangular .pagination .page-item.disabled .page-link {
    background: #334155;
    color: #94a3b8;
}

html[data-theme="dark"] .articulo-noticia {
    color: #e5e7eb;
    max-width: 980px;
    background: linear-gradient(180deg, #1f2937 0%, #273449 100%);
    border: 1px solid #334155;
    border-radius: 18px;
    padding: 34px 34px 36px;
}

html[data-theme="dark"] .fecha-top {
    color: #cbd5e1;
}

html[data-theme="dark"] .titulo-noticia {
    color: #f8fafc;
}

html[data-theme="dark"] .articulo-subtitulo {
    color: #cbd5e1;
}

html[data-theme="dark"] .autor-box {
    border-top-color: #334155;
    border-bottom-color: #334155;
}

html[data-theme="dark"] .autor-avatar {
    background: #111827;
}

html[data-theme="dark"] .nombre-autor {
    color: #f8fafc;
}

html[data-theme="dark"] .rol-autor {
    color: #94a3b8;
}

html[data-theme="dark"] .articulo-imagen-wrap {
    margin: 0 0 50px;
    box-shadow: 0 26px 52px -12px rgba(2, 6, 23, 0.7);
}

html[data-theme="dark"] .articulo-cuerpo {
    color: #d1d5db;
}

html[data-theme="dark"] .texto-contenido::first-letter {
    color: #f87171;
}

html[data-theme="dark"] .articulo-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 48%, #020617 100%);
    color: #f8fafc;
    box-shadow: 0 24px 50px rgba(2, 6, 23, 0.55);
}

html[data-theme="dark"] .articulo-header .fecha-top {
    color: #cbd5e1;
}

html[data-theme="dark"] .articulo-header .titulo-noticia {
    color: #f8fafc;
}

html[data-theme="dark"] .articulo-header .articulo-subtitulo {
    color: #cbd5e1;
}

html[data-theme="dark"] .articulo-header .autor-box {
    border-top-color: #334155;
    border-bottom-color: #334155;
}

html[data-theme="dark"] .articulo-header .autor-avatar {
    background: #111827;
    border-color: #334155;
}

html[data-theme="dark"] .articulo-header .nombre-autor {
    color: #f8fafc;
}

html[data-theme="dark"] .articulo-header .rol-autor {
    color: #94a3b8;
}

html[data-theme="dark"] .articulo-footer {
    border-top-color: #334155;
}

html[data-theme="dark"] .caja-compartir {
    background: #1f2937;
    border: 1px solid #1f2937;
}

html[data-theme="dark"] .caja-compartir h3 {
    color: #ffffff;
}

html[data-theme="dark"] .caja-compartir p {
    color: #cbd5e1;
}

html[data-theme="dark"] .btn-regresar-lista {
    background: #1f2937;
    border-color: #334155;
    color: #f8fafc;
    box-shadow: 0 12px 26px rgba(2, 6, 23, 0.5);
}

html[data-theme="dark"] .btn-regresar-lista:hover {
    color: #fca5a5;
    border-color: #ef4444;
}

@media (max-width: 992px) {
    .news-hero {
        height: 320px;
        padding: 0 24px;
    }

    .news-hero-content h1 {
        font-size: 2.8rem;
    }

    .noticia-row {
        flex-direction: column;
    }

    .noticia-img-box {
        width: 100%;
        min-width: 0;
        height: 250px;
    }

    .noticia-info-box {
        padding: 24px;
    }

    .articulo-noticia {
        margin: 40px auto 90px;
    }

    .titulo-noticia {
        font-size: 2.6rem;
    }

    .articulo-subtitulo {
        font-size: 1.2rem;
    }

    .articulo-imagen-wrap {
        margin: 0 0 40px;
    }
}

@media (max-width: 768px) {
    .news-hero {
        height: auto;
        padding: 48px 18px;
    }

    .news-hero-content h1 {
        font-size: 2.1rem;
        line-height: 1.1;
    }

    .news-hero-content p {
        font-size: 15px;
        line-height: 1.6;
    }

    .noticias-container-rectangular {
        margin-top: -30px;
        margin-bottom: 50px;
        padding: 0 18px;
    }

    .noticias-filter-bar {
        padding: 16px;
        font-size: 14px;
    }

    .noticia-img-box {
        height: 220px;
    }

    .noticia-info-box {
        padding: 18px;
    }

    .noticia-meta-top {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        margin-bottom: 10px;
    }

    .noticia-title-bold {
        font-size: 1.25rem;
    }

    .noticia-subtitle-line {
        font-size: 0.98rem;
        margin-bottom: 14px;
    }

    .articulo-noticia {
        margin: 28px auto 70px;
        padding: 0 18px;
    }

    .articulo-header {
        margin-bottom: 32px;
    }

    .articulo-meta {
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 18px;
    }

    .titulo-noticia {
        font-size: 2rem;
        letter-spacing: -1px;
        margin-bottom: 18px;
    }

    .articulo-subtitulo {
        font-size: 1.05rem;
        margin-bottom: 28px;
    }

    .autor-box {
        width: 100%;
        justify-content: center;
        padding: 14px 18px;
    }

    .articulo-cuerpo {
        font-size: 1.05rem;
        line-height: 1.8;
    }

    .texto-contenido::first-letter {
        font-size: 3.6rem;
        margin: 8px 12px 0 0;
    }

    .articulo-footer {
        margin-top: 50px;
        padding-top: 32px;
    }

    .caja-compartir {
        padding: 24px 18px;
        border-radius: 16px;
    }
}

@media (max-width: 576px) {
    .news-hero {
        padding: 40px 16px;
    }

    .news-hero-content h1 {
        font-size: 1.8rem;
    }

    .news-hero-badge {
        font-size: 0.72rem;
        padding: 5px 12px;
    }

    .noticias-container-rectangular {
        padding: 0 16px;
    }

    .noticia-row {
        border-radius: 12px;
    }

    .noticia-img-box {
        height: 190px;
    }

    .noticia-info-box {
        padding: 16px;
    }

    .noticia-title-bold {
        font-size: 1.1rem;
    }

    .btn-leer-noticia {
        font-size: 0.82rem;
    }

    .articulo-noticia {
        padding: 0 16px;
    }

    .titulo-noticia {
        font-size: 1.65rem;
    }

    .articulo-subtitulo {
        font-size: 0.98rem;
    }

    .autor-box {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .autor-detalles {
        text-align: center;
    }

    .articulo-cuerpo {
        font-size: 1rem;
    }

    .texto-contenido::first-letter {
        font-size: 3rem;
        margin-right: 10px;
    }

    .social-flex {
        flex-direction: column;
    }

    .social-link,
    .btn-regresar-lista {
        width: 100%;
        text-align: center;
    }
}

/* --- DETALLE DE NOTICIA · CABECERA ROJO/NEGRO --- */
.articulo-header {
    margin: -18px -18px 50px;
    padding: 42px 34px;
    border-radius: 28px;
    background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 44%, #450a0a 100%);
    color: #fff;
}

.articulo-header .fecha-top {
    color: rgba(255, 255, 255, 0.76);
}

.articulo-header .titulo-noticia {
    color: #fff;
}

.articulo-header .articulo-subtitulo {
    color: rgba(255, 255, 255, 0.92);
}

.articulo-header .autor-box {
    border-top-color: rgba(255, 255, 255, 0.14);
    border-bottom-color: rgba(255, 255, 255, 0.14);
}

.articulo-header .autor-avatar {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.articulo-header .nombre-autor {
    color: #fff;
}

.articulo-header .rol-autor {
    color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 768px) {
    .articulo-header {
        margin: -12px -12px 42px;
        padding: 34px 22px;
    }
}