/* ─── Blog Layout ──────────────────────────────────────────── */

body {
    background: #0a0a1a;
    color: #e0e0f0;
    font-family: 'Segoe UI', sans-serif;
}

.blog-layout {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    flex: 1;
    min-height: 0;
    gap: 40px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    background: transparent !important;
}

@media (max-width: 600px) {
    .blog-layout {
        flex-direction: column !important;
        flex-wrap: wrap !important;
    }
}

/* ─── Sidebar ─────────────────────────────────────────────── */

.sidebar {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    flex: 0 0 280px !important;
    flex-shrink: 0 !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    margin-top: 0 !important;
    box-shadow: none !important;
    height: auto !important;
    padding: 40px 20px;
    box-sizing: border-box;
    overflow-y: auto;
    background: transparent !important;
    color: inherit !important;
    border: none !important;
}

/* ─── Columna derecha ──────────────────────────────────────── */

.blog-content {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: 100%;
    padding: 40px 40px 60px;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    overflow-x: hidden;
    background: transparent !important;
    color: inherit !important;
    border: none !important;
}

/* ─── Hero ────────────────────────────────────────────────── */

.blog-hero {
    background: linear-gradient(135deg, #0a0a1a, #150d3b);
    padding: 50px 30px 40px;
    text-align: center;
    border-radius: 14px;
    margin-bottom: 40px;
}

.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}


.blog-hero h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: #fff;
    margin-bottom: 12px;
}

.blog-hero h1 span {
    color: #00d4ff;
}

.blog-hero p {
    color: #aaa;
    max-width: 520px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ─── Posts grid ──────────────────────────────────────────── */

.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* ─── Post card ───────────────────────────────────────────── */

.post-card {
    background: #0e0e2a;
    border: 1px solid #1e1e3e;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .2s, transform .2s;
    max-width: 100%;
    box-sizing: border-box;
}

.post-card:hover {
    border-color: #00d4ff55;
    transform: translateY(-3px);
}

.post-card-body {
    padding: 28px;
    flex: 1;
}

.post-tag {
    display: inline-block;
    background: #2A146E44;
    color: #00d4ff;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 0.78rem;
    margin-bottom: 12px;
}

.post-card h2 {
    font-size: 1.3rem;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.4;
}

.post-card h2 a {
    color: inherit;
    text-decoration: none;
}

.post-card h2 a:hover {
    color: #00d4ff;
}

.post-card .excerpt {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 20px;
}

.post-meta {
    display: flex;
    gap: 16px;
    font-size: 0.82rem;
    color: #666;
    flex-wrap: wrap;
}

.post-meta span::before {
    margin-right: 4px;
}

.read-more {
    display: inline-block;
    color: #00d4ff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* ─── Featured badge ──────────────────────────────────────── */

.featured-badge {
    background: #f59e0b22;
    color: #f59e0b;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 0.78rem;
    display: inline-block;
    margin-bottom: 12px;
}

/* ─── Sidebar ─────────────────────────────────────────────── */

.sidebar-widget {
    background: #0e0e2a;
    border: 1px solid #1e1e3e;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-widget h3 {
    color: #00d4ff;
    font-size: 1rem;
    margin: 0 0 16px;
    border-bottom: 1px solid #1e1e3e;
    padding-bottom: 10px;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget ul li {
    padding: 7px 0;
    border-bottom: 1px solid #0d0d2a;
}

.sidebar-widget ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
}

.sidebar-widget ul li a:hover {
    color: #00d4ff;
}

.category-chip {
    display: inline-block;
    background: #2A146E33;
    color: #00d4ff;
    border: 1px solid #2A146E66;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.8rem;
    margin: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s;
}

.category-chip:hover {
    background: #2A146E;
}

.cta-sidebar {
    background: linear-gradient(135deg, #150d3b, #0a1a2e);
    border: 1px solid #2A146E;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
}

.cta-sidebar h3 {
    color: #fff;
    margin: 0 0 10px;
}

.cta-sidebar p {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.cta-sidebar a {
    display: block;
    padding: 10px;
    background: linear-gradient(135deg, #2A146E, #00d4ff);
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}
