:root {
  --azul-oscuro: #003bb1;
  --azul-claro: #7ba9e6;
  --azul-claro-alpha-0-2: rgba(123, 169, 230, 0.2);
  --azul-oscuro-alpha-0-5: rgba(0, 59, 177, 0.5);
  --opacidad: 0.1;
}

.container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 30px;
        }

        .article-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .article-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
        }

        .article-header {
            position: relative;
            height: 300px;
            background: #000;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .article-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
            opacity: 0.3;
        }

        .article-title {
            font-size: 2.5rem;
            font-weight: bold;
            color: white;
            text-align: center;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
            z-index: 1;
            position: relative;
            padding: 0 20px;
        }

        .article-content {
            padding: 40px;
            margin-bottom: 120px;
        }

        .article-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 2px solid #f0f0f0;
            flex-wrap: wrap;
            gap: 10px;
        }

        .author-info {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .author-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: #000000;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 1.2rem;
        }

        .author-details h4 {
            color: #333;
            margin-bottom: 5px;
        }

        .article-date {
            color: #666;
            font-size: 0.9rem;
        }

        .reading-time {
            background:  #000;
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 500;
        }

        .article-body {
            font-size: 1.1rem;
            line-height: 1.8;
        }
        .article-body ul{
            padding-left: 25px;
            list-style-type: disc ;
            margin-bottom: 1rem;
        }

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

        .article-body h2 {
            color: #333;
            margin: 30px 0 20px 0;
            font-size: 1.5rem;
            position: relative;
        }
        
        .article-body h2::before {
            content: '';
            position: absolute;
            left: -20px;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 30px;
            background: #000;
            border-radius: 2px;
        }

        .article-body h3{
            background-color: var(--azul-claro-alpha-0-2);
            color: var(--azul-oscuro-alpha-0-5);
            width: 100%;
            text-align: center;
            margin-bottom: 2rem;
        }
        .article-body img{
            display: flex;
            margin: auto;
            height: 500px;
            width: auto; /* Mantiene proporción */
        }
        .highlight-box {
            background: linear-gradient(135deg, #667eea20, #764ba220);
            border-left: 4px solid #667eea;
            padding: 20px;
            margin: 25px 0;
            border-radius: 8px;
            font-style: italic;
        }

        .tags {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 2px solid #f0f0f0;
        }

        .tag {
            background: #003bb1;
            color: white;
            padding: 6px 12px;
            border-radius: 15px;
            font-size: 0.8rem;
            text-decoration: none;
            transition: transform 0.2s ease;
        }

        .tag:hover {
            transform: scale(1.05);
        }

        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            transition: transform 0.3s ease;
            opacity: 0;
            visibility: hidden;
        }

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

        .back-to-top:hover {
            transform: scale(1.1) rotate(360deg);
        }

        /* Sidebar Styles */
        .sidebar {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        .sidebar-section {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .sidebar-section:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        }

        .sidebar-title {
            font-size: 1.2rem;
            font-weight: bold;
            color: #333;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #f0f0f0;
            position: relative;
        }

        .sidebar-title::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 30px;
            height: 2px;
            background: linear-gradient(45deg, #667eea, #764ba2);
        }

        .related-article {
            display: flex;
            gap: 15px;
            padding: 15px;
            border-radius: 10px;
            transition: background-color 0.3s ease, transform 0.2s ease;
            text-decoration: none;
            color: inherit;
            margin-bottom: 15px;
        }

        .related-article:hover {
            background: var(--azul-claro-alpha);
            transform: translateX(5px);
        }

        .related-article:last-child {
            margin-bottom: 0;
        }

        .article-thumbnail {
            width: 60px;
            height: 60px;
            border-radius: 8px;
            background: #000;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            flex-shrink: 0;
        }

        .article-info h4 {
            font-size: 0.95rem;
            margin-bottom: 5px;
            line-height: 1.3;
        }

        .article-info p {
            font-size: 0.8rem;
            color: #666;
            margin: 0;
        }

        .social-links {
            display: flex;
            gap: 10px;
            justify-content: center;
        }

        .social-link {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            color: white;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .social-link:hover {
            transform: scale(1.1) rotate(5deg);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .social-link.twitter { background: #1DA1F2; }
        .social-link.facebook { background: #4267B2; }
        .social-link.linkedin { background: #0077B5; }
        .social-link.instagram { background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D); }

        .category-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid #f0f0f0;
            text-decoration: none;
            color: #000000;
            transition: color 0.3s ease;
        }

        .category-item:hover {
            color: var(--azul-oscuro);
        }

        .category-item:last-child {
            border-bottom: none;
        }

        .category-count {
            background: #000;
            color: white;
            padding: 3px 8px;
            border-radius: 12px;
            font-size: 0.75rem;
        }

        .newsletter-form {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .newsletter-input {
            padding: 12px;
            border: 2px solid #f0f0f0;
            border-radius: 8px;
            font-size: 0.9rem;
            transition: border-color 0.3s ease;
        }

        .newsletter-input:focus {
            outline: none;
            border-color: #667eea;
        }

        .newsletter-btn {
            background: #000;
            color: white;
            border: none;
            padding: 12px;
            border-radius: 8px;
            font-weight: 500;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .newsletter-btn:hover {
            transform: translateY(-2px);
        }

        .popular-tag {
            display: inline-block;
            background: var(--azul-claro);
            color: var(--azul-oscuro);
            padding: 6px 12px;
            border-radius: 15px;
            font-size: 0.8rem;
            text-decoration: none;
            margin: 5px 5px 5px 0;
            transition: background-color 0.3s ease, transform 0.2s ease;
        }

        .popular-tag:hover {
            background: rgba(0, 0, 0, 0.2);
            color: #000;
            transform: scale(1.05);
        }
        .centrar{
            margin: 4rem 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
        .centrar iframe{
            margin: 2rem;
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .container {
                grid-template-columns: 1fr 250px;
                gap: 20px;
            }
        }

        @media (max-width: 768px) {
            .container {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .sidebar {
                order: 2;
            }
            .container {
                padding: 10px;
            }

            .article-title {
                font-size: 2rem;
            }

            .article-content {
                padding: 25px;
            }

            .article-meta {
                flex-direction: column;
                align-items: flex-start;
            }

            .author-info {
                margin-bottom: 10px;
            }

            .article-body {
                font-size: 1rem;
            }

            .article-body h2::before {
                left: -15px;
            }
            
            .back-to-top {
                bottom: 20px;
                right: 20px;
                width: 45px;
                height: 45px;
            }
        }

        @media (max-width: 480px) {
            .article-title {
                font-size: 1.7rem;
            }

            .article-content {
                padding: 20px;
            }

            .article-header {
                height: 250px;
            }

            .highlight-box {
                padding: 15px;
                margin: 20px 0;
            }
        }

        /* Animaciones sutiles */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .article-card {
            animation: fadeInUp 0.8s ease-out;
        }

        .article-body p {
            animation: fadeInUp 0.6s ease-out;
            animation-fill-mode: both;
        }

        .article-body p:nth-child(1) { animation-delay: 0.1s; }
        .article-body p:nth-child(2) { animation-delay: 0.2s; }
        .article-body p:nth-child(3) { animation-delay: 0.3s; }