/* --- 1. CONFIGURACIÓN BASE Y TIPOGRAFÍA --- */
.ny-v21-wrap {
    width: 100% !important;
    /* Pila de fuentes nativas del sistema para carga instantánea */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

.ny-v21-grid {
    display: grid !important;
    grid-template-columns: 70% 26% !important;
    gap: 4% !important;
    margin-top: 20px !important;
    align-items: start;
}

.ny-v21-title {
    font-size: 42px !important;
    font-weight: 800 !important;
    color: #083363 !important;
    text-transform: uppercase;
    margin-bottom: 25px !important;
    line-height: 1.1 !important;
    letter-spacing: -0.5px !important;
}

/* --- FILA DE ARTÍCULO (LOOP) --- */
.ny-tag-row {
    display: flex !important;
    gap: 25px !important;
    margin-bottom: 30px !important;
    padding-bottom: 25px !important;
    border-bottom: 1px solid #f2f2f2 !important;
    align-items: flex-start !important;
}

.ny-tag-img-box {
    flex: 0 0 260px !important;
    height: 175px !important;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f0f0f0; /* Anti-CLS */
}

.ny-tag-img-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.3s ease;
}

.ny-tag-row:hover .ny-tag-img-box img {
    transform: scale(1.05);
}

/* --- CONTENEDOR DE TEXTO --- */
.ny-tag-info-box {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    flex: 1;
}

.ny-tag-row-title {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.ny-tag-row-title a {
    color: #083363 !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

.ny-tag-row-title a:hover {
    color: #cc0000 !important;
}

/* --- META DATOS Y VISTAS --- */
.ny-tag-row-meta {
    font-size: 13px !important;
    color: #777 !important;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0 !important;
    font-weight: 500 !important;
}

.ny-vistas-red {
    color: #cc0000 !important;
    font-weight: 800 !important;
}

.ny-sep {
    color: #ddd;
}

/* --- EXTRACTO --- */
.ny-tag-row-excerpt {
    display: block !important;
    font-size: 15px !important;
    color: #444 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

/* --- PAGINACIÓN --- */
.ny-tag-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    padding: 20px 0;
}

.ny-tag-pagination .page-numbers {
    padding: 10px 18px;
    background: #f1f1f1;
    color: #083363;
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    transition: background 0.2s;
}

.ny-tag-pagination .page-numbers:hover {
    background: #e1e1e1;
}

.ny-tag-pagination .page-numbers.current {
    background: #cc0000;
    color: #fff;
}

/* --- SIDEBAR --- */
.ny-v21-sidebar {
    border-left: 1px solid #f0f0f0;
    padding-left: 20px;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .ny-v21-grid {
        display: block !important;
    }
    
    .ny-tag-row {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .ny-tag-img-box {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        flex: none !important;
    }
    
    .ny-v21-title {
        font-size: 32px !important;
        text-align: center;
    }
    
    .ny-tag-row-title a {
        font-size: 21px !important;
    }

    .ny-v21-sidebar {
        border-left: none;
        border-top: 1px solid #f0f0f0;
        padding-left: 0;
        padding-top: 30px;
        margin-top: 30px;
    }
}
