/**
 * Estilos adicionales para la página principal del blog
 * Innovación México
 */

/* Hero Section - Artículo Destacado */
.jeg_hero_wrapper {
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.jeg_hero {
    position: relative;
    min-height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.jeg_hero_bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.jeg_hero_bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 1;
}

.jeg_hero_bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jeg_hero_content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    min-height: 500px;
    padding: 40px 0;
}

.jeg_hero_content_inner {
    color: #fff;
    max-width: 800px;
}

.jeg_hero_title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 20px 0;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.jeg_hero_title a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.jeg_hero_title a:hover {
    opacity: 0.9;
}

.jeg_hero_excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 20px 0;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.jeg_hero_meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    margin-top: 20px;
}

.jeg_hero_meta .jeg_meta_author,
.jeg_hero_meta .jeg_meta_date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jeg_hero_meta .jeg_author_avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* Sección de Últimas Noticias */
.jeg_block_title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 40px 0 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #0c4da2;
    position: relative;
}

.jeg_block_title span {
    background: #fff;
    padding-right: 20px;
    position: relative;
    z-index: 1;
}

/* Grid de Artículos */
.jeg_posts_masonry {
    margin-bottom: 40px;
}

.jeg_posts_container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .jeg_posts_container {
        grid-template-columns: 1fr;
    }
}

/* Tarjetas de Artículos */
.jeg_post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.jeg_thumb {
    position: relative;
    overflow: hidden;
    height: 220px;
}

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

.jeg_post:hover .jeg_thumb img {
    transform: scale(1.05);
}

.jeg_post_category {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.jeg_post_category span a {
    background: #0c4da2;
    color: #fff;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
}

.jeg_post_category span a:hover {
    background: #083570;
}

/* Contenido de la Tarjeta */
.jeg_postblock_content {
    padding: 25px;
}

.jeg_post_title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
}

.jeg_post_title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.jeg_post_title a:hover {
    color: #0c4da2;
}

.jeg_post_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.jeg_meta_author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jeg_author_avatar img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.jeg_post_excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.jeg_readmore_wrap {
    margin-top: 15px;
}

.jeg_readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0c4da2;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.jeg_readmore:hover {
    gap: 12px;
}

/* Paginación */
.jeg_pagination {
    margin: 50px 0;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

.jeg_pagination_wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.jeg_page_prev,
.jeg_page_next,
.jeg_page_link {
    padding: 10px 20px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.jeg_page_prev:hover,
.jeg_page_next:hover,
.jeg_page_link:hover {
    background: #0c4da2;
    color: #fff;
}

.jeg_page_current {
    padding: 10px 20px;
    background: #0c4da2;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
}

.jeg_page_number {
    display: flex;
    gap: 5px;
}

/* Sidebar */
.jeg_sidebar_wrapper {
    padding-left: 30px;
}

@media (max-width: 768px) {
    .jeg_sidebar_wrapper {
        padding-left: 0;
        margin-top: 50px;
    }
}

.jeg_widget {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.jeg_widget_title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0c4da2;
}

/* Widget: Artículos Recientes */
.jeg_recent_post {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.jeg_recent_post:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.jeg_recent_post_thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
}

.jeg_recent_post_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jeg_recent_post_title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.jeg_recent_post_title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.jeg_recent_post_title a:hover {
    color: #0c4da2;
}

.jeg_recent_post_meta {
    font-size: 0.8rem;
    color: #999;
}

/* Widget: Categorías */
.jeg_widget.widget_categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jeg_widget.widget_categories li {
    margin-bottom: 12px;
}

.jeg_widget.widget_categories li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: block;
    padding-left: 0;
}

.jeg_widget.widget_categories li a:hover {
    color: #0c4da2;
    padding-left: 10px;
}

.jeg_widget.widget_categories li a::before {
    content: '→';
    margin-right: 10px;
    color: #0c4da2;
}

/* Widget: Newsletter */
.jeg_newsletter_form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jeg_newsletter_input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
}

.jeg_newsletter_button {
    padding: 12px;
    background: #0c4da2;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.jeg_newsletter_button:hover {
    background: #083570;
}

/* Widget: Redes Sociales */
.jeg_social_icon_wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jeg_social_icon {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.jeg_social_icon:hover {
    background: #0c4da2;
    color: #fff;
    transform: translateX(5px);
}

.jeg_social_icon i {
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .jeg_hero_title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .jeg_hero_content {
        min-height: 400px;
    }
    
    .jeg_hero_title {
        font-size: 1.6rem;
    }
    
    .jeg_hero_excerpt {
        font-size: 1rem;
    }
    
    .jeg_block_title {
        font-size: 1.5rem;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jeg_post {
    animation: fadeIn 0.5s ease forwards;
}

.jeg_post:nth-child(1) { animation-delay: 0.1s; }
.jeg_post:nth-child(2) { animation-delay: 0.2s; }
.jeg_post:nth-child(3) { animation-delay: 0.3s; }
.jeg_post:nth-child(4) { animation-delay: 0.4s; }
.jeg_post:nth-child(5) { animation-delay: 0.5s; }
.jeg_post:nth-child(6) { animation-delay: 0.6s; }

