/* Estilos adicionales para artículos relacionados y mejoras */
/* Microsoft 365 Copilot inspired styles */

/* Efectos de glow para elementos interactivos */
.copilot-glow {
    box-shadow: 0 0 20/* Notificaciones con colores de Microsoft 365 Copilot */
.notification {
    font-weight: 500;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.notification.error {
    background: #d83b01 !important;
    box-shadow: 0 4px 20px rgba(216, 59, 1, 0.3);
}

.notification.success {
    background: var(--copilot-green) !important;
    box-shadow: 0 4px 20px rgba(16, 124, 16, 0.3);
}

.notification.warning {
    background: var(--accent-orange) !important;
    box-shadow: 0 4px 20px rgba(255, 140, 0, 0.3);
}91, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.copilot-glow:hover {
    box-shadow: 0 0 30px rgba(139, 95, 191, 0.5);
    transform: translateY(-2px);
}

/* Gradiente sutil de fondo */
.copilot-bg {
    background: linear-gradient(135deg, rgba(139, 95, 191, 0.05) 0%, rgba(0, 120, 212, 0.05) 100%);
}

/* Artículos relacionados */
.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.related-articles h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.related-article {
    background: var(--background-secondary);
    border-radius: var(--border-radius);
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border-color);
}

.related-article:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.related-article-image {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.related-article h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.related-article p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Mensaje de sin resultados */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.no-results p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Mejoras para el modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Botones de compartir (para futuras implementaciones) */
.share-buttons {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    justify-content: center;
}

.share-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.facebook {
    background: #4267b2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Modo oscuro con colores de Copilot */
.dark-mode {
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-light: #94a3b8;
    --background: #0f172a;
    --background-secondary: #1e293b;
    --background-dark: #020617;
    --border-color: #334155;
    --background-card: #1e293b;
}

.dark-mode .header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.dark-mode .article-card,
.dark-mode .modal-content,
.dark-mode .contact-link,
.dark-mode .search-bar input {
    background: var(--background-card);
    color: var(--text-primary);
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.dark-mode .tag-filter {
    background: var(--background-secondary);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
}

.dark-mode .article-card:hover {
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
}

/* Toggle para modo oscuro */
.dark-mode-toggle {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow);
}

.dark-mode-toggle:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Notificaciones con colores de Copilot */
.notification {
    font-weight: 500;
    border-radius: var(--border-radius);
}

.notification.error {
    background: #ef4444 !important;
}

.notification.success {
    background: var(--copilot-green) !important;
    box-shadow: 0 4px 20px rgba(16, 124, 16, 0.3);
}

.notification.warning {
    background: var(--accent-orange) !important;
}

/* Scroll to top button con estilo Microsoft 365 Copilot */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(139, 95, 191, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

/* Mejoras de accesibilidad */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles para mejor accesibilidad */
.nav-link:focus,
.tag-filter:focus,
.cta-button:focus,
.load-more-btn:focus,
.contact-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .hamburger,
    .search-bar,
    .filter-tags,
    .load-more-container,
    .contact-section,
    .footer,
    .modal {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .articles-section {
        padding: 1rem 0;
    }
    
    .article-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}

/* Animaciones de carga */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Mejoras para SEO y rendimiento */
.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Estados de hover mejorados con efectos de Copilot */
.article-card:hover .article-title {
    color: var(--primary-color);
}

.article-card:hover .article-image {
    transform: scale(1.05);
    box-shadow: inset 0 2px 15px rgba(139, 92, 246, 0.3);
}

.article-image {
    transition: var(--transition);
    overflow: hidden;
}

/* Efectos de glow para elementos interactivos */
.nav-link:hover,
.cta-button:hover,
.contact-link:hover {
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}

.article-card:hover {
    box-shadow: 0 8px 40px rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Efectos especiales para elementos activos */
.tag-filter.active {
    background: var(--gradient-alt);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    border-color: transparent;
}

.tag-filter:hover {
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.2);
    border-color: var(--primary-color);
}

/* Breadcrumbs (para futuras implementaciones) */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Estilos específicos para el diseño de lista vertical */
.article-card {
    border-left: 4px solid transparent;
}

.article-card:hover {
    border-left-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(139, 95, 191, 0.02) 0%, rgba(0, 120, 212, 0.02) 100%);
}

/* Mejora en la meta información para lista */
.article-meta span {
    background: var(--background-secondary);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
}

/* Separador visual entre artículos */
.article-card:not(:last-child) {
    position: relative;
}

.article-card:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 120px;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--border-color) 0%, transparent 100%);
}

/* Responsive para separadores */
@media (max-width: 768px) {
    .article-card:not(:last-child)::after {
        left: 0;
    }
}
