/* PÁGINA DE FUENTE */

.fuente-header {
    text-align: center;
}

.fuente-header h1 {
    font-size: 1rem;
    text-transform: uppercase;
    background: #bcbcbc;
    padding: 4px;
}

.fuente-icono {
    font-size: 1.5rem;
}

.fuente-total {
    color: #666;
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: left;
    margin-left: 4%;
}

/* TARJETAS DE NOTICIAS */

.grid-noticias {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.tarjeta-noticia {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tarjeta-noticia:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tarjeta-imagen {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.tarjeta-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.tarjeta-noticia:hover .tarjeta-imagen img {
    transform: scale(1.05);
}

.tarjeta-titulo {
    padding: 1rem 1rem 0.5rem;
    margin: 0;
    font-size: 1.25rem;
}

.tarjeta-titulo a {
    color: #2563eb;
    text-decoration: none;
}

.tarjeta-titulo a:hover {
    text-decoration: underline;
}

.tarjeta-subtitulo {
    padding: 0 1rem;
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    font-weight: normal;
}

.tarjeta-extracto {
    padding: 0.75rem 1rem;
    color: #555;
    line-height: 1.5;
    font-size: 0.9rem;
}

.tarjeta-metadatos-simple {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    font-size: 0.85rem;
    color: #666;
}

.metadato-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.metadato-enlace {
    color: #2563eb;
    text-decoration: none;
}

.metadato-enlace:hover {
    text-decoration: underline;
}

.separador {
    color: #ccc;
}

.tarjeta-acciones {
    padding: 0.75rem 1rem;
    text-align: right;
}

/* PAGINACIÓN */

.paginacion {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.btn-pagina {
    padding: 0.5rem 0.75rem;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-pagina:hover {
    background: #e0e0e0;
}

.btn-pagina.active {
    background: #2563eb;
    color: white;
}

.btn-pagina.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    transition: background 0.3s;
    font-size: 1.1rem;
}

.btn-small {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    background: #2563eb;
    color: white;
}

.btn-small:hover {
    background: #1d4ed8;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-secondary {
    color: #212224;
}

.btn-secondary:hover {
    background: #59b0f0;
    color: white;
    border-radius: 7px;
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .grid-noticias {
        grid-template-columns: 1fr;
    }
    
    .tarjeta-metadatos-simple {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .separador {
        display: none;
    }
}
 
/* BOTÓN DE VOLVER */

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    color: #2563eb;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.btn-back:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.fuente-header-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* GRID DE FUENTES */

.grid-fuentes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 10px;
  margin: 1rem 3rem;
}
.tarjeta-fuente {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border-radius: 4px;
    padding: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.tarjeta-fuente:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
    border-color: #2563eb;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.tarjeta-fuente-icono {
    font-size: 2.5rem;
    width: 74px;
    height: 64px;
    transition: all 0.3s;
}

.tarjeta-fuente:hover .tarjeta-fuente-icono {
    background: white;
    transform: scale(1.05);
}

.tarjeta-fuente-info {
    flex: 1;
}

.tarjeta-fuente-nombre {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #005ffb;
    text-align: center;
}

.tarjeta-fuente-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #64748b;
    flex-direction: column;
}

.stat {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-icon {
    font-size: 0.85rem;
}

.tarjeta-fuente-arrow {
    font-size: 2rem;
    color: #004cdd;
    transition: all 0.3s;
}

.tarjeta-fuente:hover .tarjeta-fuente-arrow {
    transform: translateX(6px);
}

/* Responsive */
@media (max-width: 640px) {
    .grid-fuentes {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tarjeta-fuente {
        padding: 1rem;
    }
    
    .tarjeta-fuente-icono {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .tarjeta-fuente-stats {
        flex-direction: column;
        gap: 0.25rem;
    }
}  