/* ===================================
   ICEID - CSS para Artículos de Noticias
   Estilos específicos para páginas de artículos
   =================================== */

/* ===== BREADCRUMB NAVIGATION ===== */
.breadcrumb-nav {
    background: linear-gradient(135deg, 
        rgba(0, 9, 43, 0.95) 0%, 
        rgba(0, 28, 64, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    padding: var(--space-4) 0;
    margin-top: 80px; /* Altura del header fijo */
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    list-style: none;
    font-size: var(--text-sm);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--cyber-blue);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.breadcrumb-item.active {
    color: var(--cyber-white);
    font-weight: 500;
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin-left: var(--space-2);
    color: rgba(0, 255, 255, 0.6);
    font-size: var(--text-lg);
}

/* ===== ARTICLE MAIN LAYOUT ===== */
.article-main {
    padding: var(--space-12) 0 var(--space-20);
    background: linear-gradient(135deg, 
        var(--dark-blue) 0%, 
        var(--darker-blue) 100%);
    color: var(--cyber-white);
    min-height: 100vh;
}

.news-article {
    max-width: 900px;
    margin: 0 auto;
}

/* ===== ARTICLE HEADER ===== */
.article-header {
    margin-bottom: var(--space-12);
    text-align: center;
}

.article-category {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    margin-bottom: var(--space-6);
}

.category-tag {
    padding: var(--space-2) var(--space-4);
    background: linear-gradient(135deg, var(--cyber-blue), var(--matrix-green));
    color: var(--dark-blue);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.article-title {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    font-weight: 800;
    line-height: 1.2;
    color: var(--cyber-blue);
    margin-bottom: var(--space-6);
    text-align: center;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.article-subtitle {
    font-size: clamp(var(--text-lg), 3vw, var(--text-xl));
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto var(--space-8);
    text-align: center;
}

.article-meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    align-items: center;
    margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
    .article-meta {
        flex-direction: row;
        justify-content: space-between;
    }
}

.author-info {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    border: 3px solid var(--secondary-gold);
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--cyber-white);
    font-size: var(--text-base);
}

.author-title {
    color: var(--cyber-blue);
    font-size: var(--text-sm);
    font-weight: 500;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.article-date {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
}

@media (min-width: 768px) {
    .article-date {
        text-align: right;
    }
}

.article-date time {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    font-weight: 500;
}

.read-time {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-xs);
}

/* ===== SOCIAL SHARE ===== */
.article-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-6);
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.08) 0%, 
        rgba(0, 255, 65, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    margin-top: var(--space-8);
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.15);
}

@media (max-width: 640px) {
    .article-share {
        flex-direction: column;
        gap: var(--space-3);
    }
}

.share-label {
    font-weight: 600;
    color: var(--cyber-white);
    font-size: var(--text-sm);
}

.share-buttons {
    display: flex;
    gap: var(--space-3);
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--text-base);
    text-decoration: none;
    transition: var(--transition-fast);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.email {
    background: var(--gray-600);
}

/* ===== ARTICLE IMAGE ===== */
.article-image {
    margin: var(--space-12) 0;
    text-align: center;
}

.article-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.article-image figcaption {
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    color: var(--gray-600);
    font-style: italic;
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== ARTICLE CONTENT ===== */
.article-content {
    font-family: var(--font-primary);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.05) 0%, 
        rgba(0, 255, 65, 0.02) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    margin: var(--space-8) 0;
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.15);
}

.lead-paragraph {
    font-size: var(--text-xl);
    font-weight: 500;
    line-height: 1.7;
    color: var(--cyber-white);
    margin-bottom: var(--space-8);
    padding: var(--space-6);
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.1) 0%, 
        rgba(0, 255, 65, 0.05) 100%);
    border-left: 4px solid var(--cyber-blue);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.article-content h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--cyber-blue);
    margin-top: var(--space-10);
    margin-bottom: var(--space-6);
    position: relative;
    padding-bottom: var(--space-3);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.article-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--cyber-blue), var(--matrix-green));
    border-radius: var(--radius-sm);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.article-content h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--matrix-green);
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
}

.article-content p {
    margin-bottom: var(--space-6);
    font-size: var(--text-base);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.article-content strong {
    color: var(--cyber-blue);
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.article-content a {
    color: var(--cyber-blue);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    transition: var(--transition-fast);
}

.article-content a:hover {
    color: var(--matrix-green);
    border-bottom-color: rgba(0, 255, 65, 0.5);
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
}

/* ===== LISTAS ===== */
.article-content ul,
.article-content ol {
    margin: var(--space-6) 0;
    padding-left: var(--space-8);
}

.article-content li {
    margin-bottom: var(--space-3);
    line-height: 1.7;
}

.article-content ul li::marker {
    color: var(--cyber-blue);
}

.article-content ol li::marker {
    color: var(--matrix-green);
    font-weight: 600;
}

/* ===== BLOCKQUOTE ===== */
.article-quote {
    margin: var(--space-10) 0;
    padding: var(--space-8);
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.08) 0%, 
        rgba(0, 255, 65, 0.05) 100%);
    backdrop-filter: blur(15px);
    border-left: 4px solid var(--matrix-green);
    border-radius: var(--radius-xl);
    position: relative;
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.2);
}

.article-quote::before {
    content: '"';
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    font-size: var(--text-4xl);
    color: var(--matrix-green);
    font-family: Georgia, serif;
    opacity: 0.4;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.article-quote p {
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--cyber-white);
    margin-bottom: var(--space-4);
    position: relative;
    z-index: 1;
}

.article-quote cite {
    display: block;
    font-style: normal;
    font-weight: 600;
    color: var(--cyber-blue);
    font-size: var(--text-base);
    text-align: right;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.article-quote cite::before {
    content: '— ';
}

/* ===== CTA SECTION ===== */
.article-cta {
    margin: var(--space-12) 0;
    padding: var(--space-10);
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.15) 0%, 
        rgba(0, 255, 65, 0.1) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 255, 255, 0.3);
    color: var(--cyber-white);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.3);
}

.article-cta h3 {
    color: var(--cyber-blue);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.article-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-6);
    font-size: var(--text-lg);
}

.article-cta .btn {
    background: linear-gradient(135deg, var(--cyber-blue), var(--matrix-green));
    border-color: var(--cyber-blue);
    color: var(--dark-blue);
    font-weight: 700;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.article-cta .btn:hover {
    background: linear-gradient(135deg, var(--matrix-green), var(--cyber-blue));
    border-color: var(--matrix-green);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.6);
}

/* ===== ARTICLE FOOTER ===== */
.article-footer {
    margin-top: var(--space-16);
    padding-top: var(--space-12);
    border-top: 2px solid var(--gray-100);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

.tag-label {
    font-weight: 600;
    color: var(--cyber-white);
    font-size: var(--text-sm);
}

.article-tag {
    padding: var(--space-2) var(--space-4);
    background: rgba(0, 255, 255, 0.1);
    color: var(--cyber-blue);
    font-size: var(--text-sm);
    text-decoration: none;
    border-radius: var(--radius-full);
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: var(--transition-fast);
}

.article-tag:hover {
    background: var(--cyber-blue);
    color: var(--dark-blue);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.article-share-footer {
    text-align: center;
}

.article-share-footer h4 {
    color: var(--cyber-blue);
    margin-bottom: var(--space-6);
    font-size: var(--text-lg);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

.article-share-footer .share-buttons {
    justify-content: center;
    gap: var(--space-4);
}

.article-share-footer .share-btn {
    width: auto;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 500;
}

.article-share-footer .share-btn span {
    margin-left: var(--space-2);
}

/* ===== RELATED ARTICLES ===== */
.related-articles {
    margin-top: var(--space-20);
    padding-top: var(--space-12);
    border-top: 2px solid var(--gray-100);
}

.related-articles h3 {
    font-size: var(--text-2xl);
    color: var(--cyber-blue);
    text-align: center;
    margin-bottom: var(--space-12);
    position: relative;
    padding-bottom: var(--space-4);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
}

.related-articles h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--cyber-blue), var(--matrix-green));
    border-radius: var(--radius-sm);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.related-card {
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.08) 0%, 
        rgba(0, 255, 65, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.15);
    transition: var(--transition-normal);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.25);
    border-color: rgba(0, 255, 255, 0.4);
}

.related-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-content {
    padding: var(--space-6);
}

.related-content h4 {
    margin-bottom: var(--space-3);
}

.related-content h4 a {
    color: var(--cyber-white);
    text-decoration: none;
    font-size: var(--text-lg);
    font-weight: 600;
    line-height: 1.3;
    transition: var(--transition-fast);
}

.related-content h4 a:hover {
    color: var(--cyber-blue);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.related-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.related-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-xs);
    font-weight: 500;
}

/* ===== READING PROGRESS INDICATOR ===== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(30, 64, 175, 0.1);
    z-index: var(--z-fixed);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-gold));
    width: 0%;
    transition: width 0.1s ease-out;
}

/* ===== PÁGINA DE ARTÍCULO BASE ===== */
body.article-page {
    background: linear-gradient(135deg, 
        #00092b 0%, 
        #001c40 100%) !important;
    color: #ffffff !important;
    min-height: 100vh !important;
}

body.article-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(0, 255, 255, 0.02) 49%, rgba(0, 255, 255, 0.02) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(0, 255, 65, 0.015) 49%, rgba(0, 255, 65, 0.015) 51%, transparent 52%);
    background-size: 40px 40px, 60px 60px;
    animation: matrix-flow 8s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes matrix-flow {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(-40px) translateX(-40px); }
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .article-main {
        padding: var(--space-8) 0 var(--space-16);
    }
    
    .news-article {
        padding: 0 var(--space-4);
    }
    
    .article-header {
        margin-bottom: var(--space-8);
    }
    
    .article-title {
        font-size: var(--text-3xl);
    }
    
    .article-subtitle {
        font-size: var(--text-lg);
    }
    
    .article-meta {
        flex-direction: column;
        text-align: center;
    }
    
    .article-date {
        text-align: center;
    }
    
    .article-share {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .article-content {
        font-size: var(--text-base);
    }
    
    .lead-paragraph {
        font-size: var(--text-lg);
        padding: var(--space-4);
    }
    
    .article-content h2 {
        font-size: var(--text-xl);
        margin-top: var(--space-8);
    }
    
    .article-content h3 {
        font-size: var(--text-lg);
    }
    
    .article-quote {
        padding: var(--space-6);
        margin: var(--space-8) 0;
    }
    
    .article-cta {
        padding: var(--space-8);
        margin: var(--space-8) 0;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .breadcrumb-nav {
        padding: var(--space-3) 0;
    }
    
    .breadcrumb {
        font-size: var(--text-xs);
    }
    
    .article-category {
        flex-direction: column;
        align-items: center;
        gap: var(--space-2);
    }
    
    .category-tag {
        font-size: 0.6rem;
        padding: var(--space-1) var(--space-3);
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
        gap: var(--space-3);
    }
    
    .author-avatar {
        width: 50px;
        height: 50px;
    }
    
    .article-content ul,
    .article-content ol {
        padding-left: var(--space-6);
    }
    
    .share-buttons {
        gap: var(--space-2);
    }
    
    .share-btn {
        width: 35px;
        height: 35px;
        font-size: var(--text-sm);
    }
    
    .article-share-footer .share-btn {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-xs);
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    /* Implementar si se requiere modo oscuro */
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .breadcrumb-nav,
    .article-share,
    .article-share-footer,
    .related-articles,
    .footer,
    .scroll-top,
    .reading-progress {
        display: none !important;
    }
    
    .article-main {
        padding: 0;
        margin: 0;
    }
    
    .news-article {
        max-width: none;
    }
    
    .article-content {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .article-title {
        font-size: 24pt;
        color: #000;
    }
    
    .article-subtitle {
        font-size: 14pt;
        color: #333;
    }
    
    .article-content h2 {
        font-size: 18pt;
        color: #000;
        page-break-after: avoid;
    }
    
    .article-content h3 {
        font-size: 16pt;
        color: #000;
        page-break-after: avoid;
    }
    
    .article-image {
        max-height: 300px;
        page-break-inside: avoid;
    }
    
    .article-quote {
        page-break-inside: avoid;
        background: #f5f5f5 !important;
    }
    
    .article-cta {
        page-break-inside: avoid;
        background: #f0f0f0 !important;
        color: #000 !important;
    }
}