/* ============================================
   HUB DE CONOCIMIENTO — Redesign
   ============================================ */

/* ---- HERO ---- */
.hub-hero {
    background: var(--negro);
    padding: 140px 0 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hub-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(178,142,61,0.05) 0%, rgba(208,170,212,0.02) 40%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.hub-hero .container { position: relative; z-index: 1; }

.hub-hero .breadcrumb a { color: rgba(255,255,255,0.35); }
.hub-hero .breadcrumb span { color: rgba(255,255,255,0.2); }
.hub-hero .breadcrumb .current { color: rgba(255,255,255,0.6); }

.hub-hero h1 {
    font-family: var(--font-display);
    font-size: 3.2rem;
    color: var(--blanco);
    margin-bottom: 10px;
    font-weight: 600;
}

.hub-hero p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.92rem;
    max-width: 480px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.7;
}

/* Hub stats */
.hub-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 28px;
    margin-bottom: 28px;
}

.hub-stat {
    text-align: center;
}

.hub-stat__num {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--dorado);
    font-weight: 700;
}

.hub-stat__label {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Category filters */
.hub-cats {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.hub-cat {
    padding: 9px 22px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: all 0.3s;
    background: transparent;
    font-family: var(--font-body);
}

.hub-cat:hover {
    border-color: rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.7);
}

.hub-cat.active {
    border-color: var(--dorado);
    color: var(--dorado);
    background: rgba(178, 142, 61, 0.1);
}

/* ---- FEATURED ARTICLE (first card) ---- */
.hub-featured {
    padding: 48px 0 0;
}

.hub-featured__card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: var(--blanco);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all var(--t);
}

.hub-featured__card:hover {
    box-shadow: var(--shadow-lg);
}

.hub-featured__img {
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.hub-featured__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hub-featured__card:hover .hub-featured__img img {
    transform: scale(1.04);
}

.hub-featured__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7,3,8,0.15) 0%, transparent 50%);
}

.hub-featured__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--dorado);
    color: var(--blanco);
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 12px;
    z-index: 2;
}

.hub-featured__body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hub-featured__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.hub-featured__cat {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--dorado);
    font-weight: 600;
}

.hub-featured__time {
    font-size: 0.68rem;
    color: var(--gris-texto);
}

.hub-featured__body h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 12px;
    font-weight: 600;
}

.hub-featured__body h2 a {
    transition: color var(--t);
}

.hub-featured__body h2 a:hover {
    color: var(--dorado);
}

.hub-featured__excerpt {
    color: var(--gris-texto);
    font-size: 0.88rem;
    line-height: 1.75;
    margin-bottom: 20px;
}

.hub-featured__link {
    color: var(--dorado);
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--t);
}

.hub-featured__link:hover { gap: 10px; }
.hub-featured__link::after { content: '\2192'; }

/* ---- ARTICLE GRID ---- */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 32px 0 96px;
}

.hub-card {
    background: var(--blanco);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all var(--t);
    display: flex;
    flex-direction: row;
}

.hub-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.hub-card__img {
    width: 180px;
    min-height: 180px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.hub-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t);
}

.hub-card:hover .hub-card__img img {
    transform: scale(1.06);
}

.hub-card__num {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 28px;
    height: 28px;
    background: var(--negro);
    color: var(--dorado);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

.hub-card__body {
    padding: 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hub-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.hub-card__cat {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--dorado);
    font-weight: 600;
}

.hub-card__time {
    font-size: 0.65rem;
    color: var(--gris-texto);
}

.hub-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    line-height: 1.25;
    margin-bottom: 6px;
    font-weight: 600;
}

.hub-card h3 a { transition: color var(--t); }
.hub-card h3 a:hover { color: var(--dorado); }

.hub-card__excerpt {
    color: var(--gris-texto);
    font-size: 0.78rem;
    line-height: 1.65;
    margin-bottom: 10px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hub-card__link {
    color: var(--dorado);
    font-size: 0.72rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--t);
}

.hub-card__link:hover { gap: 8px; }
.hub-card__link::after { content: '\2192'; }

/* Filter animation */
.hub-card, .hub-featured__card {
    transition: all 0.4s ease, opacity 0.3s ease;
}

.hub-card[style*="display: none"] {
    opacity: 0;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 968px) {
    .hub-featured__card {
        grid-template-columns: 1fr;
    }

    .hub-featured__img {
        min-height: 220px;
    }

    .hub-featured__body {
        padding: 28px;
    }

    .hub-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }

    .hub-hero h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 600px) {
    .hub-hero {
        padding: 120px 0 40px;
    }

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

    .hub-grid {
        padding: 32px 0 64px;
    }

    .hub-card {
        flex-direction: column;
    }

    .hub-card__img {
        width: 100%;
        min-height: 160px;
        height: 160px;
    }

    .hub-featured__body h2 {
        font-size: 1.4rem;
    }

    .hub-stats {
        gap: 20px;
    }

    .hub-stats .hub-stat__num {
        font-size: 1.3rem;
    }
}
