/* Hero Section */
.news-hero,
.news-detail-hero {
    background: linear-gradient(rgba(32, 83, 152, 0.9), rgba(32, 83, 152, 0.9)), 
                url('../images/webp/news-hero-bg.webp') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-top: 0px; /* Compensa el header fijo */
}

.news-hero .hero-content,
.news-detail-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.news-hero h1,
.news-detail-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.news-hero p {
    font-size: 1.2rem;
    margin-bottom: 0;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.divider {
    margin: 0 10px;
    opacity: 0.7;
}

/* News Meta */
.news-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.news-date,
.news-category {
    display: flex;
    align-items: center;
}

/* Main Container */
.news-container,
.news-detail-container {
    padding: 60px 0;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
	margin-top: 50px;
}

.news-card {
    background: rgba(255,255,255,0.85);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(32,83,152,0.10), 0 1.5px 6px rgba(32,83,152,0.08);
    transition: all 0.3s cubic-bezier(.4,2,.6,1);
    position: relative;
    border: 1.5px solid #e6eaf3;
    backdrop-filter: blur(2px);
    min-height: 100%;
    animation: fadeInCard 0.8s cubic-bezier(.4,2,.6,1);
}

.news-card:hover, .news-card:focus {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(32,83,152,0.18), 0 2px 8px rgba(32,83,152,0.10);
    border-color: #20539833;
}

.news-image-link {
    display: block;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover .news-image {
    transform: scale(1.03);
}

.news-body {
    padding: 20px;
}

.news-date {
    color: #b0b1b1;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.news-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-title a {
    color: #205398;
    text-decoration: none;
    transition: color 0.2s;
}

.news-title a:hover, .news-title a:focus {
    color: #3e7cb1;
    text-decoration: underline;
}

.news-excerpt {
    color: #6c757d;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    color: var(--primary-blue);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.news-read-more.btn {
    font-weight: 600;
    border-radius: 50px;
    padding: 8px 22px;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(32,83,152,0.08);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.news-read-more.btn i {
    margin-left: 6px;
    transition: transform 0.2s;
}

.news-read-more.btn:hover i {
    transform: translateX(5px);
}

/* Pagination */
.news-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination {
    display: flex;
    gap: 5px;
}

.page-item {
    list-style: none;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s;
}

.page-link:hover {
    background-color: rgba(32, 83, 152, 0.1);
}

.page-item.active .page-link {
    background-color: var(--primary-blue);
    color: white;
}

.page-item.disabled .page-link {
    color: #b0b1b1;
    pointer-events: none;
}

/* Sidebar */
.news-sidebar,
.news-detail-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.widget-title {
    color: var(--primary-blue);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-blue);
}

/* Search Widget */
.search-form .input-group {
    position: relative;
}

.search-form .form-control {
    padding-right: 45px;
    border-radius: 50px;
}

.btn-search {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 45px;
    background: transparent;
    border: none;
    color: var(--primary-blue);
    border-radius: 0 50px 50px 0;
    cursor: pointer;
}

/* Recent News Widget */
.recent-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-news-item {
    border-bottom: 1px solid #e9ecef;
    padding: 15px 0;
}

.recent-news-item:first-child {
    padding-top: 0;
}

.recent-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-news-link {
    display: flex;
    gap: 15px;
    text-decoration: none;
}

.recent-news-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.recent-news-info {
    flex-grow: 1;
}

.recent-news-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 5px;
    transition: color 0.3s;
}

.recent-news-link:hover .recent-news-title {
    color: var(--secondary-blue);
}

.recent-news-date {
    font-size: 0.8rem;
    color: #b0b1b1;
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    border-bottom: 1px solid #e9ecef;
    padding: 10px 0;
}

.category-item:first-child {
    padding-top: 0;
}

.category-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.category-link {
    display: flex;
    justify-content: space-between;
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s;
}

.category-link:hover {
    color: var(--primary-blue);
}

.category-count {
    color: var(--primary-blue);
    font-weight: 500;
}

/* News Detail */
.featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    line-height: 1.7;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content .lead {
    font-size: 1.2rem;
    color: var(--primary-blue);
    font-weight: 500;
    margin-bottom: 30px;
}

.article-content h2 {
    color: var(--primary-blue);
    font-weight: 600;
    margin: 30px 0 20px;
    font-size: 1.5rem;
}

.article-content h3 {
    color: var(--primary-blue);
    font-weight: 600;
    margin: 25px 0 15px;
    font-size: 1.25rem;
}

.article-image {
    margin: 30px 0;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.image-caption {
    font-size: 0.9rem;
    color: #b0b1b1;
    margin-top: 10px;
    font-style: italic;
}

blockquote {
    border-left: 4px solid var(--primary-blue);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #6c757d;
}

blockquote footer {
    font-style: normal;
    font-weight: 500;
    margin-top: 10px;
    color: var(--primary-blue);
}

.article-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-label {
    font-weight: 500;
    color: var(--primary-blue);
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: rgba(32, 83, 152, 0.1);
    color: var(--primary-blue);
    border-radius: 50px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s;
}

.tag:hover {
    background-color: var(--primary-blue);
    color: white;
}

.social-sharing {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sharing-label {
    font-weight: 500;
    color: var(--primary-blue);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(32, 83, 152, 0.1);
    transition: all 0.3s;
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.social-icon:hover {
    background-color: var(--primary-blue);
}

.social-icon:hover svg {
    fill: white;
}

/* Related News */
.related-news {
    margin-top: 60px;
}

.related-title {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 30px;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

.related-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-blue);
}

.related-news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    height: 100%;
}

.related-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.related-news-image-link {
    display: block;
    overflow: hidden;
}

.related-news-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-news-card:hover .related-news-image {
    transform: scale(1.05);
}

.related-news-body {
    padding: 15px;
}

.related-news-date {
    color: #b0b1b1;
    font-size: 0.8rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.related-news-title {
    font-size: 1rem;
    font-weight: 500;
}

.related-news-title a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.related-news-title a:hover {
    color: var(--secondary-blue);
}

/* About Widget */
.about-widget p {
    margin-bottom: 20px;
    color: #6c757d;
}

/* Newsletter Widget */
.newsletter-form .form-group {
    margin-bottom: 15px;
}

.newsletter-form .form-control {
    border-radius: 50px;
    padding: 12px 20px;
}

/* Tags Widget */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Responsive */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .news-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .news-hero,
    .news-detail-hero {
        padding: 80px 0;
    }
    
    .news-hero h1,
    .news-detail-hero h1 {
        font-size: 2rem;
    }
    
    .news-hero p {
        font-size: 1rem;
    }
    
    .news-container,
    .news-detail-container {
        padding: 40px 0;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .news-hero,
    .news-detail-hero {
        padding: 60px 0;
    }
    
    .news-hero h1,
    .news-detail-hero h1 {
        font-size: 1.8rem;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .article-content .lead {
        font-size: 1.1rem;
    }
}