/* PREMIUM ARTICLE THEME */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;1,300&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --text-primary: #2d2d2d;
    --text-secondary: #555;
    --accent: #B07D62;
    /* Terracota */
    --accent-light: #f4e9e4;
    --bg-page: #f9f9f9;
}

/* Header override for articles */
.header {
    position: relative !important;
    /* Force relative positioning */
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1.8;
}

/* Article Container */
.container-articulo {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
}

/* Typography */
.container-articulo h1 {
    font-family: 'Manrope', sans-serif;
    /* Consistent with Landing */
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    text-align: center;
}

.container-articulo h2 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.8rem;
    color: var(--accent);
    margin-top: 3rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-light);
    padding-bottom: 0.5rem;
}

.container-articulo h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    color: #444;
}

.container-articulo p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-family: 'Merriweather', serif;
    /* Serif for better reading flow */
}

/* Quote */
.cita {
    background: var(--accent-light);
    padding: 2rem;
    border-left: 5px solid var(--accent);
    margin: 2rem 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    font-size: 1.2rem;
    color: #4a3b32;
}

.cita strong {
    color: var(--accent);
}

/* Images */
.post-img,
.article-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    display: block;
}

/* Author Section */
.profile-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.profile-img img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

author {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
}

time {
    display: block;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Navigation / Index */
.index-article {
    background: #fff;
    border: 1px solid #eee;
    padding: 2rem;
    border-radius: 12px;
    list-style: none;
}

.index-article li {
    margin-bottom: 0.8rem;
}

.index-article a {
    text-decoration: none;
    color: var(--accent);
    font-weight: 600;
    transition: color 0.3s;
}

.index-article a:hover {
    color: #333;
}

/* Social Icons */
.social ul {
    display: flex;
    justify-content: center;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.social a {
    color: #999;
    font-size: 1.5rem;
    transition: color 0.3s;
}

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

/* Inline WhatsApp CTA */
.whatsapp-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.whatsapp-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-cta img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    filter: brightness(0) invert(1);
    margin-bottom: 0 !important;
    box-shadow: none !important;
}

/* Recommendation & Related - Constrained Design */
.recommended-article,
.relacionados {
    background: #f8f8f8;
    border: 1px solid #eee;
    padding: 2rem;
    border-radius: 16px;
    margin-top: 4rem;
    overflow: hidden;
}

.recommended-article {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.recommended-article img {
    width: 250px;
    /* Constrained Size */
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0;
    /* Remove default margin */
    flex-shrink: 0;
}

.recommended-content {
    flex: 1;
}

.recommended-content h3 {
    margin-top: 0;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #222;
}

.relacionados ul {
    list-style: none;
    padding: 0;
}

.relacionados li {
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

/* Responsive Recommendation */
@media (max-width: 768px) {
    .recommended-article {
        flex-direction: column;
        text-align: center;
    }

    .recommended-article img {
        width: 100%;
        height: auto;
        max-height: 250px;
    }
}

/* Footer Fix for Articles */
footer {
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container-articulo {
        padding: 1.5rem;
        margin: 1rem 1rem;
        /* Reduce margin */
        border-radius: 12px;
    }

    .container-articulo h1 {
        font-size: 1.8rem;
        /* Smaller title */
    }

    .container-articulo h2 {
        font-size: 1.4rem;
        margin-top: 2rem;
    }

    .container-articulo .subtitle {
        /* If used */
        font-size: 1.1rem;
    }

    .recommended-article {
        padding: 1.5rem;
    }

    /* Ensure images don't overflow */
    .post-img,
    .article-img,
    .recommended-article img {
        max-width: 100%;
        height: auto;
    }

    /* Better profile layout on small screens */
    .profile-container {
        flex-direction: column;
        text-align: center;
    }

    .cita {
        padding: 1.5rem;
        margin: 1.5rem 0;
        font-size: 1.1rem;
    }
}