/* ═══════════════════════════════════════════════════════════════
   ARTÍCULO - DISEÑO PROFESIONAL Y LIMPIO
   ═══════════════════════════════════════════════════════════════ */

.article-page {
    padding-top: 90px;
    background: #fff;
}

.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 60px;
}

.article-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
}

/* ===== CONTENIDO PRINCIPAL ===== */
.article-main-content {
    max-width: 720px;
}

/* Breadcrumb */
.article-breadcrumb {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}

.article-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.article-breadcrumb a:hover {
    color: #ff6b35;
}

.article-breadcrumb span {
    margin: 0 8px;
    color: #ccc;
}

/* Categoría Badge */
.article-category {
    display: inline-block;
    padding: 4px 12px;
    background: #ff6b35;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 3px;
    margin-bottom: 16px;
}

/* Título */
.article-main-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    color: #111;
    margin-bottom: 24px;
}

/* Autor y Meta */
.article-author-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    margin-bottom: 32px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.author-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-box img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 14px;
    font-weight: 700;
    color: #111;
}

.article-date-time {
    font-size: 13px;
    color: #666;
}

.article-date-time .separator {
    margin: 0 8px;
}

/* Imagen Destacada */
.article-featured-img {
    margin: 0 0 32px 0;
}

.article-featured-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Contenido del Artículo */
.article-body {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 40px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 16px 0;
    color: #111;
}

.article-body h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 32px 0 12px 0;
    color: #111;
}

.article-body img {
    max-width: 100%;
    height: auto;
    margin: 24px 0;
    border-radius: 4px;
}

.article-body a {
    color: #ff6b35;
    text-decoration: underline;
}

.article-body a:hover {
    color: #e55a25;
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 8px;
}

/* Compartir */
.article-share-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 48px;
}

.article-share-box span {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

/* Comentarios */
.article-comments-section {
    margin: 48px 0;
    padding-top: 48px;
    border-top: 2px solid #eee;
}

.comments-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #111;
}

.comments-fallback {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 4px;
    border-left: 4px solid #ff6b35;
}

.comments-fallback p {
    margin-bottom: 16px;
    color: #666;
}

.comments-fallback ul {
    margin: 16px 0;
    padding-left: 24px;
}

.comments-fallback li {
    margin-bottom: 8px;
    color: #666;
}

.btn-comment {
    display: inline-block;
    padding: 10px 20px;
    background: #ff6b35;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 16px;
    transition: background 0.3s ease;
}

.btn-comment:hover {
    background: #e55a25;
    color: #fff;
}

/* Relacionados */
.related-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #eee;
}

.related-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #111;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-item:hover {
    border-color: #ff6b35;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.related-img {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

.related-item:hover .related-img img {
    transform: scale(1.05);
}

.related-info {
    padding: 16px;
}

.related-cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ff6b35;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.related-headline {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.related-headline a {
    color: #111;
    text-decoration: none;
}

.related-item:hover .related-headline a {
    color: #ff6b35;
}

.related-info time {
    font-size: 12px;
    color: #999;
}

/* ===== SIDEBAR ===== */
.article-sidebar-wrapper {
    position: sticky;
    top: 110px;
    align-self: start;
}

.sidebar-ad {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.sidebar-ad:hover {
    border-color: #ff6b35;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.ad-text {
    display: block;
    font-size: 9px;
    color: #999;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 1px;
    font-weight: 600;
}

.sidebar-ad img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.sidebar-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 24px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #111;
}

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

.sidebar-links li {
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-links li:last-child {
    border-bottom: none;
}

.sidebar-links a {
    display: block;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sidebar-links a:hover {
    color: #ff6b35;
    padding-left: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .article-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar-wrapper {
        position: static;
        max-width: 600px;
        margin: 40px auto 0;
    }
}

@media (max-width: 768px) {
    .article-container {
        padding: 24px 20px;
    }
    
    .article-main-title {
        font-size: 28px;
    }
    
    .article-author-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .article-body {
        font-size: 16px;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .article-main-title {
        font-size: 24px;
    }
    
    .article-container {
        padding: 20px 16px;
    }
}