 /* ==========================================
           SINGLE POST - Modern Technical Blog
           ========================================== */

 :root {
     --bg-deep: #0b0f1a;
     --bg-surface: #111827;
     --bg-card: rgba(17, 24, 39, 0.6);
     --bg-card-solid: #1a1f2e;
     --border-subtle: rgba(255, 255, 255, 0.08);
     --border-medium: rgba(255, 255, 255, 0.12);
     --text-primary: #ffffff;
     --text-secondary: #9ca3af;
     --text-tertiary: #6b7280;
     --accent: #5c6eff;
     --accent-glow: rgba(92, 110, 255, 0.3);
     --accent-orange: #ff5e5e;
     --accent-cyan: #00d4ff;
     --success: #22c55e;
     --radius-sm: 8px;
     --radius-md: 12px;
     --radius-lg: 20px;
     --radius-xl: 28px;
     --transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
 }

 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 body {
     font-family: 'Inter', sans-serif;
     background: var(--bg-deep);
     color: var(--text-primary);
     line-height: 1.6;
 }

 .container {
     max-width: 1300px;
     margin: 0 auto;
     padding: 0 1.5rem;
 }

 /* ==========================================
           HERO SECTION - Left aligned, no image background
           ========================================== */
 .post-hero {
     padding: 80px 0 40px;
 }

 .post-hero-content {
     max-width: 900px;
     text-align: left;
 }

 .post-category {
     display: inline-block;
     background: var(--accent-glow);
     color: var(--accent);
     padding: 0.25rem 1rem;
     border-radius: 40px;
     font-size: 0.75rem;
     font-weight: 600;
     margin-bottom: 1.5rem;
 }

 .post-title {
     font-size: 3rem;
     font-weight: 800;
     line-height: 1.2;
     margin-bottom: 1rem;
     background: linear-gradient(135deg, #fff, var(--accent));
     background-clip: text;
     -webkit-background-clip: text;
     color: transparent;
 }

 .post-subtitle {
     font-size: 1.1rem;
     color: var(--text-secondary);
     margin-bottom: 1.5rem;
     max-width: 600px;
 }

 .post-meta {
     display: flex;
     gap: 1.5rem;
     font-size: 0.85rem;
     color: var(--text-tertiary);
     margin-bottom: 1.5rem;
     flex-wrap: wrap;
 }

 .post-meta i {
     color: var(--accent);
     margin-right: 0.3rem;
 }

 .post-cta {
     display: flex;
     gap: 1rem;
     flex-wrap: wrap;
 }

 .btn-small {
     padding: 0.5rem 1.25rem;
     border-radius: 40px;
     font-size: 0.8rem;
     font-weight: 500;
     text-decoration: none;
     transition: var(--transition);
     display: inline-flex;
     align-items: center;
     gap: 0.5rem;
 }

 .btn-small-primary {
     background: var(--accent);
     color: white;
     border: none;
 }

 .btn-small-primary:hover {
     background: var(--accent-orange);
     transform: translateY(-2px);
 }

 .btn-small-outline {
     background: transparent;
     border: 1px solid var(--border-medium);
     color: var(--text-primary);
 }

 .btn-small-outline:hover {
     border-color: var(--accent);
     background: var(--accent-glow);
 }

 /* ==========================================
           FEATURED IMAGE - Top of content
           ========================================== */
 .post-featured-image {
     margin-bottom: 2rem;
     max-width: 900px;
     margin-left: auto;
     margin-right: auto;
 }

 .post-featured-image img {
     width: 100%;
     border-radius: var(--radius-lg);
     display: block;
 }

 /* ==========================================
           MAIN LAYOUT - Two Columns
           ========================================== */
 .post-layout {
     display: grid;
     grid-template-columns: 1fr 320px;
     gap: 3rem;
     padding: 2rem 0 3rem;
 }

 /* Main Content */
 .post-content {
     min-width: 0;
 }

 /* Sidebar */
 .post-sidebar {
     position: sticky;
     top: 2rem;
     align-self: start;
 }

 /* ==========================================
           CONTENT STYLES
           ========================================== */
 .post-body {
     font-size: 1.05rem;
     color: var(--text-secondary);
     line-height: 1.7;
 }

 .post-body h2 {
     font-size: 1.8rem;
     font-weight: 700;
     color: var(--text-primary);
     margin: 2rem 0 1rem;
     scroll-margin-top: 2rem;
 }

 .post-body h3 {
     font-size: 1.4rem;
     font-weight: 600;
     color: var(--text-primary);
     margin: 1.5rem 0 0.75rem;
     scroll-margin-top: 2rem;
 }

 .post-body p {
     margin-bottom: 1.25rem;
 }

 .post-body ul,
 .post-body ol {
     margin: 1rem 0 1rem 1.5rem;
 }

 .post-body li {
     margin-bottom: 0.5rem;
 }

 .post-body img {
     max-width: 100%;
     border-radius: var(--radius-lg);
     margin: 1.5rem 0;
 }

 .post-body pre {
     background: var(--bg-card-solid);
     padding: 1rem;
     border-radius: var(--radius-md);
     overflow-x: auto;
     margin: 1.5rem 0;
     border: 1px solid var(--border-subtle);
 }

 .post-body code {
     background: var(--bg-card-solid);
     padding: 0.2rem 0.4rem;
     border-radius: var(--radius-sm);
     font-size: 0.85em;
     font-family: 'Monaco', 'Menlo', monospace;
 }

 .post-body pre code {
     background: none;
     padding: 0;
 }

 /* Callouts */
 .callout {
     background: var(--bg-card);
     border-left: 3px solid var(--accent);
     padding: 1rem 1.5rem;
     border-radius: var(--radius-md);
     margin: 1.5rem 0;
 }

 .callout-warning {
     border-left-color: var(--accent-orange);
     background: rgba(255, 94, 94, 0.1);
 }

 .callout-tip {
     border-left-color: var(--success);
     background: rgba(34, 197, 94, 0.1);
 }

 /* TL;DR Section */
 .tldr {
     background: linear-gradient(135deg, var(--bg-card), transparent);
     border: 1px solid var(--border-subtle);
     border-radius: var(--radius-lg);
     padding: 1.5rem;
     margin: 2rem 0;
 }

 .tldr h4 {
     color: var(--accent);
     margin-bottom: 0.5rem;
 }

 /* ==========================================
           TABLE OF CONTENTS (Sidebar)
           ========================================== */
 .toc-widget,
 .author-card,
 .categories-widget,
 .experiment-widget,
 .metrics-widget {
     background: var(--bg-card);
     backdrop-filter: blur(10px);
     border: 1px solid var(--border-subtle);
     border-radius: var(--radius-lg);
     padding: 1.25rem;
     margin-bottom: 1.5rem;
 }

 .toc-widget h3,
 .author-card h3,
 .categories-widget h3,
 .experiment-widget h3 {
     font-size: 0.85rem;
     text-transform: uppercase;
     letter-spacing: 1px;
     color: var(--accent);
     margin-bottom: 1rem;
 }

 .toc-list {
     list-style: none;
 }

 .toc-list li {
     margin-bottom: 0.5rem;
 }

 .toc-list a {
     color: var(--text-secondary);
     text-decoration: none;
     font-size: 0.8rem;
     transition: var(--transition);
     display: block;
     padding: 0.25rem 0;
 }

 .toc-list a:hover,
 .toc-list a.active {
     color: var(--accent);
 }

 /* Author Card */
 .author-avatar {
     width: 60px;
     height: 60px;
     border-radius: 50%;
     margin-bottom: 1rem;
 }

 .author-name {
     font-size: 1.1rem;
     font-weight: 600;
     margin-bottom: 0.25rem;
 }

 .author-role {
     font-size: 0.75rem;
     color: var(--accent);
     margin-bottom: 0.75rem;
 }

 .author-bio {
     font-size: 0.8rem;
     color: var(--text-secondary);
     margin-bottom: 1rem;
 }

 /* Categories */
 .categories-list {
     display: flex;
     flex-wrap: wrap;
     gap: 0.5rem;
 }

 .category-tag {
     background: var(--bg-card-solid);
     padding: 0.25rem 0.75rem;
     border-radius: 40px;
     font-size: 0.7rem;
     color: var(--text-secondary);
     text-decoration: none;
     transition: var(--transition);
 }

 .category-tag:hover {
     background: var(--accent);
     color: white;
 }

 /* Metrics Widget */
 .metrics-widget .metric-item {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 0.5rem 0;
     border-bottom: 1px solid var(--border-subtle);
 }

 .metrics-widget .metric-value {
     color: var(--accent);
     font-weight: 700;
 }

 /* ==========================================
           SOCIAL SHARE
           ========================================== */
 .social-share {
     display: flex;
     gap: 1rem;
     margin: 2rem 0;
     padding-top: 1.5rem;
     border-top: 1px solid var(--border-subtle);
 }

 .share-btn {
     width: 40px;
     height: 40px;
     border-radius: 50%;
     background: var(--bg-card-solid);
     display: flex;
     align-items: center;
     justify-content: center;
     color: var(--text-secondary);
     text-decoration: none;
     transition: var(--transition);
 }

 .share-btn:hover {
     background: var(--accent);
     color: white;
     transform: translateY(-2px);
 }

 /* ==========================================
           RELATED POSTS
           ========================================== */
 .related-section {
     margin-top: 3rem;
     padding-top: 2rem;
     border-top: 1px solid var(--border-subtle);
 }

 .related-title {
     font-size: 1.5rem;
     margin-bottom: 1.5rem;
 }

 .related-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
     gap: 1.5rem;
 }

 .related-card {
     background: var(--bg-card);
     border: 1px solid var(--border-subtle);
     border-radius: var(--radius-lg);
     overflow: hidden;
     transition: var(--transition);
     text-decoration: none;
     color: inherit;
 }

 .related-card:hover {
     transform: translateY(-4px);
     border-color: var(--accent);
 }

 .related-card-image {
     height: 140px;
     background-size: cover;
     background-position: center;
 }

 .related-card-content {
     padding: 1rem;
 }

 .related-card-title {
     font-size: 0.9rem;
     font-weight: 600;
     margin-bottom: 0.25rem;
 }

 .related-card-category {
     font-size: 0.7rem;
     color: var(--accent);
 }

 /* ==========================================
           RESPONSIVE
           ========================================== */
 @media (max-width: 992px) {
     .post-layout {
         grid-template-columns: 1fr;
         gap: 2rem;
     }

     .post-sidebar {
         position: static;
     }

     .post-title {
         font-size: 2rem;
     }
 }

 @media (max-width: 768px) {
     .post-hero {
         padding: 40px 0 20px;
     }

     .post-title {
         font-size: 1.6rem;
     }

     .post-meta {
         flex-direction: column;
         gap: 0.5rem;
     }

     .post-cta {
         flex-direction: column;
         align-items: flex-start;
     }

     .post-hero-content {
         text-align: left;
     }
 }

 @media (max-width: 768px) {
     .post-hero {
         padding: 30px 0 20px;
     }

     .post-title {
         font-size: 1.4rem !important;
         line-height: 1.3;
     }

     .post-subtitle {
         font-size: 0.85rem;
         margin-bottom: 1rem;
     }

     .post-meta {
         display: flex;
         flex-direction: row;
         flex-wrap: wrap;
         gap: 1rem;
         font-size: 0.7rem;
         margin-bottom: 1.25rem;
     }

     .post-cta {
         display: flex;
         flex-direction: row;
         flex-wrap: wrap;
         gap: 0.5rem;
     }

     .btn-small {
         padding: 0.4rem 0.8rem;
         font-size: 0.7rem;
         white-space: nowrap;
     }

     .btn-small i {
         font-size: 0.7rem;
     }
 }



/* ==========================================
   FIRMA AUTOMÁTICA HNZYX
   ========================================== */
.hnzyx-signature {
    margin-top: 3rem;
    padding-top: 1.5rem;
    /* border-top: 0.5px solid var(--border-subtle); */
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.hnzyx-signature:hover {
    opacity: 1;
}

.hnzyx-symbol {
    color: #ff2bd6;
    font-weight: 600;
}

.hnzyx-text {
    color: var(--text-primary);
    font-weight: 500;
}

.hnzyx-signature:hover .hnzyx-symbol {
    text-shadow: 0 0 6px rgba(255, 43, 214, 0.5);
}