/* 1. ESTRUCTURA BASE Y TIPOGRAFÍA */
.ny-v21-wrap {
    width: 100% !important;
    /* Pila de fuentes nativas del sistema: Carga inmediata */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    max-width: 1200px;
    margin: 0 auto;
    -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;
}

/* 2. CABECERA */
.ny-v21-header {
    margin-bottom: 30px !important;
    border-bottom: 1px solid #eee !important;
    padding-bottom: 20px !important;
}

.ny-v21-badge {
    background: #3c9bd3 !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 4px 12px !important;
    display: inline-block !important;
    margin-bottom: 10px !important;
    border-radius: 4px;
}

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

/* 3. LISTADO (OPTIMIZACIÓN DE FILAS) */
.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 */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.ny-tag-img-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.4s 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: 4px !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;
    text-decoration: none !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    display: block;
}

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

/* META INFORMACIÓN (Vistas en Rojo) */
.ny-tag-row-meta {
    font-size: 13px !important;
    color: #777 !important;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px !important;
    font-weight: 500;
}

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

.ny-sep {
    color: #ddd;
}

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

/* 4. PAGINACIÓN */
.ny-tag-pagination {
    margin-top: 40px !important;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-bottom: 20px;
}

.ny-tag-pagination .page-numbers {
    min-width: 40px;
    padding: 0 12px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f1f1;
    color: #083363;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

.ny-tag-pagination .page-numbers:hover:not(.current) {
    background: #e1e1e1;
    color: #cc0000;
}

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

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

@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-v21-sidebar { 
        margin-top: 50px; 
        padding-left: 0; 
        border-left: none; 
        border-top: 1px solid #eee; 
        padding-top: 30px; 
    }

    .ny-tag-row-title a {
        font-size: 21px !important;
    }
}
