/* ========================================
   ESTILOS ADICIONALES PARA APAT.CSS
   Agregar al final de apat.css
   ======================================== */

/* ===========================
   RIBBON - FALTABA EN APAT.CSS
   =========================== */
.tn-section-ribbon {
    background: var(--tn-rojo-oficial);
    color: white;
    padding: 20px 30px;
    margin-bottom: 30px;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
}

.tn-section-ribbon h2 {
    margin: 0;
    font-weight: var(--tn-font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tn-section-ribbon.celeste {
    background: var(--tn-celeste-oficial);
}

.tn-section-ribbon.gris {
    background: var(--tn-tipografia-gris);
}

.tn-section-ribbon.negro {
    background: #333;
}

/* ===========================
   CARDS CON HOVER - UNIFICADO
   Reemplaza .card-apat del home
   =========================== */
.card-apat {
    border: none;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card-apat:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Card sin hover para mantener flat design donde se necesite */
.card-tn {
    border: 1px solid #dee2e6;
    border-radius: 0;
}

/* ===========================
   PAGINACIÓN APAT - NUEVO
   =========================== */
.pagination-apat {
    gap: 5px;
}

.pagination-apat .page-item .page-link {
    border: none;
    background: #f8f9fa;
    color: var(--tn-tipografia-gris);
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.pagination-apat .page-item .page-link:hover {
    background: var(--tn-celeste-oficial);
    color: white;
    transform: translateY(-2px);
}

.pagination-apat .page-item.active .page-link {
    background: var(--tn-celeste-oficial);
    color: white;
    font-weight: 700;
}

.pagination-apat .page-item.disabled .page-link {
    background: #f8f9fa;
    color: #ccc;
    cursor: not-allowed;
}

/* ===========================
   NOTICIA DESTACADA - NUEVO
   =========================== */
.noticia-destacada {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.noticia-destacada-img {
    position: relative;
}

.noticia-destacada .card-title {
    font-size: 1.75rem;
    line-height: 1.3;
}

/* ===========================
   RESPONSIVE NOTICIA DESTACADA
   =========================== */
@media (max-width: 767px) {
    .noticia-destacada-img {
        height: 300px !important;
    }

    .noticia-destacada .card-title {
        font-size: 1.5rem;
    }
}

/* ===========================
   BADGES MEJORADOS
   =========================== */
.card-apat .badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ===========================
   AJUSTES MENORES
   =========================== */

/* Botón leer más en cards pequeñas */
.card-apat .btn-sm {
    font-size: 0.85rem;
    padding: 6px 16px;
    font-weight: 600;
}

/* Card img con transición */
.card-apat .card-img-top {
    position: relative;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.card-apat:hover .card-img-top {
    opacity: 0.95;
}

/* ========================================
   ESTILOS PARA VISTA DE ÍNDICE DE NOTICIAS
   ======================================== */

/* Noticia Destacada */
.noticia-destacada {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.noticia-destacada-img {
    position: relative;
}

.noticia-destacada .card-title {
    font-size: 1.75rem;
    line-height: 1.3;
}

/* Responsive: Imagen arriba en móviles */
@media (max-width: 767px) {
    .noticia-destacada-img {
        height: 300px !important;
    }

    .noticia-destacada .card-title {
        font-size: 1.5rem;
    }
}

/* Paginación APAT */
.pagination-apat {
    gap: 5px;
}

.pagination-apat .page-item .page-link {
    border: none;
    background: #f8f9fa;
    color: var(--tn-tipografia-gris);
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.pagination-apat .page-item .page-link:hover {
    background: var(--tn-celeste-oficial);
    color: white;
    transform: translateY(-2px);
}

.pagination-apat .page-item.active .page-link {
    background: var(--tn-celeste-oficial);
    color: white;
    font-weight: 700;
}

.pagination-apat .page-item.disabled .page-link {
    background: #f8f9fa;
    color: #ccc;
    cursor: not-allowed;
}

/* Ajuste del ribbon para la página de noticias */
.tn-section-ribbon h2 {
    font-size: 2rem;
    letter-spacing: 2px;
}

/* Cards de noticias - ajustes menores */
.card-apat .card-img-top {
    position: relative;
    overflow: hidden;
}

.card-apat:hover .card-img-top {
    opacity: 0.95;
}

.card-apat .badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Hover effect en cards */
.card-apat {
    transition: all 0.3s ease;
}

.card-apat:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Botón leer más en cards pequeñas */
.card-apat .btn-sm {
    font-size: 0.85rem;
    padding: 6px 16px;
    font-weight: 600;
}
