/* ============================================================
   Página: Detalle de Artículo (Blog)
   Colores institucionales: #00C1D7, #005481, #FFC700, #FFFFFF
   ============================================================ */

body {
    background-color: #F8F9FA;
}

/* Imagen principal */
.art-hero {
    width: 100%;
    height: 380px;
    background-size: cover;
    background-position: center;
    background-color: #005481;
    border-radius: 0 0 18px 18px;
}

@media (max-width: 767.98px) {
    .art-hero {
        height: 220px;
    }
}

/* Contenedor */
.art-wrapper {
    max-width: 1160px;
    margin: 2rem auto 3rem;
    padding: 0 15px;
}

/* Sidebar de artículos relacionados */
.art-sidebar-title {
    color: #005481;
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 1.1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #00C1D7;
}

.art-related-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.art-related-item {
    display: flex;
    gap: 0.85rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.art-related-item:hover {
    transform: translateX(3px);
}

.art-related-item img {
    width: 96px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    flex: 0 0 auto;
}

.art-related-item .art-related-title {
    color: #1f2937;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 0.35rem;
}

.art-related-item:hover .art-related-title {
    color: #005481;
}

.art-related-item .art-related-time {
    color: #64748b;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.art-sidebar-sticky {
    position: sticky;
    top: 90px;
}

/* Contenido principal */
.art-main {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eef2f6;
    box-shadow: 0 8px 24px rgba(0, 84, 129, 0.06);
    padding: 2rem 2.25rem;
}

.art-readtime {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
}

.art-title {
    color: #005481;
    font-weight: 800;
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.art-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.art-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(0, 193, 215, 0.12);
    color: #005481;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.25rem 0.8rem;
    border-radius: 30px;
    text-decoration: none;
}

.art-tag:hover {
    background: #005481;
    color: #fff;
}

/* Compartir en redes */
.art-share {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
    padding: 0.85rem 0;
    border-top: 1px solid #eef2f6;
    border-bottom: 1px solid #eef2f6;
    margin-bottom: 1.5rem;
}

.art-share .art-share-label {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
}

.art-share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: transparent;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.art-share-btn:hover {
    color: #fff;
}

.art-share-btn.sh-x:hover { background: #000000; }
.art-share-btn.sh-fb:hover { background: #1877F2; }
.art-share-btn.sh-in:hover { background: #0A66C2; }
.art-share-btn.sh-wa:hover { background: #25D366; }

/* Cuerpo del artículo */
.art-content {
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.85;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.art-content p {
    margin-bottom: 1.1rem;
}

.art-content strong {
    color: #005481;
}

.art-content h2,
.art-content h3,
.art-content h4 {
    color: #005481;
    font-weight: 700;
    line-height: 1.3;
    margin: 1.7rem 0 0.75rem;
}

.art-content h2 {
    font-size: 1.5rem;
}

.art-content h3 {
    font-size: 1.3rem;
}

.art-content h4 {
    font-size: 1.12rem;
}

.art-content ul,
.art-content ol {
    margin: 0 0 1.1rem;
    padding-left: 1.4rem;
}

.art-content li {
    margin-bottom: 0.4rem;
}

.art-content .ql-size-small {
    font-size: 0.85em;
}

.art-content .ql-size-large {
    font-size: 1.35em;
}

.art-content .ql-size-huge {
    font-size: 1.8em;
}

.art-content blockquote {
    border-left: 4px solid #00C1D7;
    background: #f0fbfd;
    color: #0369a1;
    padding: 0.85rem 1.1rem;
    margin: 0 0 1.1rem;
    border-radius: 0 8px 8px 0;
}

.art-content a {
    color: #005481;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.art-content a:hover {
    color: #00C1D7;
}

.art-content u {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.art-content s,
.art-content del {
    color: #94a3b8;
}

.art-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}

.art-empty i {
    font-size: 3rem;
    color: #cbd5e1;
    display: block;
    margin-bottom: 0.75rem;
}

.art-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: #005481;
    font-weight: 700;
    text-decoration: none;
}

.art-back:hover {
    color: #00C1D7;
}

@media (max-width: 575.98px) {
    .art-main {
        padding: 1.5rem 1.25rem;
    }

    .art-title {
        font-size: 1.5rem;
    }

    .art-share {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}
