* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --bg-dark: #0a0a0f;
            --bg-secondary: #1a1a2e;
            --text-primary: #e0e0e0;
            --text-secondary: #a0a0a0;
            --neon-pink: #ff6b9d;
            --neon-purple: #c44569;
            --neon-blue: #66d9ef;
            --neon-green: #a6e3a1;
            --neon-yellow: #f9e79f;
            --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: var(--bg-dark);
            color: var(--text-primary);
            line-height: 1.6;
            overflow-x: hidden;
            /* Footer siempre abajo: <main> se estira para llenar la pantalla
               cuando el contenido es corto. El <header> es fixed, así que no
               participa en este flex. */
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        main {
            flex: 1 0 auto;
        }

        footer {
            flex-shrink: 0;
        }

        /* Animación de fondo */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(245, 87, 108, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(166, 227, 161, 0.1) 0%, transparent 50%);
            pointer-events: none;
            z-index: 1;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            position: relative;
            z-index: 2;
        }

        /* Header */
        header {
            background: rgba(26, 26, 46, 0.8);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(255, 107, 157, 0.3);
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            animation: slideDown 0.5s ease-out;
        }

        @keyframes slideDown {
            from {
                transform: translateY(-100%);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 0;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: bold;
            background: var(--gradient-2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: glow 2s ease-in-out infinite alternate;
        }

        @keyframes glow {
            from {
                text-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
            }
            to {
                text-shadow: 0 0 20px rgba(255, 107, 157, 0.8), 0 0 30px rgba(255, 107, 157, 0.6);
            }
        }

        .logo a {
            color: inherit;
            text-decoration: none;
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 1.6rem;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        /* Botón hamburguesa: sólo visible en pantallas pequeñas */
        .nav-toggle {
            display: none;
            background: transparent;
            border: 1px solid rgba(255, 107, 157, 0.4);
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 1.2rem;
            padding: 0.4rem 0.7rem;
            cursor: pointer;
        }

        .nav-links a {
            color: var(--text-primary);
            text-decoration: none;
            transition: all 0.3s ease;
            position: relative;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--neon-pink);
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        /* Hero Section */
        .hero {
            margin-top: 80px;
            padding: 4rem 0;
            text-align: center;
            animation: fadeInUp 1s ease-out;
        }

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

        .hero h1 {
            font-size: 3rem;
            margin-bottom: 1rem;
            background: linear-gradient(45deg, var(--neon-blue), var(--neon-pink), var(--neon-green));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: gradientShift 3s ease infinite;
        }

        @keyframes gradientShift {
            0%, 100% { filter: hue-rotate(0deg); }
            50% { filter: hue-rotate(30deg); }
        }

        .hero p {
            font-size: 1.2rem;
            color: var(--text-secondary);
            max-width: 600px;
            margin: 0 auto 2rem;
        }

        .tech-badge {
            display: inline-block;
            background: rgba(102, 126, 234, 0.2);
            border: 1px solid var(--neon-blue);
            padding: 0.5rem 1rem;
            border-radius: 25px;
            margin: 0.5rem;
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }

        .tech-badge:hover {
            background: rgba(102, 126, 234, 0.3);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }

        /* Publicaciones Section */
        .publicaciones {
            padding: 4rem 0;
            background: rgba(26, 26, 46, 0.5);
        }

        .section-title {
            text-align: center;
            font-size: 2.5rem;
            margin-bottom: 3rem;
            position: relative;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 3px;
            background: var(--gradient-2);
            border-radius: 2px;
        }

        .posts-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        .post-card {
            background: rgba(26, 26, 46, 0.8);
            border: 1px solid rgba(255, 107, 157, 0.2);
            border-radius: 15px;
            padding: 1.5rem;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .post-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: var(--gradient-2);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .post-card:hover::before {
            transform: scaleX(1);
        }

        .post-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
            border-color: rgba(255, 107, 157, 0.5);
        }

        /* Miniatura de la tarjeta: sangra hasta los bordes anulando el padding.
           aspect-ratio reserva el espacio antes de que cargue la imagen, así
           la tarjeta no salta al terminar la descarga. */
        .post-thumb {
            display: block;
            margin: -1.5rem -1.5rem 1.2rem;
            border-radius: 15px 15px 0 0;
            overflow: hidden;
            background: rgba(10, 10, 15, 0.6);
        }

        .post-thumb img {
            display: block;
            width: 100%;
            aspect-ratio: 16 / 9;
            object-fit: cover;
            transition: transform 0.4s ease;
        }

        .post-card:hover .post-thumb img {
            transform: scale(1.05);
        }

        .post-date {
            color: var(--neon-yellow);
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }

        .post-title {
            font-size: 1.3rem;
            margin-bottom: 1rem;
            color: var(--neon-blue);
        }

        .post-excerpt {
            color: var(--text-secondary);
            margin-bottom: 1rem;
        }

        .read-more {
            color: var(--neon-pink);
            text-decoration: none;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: gap 0.3s ease;
        }

        /* Extiende el área clickeable a toda la tarjeta.
           Se limita a .post-card: fuera de ella el overlay se anclaba al
           .container y bloqueaba los clics de toda la sección. */
        .post-card .read-more::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            z-index: 1;
        }

        .read-more:hover {
            gap: 1rem;
        }

        /* Redes Sociales Section */
        .redes-sociales {
            padding: 4rem 0;
            text-align: center;
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin-top: 2rem;
        }

        .social-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 60px;
            height: 60px;
            background: rgba(26, 26, 46, 0.8);
            border: 2px solid transparent;
            border-radius: 50%;
            color: var(--text-primary);
            font-size: 1.5rem;
            text-decoration: none;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .social-link::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: var(--gradient-2);
            transform: translate(-50%, -50%);
            transition: width 0.3s ease, height 0.3s ease;
            z-index: 0;
        }

        .social-link i {
            position: relative;
            z-index: 1;
        }

        .social-link:hover::before {
            width: 100%;
            height: 100%;
        }

        .social-link:hover {
            transform: translateY(-5px) rotate(360deg);
            border-color: var(--neon-pink);
            color: white;
        }

        .social-link.github:hover::before { background: linear-gradient(135deg, #333, #666); }
        .social-link.youtube:hover::before { background: linear-gradient(135deg, #ff0000, #cc0000); }
        .social-link.tiktok:hover::before { background: linear-gradient(135deg, #000000, #ff0050); }
        .social-link.instagram:hover::before { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

        /* Footer */
        footer {
            background: rgba(26, 26, 46, 0.9);
            border-top: 1px solid rgba(255, 107, 157, 0.3);
            padding: 2rem 0;
            text-align: center;
        }

        .contact-info {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            color: var(--neon-green);
            font-size: 1.1rem;
            margin-bottom: 1rem;
        }

        .contact-info i {
            font-size: 1.2rem;
        }

        .contact-info a {
            color: inherit;
            text-decoration: none;
        }

        .contact-info a:hover {
            text-decoration: underline;
        }

        .footer-text {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        /* ==========================================================
           Páginas de listado: historial, categorías, etiquetas,
           autores y encabezado de artículo
           ========================================================== */

        .page-hero {
            margin-top: 80px;
            padding: 3.5rem 0 2.5rem;
            text-align: center;
        }

        .page-hero h1 {
            font-size: 2.6rem;
            line-height: 1.2;
            background: linear-gradient(45deg, var(--neon-blue), var(--neon-pink), var(--neon-green));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .eyebrow {
            color: var(--neon-yellow);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.18em;
            font-size: 0.8rem;
            margin-bottom: 0.6rem;
        }

        .eyebrow a {
            color: inherit;
            text-decoration: none;
        }

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

        .page-hero-sub {
            color: var(--text-secondary);
            margin-top: 0.8rem;
        }

        .hero-link {
            color: var(--neon-blue);
            text-decoration: none;
        }

        .hero-link:hover {
            text-decoration: underline;
        }

        .page-body {
            padding: 1rem 0 4rem;
        }

        .container-narrow {
            max-width: 820px;
        }

        .empty-state {
            color: var(--text-secondary);
            text-align: center;
            padding: 3rem 0;
        }

        .back-link-wrap {
            margin-top: 2.5rem;
            display: flex;
            justify-content: center;
            gap: 2rem;
            flex-wrap: wrap;
        }

        /* Historial */
        .archive-year {
            font-size: 1.6rem;
            margin: 2.5rem 0 1rem;
        }

        .archive-year span {
            background: var(--gradient-2);
            color: #fff;
            padding: 0.25rem 1rem;
            border-radius: 10px;
        }

        .archive-list {
            list-style: none;
            display: grid;
            gap: 0.9rem;
        }

        .archive-item {
            background: rgba(26, 26, 46, 0.8);
            border: 1px solid rgba(255, 107, 157, 0.2);
            border-radius: 15px;
            padding: 1.1rem 1.4rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            flex-wrap: wrap;
            transition: border-color 0.3s ease, transform 0.3s ease;
        }

        .archive-item:hover {
            border-color: rgba(255, 107, 157, 0.5);
            transform: translateY(-2px);
        }

        .archive-item-main {
            display: flex;
            align-items: baseline;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .archive-date {
            color: var(--neon-yellow);
            font-size: 0.85rem;
            white-space: nowrap;
        }

        .archive-title {
            color: var(--neon-blue);
            font-weight: 600;
            font-size: 1.05rem;
            text-decoration: none;
        }

        .archive-title:hover {
            color: var(--neon-pink);
        }

        .pill {
            display: inline-block;
            margin-left: 0.5rem;
            background: rgba(102, 126, 234, 0.2);
            border: 1px solid var(--neon-blue);
            color: var(--text-primary);
            border-radius: 25px;
            padding: 0.1rem 0.7rem;
            font-size: 0.75rem;
            text-decoration: none;
            white-space: nowrap;
        }

        .pill:hover {
            background: rgba(102, 126, 234, 0.35);
        }

        /* Categorías y autores */
        .category-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.2rem;
        }

        .category-card {
            background: rgba(26, 26, 46, 0.8);
            border: 1px solid rgba(255, 107, 157, 0.2);
            border-radius: 15px;
            padding: 1.4rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            text-decoration: none;
            color: var(--text-primary);
            transition: all 0.3s ease;
        }

        .category-card:hover {
            transform: translateY(-4px);
            border-color: rgba(255, 107, 157, 0.5);
            box-shadow: 0 10px 30px rgba(255, 107, 157, 0.25);
        }

        .category-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 48px;
            height: 48px;
            flex: 0 0 48px;
            border-radius: 12px;
            background: rgba(102, 126, 234, 0.2);
            color: var(--neon-blue);
            font-size: 1.3rem;
        }

        .category-text {
            display: flex;
            flex-direction: column;
            flex: 1 1 auto;
            min-width: 0;
        }

        .category-name {
            font-weight: 700;
            font-size: 1.15rem;
        }

        .category-card:hover .category-name {
            color: var(--neon-pink);
        }

        .category-count {
            color: var(--text-secondary);
            font-size: 0.85rem;
        }

        .category-chevron {
            color: var(--neon-pink);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .category-card:hover .category-chevron {
            opacity: 1;
        }

        /* Etiquetas */
        .tag-cloud {
            display: flex;
            flex-wrap: wrap;
            gap: 0.8rem;
            justify-content: center;
        }

        .tag-chip {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(26, 26, 46, 0.8);
            border: 1px solid rgba(255, 107, 157, 0.25);
            border-radius: 25px;
            padding: 0.5rem 1.1rem;
            color: var(--text-primary);
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .tag-chip i {
            color: var(--neon-blue);
        }

        .tag-chip:hover {
            transform: translateY(-2px);
            border-color: var(--neon-pink);
            box-shadow: 0 5px 15px rgba(255, 107, 157, 0.3);
        }

        .tag-count {
            background: rgba(102, 126, 234, 0.25);
            border-radius: 25px;
            padding: 0 0.5rem;
            font-size: 0.75rem;
            font-weight: 700;
        }

        .article-tags {
            margin-top: 2rem;
        }

        /* Imagen de portada del artículo (metadata `Image:`) */
        .article-cover {
            margin: 0 0 2rem;
            border-radius: 15px;
            overflow: hidden;
            border: 1px solid rgba(255, 107, 157, 0.2);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }

        .article-cover img {
            display: block;
            width: 100%;
            aspect-ratio: 16 / 9;
            object-fit: cover;
        }

        .article-cover figcaption {
            color: var(--text-secondary);
            font-size: 0.85rem;
            text-align: center;
            padding: 0.8rem 1rem;
            background: rgba(26, 26, 46, 0.8);
        }

        /* Cuerpo del artículo */
        .article-body {
            background: rgba(26, 26, 46, 0.8);
            border: 1px solid rgba(255, 107, 157, 0.2);
            border-radius: 15px;
            padding: 2.5rem;
            line-height: 1.8;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            overflow-wrap: break-word;
        }

        .article-body img {
            max-width: 100%;
            height: auto;
            border-radius: 10px;
        }

        .article-body pre {
            overflow-x: auto;
            background: rgba(10, 10, 15, 0.8);
            padding: 1rem;
            border-radius: 10px;
        }

        .article-body a {
            color: var(--neon-blue);
        }

        /* Negritas destacadas. Amarillo para no chocar con el azul de los
           títulos y enlaces, ni con el rosa de los acentos del tema. */
        .article-body strong,
        .article-body b,
        .hero p strong {
            color: var(--neon-yellow);
            font-weight: 700;
        }

        .article-body h1,
        .article-body h2,
        .article-body h3 {
            margin: 1.6rem 0 0.8rem;
            color: var(--neon-blue);
        }

        .article-body p,
        .article-body ul,
        .article-body ol {
            margin-bottom: 1rem;
        }

        .article-body ul,
        .article-body ol {
            padding-left: 1.4rem;
        }

        /* Paginación */
        .pagination {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1.5rem;
            margin-top: 2.5rem;
            flex-wrap: wrap;
        }

        .page-link {
            color: var(--neon-pink);
            text-decoration: none;
            font-weight: 500;
        }

        .page-link:hover {
            color: var(--neon-blue);
        }

        .page-status {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        /* Responsive */
        @media (max-width: 900px) {
            .nav-toggle {
                display: block;
            }

            nav {
                flex-wrap: wrap;
            }

            .nav-links {
                display: none;
                width: 100%;
                flex-direction: column;
                gap: 0.9rem;
                padding: 1rem 0 0.5rem;
            }

            .nav-links.is-open {
                display: flex;
            }
        }

        @media (max-width: 768px) {
            .hero h1 {
                font-size: 2rem;
            }

            .page-hero h1 {
                font-size: 1.9rem;
            }

            .article-body {
                padding: 1.5rem;
            }

            .social-links {
                gap: 1rem;
            }

            .social-link {
                width: 50px;
                height: 50px;
                font-size: 1.2rem;
            }

            .archive-item {
                align-items: flex-start;
            }
        }

        /* Respeta la preferencia del sistema de reducir movimiento */
        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation-duration: 0.001ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.001ms !important;
                scroll-behavior: auto !important;
            }
        }

        /* Cursor personalizado */
        .cursor {
            width: 20px;
            height: 20px;
            border: 2px solid var(--neon-pink);
            border-radius: 50%;
            position: fixed;
            pointer-events: none;
            z-index: 9999;
            transition: all 0.1s ease;
            mix-blend-mode: difference;
        }

        .cursor-follower {
            width: 40px;
            height: 40px;
            background: rgba(255, 107, 157, 0.1);
            border-radius: 50%;
            position: fixed;
            pointer-events: none;
            z-index: 9998;
            transition: all 0.3s ease;
        }