:root {
    --primary-blue: #003A8C;
    --primary-orange: #F28C00;
    --dark-blue: #002561;
    --light-blue: #1a5bb8;
    --light-orange: #ff9f1a;
    --gray-bg: #f8f9fa;
    --dark-gray: #333;
    --light-gray: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark-gray);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Top Bar */
.top-bar {
    background: var(--dark-blue);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--primary-orange);
}

/* Header */
.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: auto;
}

/* Navigation */
.main-nav {
    background: var(--primary-blue);
}

.main-nav .navbar-nav .nav-link {
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s;
    position: relative;
}

.main-nav .navbar-nav .nav-link:hover {
    background: var(--primary-orange);
    transform: translateY(-2px);
}

.main-nav .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-orange);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.main-nav .navbar-nav .nav-link:hover::after {
    width: 80%;
}

.search-box {
    position: relative;
}

.search-box input {
    border-radius: 25px;
    padding: 8px 40px 8px 20px;
    border: none;
    width: 250px;
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-orange);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.search-box button:hover {
    background: var(--light-orange);
    transform: translateY(-50%) scale(1.1);
}

/* Breaking News Alert */
.breaking-news {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 15px 0;
    border-bottom: 4px solid var(--primary-orange);
}

.breaking-news-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.breaking-badge {
    background: white;
    color: #dc3545;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.breaking-text {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
}

.breaking-text a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.breaking-text a:hover {
    opacity: 0.8;
}

.breaking-time {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Hero Section */
.hero-section {
    background: var(--gray-bg);
    padding: 40px 0;
    margin-bottom: 40px;
}

.hero-main-card {
    position: relative;
    height: 450px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.hero-main-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.hero-main-card:hover img {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    padding: 30px 25px 25px;
    color: white;
}

.hero-category {
    background: var(--primary-orange);
    padding: 5px 15px;
    border-radius: 5px;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.3;
}

.hero-title a {
    color: white;
    text-decoration: none;
}

.hero-title a:hover {
    color: var(--primary-orange);
}

.hero-excerpt {
    font-size: 0.95rem;
    margin-bottom: 12px;
    opacity: 0.9;
}

.hero-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    opacity: 0.8;
}

.hero-secondary-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    height: 450px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
    cursor: pointer;
}

.hero-secondary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.2);
}

.hero-secondary-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}

.hero-secondary-card:hover img {
    transform: scale(1.1);
}

.hero-secondary-body {
    padding: 10px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hero-secondary-body h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--dark-gray);
    font-weight: 700;
    flex: 1;
}

.hero-secondary-body h3 a {
    color: var(--dark-gray);
    text-decoration: none;
}

.hero-secondary-body h3 a:hover {
    color: var(--primary-blue);
}

.hero-secondary-body p {
    color: var(--light-gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.banner img {
    margin-bottom:15px;
}

/* Secondary Headlines */
.secondary-headlines {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 0;
    position: relative;
    z-index: 10;
}

.secondary-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.secondary-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.secondary-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s;
}

.secondary-card:hover img {
    transform: scale(1.1);
}

.secondary-card-body {
    padding: 20px;
}

.category-badge {
    background: var(--primary-blue);
    color: white;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

.category-badge.policia {
    background: #dc3545;
}

.category-badge.politica {
    background: #6f42c1;
}

.category-badge.economia {
    background: #198754;
}

.secondary-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.secondary-card h3 a {
    color: var(--dark-gray);
    text-decoration: none;
}

.secondary-card h3 a:hover {
    color: var(--primary-blue);
}

.card-meta {
    color: var(--light-gray);
    font-size: 0.85rem;
    display: flex;
    gap: 15px;
}

/* Section Title */
.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 4px solid var(--primary-orange);
    display: inline-block;
}

/* News Card */
.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    margin-bottom: 30px;
    cursor: pointer;
}

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

.news-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover img {
    transform: scale(1.08);
}

.news-card-body {
    padding: 25px;
}

.news-card h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--dark-gray);
    font-weight: 700;
}

.news-card h4 a {
    color: var(--dark-gray);
    text-decoration: none;
}

.news-card h4 a:hover {
    color: var(--primary-blue);
}

.news-card p {
    color: var(--light-gray);
    margin-bottom: 15px;
}

/* List News */
.list-news-item {
    display: flex;
    gap: 20px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.list-news-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.list-news-item img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    transition: transform 0.5s;
}

.list-news-item:hover img {
    transform: scale(1.1);
}

.list-news-content {
    padding: 20px;
    flex: 1;
}

.list-news-content h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--dark-gray);
    font-weight: 600;
}

.list-news-content h5 a {
    color: var(--dark-gray);
    text-decoration: none;
}

.list-news-content h5 a:hover {
    color: var(--primary-blue);
}

/* Sidebar */
.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-orange);
}

.trending-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s;
}

.trending-item:hover {
    padding-left: 10px;
}

.trending-number {
    background: var(--primary-orange);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.trending-text h6 {
    font-size: 0.95rem;
    margin: 0;
    color: var(--dark-gray);
    font-weight: 600;
}

.trending-text h6 a {
    color: var(--dark-gray);
    text-decoration: none;
}

.trending-text h6 a:hover {
    color: var(--primary-blue);
}

.trending-meta {
    font-size: 0.8rem;
    color: var(--light-gray);
}

/* Ad Space */
.ad-space {
    background: linear-gradient(135deg, var(--gray-bg), #e9ecef);
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    border: 2px dashed #dee2e6;
    color: var(--light-gray);
    font-weight: 600;
}

/* Footer */
.main-footer {
    background: var(--dark-blue);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.main-footer img {
    max-width: 200px;
    margin-bottom: 20px;
}

.footer-section h5 {
    color: var(--primary-orange);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
    display: block;
}

.footer-section ul li a:hover {
    color: var(--primary-orange);
    padding-left: 10px;
}

.footer-section p {
    color: rgba(255,255,255,0.7);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    background: rgba(255,255,255,0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-orange);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 30px;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-main-card,
    .hero-secondary-card {
        height: 400px;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .breaking-news-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .secondary-headlines {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }

    .list-news-item {
        flex-direction: column;
    }

    .list-news-item img {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .hero-main-card {
        height: 350px;
    }

    .hero-secondary-card {
        height: auto;
    }

    .hero-secondary-card img {
        height: 200px;
    }

    .hero-title {
        font-size: 1.2rem;
    }

    .breaking-text {
        font-size: 1rem;
    }

    .search-box input {
        width: 100%;
    }
}

/* ========== PÁGINAS INTERNAS ========== */

/* Breadcrumb */
.breadcrumb-section {
    background: var(--gray-bg);
    padding: 15px 0;
    border-bottom: 1px solid #dee2e6;
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    color: var(--light-gray);
}

.breadcrumb-item a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: var(--primary-orange);
}

.breadcrumb-item.active {
    color: var(--dark-gray);
}

/* Article Header */
.article-header {
    padding: 20px 0 30px;
    background: white;
}

.article-category {
    background: var(--primary-blue);
    color: white;
    padding: 6px 18px;
    border-radius: 5px;
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.article-category.policia {
    background: #dc3545;
}

.article-category.politica {
    background: #6f42c1;
}

.article-category.economia {
    background: #198754;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-gray);
    margin-bottom: 20px;
    line-height: 1.2;
}

.article-subtitle {
    font-size: 1.3rem;
    color: var(--light-gray);
    font-weight: 400;
    margin-bottom: 25px;
    line-height: 1.5;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 20px 0;
    border-top: 2px solid #e9ecef;
    border-bottom: 2px solid #e9ecef;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--light-gray);
    font-size: 0.95rem;
}

.meta-item i {
    color: var(--primary-orange);
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.author-info strong {
    display: block;
    color: var(--dark-gray);
}

.author-info span {
    font-size: 0.85rem;
    color: var(--light-gray);
}

/* Social Share */
.social-share {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.social-share a {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-share a:hover {
    transform: translateY(-3px);
}

.social-share .facebook { background: #1877f2; }
.social-share .twitter { background: #1da1f2; }
.social-share .whatsapp { background: #25d366; }
.social-share .linkedin { background: #0077b5; }
.social-share .email { background: var(--light-gray); }

/* Article Content */
.article-content {
    background: white;
    padding: 40px 0;
}

.featured-image {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.image-caption {
    text-align: center;
    color: var(--light-gray);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 35px;
    padding: 0 20px;
}

#legendaFoto {
    text-align: center;
    color: var(--light-gray);
    font-size: 0.9rem;
    font-style: italic;
    margin: 15px 0 35px;
    padding: 0 20px;
}

#creditoFoto {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
}

.article-body, .noticia_texto {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.article-body p, .noticia_texto p {
    margin-bottom: 20px;
}

.article-body h2, .noticia_texto h2 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-body h3, .noticia_texto h3 {
    font-size: 1.4rem;
    color: var(--dark-gray);
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-body ul, .article-body ol,
.noticia_texto ul, .noticia_texto ol {
    margin: 20px 0 20px 30px;
}

.article-body li, .noticia_texto li {
    margin-bottom: 10px;
}

.article-body blockquote, .noticia_texto blockquote {
    background: var(--gray-bg);
    border-left: 5px solid var(--primary-orange);
    padding: 25px 30px;
    margin: 30px 0;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--dark-gray);
    border-radius: 0 10px 10px 0;
}

.article-body img, .noticia_texto img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

.article-body iframe, .noticia_texto iframe {
    max-width: 100%;
    margin: 20px 0;
    border-radius: 12px;
}

/* Video Container */
.video-full, .videofile {
    margin: 30px 0;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Download Files */
#files {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0;
    color: white;
}

#files ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#files li {
    background: rgba(255,255,255,0.1);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

#files li:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(5px);
}

#files a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

#files a:before {
    content: '\f019';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

/* Related Articles */
.related-articles {
    background: var(--gray-bg);
    padding: 50px 0;
    margin-top: 60px;
}

.related-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 4px solid var(--primary-orange);
    display: inline-block;
}

/* Comments Section */
.comments-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    margin-top: 40px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.comments-title {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Category Page */
.category-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: white;
    padding: 60px 0;
    text-align: center;
}

.category-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.category-description {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination {
    display: flex;
    gap: 10px;
}

.pagination a, .pagination span {
    background: white;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination a:hover {
    background: var(--primary-blue);
    color: white;
}

.pagination .current {
    background: var(--primary-blue);
    color: white;
}

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

/* Search Results */
.search-header {
    background: var(--gray-bg);
    padding: 40px 0;
    border-bottom: 3px solid var(--primary-orange);
}

.search-title {
    font-size: 2rem;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.search-query {
    color: var(--primary-blue);
    font-weight: 700;
}

.search-count {
    color: var(--light-gray);
    font-size: 1.1rem;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results i {
    font-size: 5rem;
    color: var(--light-gray);
    margin-bottom: 20px;
}

.no-results h2 {
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.no-results p {
    color: var(--light-gray);
    font-size: 1.1rem;
}

/* Static Content Page */
.static-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    margin: 40px 0;
}

.static-content h1 {
    color: var(--primary-blue);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-orange);
}

.static-content h2 {
    color: var(--primary-blue);
    margin-top: 30px;
    margin-bottom: 15px;
}

.static-content p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #444;
}

/* Responsive Adjustments for Internal Pages */
@media (max-width: 768px) {
    .article-title {
        font-size: 1.8rem;
    }

    .article-subtitle {
        font-size: 1.1rem;
    }

    .article-meta {
        gap: 15px;
    }

    .social-share {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .category-title {
        font-size: 2rem;
    }

    .article-body, .noticia_texto {
        font-size: 1rem;
    }
}
