/* =====================================================
   ===== HEADER PERSONALIZADO =====
   ===================================================== */

.custom-blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    background: #ffffff;
}

/* ===== LOGO ===== */

.cbh-logo-img {
    max-height: 48px;
    width: auto;
    height: auto;
}

/* ===== NAV ===== */

.cbh-nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

/* ===== ENLACES ===== */

.cbh-link {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #111;
    position: relative;
    display: inline-block; /* mejora área clickeable */
    padding: 4px 2px;      /* mejora UX sin romper diseño */
    transition: color 0.3s ease, transform 0.2s ease;
}

/* =====================================================
   ===== HOVER MODERNO =====
   ===================================================== */

/* Línea centrada */
.cbh-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: #C93B1B;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

/* Expansión desde el centro */
.cbh-link:hover::after {
    width: 100%;
}

/* Color + micro interacción */
.cbh-link:hover {
    color: #C93B1B;
    transform: translateY(-1px);
}

/* =====================================================
   ===== MOBILE =====
   ===================================================== */

@media (max-width: 768px) {

    .custom-blog-header {
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
        gap: 6px;
    }

    .cbh-logo-img {
        max-height: 30px;
    }

    .cbh-nav {
        justify-content: center;
        gap: 8px 14px;
        text-align: center;
    }

    .cbh-link {
        font-size: 13px;
    }
}