/* css/blog.css - Estilos específicos de blog.html */
:root {
    --primary-green: #013836;
    --primary-brown: #8d4c2c;
    --light-brown: #a38570;
    --dark-text: #013836;
    --light-text: #fff;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-text);
    background-color: #f8f9fa;
    padding-top: 70px;
}

/* HEADER DEL BLOG */
.blog-header {
    padding: 80px 0 40px;
    text-align: center;
    background-color: white;
}

.blog-header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.blog-header p {
    font-size: 1.2rem;
    color: var(--primary-green);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 40px;
    font-weight: 500;
}

/* TARJETAS DE NAVEGACIÓN */
.nav-card {
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(1, 56, 54, 0.1);
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(1, 56, 54, 0.15);
}

.nav-card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nav-card:hover .nav-card-bg {
    transform: scale(1.05);
}

.nav-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: transparent;
}

.nav-card-content {
    color: white;
    text-align: center;
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.3;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    width: 90%;
}

/* ARTÍCULOS DEL BLOG */
.blog-article {
    margin-bottom: 100px;
    position: relative;
}

.article-image {
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background-color: #f5f5f5;
    box-shadow: 0 5px 20px rgba(1, 56, 54, 0.08);
    margin-right: 40px;
}

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

.blog-article:hover .article-image img {
    transform: scale(1.03);
}

.article-image-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 700;
    text-align: center;
    font-size: 1.8rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    width: 80%;
    line-height: 1.2;
}

.article-content {
    padding: 40px 50px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(1, 56, 54, 0.08);
    height: 100%;
}

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

.article-subtitle {
    font-size: 1.1rem;
    color: var(--primary-brown);
    font-weight: 700;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 3px solid var(--primary-brown);
}

.article-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--primary-green);
    margin-bottom: 20px;
    text-align: justify;
}

.article-text p {
    margin-bottom: 15px;
}

.article-text h4 {
    color: var(--primary-green);
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.article-text .extra-content {
    display: none;
}

.btn-read-more {
    background-color: var(--primary-brown);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-brown);
    cursor: pointer;
}

.btn-read-more:hover {
    background-color: transparent;
    color: var(--primary-brown);
}

.btn-read-more.active {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-read-more.active:hover {
    background-color: transparent;
    color: var(--primary-green);
}

/* FOOTER PARA BLOG */
footer.footer-section {
    background-color: #013836;
    color: white;
    padding: 30px 20px;
    text-align: center;
    margin-top: 50px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #8d4c2c;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .blog-header {
        padding: 40px 0;
    }
    
    .blog-header h1 {
        font-size: 2.5rem;
    }
    
    .blog-header p {
        font-size: 1.1rem;
    }
    
    .article-image {
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .article-content {
        padding: 30px 35px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-header p {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .nav-card-content {
        font-size: 1.1rem;
    }
    
    .article-content {
        padding: 25px 30px;
    }
    
    .article-title {
        font-size: 1.6rem;
    }
    
    .article-text {
        font-size: 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    footer.footer-section {
        padding: 25px 15px;
    }
}