html {
            scrollbar-width: none; /* Firefox */
        }
        body::-webkit-scrollbar {
            display: none; /* Chrome, Safari, Edge */
        }

        .scroll-progress-bar {
            position: fixed;
            top: 0;
            left: 0;
            width: 0%;
            height: 3px;
            background-color: var(--text-color, #1a1a1a);
            z-index: 9999;
            transition: width 0.1s ease-out;
        }

        /* ==========================================
           LAYOUT DEL BLOG (2/3 y 1/3)
           ========================================== */
        .blog-wrapper {
            display: flex;
            flex-direction: column;
            max-width: 1100px;
            margin: 0 auto;
            padding: 40px 20px;
            gap: 40px;
        }

        .article-container {
            width: 100%;
        }

        /* Tipografía de encabezados */
        .article-container h1, 
        .article-container h2, 
        .article-container h3 {
            color: var(--text-color);
            margin-top: 2em;
            margin-bottom: 0.5em;
            line-height: 1.2;
        }

        .article-container h1 {
            font-size: 2.5rem;
            font-weight: 900;
            margin-top: 0;
            margin-bottom: 0.2em;
            letter-spacing: -0.02em;
        }

        .article-container h2 {
            font-size: 1.5rem;
            font-weight: 700;
        }

        .subtitle {
            font-size: 1.25rem;
            color: var(--text-color);
            margin-bottom: 2rem;
            font-weight: 400;
            line-height: 1.4;
        }
        li {
            font-size: 1.1rem;
            margin-left: 1rem;
        }

        h3 {
            font-size: 1.5rem;
        }
        h4{
            font-size: 1.4rem;
            font-weight: 400;
            margin-bottom: 1.5rem;
        }

        .author-meta {
            display: flex;
            align-items: center;
            margin-bottom: 2rem;
            padding-bottom: 2rem;
            border-bottom: 1px solid var(--border-color);
        }

        .post-details {
            color: var(--text-color);
            margin-top: 2px;
        }

        p{
            margin-bottom: 1.5rem;
            font-size: 1.1rem;
            font-weight: 400;
            line-height: 1.6;
        }

        .drop-cap::first-letter {
            float: left;
            font-size: 4.5rem;
            line-height: 0.8;
            padding-top: 4px;
            padding-right: 8px;
            padding-left: 3px;
            font-weight: 900;
            color: var(--text-color);
        }

        blockquote {
            border-left: 3px solid var(--border-color);
            padding-left: 20px;
            margin: 2rem 0;
            font-style: italic;
            font-size: 1.2rem;
            color: var(--text-color);
        }

        figure {
            margin: 2rem 0;
        }

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

        figcaption {
            text-align: center;
            font-size: 0.85rem;
            color: var(--text-color);
            margin-top: 10px;
            opacity: 0.8;
        }

        a {
            color: var(--text-color);
            text-decoration: underline;
            text-decoration-color: var(--text-color);
            text-underline-offset: 3px;
        }

        /* ==========================================
           ASIDE / PUBLICACIONES RELACIONADAS
           (Estilos aislados para no chocar con style.css)
           ========================================== */
        .sidebar-related {
            width: 100%;
        }

        .sidebar-title {
            font-size: 1.2rem;
            font-weight: 700;
            margin-top: 0;
            margin-bottom: 1.5rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--border-color, #d1d1d1);
        }

        .sidebar-post {
            display: flex;
            gap: 16px;
            margin-bottom: 24px;
            text-decoration: none !important;
            color: var(--text-color);
            transition: opacity 0.2s ease;
        }

        .sidebar-post:hover {
            opacity: 0.6;
        }

        .sidebar-post-img {
            width: 90px;
            height: 90px;
            flex-shrink: 0;
            object-fit: cover;
            border-radius: 4px;
        }

        .sidebar-post-content {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .sidebar-post-date {
            font-size: 0.75rem;
            opacity: 0.6;
            margin-bottom: 6px;
            text-transform: uppercase;
            letter-spacing: 0.05rem;
        }

        .sidebar-post-title {
            font-size: 1rem;
            font-weight: 600;
            line-height: 1.3;
            margin: 0;
        }

        /* ==========================================
           MEDIA QUERIES (DESKTOP)
           ========================================== */
        @media (min-width: 900px) {
            .blog-wrapper {
                display: grid;
                grid-template-columns: 2fr 1fr; /* 2/3 Izquierda, 1/3 Derecha */
                gap: 60px;
                padding: 60px 48px;
            }
            .article-container h1 {
                font-size: 3rem;
            }
            .sidebar-related {
        position: sticky;
        top: 80px; /* Se queda fijo mientras el usuario lee la nota */
        height: fit-content;
    }
        }

        @media (max-width: 600px) {
            .article-container h1 {
                font-size: 2rem;
            }
            .drop-cap::first-letter {
                font-size: 3.5rem;
            }
        }
         .portal-section { padding: 80px 24px; border-bottom: 1px solid var(--border-color); }
    .section-tag { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.75rem; opacity: 0.5; margin-bottom: 20px; display: block; }
    .section-title { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 400; letter-spacing: -0.02em; }

    /* Noticia Destacada (Hero) */
    .featured-article {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 48px;
        cursor: pointer;
        text-decoration: none;
        color: inherit;
    }
    .featured-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
    .featured-content h3 { font-size: 1.8rem; line-height: 1.1; margin: 12px 0; font-weight: 700; }
    .featured-content p { font-size: 1.1rem; opacity: 0.8; line-height: 1.5; }

    .secondary-grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .small-card { 
        display: grid;
        grid-template-columns: 100px 1fr; /* La imagen a la izq, el resto a la derecha */
        gap: 16px;
        cursor: pointer; 
        text-decoration: none; 
        color: inherit; 
        align-items: flex-start; /* Alinea el texto al inicio de la imagen */
    }

    .small-card img { 
        width: 100%; 
        aspect-ratio: 1 / 1; 
        object-fit: cover; 
        border-radius: 4px; 
    }

    .small-card-content {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .small-card h4 { 
        font-size: 1rem; 
        line-height: 1.2; 
        margin: 4px 0; 
        font-weight: 600; 
    }

    .small-card p { display: none; } /* Mantener limpio el móvil */

    .small-card .pub-date { 
        font-size: 0.7rem; 
        text-transform: uppercase;
        letter-spacing: 0.05em;
        opacity: 0.6;
    }
    .secction-desc{
        margin: 0;
        padding-top: 1rem;
        padding-bottom: 3rem;
        font-size: clamp(1.5rem, 4vw, 2.5rem)
        font-weight: 400;
    }

    /* ESCRITORIO: Restauramos el Grid Visual */
    @media (min-width: 900px) {
        .portal-section { padding: 100px 48px; }
        .featured-article { grid-template-columns: 1.5fr 1fr; align-items: center; gap: 60px; margin-bottom: 80px; }
        .featured-content h3 { font-size: 3.5rem; }
        
        .secondary-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 40px;
        }

        .small-card { 
            display: block; /* Vuelve a ser una tarjeta vertical estándar */
        }

        .small-card img { 
            aspect-ratio: 4 / 3; 
            margin-bottom: 15px; 
        }

        .small-card h4 { 
            font-size: 1.2rem; 
            margin: 10px 0;
        }

        .small-card p { 
            display: -webkit-box; 
            -webkit-line-clamp: 3; 
            -webkit-box-orient: vertical; 
            overflow: hidden; 
            font-size: 0.95rem;
            opacity: 0.7;
        }
    }
  .author-meta {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 12px;
            border: none;
        }

        .author-photo {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            object-fit: cover;
        }

        .author-name {
            font-size: 0.85rem;
            font-weight: 500;
            opacity: 0.7;
            letter-spacing: 0.02em;
        }
        
        .small-card .author-name {
            font-size: 0.75rem;
        }
