/* =====================================================================
   JUSE CONSULTORÍA INTEGRAL
   Hoja de estilos de "Noticias y Comunicados" (página pública).
   Autocontenida. Clases prefijadas con .jn- para no chocar con style.css.
   Colores corporativos: #001f3f · #003366 · #0056b3 · #0099cc
   ===================================================================== */

:root {
    --jn-azul-oscuro: #001f3f;
    --jn-azul: #003366;
    --jn-boton: #0056b3;
    --jn-celeste: #0099cc;
    --jn-cyan: #00d2ff;
    --jn-gris-fondo: #f4f7fb;
    --jn-gris-borde: #e2e8f0;
    --jn-texto: #1e293b;
    --jn-tenue: #94a3b8;
}

/* =====================================================================
   HERO DE LA SECCIÓN
   ===================================================================== */
.jn-hero {
    background: linear-gradient(135deg, #001f3f 0%, #004e92 100%);
    color: #fff;
    text-align: center;
    padding: 46px 20px;
}

.jn-hero h1 {
    margin: 0 0 8px;
    font-size: 34px;
    letter-spacing: 1px;
    line-height: 1.2;
    color: #fff;
}

.jn-hero p {
    margin: 0;
    color: #cfe3f5;
    font-size: 15px;
}

/* =====================================================================
   SUBMENÚ DE PESTAÑAS
   ===================================================================== */
.jn-subnav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 18px;
    background: linear-gradient(180deg, #636c79 0%, #4c5562 100%);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 12px 28px rgba(0, 31, 63, .16);
}

.jn-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 22px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, .88);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .5px;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    border-radius: 0;
    transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}

.jn-tab:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.jn-tab.activo,
.jn-tab.activo:hover {
    background: linear-gradient(180deg, #1aa2d8 0%, #0b86bf 100%);
    color: #fff;
    border-color: rgba(255, 255, 255, .08);
    box-shadow: 0 6px 18px rgba(0, 86, 179, .28);
}

@media (max-width: 900px) {
    .jn-subnav {
        padding: 12px;
        gap: 6px;
    }

    .jn-tab {
        flex: 1 1 auto;
        min-width: 160px;
        font-size: 12px;
        padding: 0 16px;
    }
}

/* =====================================================================
   TARJETA DE TIPO DE CAMBIO
   ===================================================================== */
.jn-tc {
    max-width: 1180px;
    margin: 26px auto 0;
    padding: 0 20px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.jn-card-tc {
    flex: 1;
    min-width: 260px;
    background: #fff;
    border-radius: 14px;
    border-left: 6px solid var(--jn-celeste);
    box-shadow: 0 6px 20px rgba(0, 31, 63, .08);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.jn-tc-titulo {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .6px;
    color: #64748b;
    text-transform: uppercase;
}

.jn-tc-valores {
    display: flex;
    gap: 22px;
    text-align: center;
}

.jn-tc-valores b {
    display: block;
    font-size: 22px;
    color: var(--jn-azul);
}

.jn-tc-valores small {
    color: var(--jn-tenue);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.jn-tc-fuente {
    font-size: 11px;
    color: var(--jn-tenue);
    width: 100%;
    margin: 0;
}

/* =====================================================================
   REJILLA DE TARJETAS DE PUBLICACIONES
   ===================================================================== */
.jn-grid {
    max-width: 1180px;
    margin: 26px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 26px;
}

.jn-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 31, 63, .08);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform .25s, box-shadow .25s;
}

.jn-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(0, 31, 63, .16);
}

.jn-card-media {
    height: 170px;
    flex-shrink: 0;
    position: relative;
    background: linear-gradient(135deg, #0f2c52, #2b6cb0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ec5f0;
    font-size: 34px;
    overflow: hidden;
}

.jn-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.jn-badge-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    max-width: 65%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: var(--jn-celeste);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .6px;
    padding: 5px 12px;
    border-radius: 999px;
}

.jn-badge-demo {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0, 0, 0, .55);
    color: #ffd97d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .6px;
    padding: 5px 10px;
    border-radius: 6px;
}

.jn-card-body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.jn-fecha {
    font-size: 12px;
    color: var(--jn-tenue);
    font-weight: 600;
}

.jn-titulo {
    font-size: 16px;
    font-weight: 800;
    color: var(--jn-azul-oscuro);
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jn-desc {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jn-card-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 2px;
}

.jn-link,
.jn-btn {
    display: inline-block;
    align-self: flex-start;
    background: var(--jn-boton);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.jn-link:hover,
.jn-btn:hover {
    background: #004a99;
    transform: translateY(-1px);
}

.jn-fuente-link {
    font-size: 12px;
    color: var(--jn-boton);
    font-weight: 700;
    text-decoration: none;
}

.jn-fuente-link:hover {
    text-decoration: underline;
}

/* =====================================================================
   PAGINACIÓN
   ===================================================================== */
.jn-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 20px 46px;
}

.jn-page {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--jn-gris-borde);
    color: var(--jn-azul);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.jn-page:hover {
    border-color: var(--jn-celeste);
    color: var(--jn-boton);
}

.jn-page.activo,
.jn-page.activo:hover {
    background: linear-gradient(135deg, #001f3f, #004e92);
    color: #fff;
    border-color: transparent;
}

.jn-page.disabled {
    opacity: .45;
    pointer-events: none;
}

.jn-page-puntos {
    color: var(--jn-tenue);
    font-weight: 700;
    padding: 0 4px;
}

/* =====================================================================
   ESTADO VACÍO
   ===================================================================== */
.jn-empty {
    max-width: 1180px;
    margin: 36px auto 46px;
    padding: 54px 24px;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 31, 63, .08);
}

.jn-empty i {
    font-size: 46px;
    color: var(--jn-celeste);
    display: block;
    margin-bottom: 14px;
}

.jn-empty h3 {
    color: var(--jn-azul-oscuro);
    margin: 0 0 8px;
    font-size: 20px;
}

.jn-empty p {
    color: #64748b;
    margin: 0;
    font-size: 14px;
}

/* =====================================================================
   CALENDARIO
   ===================================================================== */
.jn-panel {
    max-width: 1180px;
    margin: 26px auto 46px;
    padding: 0 20px;
}

.jn-cal {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 31, 63, .08);
    overflow: hidden;
}

.jn-cal-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 20px;
    border-bottom: 1px solid var(--jn-gris-borde);
}

.jn-cal-item:last-child {
    border-bottom: none;
}

.jn-cal-fecha {
    flex-shrink: 0;
    width: 96px;
    text-align: center;
    background: var(--jn-gris-fondo);
    border-radius: 12px;
    padding: 8px 6px;
    color: var(--jn-azul);
    font-weight: 800;
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: .5px;
}

.jn-cal-fecha b {
    display: block;
    font-size: 22px;
    color: var(--jn-azul-oscuro);
}

.jn-cal-body {
    flex: 1;
}

.jn-cal-titulo {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 800;
    color: var(--jn-azul-oscuro);
    line-height: 1.4;
}

.jn-cal-desc {
    margin: 0;
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
}

.jn-chip {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .4px;
    padding: 3px 9px;
    margin-left: 6px;
    border-radius: 999px;
    background: #e8f3fb;
    color: var(--jn-azul);
    text-transform: uppercase;
    vertical-align: middle;
}

/* =====================================================================
   AVISOS
   ===================================================================== */
.jn-aviso {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff8e1;
    border-left: 5px solid #f0a500;
    color: #7a5400;
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 22px;
}

.jn-aviso i {
    color: #f0a500;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* =====================================================================
   CONSULTAS
   ===================================================================== */
.jn-consulta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-bottom: 22px;
}

.jn-consulta-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 31, 63, .08);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.jn-consulta-titulo {
    margin: 0;
    font-size: 16px;
    color: var(--jn-azul-oscuro);
}

.jn-consulta-titulo i {
    color: var(--jn-celeste);
    margin-right: 6px;
}

.jn-consulta-texto {
    margin: 0;
    font-size: 13.5px;
    color: #475569;
    line-height: 1.6;
    flex: 1;
}

.jn-consulta-vacio {
    margin: 0;
    font-size: 13.5px;
    color: var(--jn-tenue);
}

.jn-btn-verde {
    background: var(--jn-boton);
    align-self: flex-start;
}

/* =====================================================================
   DETALLE DE UNA PUBLICACIÓN
   ===================================================================== */
.jn-hero-detalle {
    padding: 40px 20px;
}

.jn-hero-detalle h1 {
    max-width: 900px;
    margin: 0 auto 8px;
    font-size: 28px;
}

.jn-detalle {
    display: block;
    max-width: 900px;
    margin: 30px auto 50px;
    padding: 0 20px;
}

.jn-volver {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--jn-boton);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
}

.jn-volver:hover {
    text-decoration: underline;
}

.jn-articulo {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 31, 63, .08);
    overflow: hidden;
}

.jn-articulo-img {
    background: #0f2c52;
    max-height: 420px;
    overflow: hidden;
}

.jn-articulo-img img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.jn-articulo-body {
    padding: 30px 34px 38px;
}

.jn-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.jn-meta-fecha {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 600;
}

.jn-chip-cat {
    display: inline-block;
    background: var(--jn-celeste);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .6px;
    padding: 5px 12px;
    border-radius: 999px;
}

.jn-badge-demo-inline {
    display: inline-block;
    background: rgba(0, 0, 0, .08);
    color: #b26a00;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .6px;
    padding: 4px 10px;
    border-radius: 6px;
}

.jn-h1 {
    margin: 0 0 16px;
    color: var(--jn-azul-oscuro);
    font-size: 28px;
    line-height: 1.3;
}

.jn-contenido {
    color: #334155;
    font-size: 15.5px;
    line-height: 1.85;
}

.jn-contenido p {
    margin: 0 0 16px;
}

.jn-contenido p:last-child {
    margin-bottom: 0;
}

.jn-fuente-box {
    margin-top: 26px;
    padding: 20px;
    border-radius: 12px;
    background: #f4f8fd;
    border: 1px solid #d7e6f4;
}

.jn-fuente-box p {
    margin: 0 0 14px;
    font-size: 13.5px;
    color: #475569;
    line-height: 1.6;
}

.jn-btn-fuente {
    display: inline-block;
    background: var(--jn-boton);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 22px;
    border-radius: 9px;
    transition: background .2s, transform .2s;
}

.jn-btn-fuente:hover {
    background: #004a99;
    transform: translateY(-1px);
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 980px) {
    .jn-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .jn-consulta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .jn-grid {
        grid-template-columns: 1fr;
    }

    .jn-hero h1 {
        font-size: 26px;
    }

    .jn-hero-detalle h1 {
        font-size: 22px;
    }

    .jn-articulo-body {
        padding: 22px 20px 30px;
    }

    .jn-h1 {
        font-size: 22px;
    }

    .jn-cal-fecha {
        width: 74px;
    }

    .jn-cal-titulo {
        font-size: 14px;
    }
}
