/* ===== BLOG — Grupo Médico MJB ===== */

/* --- Listado de artículos --- */
.blog-hero {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: #fff;
    padding: 72px 0 52px;
    text-align: center;
}
.blog-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    margin-bottom: 12px;
}
.blog-hero p {
    font-size: 1.05rem;
    opacity: 0.9;
    max-width: 520px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 40px;
}
.blog-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
.blog-card-icon {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    padding: 28px;
    text-align: center;
}
.blog-card-icon i {
    font-size: 2.4rem;
    color: #0891b2;
}
.blog-card-body {
    padding: 20px 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-tag {
    display: inline-block;
    background: #e0f2fe;
    color: #0891b2;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.blog-card h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.4;
}
.blog-card p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 16px;
}
.blog-card-meta {
    font-size: 0.78rem;
    color: #94a3b8;
    display: flex;
    gap: 14px;
    align-items: center;
}
.blog-card-meta i { font-size: 0.75rem; }
.blog-read-more {
    margin-top: 14px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0891b2;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- Artículo individual --- */
.article-hero {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: #fff;
    padding: 60px 0 48px;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 20px;
    transition: color 0.2s;
}
.back-link:hover { color: #fff; }
.article-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.article-hero h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.4rem);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 18px;
    max-width: 760px;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.85rem;
    opacity: 0.88;
}
.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Cuerpo del artículo */
.article-main {
    padding: 56px 0 72px;
    background: #f8fafc;
}
.article-body {
    background: #fff;
    border-radius: 16px;
    padding: 44px 48px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    max-width: 820px;
    margin: 0 auto;
}
.article-body h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 36px 0 14px;
    padding-top: 8px;
    border-top: 2px solid #e0f2fe;
}
.article-body h2:first-of-type { margin-top: 28px; border-top: none; }
.article-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0891b2;
    margin: 24px 0 10px;
}
.article-body p {
    font-size: 0.97rem;
    color: #374151;
    line-height: 1.8;
    margin-bottom: 16px;
}
.article-body ul, .article-body ol {
    margin: 0 0 18px 20px;
    color: #374151;
}
.article-body li {
    font-size: 0.97rem;
    line-height: 1.7;
    margin-bottom: 6px;
    padding-left: 4px;
}
.article-body strong { color: #1e293b; }

/* Bloque respuesta rápida (40-60 words) */
.answer-block {
    background: #ecfeff;
    border-left: 4px solid #0891b2;
    border-radius: 0 10px 10px 0;
    padding: 18px 22px;
    margin-bottom: 32px;
    font-size: 0.97rem;
    color: #1e293b;
    line-height: 1.7;
}
.answer-block strong {
    color: #0891b2;
    display: block;
    margin-bottom: 6px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Bloque señal de alerta */
.alert-block {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    border-radius: 0 10px 10px 0;
    padding: 16px 20px;
    margin: 20px 0;
}
.alert-block .alert-title {
    font-weight: 700;
    color: #dc2626;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.alert-block ul { margin: 0 0 0 16px; }
.alert-block li { color: #7f1d1d; font-size: 0.93rem; }

/* Bloque info */
.info-block {
    background: #f0fdf4;
    border-left: 4px solid #16a34a;
    border-radius: 0 10px 10px 0;
    padding: 16px 20px;
    margin: 20px 0;
}
.info-block .info-title {
    font-weight: 700;
    color: #15803d;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.info-block ul { margin: 0 0 0 16px; }
.info-block li { color: #166534; font-size: 0.93rem; }

/* FAQ en artículo */
.article-faq { margin-top: 40px; }
.article-faq h2 { border-top: 2px solid #e0f2fe; }
.faq-item-article {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}
.faq-item-article summary {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 0.93rem;
    cursor: pointer;
    color: #1e293b;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}
.faq-item-article summary::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #0891b2;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.faq-item-article[open] summary::after { transform: rotate(180deg); }
.faq-item-article[open] summary { background: #e0f2fe; }
.faq-item-article p {
    padding: 14px 20px;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.7;
    margin: 0;
    border-top: 1px solid #e2e8f0;
}

/* CTA dentro del artículo */
.article-cta-box {
    background: linear-gradient(135deg, #0891b2, #0e7490);
    border-radius: 14px;
    padding: 32px 28px;
    text-align: center;
    margin-top: 44px;
    color: #fff;
}
.article-cta-box h3 {
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 8px;
    color: #fff;
}
.article-cta-box p {
    opacity: 0.9;
    margin-bottom: 20px;
    color: #fff;
}
.article-cta-box .cta-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-cta-white {
    background: #fff;
    color: #0891b2;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}
.btn-cta-white:hover { transform: translateY(-2px); }
.btn-cta-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s;
}
.btn-cta-outline:hover { border-color: #fff; }

/* Autor al final */
.article-author-box {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 36px;
    border: 1px solid #e2e8f0;
}
.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0891b2, #0e7490);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 900;
    flex-shrink: 0;
}
.author-info strong {
    display: block;
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 3px;
}
.author-info span {
    font-size: 0.82rem;
    color: #64748b;
}

@media (max-width: 640px) {
    .article-body { padding: 28px 20px; }
    .article-hero { padding: 44px 0 36px; }
    .blog-grid { grid-template-columns: 1fr; }
}
