/* ========================================
   BLOG TEMPLATE STYLES
   ======================================== */

/* Banner de la página de blog */
.blog-banner
{
    padding: 5rem 0 3rem;
    background: linear-gradient(135deg, #0e2723 0%, #1a4038 100%);
    color: #fff;
    margin-top: -80px;
    padding-top: 8rem;
}

.blog-banner-title
{
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #fff;
}

.blog-banner-content
{
    max-width: 800px;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Sección de posts */
.blog-posts-section
{
    padding: 4rem 0;
}

/* Grid de posts usando flexbox */
.blog-grid
{
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Tarjeta de post individual */
.blog-card
{
    flex: 1 1 calc(33.333% - 2rem);
    min-width: 280px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.blog-card-link
{
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-image-wrapper
{
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    background-color: #f0f0f0;
}

.blog-card-image
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image
{
    transform: scale(1.05);
}

.blog-card-placeholder
{
    background-color: #e9ecef;
}

.blog-card-content
{
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta
{
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.blog-card-date
{
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-card-category
{
    background-color: #0e2723;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.blog-card-title
{
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: #24272c;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title
{
    color: #0e2723;
}

.blog-card-excerpt
{
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.blog-card-readmore
{
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0e2723;
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.3s ease;
}

.blog-card:hover .blog-card-readmore
{
    gap: 0.75rem;
}

.blog-card-readmore svg
{
    width: 20px;
    height: 20px;
}

/* Sin posts */
.blog-no-posts
{
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    font-size: 1.1rem;
}

/* Paginación */
.blog-pagination
{
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.blog-pagination .page-numbers
{
    display: inline-flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-pagination .page-numbers li
{
    display: inline-block;
}

.blog-pagination a,
.blog-pagination .current
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: #24272c;
    background-color: #f5f5f5;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-pagination a:hover
{
    background-color: #0e2723;
    color: #fff;
}

.blog-pagination .current
{
    background-color: #0e2723;
    color: #fff;
}

/* ========================================
   SINGLE POST TEMPLATE STYLES
   ======================================== */

/* Hero del post individual */
.single-post-hero
{
    position: relative;
    height: 60vh;
    min-height: 400px;
    max-height: 700px;
    overflow: hidden;
    margin-top: -80px;
}

.single-post-hero-image
{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post-hero-overlay
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(14,39,35,0.8) 100%);
}

.single-post-hero-content
{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 0;
}

.single-post-title
{
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.single-post-title-alt
{
    font-size: 3rem;
    font-weight: 700;
    color: #24272c;
    line-height: 1.2;
    margin-bottom: 2rem;
}

/* Contenido del post */
.single-post-content-wrapper
{
    padding: 4rem 0;
}

.single-post-layout
{
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.single-post-main
{
    flex: 1 1 70%;
    min-width: 0;
}

.single-post-sidebar
{
    flex: 0 0 280px;
}

.single-post-sidebar-sticky
{
    position: sticky;
    top: 100px;
}

/* Meta información */
.single-post-meta
{
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    color: #666;
    font-size: 0.9rem;
}

.single-post-meta > *
{
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.single-post-meta svg
{
    flex-shrink: 0;
}

.single-post-category
{
    background-color: #0e2723;
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Contenido del post */
.single-post-content
{
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.single-post-content h2
{
    font-size: 2rem;
    font-weight: 600;
    margin: 2.5rem 0 1.5rem;
    color: #24272c;
}

.single-post-content h3
{
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #24272c;
}

.single-post-content p
{
    margin-bottom: 1.5rem;
}

.single-post-content img
{
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 2rem 0;
}

.single-post-content ul,
.single-post-content ol
{
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.single-post-content li
{
    margin-bottom: 0.75rem;
}

.single-post-content a
{
    color: #0e2723;
    text-decoration: underline;
}

.single-post-content a:hover
{
    color: #1a4038;
}

.single-post-content blockquote
{
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background-color: #f8f9fa;
    border-left: 4px solid #0e2723;
    font-style: italic;
    color: #555;
}

/* Tags */
.single-post-tags
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.single-post-tags-label
{
    font-weight: 600;
    color: #666;
}

.single-post-tag
{
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.single-post-tag:hover
{
    background-color: #0e2723;
    color: #fff;
}

/* Sidebar */
.single-post-sidebar-title
{
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #24272c;
}

/* Compartir en redes sociales */
.single-post-share
{
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
}

.single-post-share-buttons
{
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.single-post-share-button
{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.single-post-share-button:hover
{
    transform: translateX(5px);
    opacity: 0.9;
}

.single-post-share-button.facebook
{
    background-color: #1877f2;
}

.single-post-share-button.twitter
{
    background-color: #1da1f2;
}

.single-post-share-button.linkedin
{
    background-color: #0077b5;
}

.single-post-share-button.whatsapp
{
    background-color: #25d366;
}

/* Navegación entre posts */
.single-post-navigation
{
    background-color: #f8f9fa;
    padding: 3rem 0;
    margin-top: 4rem;
}

.single-post-navigation-wrapper
{
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.single-post-nav-link
{
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background-color: #fff;
    border-radius: 15px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.single-post-nav-link:hover
{
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.single-post-nav-link.prev
{
    text-align: left;
}

.single-post-nav-link.next
{
    text-align: right;
}

.single-post-nav-label
{
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.single-post-nav-title
{
    font-size: 1.1rem;
    color: #0e2723;
    font-weight: 600;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 992px)
{
    .blog-card
    {
        flex: 1 1 calc(50% - 2rem);
    }
    
    .single-post-layout
    {
        flex-direction: column;
    }
    
    .single-post-sidebar
    {
        flex: 1 1 100%;
        max-width: 600px;
    }
    
    .single-post-sidebar-sticky
    {
        position: static;
    }
}

@media (max-width: 768px)
{
    .blog-banner
    {
        padding: 4rem 0 2rem;
        padding-top: 6rem;
    }
    
    .blog-banner-title
    {
        font-size: 2.5rem;
    }
    
    .blog-card
    {
        flex: 1 1 100%;
    }
    
    .blog-grid
    {
        gap: 1.5rem;
    }
    
    .single-post-hero
    {
        height: 50vh;
        min-height: 300px;
    }
    
    .single-post-title
    {
        font-size: 2rem;
    }
    
    .single-post-title-alt
    {
        font-size: 2rem;
    }
    
    .single-post-hero-content
    {
        padding: 2rem 0;
    }
    
    .single-post-content
    {
        font-size: 1rem;
    }
    
    .single-post-navigation-wrapper
    {
        flex-direction: column;
    }
    
    .single-post-nav-link
    {
        text-align: left !important;
    }
    
    .single-post-share-buttons
    {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .single-post-share-button
    {
        flex: 1 1 calc(50% - 0.375rem);
        min-width: 0;
    }
}

@media (max-width: 480px)
{
    .blog-banner-title
    {
        font-size: 2rem;
    }
    
    .blog-card-title
    {
        font-size: 1.25rem;
    }
    
    .single-post-title
    {
        font-size: 1.75rem;
    }
    
    .single-post-title-alt
    {
        font-size: 1.75rem;
    }
}

