/* ========================================
   BLOG STYLES - Dida Schneider
   Inspired by Amanacer Maternidad
   ======================================== */

/* === CSS VARIABLES === */
:root {
    --terra: #C85A3A;
    --terra-dark: #A3422F;
    --cream: #FDF6F0;
    --cream-dark: #F5EDE5;
    --text: #2D2D2D;
    --text-light: #6B6B6B;
}

/* === BLOG HEADER === */
.blog-header {
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    padding: 8rem 0 4rem;
    text-align: center;
}

.blog-header h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 3.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.blog-header .blog-subtitle {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: var(--terra);
    font-weight: 400;
}

/* === BLOG GRID === */
.blog-section {
    padding: 4rem 0 6rem;
    background: var(--cream);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === ARTICLE CARDS - Amanacer Style === */
.blog-card {
    background: transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
}

.blog-card-image {
    position: relative;
    width: 100%;
    padding-top: 70%;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.2rem;
}

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

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

.blog-card-tags {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    z-index: 2;
}

.blog-tag {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    background: var(--terra);
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
}

.blog-card-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.blog-card-meta::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--terra);
}

.blog-card h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 0;
}

.blog-card h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card h2 a:hover {
    color: var(--terra);
}

/* Hidden - no longer used in Amanacer style */
.blog-card-excerpt {
    display: none;
}

.blog-card-link {
    display: none;
}

/* === ARTICLE PAGE === */
.article-header {
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    padding: 8rem 0 3rem;
}

.article-header .container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--terra);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.article-back:hover {
    color: var(--terra-dark);
    gap: 0.6rem;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.article-tags .blog-tag {
    color: var(--terra);
    background: rgba(200, 90, 58, 0.1);
}

.article-header h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-meta span {
    margin-right: 1.5rem;
}

/* === ARTICLE CONTENT === */
.article-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

.article-content p {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.article-content h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-content h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-content blockquote {
    border-left: 3px solid var(--terra);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--cream);
    border-radius: 0 8px 8px 0;
}

.article-content blockquote p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 0;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text);
    margin-bottom: 0.5rem;
    list-style: disc;
}

.article-content ol li {
    list-style: decimal;
}

.article-content .model-letter {
    background: var(--cream);
    border: 1px solid var(--cream-dark);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
}

.article-content .model-letter p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.article-content .model-letter p:last-child {
    margin-bottom: 0;
}

/* === ARTICLE FOOTER / CTA === */
.article-cta {
    max-width: 720px;
    margin: 0 auto 4rem;
    padding: 2.5rem;
    background: var(--cream);
    border-radius: 12px;
    text-align: center;
}

.article-cta p {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.article-cta a {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: var(--terra);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-cta a:hover {
    background: var(--terra-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(200, 90, 58, 0.3);
}

/* === BLOG SIDEBAR === */
.blog-sidebar {
    position: sticky;
    top: 5rem;
}

.sidebar-block {
    background: #fff;
    border-radius: 12px;
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.sidebar-block h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-categories li {
    margin-bottom: 0.5rem;
}

.sidebar-categories li::before {
    content: '\2022';
    color: var(--terra);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: 0.2em;
}

.filter-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--terra);
    text-decoration: none;
    transition: all 0.2s ease;
}

.filter-link:hover {
    color: var(--terra-dark);
    text-decoration: underline;
}

.filter-link.active {
    font-weight: 600;
    color: var(--terra-dark);
}

.sidebar-social {
    display: flex;
    gap: 1rem;
}

.sidebar-social a {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.sidebar-social a:hover {
    color: var(--terra);
}

.sidebar-bio {
    text-align: center;
}

.sidebar-bio-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.sidebar-bio p {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1.2rem;
}

.sidebar-cta {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: var(--terra);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-cta:hover {
    background: var(--terra-dark);
}

/* === SCROLL TO TOP === */
.scroll-top {
    position: fixed;
    bottom: 6rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: var(--terra);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--terra-dark);
    transform: translateY(-2px);
}

.blog-card.hidden {
    display: none;
}

/* === RESPONSIVE === */
@media (max-width: 968px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-header {
        padding: 7rem 0 3rem;
    }

    .blog-header h1 {
        font-size: 2.2rem;
    }

    .blog-header .blog-subtitle {
        font-size: 1.2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-card h2 {
        font-size: 1.3rem;
    }

    .article-header {
        padding: 7rem 0 2rem;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .article-content {
        padding: 2rem 1.5rem 4rem;
    }

    .article-content p {
        font-size: 1rem;
    }

    .article-cta {
        margin: 0 1rem 3rem;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .blog-header h1 {
        font-size: 1.8rem;
    }

    .article-header h1 {
        font-size: 1.7rem;
    }
}
