/* ========================================
   POST DESTACADO BLOG + LAYOUT 70/30
   Viajes Peru
   ======================================== */

/* ================================
   HERO ROJO ARRIBA
   ================================ */

.blog-hero-section {
    background: #D13138;
    padding: 130px 20px;
    margin: 0 0 50px;
    width: 100%;
}

.blog-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.blog-hero-title {
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 15px;
    letter-spacing: -1px;
}

.blog-hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 400;
}

/* ================================
   LAYOUT 70/30 CON SIDEBAR STICKY
   ================================ */

.blog-main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 50px;
    align-items: start;
}

.blog-content-area {
    /* Área izquierda: Post destacado + Grid */
    width: 100%;
}

.blog-sidebar-sticky {
    /* Sidebar derecho sticky */
    position: sticky;
    top: 100px; /* Espacio desde arriba al hacer scroll */
    border-radius: 12px;
    align-self: flex-start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* Scrollbar personalizado para sidebar */
.blog-sidebar-sticky::-webkit-scrollbar {
    width: 6px;
}

.blog-sidebar-sticky::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.blog-sidebar-sticky::-webkit-scrollbar-thumb {
    background: #D13138;
    border-radius: 10px;
}

.blog-sidebar-sticky::-webkit-scrollbar-thumb:hover {
    background: #a02830;
}

/* ================================
   POST DESTACADO
   ================================ */

.featured-post-hero {
    position: relative;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.featured-post-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.featured-post-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.featured-post-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-post-hero:hover .featured-post-image img {
    transform: scale(1.05);
}

.featured-post-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.featured-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,0.7) 100%
    );
    z-index: 2;
}

.featured-post-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px;
    z-index: 3;
    color: #fff;
}

.featured-post-category {
    display: inline-block;
    background: #D13138;
    color: #fff;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.featured-post-title {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 700;
    color: #fff;
    margin: 0 0 15px;
    max-width: 800px;
}

.featured-post-meta {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 15px;
}

.featured-post-date {
    font-style: italic;
}

.featured-post-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
    max-width: 700px;
}

.featured-post-button {
    display: inline-block;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.featured-post-hero:hover .featured-post-button {
    background: #fff;
    color: #D13138;
}

/* ================================
   ESTILOS DEL SIDEBAR
   ================================ */

.blog-sidebar-sticky .widget {
    background: #fff;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.blog-sidebar-sticky .widget:first-child {
    margin-top: 0;
}

.blog-sidebar-sticky .widget h3,
.blog-sidebar-sticky .widget .widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #D13138;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Widget Buscador */
.blog-sidebar-sticky .widget_search .wp-block-search {
    display: flex;
    gap: 10px;
}

.blog-sidebar-sticky .widget_search input[type="search"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.blog-sidebar-sticky .widget_search button {
    background: #D13138;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s ease;
}

.blog-sidebar-sticky .widget_search button:hover {
    background: #a02830;
}

/* Widget Popular Posts */
.blog-sidebar-sticky .widget_block ul,
.blog-sidebar-sticky .wp-block-latest-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}


.blog-sidebar-sticky .widget_block ul li:last-child,
.blog-sidebar-sticky .wp-block-latest-posts li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.blog-sidebar-sticky .wp-block-latest-posts li img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.blog-sidebar-sticky .wp-block-latest-posts__post-title {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    margin: 0 0 6px;
}

.blog-sidebar-sticky .wp-block-latest-posts__post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-sidebar-sticky .wp-block-latest-posts__post-title a:hover {
    color: #D13138;
}

.blog-sidebar-sticky .wp-block-latest-posts__post-date {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

/* Widget Categorías */
.blog-sidebar-sticky .wp-block-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar-sticky .wp-block-categories-list li {
    margin-bottom: 12px;
}

.blog-sidebar-sticky .wp-block-categories-list a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.blog-sidebar-sticky .wp-block-categories-list a:hover {
    color: #D13138;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 1024px) {
    .blog-main-wrapper {
        grid-template-columns: 65% 35%;
        gap: 40px;
    }
    
    .featured-post-hero {
        height: 400px;
    }
    
    .featured-post-content {
        padding: 35px;
    }
    
    .featured-post-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .blog-hero-title {
        font-size: 42px;
    }
    
    .blog-hero-subtitle {
        font-size: 16px;
    }
    
    .blog-main-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .blog-sidebar-sticky {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
    
    .featured-post-hero {
        height: 350px;
    }
    
    .featured-post-content {
        padding: 25px;
    }
    
    .featured-post-title {
        font-size: 26px;
    }
    
    .featured-post-excerpt {
        display: none;
    }
}

@media (max-width: 480px) {
    .blog-hero-section {
        padding: 40px 20px;
    }
    
    .blog-hero-title {
        font-size: 32px;
    }
    
    .blog-hero-subtitle {
        font-size: 14px;
    }
    
    .featured-post-hero {
        height: 300px;
        margin-bottom: 40px;
    }
    
    .featured-post-title {
        font-size: 22px;
    }
    
    .featured-post-category {
        font-size: 10px;
        padding: 5px 12px;
    }
    
    .featured-post-button {
        padding: 10px 20px;
        font-size: 12px;
    }
}

