/*
Theme Name: Julio Brasa Theme
Theme URI: https://juliobrasa.com
Author: Julio Brasa
Author URI: https://juliobrasa.com
Description: Tema personalizado para el blog de Julio Brasa, integrado con el diseño de la web principal.
Version: 1.5
License: GPL v2 or later
Text Domain: juliobrasa-theme
*/

:root {
    --primary: #1976D2;
    --primary-dark: #1565C0;
    --secondary: #388E3C;
    --secondary-dark: #2E7D32;
    --surface: #FFFFFF;
    --background: #FAFAFA;
    --text-primary: rgba(0,0,0,0.87);
    --text-secondary: rgba(0,0,0,0.6);
    --shadow-1: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-2: 0 4px 8px rgba(0,0,0,0.12);
    --shadow-4: 0 8px 16px rgba(0,0,0,0.15);
    --shadow-8: 0 12px 24px rgba(0,0,0,0.18);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* App Bar / Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-2);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.site-branding {
    flex: 1;
}

.site-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: var(--primary);
}

.main-navigation ul {
    display: flex;
    gap: 24px;
    list-style: none;
    align-items: center;
}

.main-navigation a {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
    position: relative;
}

.main-navigation a:hover {
    color: var(--primary);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Hero Blog */
.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 24px 60px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: drift 20s linear infinite;
}

@keyframes drift {
    from { transform: translate(0, 0); }
    to { transform: translate(-50px, -50px); }
}

.blog-hero h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.blog-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Main Content */
.site-main {
    padding: 40px 0;
    margin-top: 64px;
}

.content-area {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Cards / Posts */
.post-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-2);
    transition: all 0.3s;
    overflow: hidden;
    margin-bottom: 32px;
}

.post-card:hover {
    box-shadow: var(--shadow-8);
    transform: translateY(-4px);
}

.post-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.post-card-body {
    padding: 24px;
}

.post-card .entry-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.post-card .entry-title a {
    color: var(--text-primary);
}

.post-card .entry-title a:hover {
    color: var(--primary);
}

.post-card .entry-meta {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.post-card .entry-excerpt {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Single Post */
.single-post .entry-header {
    margin-bottom: 32px;
}

.single-post .entry-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.single-post .entry-meta {
    color: var(--text-secondary);
    font-size: 14px;
}

.single-post .entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.single-post .entry-content p {
    margin-bottom: 1.5em;
}

.single-post .entry-content h2 {
    margin: 2em 0 1em;
}

.single-post .entry-content h3 {
    margin: 1.5em 0 0.75em;
}

.single-post .entry-content img {
    border-radius: 12px;
    margin: 2em 0;
}

.single-post .entry-content blockquote {
    background: linear-gradient(135deg, rgba(25,118,210,0.05), rgba(56,142,60,0.05));
    border-left: 4px solid var(--primary);
    padding: 24px;
    border-radius: 8px;
    margin: 24px 0;
    font-style: italic;
}

/* Buttons */
.btn, .wp-block-button__link, button, input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: inherit;
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-2);
}

.btn:hover, .wp-block-button__link:hover, button:hover, input[type="submit"]:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-4);
    transform: translateY(-2px);
    color: white;
}

.btn-outlined {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}

.btn-outlined:hover {
    background: rgba(25, 118, 210, 0.08);
    color: var(--primary);
}

/* Chips / Tags */
.post-tags a, .chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    margin: 4px;
    background: #2E7D32;
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(46,125,50,0.3);
    transition: all 0.3s;
}

.post-tags a:hover, .chip:hover {
    background: #1B5E20;
    box-shadow: 0 4px 10px rgba(46,125,50,0.4);
    transform: translateY(-2px);
    color: white;
}

/* Categories */
.cat-links a {
    color: var(--primary);
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sidebar */
.widget-area {
    padding: 24px;
}

.widget {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-2);
    padding: 24px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.widget li:last-child {
    border-bottom: none;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 48px 24px;
    text-align: center;
    margin-top: 48px;
}

.site-footer a {
    color: white;
    opacity: 0.9;
}

.site-footer a:hover {
    opacity: 1;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    gap: 24px;
    list-style: none;
    margin-bottom: 24px;
}

.site-info {
    opacity: 0.8;
    font-size: 14px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 60px 0 48px;
    padding: 0 24px;
}

.pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    background: white;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination .page-numbers:not(.next):not(.prev) {
    padding: 0;
}

.pagination .page-numbers:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
    transform: translateY(-2px);
    border-color: transparent;
}

.pagination .page-numbers.current {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
    border-color: transparent;
    font-weight: 700;
}

.pagination .page-numbers.next,
.pagination .page-numbers.prev {
    background: linear-gradient(135deg, var(--primary) 0%, #667eea 100%);
    color: white;
    font-weight: 600;
    padding: 0 24px;
    gap: 8px;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.25);
}

.pagination .page-numbers.next:hover,
.pagination .page-numbers.prev:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
}

.pagination .page-numbers.next i,
.pagination .page-numbers.prev i {
    font-size: 12px;
    transition: transform 0.3s;
}

.pagination .page-numbers.next:hover i {
    transform: translateX(3px);
}

.pagination .page-numbers.prev:hover i {
    transform: translateX(-3px);
}

.pagination .screen-reader-text {
    display: none;
}

@media (max-width: 480px) {
    .pagination .page-numbers {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 14px;
    }
    .pagination .page-numbers.next,
    .pagination .page-numbers.prev {
        padding: 0 16px;
    }
}

/* Comments */
.comments-area {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-2);
    padding: 32px;
    margin-top: 48px;
}

.comments-title {
    margin-bottom: 24px;
}

.comment-list {
    list-style: none;
}

.comment {
    padding: 24px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.comment-author {
    font-weight: 600;
    margin-bottom: 8px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s;
    margin-bottom: 16px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Search Form */
.search-form {
    display: flex;
    gap: 8px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 24px;
    font-size: 16px;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--primary);
}

/* Read More Link */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
}

.read-more:hover {
    gap: 12px;
}

.read-more::after {
    content: '→';
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 0 16px;
    }
    
    .main-navigation {
        display: none;
    }
    
    .blog-hero h1 {
        font-size: 1.75rem;
    }
    
    .single-post .entry-title {
        font-size: 1.75rem;
    }
    
    .content-area {
        padding: 0 16px;
    }
    
    .post-card-body {
        padding: 16px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.mt-4 { margin-top: 16px; }

/* Mobile Menu Fix */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0;
    }
    
    .nav-menu a {
        font-size: 1.25rem;
        padding: 1rem 2rem;
    }
    
    .header-content {
        position: relative;
    }
    
    .main-nav {
        position: static;
    }
}

/* Hide post dates */
.post-date {
    display: none !important;
}

/* ========== MOBILE MENU COMPLETE FIX ========== */
/* Desktop styles */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10002;
    position: relative;
}

/* Mobile styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .nav-menu {
        display: none !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 10001;
        margin: 0;
        padding: 0;
    }
    
    .nav-menu.active {
        display: flex !important;
    }
    
    .nav-menu li {
        margin: 0;
        list-style: none;
    }
    
    .nav-menu a {
        font-size: 1.5rem;
        padding: 1rem 2rem;
        display: block;
        color: var(--text);
    }
    
    .nav-menu a:hover {
        color: var(--primary);
    }
    
    .site-header {
        position: relative;
        z-index: 10000;
    }
    
    .main-nav {
        position: static;
    }
}

/* ========== MOBILE MENU FINAL FIX ========== */
.mobile-menu-toggle {
    display: none;
    background: var(--primary) !important;
    border: none !important;
    border-radius: 4px !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 1.5rem !important;
    color: #fff !important;
    cursor: pointer;
    padding: 0 !important;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    position: relative;
}

.mobile-menu-toggle i {
    color: #fff !important;
    font-size: 1.3rem !important;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .nav-menu {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background: #ffffff !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 1.5rem !important;
        z-index: 10001 !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }
    
    .nav-menu.active {
        display: flex !important;
    }
    
    .nav-menu li {
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }
    
    .nav-menu a {
        font-size: 1.5rem !important;
        padding: 1rem 2rem !important;
        display: block !important;
        color: #333 !important;
        text-decoration: none !important;
        font-weight: 500 !important;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        color: var(--primary) !important;
    }
}

/* ========== APP BAR (igual que web principal) ========== */
.app-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.app-bar-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    flex: 1;
}

.app-bar .nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.app-bar .nav a {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
    position: relative;
    transition: color 0.2s;
}

.app-bar .nav a:hover { color: var(--primary); }

.app-bar .nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.app-bar .nav a:hover::after,
.app-bar .nav a.active::after { width: 100%; }

.app-bar .nav a.active { color: var(--primary); }

.app-bar .btn-primary {
    background: var(--primary);
    color: white !important;
    padding: 10px 20px;
    border-radius: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.app-bar .btn-primary::after { display: none; }

.app-bar .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    background: var(--primary) !important;
    border: none !important;
    border-radius: 8px !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 1.4rem !important;
    color: white !important;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 1002;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 1001;
}

.mobile-nav.active { display: flex; }

.mobile-nav a {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    padding: 12px 24px;
}

.mobile-nav a:hover,
.mobile-nav a.active { color: var(--primary); }

@media (max-width: 768px) {
    .app-bar .nav { display: none; }
    .mobile-menu-toggle { display: flex !important; }
    .site-main { padding-top: 64px; }
}

@media (min-width: 769px) {
    .mobile-nav { display: none !important; }
}

/* Fix: ocultar mobile-nav en desktop */
.mobile-nav {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-nav.active {
        display: flex !important;
    }
}

/* ========== IMPROVED POST CARDS ========== */
.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 20px 0;
}

.post-card {
    display: flex;
    flex-direction: row;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.post-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    transform: translateY(-6px);
}

.post-card .post-thumbnail {
    flex: 0 0 380px;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.08);
}

.post-card .post-thumbnail-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card .post-thumbnail-placeholder i {
    font-size: 4rem;
    color: rgba(255,255,255,0.7);
}

.post-card .post-content {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-card .post-category {
    margin-bottom: 12px;
}

.post-card .post-category a {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, #667eea 100%);
    color: white !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.3s;
}

.post-card .post-category a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
}

.post-card .post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.post-card .post-title a {
    color: var(--text-primary);
    transition: color 0.2s;
}

.post-card .post-title a:hover {
    color: var(--primary);
}

.post-card .post-excerpt {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.post-card .post-excerpt p {
    margin: 0;
}

.post-card .post-footer {
    margin-top: auto;
}

.post-card .read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: white !important;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
}

.post-card .read-more-btn:hover {
    background: var(--primary-dark);
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
}

.post-card .read-more-btn i {
    transition: transform 0.3s;
}

.post-card .read-more-btn:hover i {
    transform: translateX(5px);
}

/* Post separator line between cards */
.post-card:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}

/* Mobile responsive */
@media (max-width: 900px) {
    .post-card {
        flex-direction: column;
    }
    
    .post-card .post-thumbnail {
        flex: none;
        width: 100%;
        height: 220px;
    }
    
    .post-card .post-content {
        padding: 24px;
    }
    
    .post-card .post-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .posts-grid {
        gap: 24px;
        padding: 10px 0;
    }
    
    .post-card .post-thumbnail {
        height: 180px;
    }
    
    .post-card .post-content {
        padding: 20px;
    }
    
    .post-card .post-title {
        font-size: 1.2rem;
    }
    
    .post-card .post-excerpt {
        font-size: 0.95rem;
    }
    
    .post-card .read-more-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
}

/* ========== BLOG INFO BAR (arriba de posts) ========== */
.blog-info-bar {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    padding: 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    align-items: flex-start;
}

.widget-inline {
    flex: 1;
}

.widget-inline h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-inline h3 i {
    color: var(--primary);
    font-size: 1.1rem;
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    color: var(--text-primary) !important;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.category-chip:hover {
    background: linear-gradient(135deg, var(--primary) 0%, #667eea 100%);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
}

.category-chip .count {
    background: rgba(0,0,0,0.1);
    color: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
}

.category-chip:hover .count {
    background: rgba(255,255,255,0.25);
}

.about-widget {
    max-width: 400px;
    border-left: 1px solid rgba(0,0,0,0.08);
    padding-left: 24px;
}

.about-widget p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .blog-info-bar {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .about-widget {
        max-width: 100%;
        border-left: none;
        border-top: 1px solid rgba(0,0,0,0.08);
        padding-left: 0;
        padding-top: 20px;
    }
    
    .category-chips {
        gap: 8px;
    }
    
    .category-chip {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* ========== SINGLE POST IMPROVEMENTS ========== */
.post-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 100px 0 50px;
    color: white;
    position: relative;
    overflow: hidden;
}

.post-header::before {
    content: '';
    position: absolute;
    width: 300%;
    height: 300%;
    top: -100%;
    left: -100%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.post-header .post-meta {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.post-header .post-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.post-featured-image {
    margin-top: -30px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.post-featured-image img {
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    max-height: 500px;
    width: 100%;
    object-fit: cover;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: 40px 0;
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

.post-body p {
    margin-bottom: 1.5em;
}

.post-body h2 {
    font-size: 1.6rem;
    margin: 2em 0 0.8em;
    color: #1f2937;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.post-body h3 {
    font-size: 1.3rem;
    margin: 1.5em 0 0.6em;
    color: #374151;
}

.post-body a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(25,118,210,0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}

.post-body a:hover {
    text-decoration-color: var(--primary);
}

/* Post intro paragraph */
.post-body .post-intro {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #1f2937;
    font-weight: 500;
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin-bottom: 2em;
}

/* Table of contents */
.post-body .tools-toc {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 2.5em;
}

.post-body .tools-toc strong {
    display: block;
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 12px;
}

.post-body .tools-toc ol {
    margin: 0;
    padding-left: 20px;
    columns: 2;
    column-gap: 24px;
}

.post-body .tools-toc li {
    padding: 4px 0;
    font-size: 0.95rem;
    break-inside: avoid;
}

.post-body .tools-toc a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
}

.post-body .tools-toc a:hover {
    text-decoration: underline;
}

/* Tool card blocks */
.post-body .tool-card-block {
    display: flex;
    gap: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    margin: 2em 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.post-body .tool-card-block:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transform: translateY(-3px);
    border-color: rgba(25,118,210,0.2);
}

.post-body .tool-card-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.post-body .tool-card-content {
    flex: 1;
}

.post-body .tool-card-content h2 {
    font-size: 1.3rem;
    margin: 0 0 12px;
    padding: 0;
    border: none;
    color: #1f2937;
}

.post-body .tool-card-content p {
    font-size: 1rem;
    margin-bottom: 16px;
    color: #4b5563;
}

.post-body .tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.post-body .tool-features span {
    display: inline-flex;
    align-items: center;
    background: #f0fdf4;
    color: #166534;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #bbf7d0;
}

.post-body .tool-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none !important;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(25,118,210,0.25);
}

.post-body .tool-cta:hover {
    background: var(--primary-dark);
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(25,118,210,0.35);
}

/* FAQ block */
.post-body .faq-block {
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 28px;
    margin: 2.5em 0;
}

.post-body .faq-block h3 {
    color: #1e40af;
    margin: 0 0 12px;
    font-size: 1.2rem;
}

.post-body .faq-block p {
    color: #1e3a5f;
    margin-bottom: 0.8em;
}

.post-body .faq-block p:last-child {
    margin-bottom: 0;
}

/* Share buttons */
.post-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 40px 0 30px;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
}

.post-share span {
    font-weight: 600;
    color: #6b7280;
    font-size: 14px;
}

.post-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f3f4f6;
    color: #374151 !important;
    font-size: 16px;
    transition: all 0.3s;
    text-decoration: none !important;
}

.post-share a:hover {
    background: var(--primary);
    color: white !important;
    transform: translateY(-3px);
}

/* Post navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 30px;
    padding: 24px 0;
    border-top: 1px solid #e5e7eb;
}

.post-navigation .nav-prev,
.post-navigation .nav-next {
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.post-navigation .nav-prev:hover,
.post-navigation .nav-next:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
}

.post-navigation a:hover {
    color: var(--primary);
}

/* Tags */
.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
}

.post-tags i {
    color: #9ca3af;
}

/* Sidebar improvements */
.blog-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
}

.blog-sidebar .widget {
    margin-bottom: 20px;
}

/* Mobile responsive */
@media (max-width: 900px) {
    .post-header .post-title {
        font-size: 1.8rem;
    }

    .post-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

    .post-body .tool-card-block {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .post-body .tool-card-icon {
        width: 52px;
        height: 52px;
        font-size: 24px;
    }

    .post-body .tools-toc ol {
        columns: 1;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }
}

/* ========== COMPARISON TABLE ========== */
.post-body .comparison-table {
    margin: 1.5em 0 2em;
    overflow-x: auto;
}

.post-body .comparison-table table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.post-body .comparison-table thead tr {
    background: linear-gradient(135deg, #1e293b, #334155);
}

.post-body .comparison-table th {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 20px;
    text-align: left;
}

.post-body .comparison-table td {
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    color: #475569;
}

.post-body .comparison-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.post-body .comparison-table tbody tr:hover {
    background: #eff6ff;
}

/* ========== RESULT BOX ========== */
.post-body .result-box {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    padding: 14px 18px;
    border-radius: 0 8px 8px 0;
    margin-top: 12px;
    font-size: 0.95rem;
    color: #166534;
}

.post-body .result-box.warning {
    background: #fef3c7;
    border-left-color: #f59e0b;
    color: #92400e;
}

/* ========== PLAN TIMELINE ========== */
.post-body .plan-timeline {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    margin: 2em 0;
}

.post-body .plan-timeline h2 {
    margin: 0 0 20px;
    padding: 0;
    border: none;
    font-size: 1.4rem;
}

.post-body .timeline-item {
    display: flex;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
}

.post-body .timeline-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.post-body .timeline-week {
    flex-shrink: 0;
    width: 90px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), #667eea);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

.post-body .timeline-content h4 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: #1e293b;
}

.post-body .timeline-content ul {
    margin: 0;
    padding-left: 18px;
}

.post-body .timeline-content li {
    font-size: 0.95rem;
    color: #475569;
    padding: 2px 0;
}

/* ========== METRICS GRID ========== */
.post-body .metrics-grid {
    margin: 2em 0;
}

.post-body .metrics-grid h2 {
    border: none;
    padding: 0;
}

.post-body .metrics-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.post-body .metric-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.post-body .metric-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.post-body .metric-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
}

.post-body .metric-desc {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .post-body .metrics-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-body .timeline-item {
        flex-direction: column;
        gap: 8px;
    }

    .post-body .timeline-week {
        width: auto;
        align-self: flex-start;
    }
}

/* ========== TOOL CARD H3 STYLE ========== */
.post-body .tool-card-content h3 {
    font-size: 1.2rem;
    margin: 0 0 12px;
    color: #1f2937;
}
