/* ════════════════════════════════════════════════════════════════
   BLOG — Home, listados, sidebar, post cards
   ════════════════════════════════════════════════════════════════ */

.blog-container {
    max-width: 1280px; margin: 0 auto; padding: 7rem 3rem 0;
}

/* ─── HERO BLOG (banner top) ─── */
.blog-hero {
    position: relative; padding: 3rem 0; margin-bottom: 3rem; overflow: hidden;
    border-radius: 20px; border: 1px solid var(--border); background: var(--bg2);
}
.blog-hero-content { position: relative; z-index: 2; padding: 0 2.5rem; max-width: 720px; }
.blog-hero h1 {
    font-family: 'Orbitron', monospace; font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900; line-height: 1.1; letter-spacing: -.01em; margin-bottom: 1rem;
}
.blog-hero h1 .accent {
    background: linear-gradient(135deg, var(--neon), var(--neon2), var(--neon3));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.blog-hero p { font-size: 1.05rem; color: var(--muted); line-height: 1.8; max-width: 600px; }

/* ─── FEATURED POST ─── */
.featured-post {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 0;
    border-radius: 20px; border: 1px solid var(--border);
    background: var(--bg2); overflow: hidden; margin-bottom: 4rem;
    position: relative; transition: border-color .3s, transform .3s;
}
.featured-post:hover { border-color: rgba(0,255,224,.2); transform: translateY(-3px); }
.featured-post-img {
    position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg3);
}
.featured-post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.featured-post:hover .featured-post-img img { transform: scale(1.05); }
.featured-post-img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent 60%, var(--bg2) 100%);
    pointer-events: none;
}
.featured-post-body {
    padding: 2.5rem; display: flex; flex-direction: column; justify-content: center;
}
.featured-badge {
    display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start;
    padding: .35rem 1rem; border-radius: 6px;
    background: rgba(255,228,75,.1); border: 1px solid rgba(255,228,75,.3);
    color: var(--neonY); font-size: .68rem; font-weight: 700;
    letter-spacing: .15em; text-transform: uppercase; margin-bottom: 1rem;
}
.featured-badge::before { content: '★'; }
.featured-post h2 {
    font-family: 'Orbitron', monospace; font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 900; line-height: 1.2; margin-bottom: 1rem; letter-spacing: -.01em;
}
.featured-post h2 a { color: var(--text); }
.featured-post h2 a:hover { color: var(--neon); }
.featured-post-excerpt { color: var(--muted); font-size: .95rem; line-height: 1.8; margin-bottom: 1.5rem; }
.featured-post-meta {
    display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted);
}
.featured-post-meta span { display: inline-flex; align-items: center; gap: .35rem; }

/* ─── BLOG GRID ─── */
.blog-layout {
    display: grid; grid-template-columns: 1fr 320px; gap: 3rem;
    align-items: flex-start;
}
.posts-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* ─── POST CARD ─── */
.post-card {
    border-radius: 16px; border: 1px solid var(--border);
    background: var(--card); overflow: hidden;
    transition: all .35s; cursor: pointer; position: relative;
    display: flex; flex-direction: column;
}
.post-card:hover {
    transform: translateY(-6px); border-color: rgba(0,255,224,.18);
    background: rgba(255,255,255,.04);
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.post-card-img {
    aspect-ratio: 16/10; overflow: hidden; background: var(--bg3); position: relative;
}
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-card:hover .post-card-img img { transform: scale(1.06); }
.post-card-img-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background:
        linear-gradient(135deg, rgba(0,255,224,.08), rgba(91,91,255,.08)),
        repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(0,255,224,.025) 20px, rgba(0,255,224,.025) 21px);
    color: var(--muted); font-family: 'Orbitron', monospace; font-size: 1.2rem;
}
.post-card-cat {
    position: absolute; top: 1rem; left: 1rem;
    padding: .3rem .8rem; border-radius: 6px;
    font-size: .68rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; background: rgba(3,4,10,.85); backdrop-filter: blur(10px);
    border: 1px solid; color: var(--neon); border-color: rgba(0,255,224,.3);
    text-decoration: none;
}
.post-card-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.post-card h3 {
    font-family: 'Orbitron', monospace; font-size: 1.05rem; font-weight: 700;
    line-height: 1.3; margin-bottom: .7rem; letter-spacing: .01em;
}
.post-card h3 a { color: var(--text); }
.post-card:hover h3 a { color: var(--neon); }
.post-card-excerpt {
    color: var(--muted); font-size: .85rem; line-height: 1.75;
    margin-bottom: 1rem; flex: 1;
}
.post-card-meta {
    display: flex; align-items: center; justify-content: space-between;
    gap: .6rem; padding-top: 1rem;
    border-top: 1px solid var(--border); font-size: .75rem; color: var(--muted);
    flex-wrap: wrap;
}
.post-card-meta-stats {
    display: inline-flex; align-items: center; gap: .8rem;
}
.post-card-meta-stats span {
    display: inline-flex; align-items: center; gap: .3rem;
}
.post-card-meta-stats svg { width: 13px; height: 13px; }

/* ─── SIDEBAR ─── */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 100px; }
.sidebar-widget {
    background: var(--bg3); border: 1px solid var(--border);
    border-radius: 16px; padding: 1.6rem;
}
.sidebar-widget h4 {
    font-family: 'Orbitron', monospace; font-size: .8rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: var(--neon);
    margin-bottom: 1.2rem; display: flex; align-items: center; gap: .5rem;
}
.sidebar-widget h4::before { content: ''; width: 18px; height: 1px; background: var(--neon); }

/* Search */
.sidebar-search { position: relative; }
.sidebar-search input {
    width: 100%; padding: .8rem 2.6rem .8rem 1rem;
    background: var(--bg4); border: 1px solid var(--border);
    border-radius: 10px; color: var(--text); font-size: .85rem; outline: none;
    transition: border-color .2s;
}
.sidebar-search input:focus { border-color: var(--neon2); }
.sidebar-search button {
    position: absolute; right: .4rem; top: 50%; transform: translateY(-50%);
    background: linear-gradient(135deg, var(--neon), var(--neon2));
    border: none; color: #03040a; padding: .55rem .7rem; border-radius: 8px;
    cursor: pointer; display: flex; align-items: center;
}
.sidebar-search button svg { width: 14px; height: 14px; }

/* Categorías */
.cat-list { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.cat-list li a {
    display: flex; align-items: center; justify-content: space-between;
    padding: .7rem .9rem; border-radius: 9px;
    background: var(--card); border: 1px solid transparent;
    font-size: .85rem; color: var(--text); transition: all .2s;
}
.cat-list li a:hover { border-color: rgba(0,255,224,.2); color: var(--neon); }
.cat-list li a .count {
    font-size: .72rem; color: var(--muted); padding: .15rem .55rem;
    border-radius: 6px; background: var(--bg4);
}
.cat-list li a:hover .count { background: rgba(0,255,224,.1); color: var(--neon); }

/* Popular posts */
.popular-list { display: flex; flex-direction: column; gap: 1rem; }
.popular-item {
    display: flex; gap: .8rem; align-items: flex-start;
    padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}
.popular-item:last-child { border-bottom: none; padding-bottom: 0; }
.popular-num {
    font-family: 'Orbitron', monospace; font-size: 1.4rem; font-weight: 900;
    color: var(--neon); opacity: .4; line-height: 1; flex-shrink: 0; min-width: 22px;
}
.popular-item-content { flex: 1; }
.popular-item h5 { font-size: .85rem; line-height: 1.4; margin-bottom: .3rem; }
.popular-item h5 a { color: var(--text); }
.popular-item h5 a:hover { color: var(--neon); }
.popular-item-meta { font-size: .72rem; color: var(--muted); }

/* Tags cloud */
.tags-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-pill {
    padding: .3rem .8rem; border-radius: 6px;
    border: 1px solid rgba(91,91,255,.25); background: rgba(91,91,255,.06);
    font-size: .75rem; color: var(--neon2); font-weight: 500;
    text-decoration: none; transition: all .2s;
}
.tag-pill:hover { border-color: var(--neon2); background: rgba(91,91,255,.15); color: var(--neon2); }

/* ─── AD SLOTS ─── */
.ad-slot {
    margin: 2rem 0; padding: 1rem; border-radius: 12px;
    background: var(--card); border: 1px dashed rgba(255,255,255,.05);
    display: flex; align-items: center; justify-content: center;
    min-height: 90px; text-align: center;
}
.ad-slot[data-zone="sidebar"] { min-height: 250px; }
.ad-slot-label {
    font-size: .65rem; color: var(--muted); letter-spacing: .15em;
    text-transform: uppercase; opacity: .5;
}

/* In-feed ad card */
.post-card.ad-card {
    align-items: center; justify-content: center;
    min-height: 280px; border-style: dashed;
    background: rgba(91,91,255,.04);
}

/* ─── EMPTY STATE ─── */
.empty-state {
    text-align: center; padding: 5rem 1rem; color: var(--muted);
}
.empty-state h3 {
    font-family: 'Orbitron', monospace; font-size: 1.2rem; font-weight: 700;
    color: var(--text); margin-bottom: .5rem;
}
.empty-state p { font-size: .9rem; max-width: 420px; margin: 0 auto; line-height: 1.7; }

/* ─── SECTION HEADER ─── */
.section-header {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
}
.section-header h2 {
    font-family: 'Orbitron', monospace; font-size: 1.6rem; font-weight: 900;
    letter-spacing: -.005em;
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
    display: flex; gap: .5rem; align-items: center; flex-wrap: wrap;
    font-size: .8rem; color: var(--muted); margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--neon); }
.breadcrumb-sep { opacity: .4; }
.breadcrumb-current { color: var(--neon); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .blog-container { padding: 6rem 1.5rem 0; }
    .blog-layout { grid-template-columns: 1fr; }
    .featured-post { grid-template-columns: 1fr; }
    .featured-post-img::after { background: linear-gradient(180deg, transparent 60%, var(--bg2) 100%); }
    .featured-post-body { padding: 1.8rem; }
    .sidebar { position: static; }
    .posts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .blog-hero-content { padding: 0 1.5rem; }
    .blog-hero h1 { font-size: 1.6rem; }
}
