/*
 * modern-styles.css
 * Diseño para un portal de noticias de finanzas, política y tecnología.
 */

/* --- Fuentes y Colores Base --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Merriweather:wght@400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f2f5; /* Un gris muy claro para el fondo */
    color: #343a40; /* Texto principal oscuro */
    line-height: 1.6;
}

a {
    color: #0056b3; /* Azul corporativo para enlaces */
    transition: color 0.3s ease;
}

a:hover {
    color: #003f80;
    text-decoration: none;
}

/* --- Header y Navegación --- */
.header.modern-header {
    padding: 15px 0;
    border-bottom: 1px solid #dee2e6;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.modern-header .logo img {
    max-height: 60px; /* Ajusta según el tamaño de tu logo */
}

.modern-nav {
    background-color: #343a40; /* Fondo oscuro para la navegación */
    border-bottom: 1px solid #495057;
}

.modern-nav .navbar-nav .nav-link {
    color: #f8f9fa;
    font-weight: 700;
    padding: 12px 18px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.modern-nav .navbar-nav .nav-link:hover,
.modern-nav .navbar-nav .nav-link.active {
    color: #007bff; /* Azul de Bootstrap para hover */
}
/* Icono hamburguesa grande y centrado en el nav */
.icobar {
    font-size: 30px;      /* Tamaño grande */

    vertical-align: middle;
    padding-top: 4px;
    margin-bottom: 2px;
}

/* --- Estructura Principal de Contenido --- */
/* .main-content-area {
    padding: 30px 0;
} */

/* --- Grid de Noticias Destacadas --- */
.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.featured-main {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.featured-image-wrapper {
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.featured-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-image-wrapper:hover img {
    transform: scale(1.05);
}

.main-title {
    font-family: 'Merriweather', serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.main-title a {
    color: #1a1a1a;
}

.main-title a:hover {
    color: #0056b3;
}

/* Columna secundaria */
.featured-secondary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.secondary-story {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.secondary-image-wrapper {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    flex: 1;
}

.secondary-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.secondary-image-wrapper:hover img {
    transform: scale(1.05);
}

.secondary-title {
    font-family: 'Merriweather', serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.secondary-title a {
    color: #1a1a1a;
}

.secondary-title a:hover {
    color: #0056b3;
}

.small-tag {
    display: inline-block;
    background-color: #007bff;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.small-meta {
    font-size: 12px;
    color: #888;
}

.sidebar {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sidebar .widget-title {
    font-family: 'Merriweather', serif;
    font-size: 20px;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.block-title {
    font-family: 'Merriweather', serif;
    font-size: 28px;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.block-title span {
    background-color: #007bff;
    color: #ffffff;
    padding: 5px 15px;
    margin-left: -15px; /* Para que el fondo se extienda un poco a la izquierda */
}

/* --- Estilos de Noticias --- */
.main-story {
    background-color: #ffffff;
    padding: 2px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.main-story img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 20px;
}

.main-story .category-tag {
    display: inline-block;
    background-color: #007bff;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.main-story2 h1 {
    font-family: 'Merriweather', serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}
/* --- Estilos de Noticias 2 --- */
.main-story2 {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.main-story2 img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 0;
}

.main-story2 .post-content {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.main-story2 .category-tag {
    display: inline-block;
    background-color: #007bff;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    align-self: flex-start;
}

.main-story2 h1 {
    font-family: 'Merriweather', serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

/* Alinear tarjetas de noticias en filas */
.category-content > .row {
    display: flex;
    flex-wrap: wrap;
}

.category-content > .row > [class*="col-"] {
    display: flex;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.news-card {
    background-color: #ffffff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-card-content {
    padding: 15px;
}

.news-card .category-tag {
    display: inline-block;
    background-color: #e9ecef;
    color: #495057;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.news-card h3 {
    font-family: 'Merriweather', serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

.news-card .post-meta {
    font-size: 12px;
    color: #6c757d;
}

.news-card .post-meta span {
    margin-right: 10px;
}
.post-content h2{
    font-family: 'Merriweather', serif;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
}
 .mini-story {
            border-bottom: 1px solid #eee;
            padding-bottom: 10px;
        }
.mini-story h4{
    font-family: 'Merriweather', serif;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
}
/* --- Paginación --- */
.pagination {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.pagination li a,
.pagination li span {
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    margin: 0 4px;
    color: #007bff;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.pagination li a:hover {
    background-color: #007bff;
    color: #ffffff;
    border-color: #007bff;
}

.pagination li.active span {
    background-color: #007bff;
    color: #ffffff;
    border-color: #007bff;
}

/* --- Footer --- */
.modern-footer {
    background-color: #212529;
    color: #f8f9fa;
    padding: 40px 0;
    margin-top: 50px;
}

.modern-footer .widget-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.modern-footer a {
    color: #adb5bd;
}

.modern-footer a:hover {
    color: #ffffff;
}

.copyright-section {
    background-color: #000000;
    color: #6c757d;
    padding: 15px 0;
    font-size: 13px;
}
.top-bar{
	padding: 8px 0;
	border-bottom: 1px solid #dedede;
	color: #a3a3a3;
	font-size: 13px;
}
/* Date */

.ts-date{
	display: inline-block;
	border-right: 1px solid #acacac;
	padding-right: 10px;
	line-height: 12px;
}


.ts-date i{
	margin-right: 5px;
}
/* Top nav */

.top-nav{
	display: inline-block;
}

.top-nav li{
	display: inline-block;
	line-height: 12px;
	padding-left: 12px;
}

.top-nav li a{
	background: none;
	color: #a3a3a3;
   padding: 0;
   line-height: 100%;
}
.top-nav li a:hover{
	color: #ec0000;
}


/* Top social */

.top-social ul{
	list-style: none;
		padding: 0;
		margin: 0;
}

.top-social li {
	display: inline-block;
	padding: 0;
}

.top-social li a{
	color: #a3a3a3;
	margin-right: 15px;
	font-size: 14px;
	-webkit-transition: 400ms;
	-moz-transition: 400ms;
	-o-transition: 400ms;
	transition: 400ms;
}

.top-social li a:hover{
	color: #333;
}

/* Top bar border */
.top-bar-border{
	 padding: 8px 20px 8px;
	 border-bottom: 1px solid #ddd;
}

.top-bar-border ul.top-info{
	 color: #7c7c7c;
	 font-weight: 400;
}

.top-bar-border .top-social li a{
	 color: #7c7c7c;
}

.top-bar-border ul.top-info li i{
	 color: #ec0000;
}
.trending-bar{
	background: #272727;
	color: #fff;
	padding: 10px 0;
}

.trending-title{
	background: #ec0000;
	color: #fff;
	display: inline-block;
	font-size: 11px;
	padding: 5px 10px;
	line-height: 100%;
	text-transform: uppercase;
	float: left;
	margin: 0 20px 0 0;
}

.trending-bar .post-content,
.trending-light .post-content{
	padding: 0;
}

.owl-carousel.owl-theme.trending-slide .owl-nav{
	position: absolute;
	right: 0;
	top: -3px;
	margin: 0;
}

.owl-carousel.owl-theme.trending-slide .owl-nav > div{
	background: #ec0000;
	border: 0;
	color: #fff;
}

.owl-carousel.owl-theme.trending-slide .owl-nav > div:hover{
	background: #fff;
	border: 0;
	color: #ec0000;
}


.trending-slide .post-title a{
	color: #fff;
}

.trending-slide .post-title.title-small{
	font-weight: 400;
	margin: 0;
}

/* Trending light */

.trending-light{
	color: #1c1c1c;
	margin: 30px 0;
}

.trending-light .trending-slide .post-title{
	font-weight: 600;
	margin-top: 3px;
	font-size: 15px;
}

.trending-light .trending-slide .post-title a{
	color: #1c1c1c;

}

.trending-light .trending-title{
	padding: 8px 10px 7px;
}

.trending-light .owl-carousel.owl-theme.trending-slide
.owl-nav > div:hover{
	background: #333;
	color: #fff;
}
 /* Estilos específicos para layout de periódico */
        .newspaper-layout {
            background-color: #ffffff;
            box-shadow: 0 0 20px rgba(0,0,0,0.1);
        }
        /* body .container{
           width: 1300px;
        } */
        .top-header {
            background-color: #f8f9fa;
            border-bottom: 1px solid #dee2e6;
            padding: 8px 0;
            font-size: 12px;
        }

        .main-header {
            padding: 20px 0;
            border-bottom: 3px solid #007bff;
        }

        .hero-section {
            background-color: #ffffff;
            padding: 0;
            margin-bottom: 30px;
        }

        .featured-story {
            border-right: 1px solid #dee2e6;
            padding-right: 20px;
        }

        .secondary-stories {
            padding-left: 20px;
        }

        .story-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-bottom: 20px;
        }


        .section-divider {
            height: 2px;
            background: linear-gradient(to right, #007bff, #0056b3);
            margin: 25px 0;
        }
        .category-news {
            background-color: #ffffff;

            overflow: hidden;
        }
         .category-news .category-content {
              padding: 0px;
        }
        .category-block {
            background-color: #ffffff;
            border: 1px solid #dee2e6;
            margin-bottom: 20px;
            overflow: hidden;
        }

        .category-header {
            background-color: #007bff;
            color: white;
            padding: 8px 15px;
            font-weight: bold;
            text-transform: uppercase;
            font-size: 13px;
        }

        .category-content {
            padding: 15px;
        }

        .compact-news-item {
            display: flex;
            margin-bottom: 15px;
            padding-bottom: 12px;
            border-bottom: 1px solid #f0f0f0;
        }

        .compact-news-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
        }

        .compact-news-thumb {
            width: 80px;
            height: 60px;
            object-fit: cover;
            margin-right: 12px;
            border-radius: 3px;
        }

        .compact-news-content h4 {
            font-size: 14px;
            line-height: 1.3;
            margin-bottom: 5px;
            font-weight: 600;
        }

        .compact-news-meta {
            font-size: 11px;
            color: #666;
        }

        .trending-bar {
            background-color: #dc3545;
            color: white;
            padding: 10px 0;
            margin-bottom: 20px;
        }

        .trending-title {
            background-color: #ffffff;
            color: #dc3545;
            padding: 5px 10px;
            font-weight: bold;
            font-size: 12px;
            margin-right: 15px;
            display: inline-block;
        }

        .sidebar-widget {
            background-color: #ffffff;
            border: 1px solid #dee2e6;
            margin-bottom: 20px;
            border-radius: 5px;
            overflow: hidden;
        }

        .widget-header {
            background-color: #343a40;
            color: white;
            padding: 12px 15px;
            font-weight: bold;
            font-size: 14px;
        }

        .widget-content {
            padding: 15px;
        }
.entry-content {
    margin: 0 auto;
    padding: 24px 28px;
    font-size: 20px;
    line-height: 1.7;
    text-align: justify;
    color: #222;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    max-width: 900px;
}
/* Mejoras para la imagen destacada */
.post-featured-image img {
    display: block;
    margin: 0 auto 18px auto;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.post-featured-img {
    width: 100%;
    height: auto;
    max-width: 700px;      /* Ajusta el máximo si lo deseas */
    display: block;
    margin: 0 auto 18px auto;
    object-fit: contain;   /* Mantiene la proporción, nunca deforma */
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Título del artículo */
.post-title-area .post-title {
    font-family: 'Merriweather', serif;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
    line-height: 1.2;
}

/* Meta información */
.post-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}
.post-meta i {
    margin-right: 4px;
}
/* modern-styles.css */
.dollar-carousel .item {
    color: #007bff;
    font-weight: bold;
    font-size: 15px;
    padding: 0 10px;
    white-space: nowrap;
}
    /* Mejoras responsive generales */
@media (max-width: 768px) {
    body .container {
        width: 100% !important;
        max-width: 100%;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    .main-header, .modern-footer, .category-header, .category-content {
        padding-left: 8px;
        padding-right: 8px;
    }
    .main-header {
        padding: 10px 0;
    }
    .modern-footer {
        padding: 20px 0;
    }
    .sidebar, .sidebar-widget, .block, .ad-banner, .widget {
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 10px;
    }
    .news-grid, .story-grid {
        display: block;
    }
    .main-story2 img, .news-card img, .ad-banner img, .block img, .widget img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }
    .category-block, .category-news {
        margin-bottom: 15px;
        padding: 8px;
    }

    /* Responsive para tarjetas de noticias */
    .category-content > .row > [class*="col-"] {
        margin-bottom: 15px;
    }

    .main-story2 {
        margin-bottom: 20px;
    }

    .main-story2 .post-content {
        padding: 10px;
    }

     .featured-story {
    border-right: none;

  }
  .featured-story,
    .secondary-stories {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
     .logo {
        text-align: center;
        margin-bottom: 10px;
    }
    .modern-header .logo img {
        display: inline-block;
        max-width: 90%;
        height: auto;
    }
     .ad-banner {
        float: none !important;
        text-align: center;
        margin: 0 auto 10px auto;
    }
    .ad-banner img {
        display: inline-block;
        max-width: 100%;
        height: auto;
    }
     .main-story2 h1,
    .post-title {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 10px;
    }
.entry-content {
        padding: 14px 8px;
        font-size: 17px;
        line-height: 1.5;
        border-radius: 0;
        box-shadow: none;
        max-width: 100%;
    }
    .post-title-area .post-title {
        font-size: 1.3em;
    }
    .post-featured-image img {
        margin-bottom: 12px;
        border-radius: 4px;
    }
     #top-bar {
        display: none !important;
    }

    /* Responsive para el grid de noticias destacadas */
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .featured-image-wrapper {
        min-height: 250px;
    }

    .main-title {
        font-size: 20px;
    }

    .secondary-image-wrapper {
        min-height: 150px;
    }

}

/* --- Estilos para Anuncios/Publicidad --- */
.ad-banner {
    text-align: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.ad-banner img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.ad-content-area {
    text-align: center;
    padding: 15px 0;
    width: 100%;
    overflow: visible;
}

.ad-content-area .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.ad-content-area img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    width: 100%;
}

/* Sidebar Widgets para Anuncios */
.widget {
    background: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
}

.widget img {
    max-width: 100%;
    height: auto;
}

/* Widget de Anuncio específico */
.widget-ad {
    background: #fff;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
}

.widget-ad img {
    max-width: 100%;
    height: auto;
}

/* Anuncios Left Side */
.block {
    margin-bottom: 20px;
    text-align: center;
}

.block img {
    max-width: 100%;
    height: auto;
}

/* Nuevo bloque de anuncio */
.ad-block {
    background: #fff;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
}

.ad-block img {
    max-width: 100%;
    height: auto;
}

/* Responsive para anuncios */
@media (max-width: 768px) {
    .ad-banner img,
    .ad-content-area img,
    .widget img,
    .widget-ad img,
    .block img,
    .ad-block img {
        max-width: 100%;
        height: auto;
    }
}

/* --- Scroll Infinito: Más Noticias --- */
#more-news-section {
    margin-top: 30px;
    margin-bottom: 30px;
}

#more-news-section .category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.loading-spinner {
    color: #0056b3;
    font-size: 14px;
}

#load-more-news {
    margin-top: 15px;
    padding: 10px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

#load-more-news:hover:not(:disabled) {
    background-color: #0056b3;
    color: #fff;
}

#load-more-news:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Animación suave para nuevas noticias */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#infinite-news-container .main-story2 {
    animation: fadeInUp 0.5s ease forwards;
}
