/* =========================================
   ESTILOS DE ARTÍCULO INDIVIDUAL
   ========================================= */

.container {
    padding-top: 20px;
}

/* =========================================
   BREADCRUMBS
   ========================================= */

.breadcrumbs {
    font-size: 0.8rem;
    color: #444;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 600;
}

.breadcrumbs a {
    text-decoration: none;
    color: var(--color-primario);
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #a00d43;
}

/* =========================================
   TÍTULO Y META
   ========================================= */

.article-title {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: #000;
}

.article-meta {
    padding-bottom: 20px;
    color: #555;
    font-size: 0.9rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.meta-separator {
    color: #ccc;
}

.meta-views {
    font-weight: 700;
    color: var(--color-primario);
}

.meta-category {
    background: #f0f0f0;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* =========================================
   COMPARTIR
   ========================================= */

.share-container {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.share-wa {
    background-color: #25D366;
}

.share-wa:hover {
    background-color: #20bd5a;
}

.share-fb {
    background-color: #1877F2;
}

.share-fb:hover {
    background-color: #1565c0;
}

.share-tw {
    background-color: #1DA1F2;
}

.share-tw:hover {
    background-color: #1a8cd8;
}

.share-copy {
    background-color: #333;
}

.share-copy:hover {
    background-color: #000;
}

/* =========================================
   PUBLICIDAD
   ========================================= */

.ad-space {
    margin: 30px 0;
    min-height: 100px;
    background: #f9f9f9;
    border: 1px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.ad-label {
    font-size: 10px;
    color: #999;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   IMAGEN PRINCIPAL
   ========================================= */

.article-image-wrapper {
    margin: 25px 0;
    padding: 0;
}

.article-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* =========================================
   CONTENIDO DEL ARTÍCULO
   ========================================= */

.article-content {
    font-size: 1.15rem;
    line-height: 1.75;
    color: #222;
    overflow-wrap: break-word;
}

.article-content p {
    margin-bottom: 1.5em;
}

.article-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 2em 0 1em 0;
    color: #000;
}

.article-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 1.5em 0 0.8em 0;
    color: #111;
}

.article-content a {
    color: var(--color-primario);
    text-decoration: underline;
}

.article-content a:hover {
    color: #a00d43;
}

.article-content ul,
.article-content ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.article-content li {
    margin-bottom: 0.8em;
}

.article-content blockquote {
    border-left: 4px solid var(--color-primario);
    padding-left: 20px;
    margin: 2em 0;
    font-style: italic;
    color: #555;
    background: #f9f9f9;
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
}

/* Imágenes dentro del contenido */
.article-content img,
.article-content figure {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 25px auto;
    border-radius: 8px;
}

.article-content figure {
    text-align: center;
}

.article-content figcaption {
    font-size: 0.85rem;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

/* Ocultar fuente vieja del contenido */
.article-content .fuente-original {
    display: none !important;
}

/* =========================================
   CAJA DE FUENTE
   ========================================= */

.source-box {
    margin-top: 35px;
    padding: 18px;
    background: #f9f9f9;
    border-left: 4px solid var(--color-primario);
    font-size: 0.9rem;
    color: #555;
    border-radius: 0 8px 8px 0;
    word-break: break-all;
}

.source-box strong {
    color: #000;
}

.source-box a {
    color: var(--color-primario);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s;
}

.source-box a:hover {
    color: #a00d43;
    text-decoration: underline;
}

/* =========================================
   TAGS
   ========================================= */

.tags-section {
    margin: 35px 0;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.tags-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
    display: block;
    margin-bottom: 12px;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill {
    background: #f4f4f4;
    color: #333;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}

.tag-pill:hover {
    background: var(--color-primario);
    color: white;
    border-color: var(--color-primario);
    transform: translateY(-2px);
}

/* =========================================
   SLIDERS DE CONTENIDO RELACIONADO
   ========================================= */

.related-section {
    margin-top: 45px;
    border-top: 2px solid #f0f0f0;
    padding-top: 25px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 18px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    color: #000;
}

.title-accent {
    background: var(--color-primario);
    width: 4px;
    height: 22px;
    display: inline-block;
    margin-right: 12px;
}

.slider-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f0f0f0;
}

.slider-container::-webkit-scrollbar {
    height: 8px;
}

.slider-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.slider-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.slider-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.slider-card {
    flex: 0 0 200px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.slider-card:hover {
    transform: translateY(-5px);
}

.slider-img-box {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    margin-bottom: 10px;
}

.slider-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.slider-card:hover .slider-img-box img {
    transform: scale(1.05);
}

.slider-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 768px) {
    .article-title {
        font-size: 1.6rem;
    }
    
    .article-content {
        font-size: 1.05rem;
    }
    
    .article-meta {
        font-size: 0.8rem;
    }
    
    .slider-card {
        flex: 0 0 160px;
    }
    
    .slider-img-box {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.4rem;
    }
    
    .share-container {
        justify-content: center;
    }
    
    .btn-share {
        font-size: 0.75rem;
        padding: 8px 14px;
    }
}